@cratis/components 4.48.0 → 4.49.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.
Files changed (38) hide show
  1. package/CONFORMANCE.md +1 -1
  2. package/compat-manifest.json +13 -13
  3. package/dist/esm/CommandForm/fields/NumberField.d.ts.map +1 -1
  4. package/dist/esm/CommandForm/fields/NumberField.js +13 -5
  5. package/dist/esm/CommandForm/fields/NumberField.js.map +1 -1
  6. package/dist/esm/Common/NumericInput.d.ts +27 -0
  7. package/dist/esm/Common/NumericInput.d.ts.map +1 -0
  8. package/dist/esm/Common/NumericInput.js +17 -0
  9. package/dist/esm/Common/NumericInput.js.map +1 -0
  10. package/dist/esm/Common/NumericInputImplementation.d.ts +4 -0
  11. package/dist/esm/Common/NumericInputImplementation.d.ts.map +1 -0
  12. package/dist/esm/Common/NumericInputImplementation.js +30 -0
  13. package/dist/esm/Common/NumericInputImplementation.js.map +1 -0
  14. package/dist/esm/Common/index.d.ts +1 -0
  15. package/dist/esm/Common/index.d.ts.map +1 -1
  16. package/dist/esm/Common/index.js +1 -0
  17. package/dist/esm/Common/index.js.map +1 -1
  18. package/dist/esm/renderer/builtin/index.d.ts.map +1 -1
  19. package/dist/esm/renderer/builtin/index.js +1 -0
  20. package/dist/esm/renderer/builtin/index.js.map +1 -1
  21. package/dist/esm/renderer/coreSlots.d.ts +5 -0
  22. package/dist/esm/renderer/coreSlots.d.ts.map +1 -1
  23. package/dist/esm/renderer/coreSlots.js +2 -0
  24. package/dist/esm/renderer/coreSlots.js.map +1 -1
  25. package/dist/esm/renderer/index.d.ts +3 -0
  26. package/dist/esm/renderer/index.d.ts.map +1 -1
  27. package/dist/esm/renderer/presentation.d.ts +9 -1
  28. package/dist/esm/renderer/presentation.d.ts.map +1 -1
  29. package/dist/esm/renderer/presentation.js +1 -0
  30. package/dist/esm/renderer/presentation.js.map +1 -1
  31. package/dist/esm/renderer/resolve.d.ts.map +1 -1
  32. package/dist/esm/renderer/resolve.js +1 -0
  33. package/dist/esm/renderer/resolve.js.map +1 -1
  34. package/dist/esm/types/parts.d.ts +4 -0
  35. package/dist/esm/types/parts.d.ts.map +1 -1
  36. package/dist/esm/types/parts.js +4 -0
  37. package/dist/esm/types/parts.js.map +1 -1
  38. package/package.json +5 -3
package/CONFORMANCE.md CHANGED
@@ -4,7 +4,7 @@
4
4
  # Built-in renderer conformance evidence
5
5
 
6
6
  The opt-in `@cratis/components/renderer/builtin` manifest is exercised by
7
- `@cratis/components.conformance` against all fourteen renderer ABI v1 slots. The repository gate
7
+ `@cratis/components.conformance` against all fifteen renderer ABI v1 slots. The repository gate
8
8
  requires every bounded check to pass with zero skips, validates the package's static `cratis`
9
9
  metadata against the public adapter schema, and plants dropped-ref, omitted-part,
10
10
  over-declared-capability, unjustified-skip, and duplicate-semantic-root defects with exact failure
@@ -70,7 +70,7 @@
70
70
  {
71
71
  "name": "@cratis/components",
72
72
  "role": "core",
73
- "version": "4.48.0",
73
+ "version": "4.49.0",
74
74
  "releaseMajorRange": ">=4 <5",
75
75
  "independentRelease": false,
76
76
  "private": false,
@@ -94,7 +94,7 @@
94
94
  {
95
95
  "name": "@cratis/eslint-plugin-components",
96
96
  "role": "eslint",
97
- "version": "4.48.0",
97
+ "version": "4.49.0",
98
98
  "releaseMajorRange": ">=4 <5",
99
99
  "independentRelease": false,
100
100
  "private": false,
@@ -107,7 +107,7 @@
107
107
  {
108
108
  "name": "@cratis/components.migrator",
109
109
  "role": "migrator",
110
- "version": "4.48.0",
110
+ "version": "4.49.0",
111
111
  "releaseMajorRange": ">=4 <5",
112
112
  "independentRelease": false,
113
113
  "private": false,
@@ -118,13 +118,13 @@
118
118
  {
119
119
  "name": "@cratis/components.conformance",
120
120
  "role": "conformance",
121
- "version": "4.48.0",
121
+ "version": "4.49.0",
122
122
  "releaseMajorRange": ">=4 <5",
123
123
  "independentRelease": false,
124
124
  "private": false,
125
125
  "packageAccess": "public",
126
126
  "peerDependencies": {
127
- "@cratis/components": "4.48.0",
127
+ "@cratis/components": "4.49.0",
128
128
  "react": "^19.0.0",
129
129
  "react-dom": "^19.0.0"
130
130
  },
@@ -134,13 +134,13 @@
134
134
  {
135
135
  "name": "@cratis/components.mui",
136
136
  "role": "renderer-adapter",
137
- "version": "4.48.0",
137
+ "version": "4.49.0",
138
138
  "releaseMajorRange": ">=4 <5",
139
139
  "independentRelease": false,
140
140
  "private": false,
141
141
  "packageAccess": "public",
142
142
  "peerDependencies": {
143
- "@cratis/components": "4.48.0",
143
+ "@cratis/components": "4.49.0",
144
144
  "@emotion/react": ">=11.5 <12",
145
145
  "@emotion/styled": ">=11.11 <12",
146
146
  "@mui/material": ">=9 <10",
@@ -190,13 +190,13 @@
190
190
  {
191
191
  "name": "@cratis/components.primereact",
192
192
  "role": "renderer-adapter",
193
- "version": "4.48.0",
193
+ "version": "4.49.0",
194
194
  "releaseMajorRange": ">=4 <5",
195
195
  "independentRelease": false,
196
196
  "private": false,
197
197
  "packageAccess": "public",
198
198
  "peerDependencies": {
199
- "@cratis/components": "4.48.0",
199
+ "@cratis/components": "4.49.0",
200
200
  "@primereact/core": ">=11 <12",
201
201
  "@primereact/ui": ">=11 <12",
202
202
  "@primeuix/themes": ">=3 <4",
@@ -258,13 +258,13 @@
258
258
  {
259
259
  "name": "@cratis/components.primereact10",
260
260
  "role": "renderer-adapter",
261
- "version": "4.48.0",
261
+ "version": "4.49.0",
262
262
  "releaseMajorRange": ">=4 <5",
263
263
  "independentRelease": false,
264
264
  "private": false,
265
265
  "packageAccess": "public",
266
266
  "peerDependencies": {
267
- "@cratis/components": "4.48.0",
267
+ "@cratis/components": "4.49.0",
268
268
  "primereact": ">=10.9.9 <11",
269
269
  "react": "^19.0.0",
270
270
  "react-dom": "^19.0.0"
@@ -306,13 +306,13 @@
306
306
  {
307
307
  "name": "@cratis/components.designsystemet",
308
308
  "role": "renderer-adapter",
309
- "version": "4.48.0",
309
+ "version": "4.49.0",
310
310
  "releaseMajorRange": ">=4 <5",
311
311
  "independentRelease": false,
312
312
  "private": false,
313
313
  "packageAccess": "public",
314
314
  "peerDependencies": {
315
- "@cratis/components": "4.48.0",
315
+ "@cratis/components": "4.49.0",
316
316
  "@digdir/designsystemet-css": ">=1.24 <2",
317
317
  "@digdir/designsystemet-react": ">=1.24 <2",
318
318
  "react": "^19.0.0",
@@ -1 +1 @@
1
- {"version":3,"file":"NumberField.d.ts","sourceRoot":"","sources":["../../../../CommandForm/fields/NumberField.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,EAAsB,KAAK,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACxF,OAAO,EAEH,KAAK,uBAAuB,EAC/B,MAAM,yBAAsB,CAAC;AAI9B,sDAAsD;AACtD,MAAM,WAAW,gBAAgB;IAC7B,qBAAqB;IACrB,IAAI,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC;IACtC,2BAA2B;IAC3B,KAAK,CAAC,EAAE,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;CACjD;AAKD,UAAU,yBACN,SAAQ,iBAAiB,CAAC,MAAM,CAAC,EAC7B,uBAAuB;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,gBAAgB,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,oEAAoE;AACpE,eAAO,MAAM,WAAW,wNAyDvB,CAAC"}
1
+ {"version":3,"file":"NumberField.d.ts","sourceRoot":"","sources":["../../../../CommandForm/fields/NumberField.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,EAAsB,KAAK,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAMxF,OAAO,EAEH,KAAK,uBAAuB,EAC/B,MAAM,yBAAsB,CAAC;AAI9B,sDAAsD;AACtD,MAAM,WAAW,gBAAgB;IAC7B,qBAAqB;IACrB,IAAI,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC;IACtC,2BAA2B;IAC3B,KAAK,CAAC,EAAE,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;CACjD;AAKD,UAAU,yBACN,SAAQ,iBAAiB,CAAC,MAAM,CAAC,EAC7B,uBAAuB;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,gBAAgB,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAuDD,oEAAoE;AACpE,eAAO,MAAM,WAAW,wNA4CvB,CAAC"}
@@ -1,7 +1,19 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import { asCommandFormField } from '@cratis/arc.react/commands';
3
+ import { unstable_useSlot } from '../../renderer/RendererContext.js';
4
+ import { renderSlot } from '../../renderer/renderSlot.js';
5
+ import { joinClassNames, userChange } from './fieldSlotHelpers.js';
3
6
  import { useFieldAccessibility } from './fieldAccessibility.js';
4
7
 
8
+ const NumberFieldCore = ({ id, 'aria-label': ariaLabel, 'aria-describedby': ariaDescribedBy, value, onChange, placeholder, min, max, step, invalid, pt, }) => (jsx("input", { ...pt?.root, id: id, "aria-label": ariaLabel, "aria-describedby": ariaDescribedBy, type: 'number', value: value, onChange: (event) => onChange?.(Number.isNaN(event.currentTarget.valueAsNumber)
9
+ ? undefined
10
+ : event.currentTarget.valueAsNumber, userChange(event)), placeholder: placeholder, min: min, max: max, step: step, "aria-invalid": invalid || undefined, "data-disabled": pt?.root?.disabled || undefined, "data-invalid": invalid || undefined, "data-readonly": pt?.root?.readOnly || undefined, "data-cratis-part": 'input', className: joinClassNames('cratis-field-input', 'cratis:w-full', pt?.root?.className) }));
11
+ const coreNumberInputDeclaration = Object.freeze({
12
+ mode: 'atomic',
13
+ fidelity: 'native',
14
+ render: NumberFieldCore,
15
+ });
16
+ const SlotNumberInput = (props) => renderSlot(unstable_useSlot('common.numberInput', coreNumberInputDeclaration), props);
5
17
  const NumberField = asCommandFormField((props) => {
6
18
  const accessibility = useFieldAccessibility(props, {
7
19
  id: props.pt?.input?.id,
@@ -15,11 +27,7 @@ const NumberField = asCommandFormField((props) => {
15
27
  props.className,
16
28
  ]
17
29
  .filter(Boolean)
18
- .join(' '), children: [jsx("input", { ...props.pt?.input, id: accessibility.controlId, "aria-label": accessibility.ariaLabel, "aria-describedby": accessibility.ariaDescribedBy, type: 'number', value: props.value, onChange: (event) => props.onChange(Number.isNaN(event.currentTarget.valueAsNumber)
19
- ? 0
20
- : event.currentTarget.valueAsNumber), placeholder: props.placeholder, min: props.min, max: props.max, step: props.step, "aria-invalid": props.invalid || undefined, "data-disabled": props.pt?.input?.disabled || undefined, "data-invalid": props.invalid || undefined, "data-readonly": props.pt?.input?.readOnly || undefined, "data-cratis-part": 'input', className: ['cratis-field-input', 'cratis:w-full', props.pt?.input?.className]
21
- .filter(Boolean)
22
- .join(' ') }), accessibility.hiddenError] }));
30
+ .join(' '), children: [jsx(SlotNumberInput, { id: accessibility.controlId, "aria-label": accessibility.ariaLabel, "aria-describedby": accessibility.ariaDescribedBy, value: props.value, onChange: (value) => props.onChange(value ?? 0), placeholder: props.placeholder, min: props.min, max: props.max, step: props.step, invalid: props.invalid, "aria-invalid": props.invalid || undefined, pt: { root: props.pt?.input } }), accessibility.hiddenError] }));
23
31
  }, { defaultValue: 0 });
24
32
 
25
33
  export { NumberField };
@@ -1 +1 @@
1
- {"version":3,"file":"NumberField.js","sources":["../../../../CommandForm/fields/NumberField.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport type { HTMLAttributes, InputHTMLAttributes } from 'react';\nimport { asCommandFormField, type WrappedFieldProps } from '@cratis/arc.react/commands';\nimport {\n useFieldAccessibility,\n type FieldAccessibilityProps,\n} from './fieldAccessibility';\nimport type { ExactPartKeys } from '../../types/ExactPartKeys';\nimport type { PartsOf } from '../../types/parts';\n\n/** Stable part attributes for {@link NumberField}. */\nexport interface NumberFieldParts {\n /** Field wrapper. */\n root?: HTMLAttributes<HTMLDivElement>;\n /** Native number input. */\n input?: InputHTMLAttributes<HTMLInputElement>;\n}\n\nconst numberFieldPartsMatchManifest: ExactPartKeys<NumberFieldParts, PartsOf<'NumberField'>> = true;\nvoid numberFieldPartsMatchManifest;\n\ninterface NumberFieldComponentProps\n extends WrappedFieldProps<number>,\n FieldAccessibilityProps {\n placeholder?: string;\n min?: number;\n max?: number;\n step?: number;\n className?: string;\n pt?: NumberFieldParts;\n ptOptions?: object;\n unstyled?: boolean;\n}\n\n/** A numeric field bound to a number property on an Arc command. */\nexport const NumberField = asCommandFormField<NumberFieldComponentProps>(\n (props) => {\n const accessibility = useFieldAccessibility(props, {\n id: props.pt?.input?.id,\n ariaLabel: props.pt?.input?.['aria-label'],\n ariaDescribedBy: props.pt?.input?.['aria-describedby'],\n });\n return (\n <div\n {...props.pt?.root}\n onBlur={props.onBlur}\n data-cratis-part='root'\n data-cratis-component='NumberField'\n data-disabled={props.pt?.input?.disabled || undefined}\n data-invalid={props.invalid || undefined}\n data-readonly={props.pt?.input?.readOnly || undefined}\n className={[\n 'cratis-number-field',\n 'cratis:w-full',\n props.pt?.root?.className,\n props.className,\n ]\n .filter(Boolean)\n .join(' ')}\n >\n <input\n {...props.pt?.input}\n id={accessibility.controlId}\n aria-label={accessibility.ariaLabel}\n aria-describedby={accessibility.ariaDescribedBy}\n type='number'\n value={props.value}\n onChange={(event) =>\n props.onChange(\n Number.isNaN(event.currentTarget.valueAsNumber)\n ? 0\n : event.currentTarget.valueAsNumber,\n )\n }\n placeholder={props.placeholder}\n min={props.min}\n max={props.max}\n step={props.step}\n aria-invalid={props.invalid || undefined}\n data-disabled={props.pt?.input?.disabled || undefined}\n data-invalid={props.invalid || undefined}\n data-readonly={props.pt?.input?.readOnly || undefined}\n data-cratis-part='input'\n className={['cratis-field-input', 'cratis:w-full', props.pt?.input?.className]\n .filter(Boolean)\n .join(' ')}\n />\n {accessibility.hiddenError}\n </div>\n );\n },\n { defaultValue: 0 },\n);\n"],"names":["_jsxs","_jsx"],"mappings":";;;;MAqCa,WAAW,GAAG,kBAAkB,CACzC,CAAC,KAAK,KAAI;AACN,IAAA,MAAM,aAAa,GAAG,qBAAqB,CAAC,KAAK,EAAE;AAC/C,QAAA,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,EAAE;QACvB,SAAS,EAAE,KAAK,CAAC,EAAE,EAAE,KAAK,GAAG,YAAY,CAAC;QAC1C,eAAe,EAAE,KAAK,CAAC,EAAE,EAAE,KAAK,GAAG,kBAAkB,CAAC;AACzD,KAAA,CAAC;IACF,QACAA,iBACQ,KAAK,CAAC,EAAE,EAAE,IAAI,EAClB,MAAM,EAAE,KAAK,CAAC,MAAM,sBACH,MAAM,EAAA,uBAAA,EACD,aAAa,EAAA,eAAA,EACpB,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,QAAQ,IAAI,SAAS,EAAA,cAAA,EACvC,KAAK,CAAC,OAAO,IAAI,SAAS,EAAA,eAAA,EACzB,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,QAAQ,IAAI,SAAS,EACrD,SAAS,EAAE;YACP,qBAAqB;YACrB,eAAe;AACf,YAAA,KAAK,CAAC,EAAE,EAAE,IAAI,EAAE,SAAS;AACzB,YAAA,KAAK,CAAC,SAAS;AAClB;aACI,MAAM,CAAC,OAAO;aACd,IAAI,CAAC,GAAG,CAAC,EAAA,QAAA,EAAA,CAEdC,GAAA,CAAA,OAAA,EAAA,EAAA,GACQ,KAAK,CAAC,EAAE,EAAE,KAAK,EACnB,EAAE,EAAE,aAAa,CAAC,SAAS,EAAA,YAAA,EACf,aAAa,CAAC,SAAS,EAAA,kBAAA,EACjB,aAAa,CAAC,eAAe,EAC/C,IAAI,EAAC,QAAQ,EACb,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,QAAQ,EAAE,CAAC,KAAK,KACZ,KAAK,CAAC,QAAQ,CACV,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,aAAa;AAC1C,sBAAE;AACF,sBAAE,KAAK,CAAC,aAAa,CAAC,aAAa,CAC1C,EAEL,WAAW,EAAE,KAAK,CAAC,WAAW,EAC9B,GAAG,EAAE,KAAK,CAAC,GAAG,EACd,GAAG,EAAE,KAAK,CAAC,GAAG,EACd,IAAI,EAAE,KAAK,CAAC,IAAI,kBACF,KAAK,CAAC,OAAO,IAAI,SAAS,mBACzB,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,QAAQ,IAAI,SAAS,kBACvC,KAAK,CAAC,OAAO,IAAI,SAAS,EAAA,eAAA,EACzB,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,QAAQ,IAAI,SAAS,sBACpC,OAAO,EACxB,SAAS,EAAE,CAAC,oBAAoB,EAAE,eAAe,EAAE,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,SAAS;qBACxE,MAAM,CAAC,OAAO;qBACd,IAAI,CAAC,GAAG,CAAC,EAAA,CAChB,EACD,aAAa,CAAC,WAAW,CAAA,EAAA,CACxB;AAEV,CAAC,EACD,EAAE,YAAY,EAAE,CAAC,EAAE;;"}
1
+ {"version":3,"file":"NumberField.js","sources":["../../../../CommandForm/fields/NumberField.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport type { HTMLAttributes, InputHTMLAttributes } from 'react';\nimport { asCommandFormField, type WrappedFieldProps } from '@cratis/arc.react/commands';\nimport type { NumericInputProps } from '../../Common/NumericInput';\nimport { unstable_useSlot } from '../../renderer/RendererContext';\nimport { renderSlot } from '../../renderer/renderSlot';\nimport type { unstable_SlotDeclaration } from '../../renderer/slots';\nimport { joinClassNames, userChange } from './fieldSlotHelpers';\nimport {\n useFieldAccessibility,\n type FieldAccessibilityProps,\n} from './fieldAccessibility';\nimport type { ExactPartKeys } from '../../types/ExactPartKeys';\nimport type { PartsOf } from '../../types/parts';\n\n/** Stable part attributes for {@link NumberField}. */\nexport interface NumberFieldParts {\n /** Field wrapper. */\n root?: HTMLAttributes<HTMLDivElement>;\n /** Native number input. */\n input?: InputHTMLAttributes<HTMLInputElement>;\n}\n\nconst numberFieldPartsMatchManifest: ExactPartKeys<NumberFieldParts, PartsOf<'NumberField'>> = true;\nvoid numberFieldPartsMatchManifest;\n\ninterface NumberFieldComponentProps\n extends WrappedFieldProps<number>,\n FieldAccessibilityProps {\n placeholder?: string;\n min?: number;\n max?: number;\n step?: number;\n className?: string;\n pt?: NumberFieldParts;\n ptOptions?: object;\n unstyled?: boolean;\n}\n\n/** Core NumberField markup, used when no adapter supplies `common.numberInput`. */\nconst NumberFieldCore = ({\n id,\n 'aria-label': ariaLabel,\n 'aria-describedby': ariaDescribedBy,\n value,\n onChange,\n placeholder,\n min,\n max,\n step,\n invalid,\n pt,\n}: NumericInputProps) => (\n <input\n {...pt?.root}\n id={id}\n aria-label={ariaLabel}\n aria-describedby={ariaDescribedBy}\n type='number'\n value={value}\n onChange={(event) =>\n onChange?.(\n Number.isNaN(event.currentTarget.valueAsNumber)\n ? undefined\n : event.currentTarget.valueAsNumber,\n userChange(event),\n )\n }\n placeholder={placeholder}\n min={min}\n max={max}\n step={step}\n aria-invalid={invalid || undefined}\n data-disabled={pt?.root?.disabled || undefined}\n data-invalid={invalid || undefined}\n data-readonly={pt?.root?.readOnly || undefined}\n data-cratis-part='input'\n className={joinClassNames('cratis-field-input', 'cratis:w-full', pt?.root?.className)}\n />\n);\n\n/** Frozen Core declaration resolved when no active renderer supplies `common.numberInput`. */\nconst coreNumberInputDeclaration = Object.freeze({\n mode: 'atomic',\n fidelity: 'native',\n render: NumberFieldCore,\n}) satisfies unstable_SlotDeclaration<'common.numberInput'>;\n\n/** Resolves `common.numberInput` and renders it. */\nconst SlotNumberInput = (props: NumericInputProps) =>\n renderSlot(unstable_useSlot('common.numberInput', coreNumberInputDeclaration), props);\n\n/** A numeric field bound to a number property on an Arc command. */\nexport const NumberField = asCommandFormField<NumberFieldComponentProps>(\n (props) => {\n const accessibility = useFieldAccessibility(props, {\n id: props.pt?.input?.id,\n ariaLabel: props.pt?.input?.['aria-label'],\n ariaDescribedBy: props.pt?.input?.['aria-describedby'],\n });\n return (\n <div\n {...props.pt?.root}\n onBlur={props.onBlur}\n data-cratis-part='root'\n data-cratis-component='NumberField'\n data-disabled={props.pt?.input?.disabled || undefined}\n data-invalid={props.invalid || undefined}\n data-readonly={props.pt?.input?.readOnly || undefined}\n className={[\n 'cratis-number-field',\n 'cratis:w-full',\n props.pt?.root?.className,\n props.className,\n ]\n .filter(Boolean)\n .join(' ')}\n >\n <SlotNumberInput\n id={accessibility.controlId}\n aria-label={accessibility.ariaLabel}\n aria-describedby={accessibility.ariaDescribedBy}\n value={props.value}\n onChange={(value) => props.onChange(value ?? 0)}\n placeholder={props.placeholder}\n min={props.min}\n max={props.max}\n step={props.step}\n invalid={props.invalid}\n aria-invalid={props.invalid || undefined}\n pt={{ root: props.pt?.input }}\n />\n {accessibility.hiddenError}\n </div>\n );\n },\n { defaultValue: 0 },\n);\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;;;AA0CA,MAAM,eAAe,GAAG,CAAC,EACrB,EAAE,EACF,YAAY,EAAE,SAAS,EACvB,kBAAkB,EAAE,eAAe,EACnC,KAAK,EACL,QAAQ,EACR,WA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AK,CAAC,EAAE,EAAE,KAAK,EAAE,EAAA,CAC/B,EACD,aAAa,CAAC,WAAW,CAAA,EAAA,CACxB;AAEV,CAAC,EACD,EAAE,YAAY,EAAE,CAAC,EAAE;;"}
@@ -0,0 +1,27 @@
1
+ import { type InputHTMLAttributes } from 'react';
2
+ import type { ChangeHandler } from '../types/ChangeHandler.js';
3
+ /** Stable Cratis-owned parts for styling a {@link NumericInput}. */
4
+ export interface NumericInputParts {
5
+ /** Native number input element. */
6
+ root?: InputHTMLAttributes<HTMLInputElement>;
7
+ }
8
+ /**
9
+ * Props for {@link NumericInput}.
10
+ *
11
+ * The input is always controlled: `value` renders as the displayed number and `undefined` renders
12
+ * an empty input. This is a plain native number input, distinct from the stepper-style
13
+ * {@link NumberInput}.
14
+ */
15
+ export interface NumericInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'type' | 'value' | 'defaultValue'> {
16
+ /** Current number. `undefined` renders an empty input. */
17
+ value?: number;
18
+ /** Marks the input invalid and exposes the canonical invalid state. */
19
+ invalid?: boolean;
20
+ /** Receives the next number, or `undefined` when the input is empty or not a valid number. */
21
+ onChange?: ChangeHandler<number | undefined>;
22
+ /** Cratis-owned per-part attributes. */
23
+ pt?: NumericInputParts;
24
+ }
25
+ /** A native number input with a semantic `number | undefined` value and stable Components parts. */
26
+ export declare const NumericInput: import("react").ForwardRefExoticComponent<NumericInputProps & import("react").RefAttributes<HTMLInputElement>>;
27
+ //# sourceMappingURL=NumericInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NumericInput.d.ts","sourceRoot":"","sources":["../../../Common/NumericInput.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAc,KAAK,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAAwB,CAAC;AAQ5D,oEAAoE;AACpE,MAAM,WAAW,iBAAiB;IAC9B,mCAAmC;IACnC,IAAI,CAAC,EAAE,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;CAChD;AAQD;;;;;;GAMG;AACH,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAC3C,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,cAAc,CACjD;IACG,0DAA0D;IAC1D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uEAAuE;IACvE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,8FAA8F;IAC9F,QAAQ,CAAC,EAAE,aAAa,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC7C,wCAAwC;IACxC,EAAE,CAAC,EAAE,iBAAiB,CAAC;CAC1B;AAQD,oGAAoG;AACpG,eAAO,MAAM,YAAY,gHAQxB,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { forwardRef } from 'react';
2
+ import { unstable_useSlot } from '../renderer/RendererContext.js';
3
+ import { renderSlot } from '../renderer/renderSlot.js';
4
+ import { NumericInputImplementation } from './NumericInputImplementation.js';
5
+
6
+ const coreNumericInputDeclaration = Object.freeze({
7
+ mode: 'atomic',
8
+ fidelity: 'native',
9
+ render: NumericInputImplementation,
10
+ });
11
+ const NumericInput = forwardRef(function NumericInput(props, ref) {
12
+ const declaration = unstable_useSlot('common.numberInput', coreNumericInputDeclaration);
13
+ return renderSlot(declaration, props, ref);
14
+ });
15
+
16
+ export { NumericInput };
17
+ //# sourceMappingURL=NumericInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NumericInput.js","sources":["../../../Common/NumericInput.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { forwardRef, type InputHTMLAttributes } from 'react';\nimport type { ChangeHandler } from '../types/ChangeHandler';\nimport type { ExactPartKeys } from '../types/ExactPartKeys';\nimport type { PartsOf } from '../types/parts';\nimport { unstable_useSlot } from '../renderer/RendererContext';\nimport { renderSlot } from '../renderer/renderSlot';\nimport type { unstable_SlotDeclaration } from '../renderer/slots';\nimport { NumericInputImplementation } from './NumericInputImplementation';\n\n/** Stable Cratis-owned parts for styling a {@link NumericInput}. */\nexport interface NumericInputParts {\n /** Native number input element. */\n root?: InputHTMLAttributes<HTMLInputElement>;\n}\n\nconst numericInputPartsMatchManifest: ExactPartKeys<\n NumericInputParts,\n PartsOf<'NumericInput'>\n> = true;\nvoid numericInputPartsMatchManifest;\n\n/**\n * Props for {@link NumericInput}.\n *\n * The input is always controlled: `value` renders as the displayed number and `undefined` renders\n * an empty input. This is a plain native number input, distinct from the stepper-style\n * {@link NumberInput}.\n */\nexport interface NumericInputProps extends Omit<\n InputHTMLAttributes<HTMLInputElement>,\n 'onChange' | 'type' | 'value' | 'defaultValue'\n> {\n /** Current number. `undefined` renders an empty input. */\n value?: number;\n /** Marks the input invalid and exposes the canonical invalid state. */\n invalid?: boolean;\n /** Receives the next number, or `undefined` when the input is empty or not a valid number. */\n onChange?: ChangeHandler<number | undefined>;\n /** Cratis-owned per-part attributes. */\n pt?: NumericInputParts;\n}\n\nconst coreNumericInputDeclaration = Object.freeze({\n mode: 'atomic',\n fidelity: 'native',\n render: NumericInputImplementation,\n}) satisfies unstable_SlotDeclaration<'common.numberInput'>;\n\n/** A native number input with a semantic `number | undefined` value and stable Components parts. */\nexport const NumericInput = forwardRef<HTMLInputElement, NumericInputProps>(\n function NumericInput(props, ref) {\n const declaration = unstable_useSlot(\n 'common.numberInput',\n coreNumericInputDeclaration,\n );\n return renderSlot(declaration, props, ref);\n },\n);\n"],"names":[],"mappings":";;;;;AA6CA,MAAM,2BAA2B,GAAG,MAAM,CAAC,MAAM,CAAC;AAC9C,IAAA,IAAI,EAAE,QAAQ;AACd,IAAA,QAAQ,EAAE,QAAQ;AAClB,IAAA,MAAM,EAAE,0BAA0B;AACrC,CAAA,CAA0D;AAGpD,MAAM,YAAY,GAAG,UAAU,CAClC,SAAS,YAAY,CAAC,KAAK,EAAE,GAAG,EAAA;IAC5B,MAAM,WAAW,GAAG,gBAAgB,CAChC,oBAAoB,EACpB,2BAA2B,CAC9B;IACD,OAAO,UAAU,CAAC,WAAW,EAAE,KAAK,EAAE,GAAG,CAAC;AAC9C,CAAC;;"}
@@ -0,0 +1,4 @@
1
+ import type { NumericInputProps } from './NumericInput.js';
2
+ /** Core implementation for the native number-input atomic slot. */
3
+ export declare const NumericInputImplementation: import("react").ForwardRefExoticComponent<NumericInputProps & import("react").RefAttributes<HTMLInputElement>>;
4
+ //# sourceMappingURL=NumericInputImplementation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NumericInputImplementation.d.ts","sourceRoot":"","sources":["../../../Common/NumericInputImplementation.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAgB,CAAC;AAoCxD,mEAAmE;AACnE,eAAO,MAAM,0BAA0B,gHAuCrC,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import { forwardRef } from 'react';
3
+
4
+ const resolveState = (props, root) => {
5
+ const ariaInvalid = props['aria-invalid'] ?? root?.['aria-invalid'] ?? (props.invalid || undefined);
6
+ return {
7
+ disabled: props.disabled ?? root?.disabled,
8
+ readOnly: props.readOnly ?? root?.readOnly,
9
+ ariaInvalid,
10
+ invalid: Boolean(props.invalid) || ariaInvalid === true || ariaInvalid === 'true',
11
+ };
12
+ };
13
+ const joinClassNames = (...values) => values.filter(Boolean).join(' ');
14
+ const createChangeHandler = (root, onChange) => (event) => {
15
+ root?.onChange?.(event);
16
+ const next = event.currentTarget.valueAsNumber;
17
+ onChange?.(Number.isNaN(next) ? undefined : next, {
18
+ source: 'user',
19
+ nativeEvent: event.nativeEvent,
20
+ });
21
+ };
22
+ const NumericInputImplementation = forwardRef(function NumericInputImplementation(props, ref) {
23
+ const { value, invalid: _invalid, onChange, pt, className, style, disabled: _disabled, readOnly: _readOnly, 'aria-invalid': _ariaInvalid, ...nativeProps } = props;
24
+ const root = pt?.root;
25
+ const state = resolveState(props, root);
26
+ return (jsx("input", { ...root, ...nativeProps, ref: ref, type: 'number', value: value ?? '', disabled: state.disabled, readOnly: state.readOnly, "aria-invalid": state.ariaInvalid, onChange: createChangeHandler(root, onChange), className: joinClassNames('cratis-text-input', 'cratis-numeric-input', root?.className, className), style: { ...root?.style, ...style }, "data-cratis-component": 'NumericInput', "data-cratis-part": 'root', "data-disabled": state.disabled || undefined, "data-invalid": state.invalid || undefined, "data-readonly": state.readOnly || undefined }));
27
+ });
28
+
29
+ export { NumericInputImplementation };
30
+ //# sourceMappingURL=NumericInputImplementation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NumericInputImplementation.js","sources":["../../../Common/NumericInputImplementation.tsx"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { forwardRef, type ChangeEvent } from 'react';\nimport type { NumericInputProps } from './NumericInput';\n\ntype Root = NonNullable<NumericInputProps['pt']>['root'];\ntype AriaInvalid = NumericInputProps['aria-invalid'];\n\ninterface RootState {\n readonly disabled?: boolean;\n readonly readOnly?: boolean;\n readonly ariaInvalid: AriaInvalid;\n readonly invalid: boolean;\n}\n\nconst resolveState = (props: NumericInputProps, root: Root): RootState => {\n const ariaInvalid = props['aria-invalid'] ?? root?.['aria-invalid'] ?? (props.invalid || undefined);\n return {\n disabled: props.disabled ?? root?.disabled,\n readOnly: props.readOnly ?? root?.readOnly,\n ariaInvalid,\n invalid: Boolean(props.invalid) || ariaInvalid === true || ariaInvalid === 'true',\n };\n};\n\nconst joinClassNames = (...values: readonly (string | undefined)[]) =>\n values.filter(Boolean).join(' ');\n\nconst createChangeHandler =\n (root: Root, onChange: NumericInputProps['onChange']) =>\n (event: ChangeEvent<HTMLInputElement>) => {\n root?.onChange?.(event);\n const next = event.currentTarget.valueAsNumber;\n onChange?.(Number.isNaN(next) ? undefined : next, {\n source: 'user',\n nativeEvent: event.nativeEvent,\n });\n };\n\n/** Core implementation for the native number-input atomic slot. */\nexport const NumericInputImplementation = forwardRef<\n HTMLInputElement,\n NumericInputProps\n>(function NumericInputImplementation(props, ref) {\n const {\n value,\n invalid: _invalid,\n onChange,\n pt,\n className,\n style,\n disabled: _disabled,\n readOnly: _readOnly,\n 'aria-invalid': _ariaInvalid,\n ...nativeProps\n } = props;\n const root = pt?.root;\n const state = resolveState(props, root);\n\n return (\n <input\n {...root}\n {...nativeProps}\n ref={ref}\n type='number'\n value={value ?? ''}\n disabled={state.disabled}\n readOnly={state.readOnly}\n aria-invalid={state.ariaInvalid}\n onChange={createChangeHandler(root, onChange)}\n className={joinClassNames('cratis-text-input', 'cratis-numeric-input', root?.className, className)}\n style={{ ...root?.style, ...style }}\n data-cratis-component='NumericInput'\n data-cratis-part='root'\n data-disabled={state.disabled || undefined}\n data-invalid={state.invalid || undefined}\n data-readonly={state.readOnly || undefined}\n />\n );\n});\n"],"names":["_jsx"],"mappings":";;;AAgBA,MAAM,YAAY,GAAG,CAAC,KAAwB,EAAE,IAAU,KAAe;IACrE,MAAM,WAAW,GAAG,KAAK,CAAC,cAAc,CAAC,IAAI,IAAI,GAAG,cAAc,CAAC,KAAK,KAAK,CAAC,OAAO,IAAI,SAAS,CAAC;IACnG,OAAO;AACH,QAAA,QAAQ,EAAE,KAAK,CAAC,QAAQ,IAAI,IAAI,EAAE,QAAQ;AAC1C,QAAA,QAAQ,EAAE,KAAK,CAAC,QAAQ,IAAI,IAAI,EAAE,QAAQ;QAC1C,WAAW;AACX,QAAA,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,WAAW,KAAK,IAAI,IAAI,WAAW,KAAK,MAAM;KACpF;AACL,CAAC;AAED,MAAM,cAAc,GAAG,CAAC,GAAG,MAAuC,KAC9D,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;AAEpC,MAAM,mBAAmB,GACrB,CAAC,IAAU,EAAE,QAAuC,KACpD,CAAC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AAC,QAAQ,IAAI,SAAS,kBAC5B,KAAK,CAAC,OAAO,IAAI,SAAS,mBACzB,KAAK,CAAC,QAAQ,IAAI,SAAS,EAAA,CAC5C;AAEV,CAAC;;"}
@@ -23,6 +23,7 @@ export * from './Radio.js';
23
23
  export * from './Surface.js';
24
24
  export * from './Switch.js';
25
25
  export * from './TextArea.js';
26
+ export * from './NumericInput.js';
26
27
  export * from './TextInput.js';
27
28
  export * from './NumberInput.js';
28
29
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../Common/index.ts"],"names":[],"mappings":"AAGA,cAAc,oBAAiB,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAoB,CAAC;AACtD,cAAc,+BAA4B,CAAC;AAC3C,cAAc,sBAAmB,CAAC;AAClC,cAAc,oBAAiB,CAAC;AAChC,cAAc,WAAQ,CAAC;AACvB,cAAc,yBAAsB,CAAC;AACrC,cAAc,eAAY,CAAC;AAC3B,cAAc,kBAAe,CAAC;AAC9B,cAAc,WAAQ,CAAC;AACvB,cAAc,eAAY,CAAC;AAC3B,cAAc,kBAAe,CAAC;AAC9B,cAAc,kBAAe,CAAC;AAC9B,cAAc,8BAA2B,CAAC;AAC1C,cAAc,gCAA6B,CAAC;AAC5C,cAAc,WAAQ,CAAC;AACvB,cAAc,kBAAe,CAAC;AAC9B,cAAc,cAAW,CAAC;AAC1B,cAAc,aAAU,CAAC;AACzB,cAAc,eAAY,CAAC;AAC3B,cAAc,iBAAc,CAAC;AAC7B,cAAc,YAAS,CAAC;AACxB,cAAc,cAAW,CAAC;AAC1B,cAAc,aAAU,CAAC;AACzB,cAAc,eAAY,CAAC;AAC3B,cAAc,gBAAa,CAAC;AAC5B,cAAc,kBAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../Common/index.ts"],"names":[],"mappings":"AAGA,cAAc,oBAAiB,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAoB,CAAC;AACtD,cAAc,+BAA4B,CAAC;AAC3C,cAAc,sBAAmB,CAAC;AAClC,cAAc,oBAAiB,CAAC;AAChC,cAAc,WAAQ,CAAC;AACvB,cAAc,yBAAsB,CAAC;AACrC,cAAc,eAAY,CAAC;AAC3B,cAAc,kBAAe,CAAC;AAC9B,cAAc,WAAQ,CAAC;AACvB,cAAc,eAAY,CAAC;AAC3B,cAAc,kBAAe,CAAC;AAC9B,cAAc,kBAAe,CAAC;AAC9B,cAAc,8BAA2B,CAAC;AAC1C,cAAc,gCAA6B,CAAC;AAC5C,cAAc,WAAQ,CAAC;AACvB,cAAc,kBAAe,CAAC;AAC9B,cAAc,cAAW,CAAC;AAC1B,cAAc,aAAU,CAAC;AACzB,cAAc,eAAY,CAAC;AAC3B,cAAc,iBAAc,CAAC;AAC7B,cAAc,YAAS,CAAC;AACxB,cAAc,cAAW,CAAC;AAC1B,cAAc,aAAU,CAAC;AACzB,cAAc,eAAY,CAAC;AAC3B,cAAc,mBAAgB,CAAC;AAC/B,cAAc,gBAAa,CAAC;AAC5B,cAAc,kBAAe,CAAC"}
@@ -22,6 +22,7 @@ export { Radio } from './Radio.js';
22
22
  export { Surface } from './Surface.js';
23
23
  export { Switch } from './Switch.js';
24
24
  export { TextArea } from './TextArea.js';
25
+ export { NumericInput } from './NumericInput.js';
25
26
  export { TextInput } from './TextInput.js';
26
27
  export { cratisDefaults } from '../configuration/CratisComponentsDefaults.js';
27
28
  export { useCratisComponentsConfig } from '../configuration/CratisComponentsContext.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../renderer/builtin/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAGH,KAAK,kBAAkB,EAC1B,MAAM,gBAAgB,CAAC;AAoCxB;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,EAAE,kBAU/B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../renderer/builtin/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAGH,KAAK,kBAAkB,EAC1B,MAAM,gBAAgB,CAAC;AAqCxB;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,EAAE,kBAU/B,CAAC"}
@@ -16,6 +16,7 @@ const profileSlots = Object.freeze([
16
16
  'dialogs.dialog',
17
17
  'display.datePicker',
18
18
  'datatables.paginator',
19
+ 'common.numberInput',
19
20
  ]);
20
21
  const capabilities = Object.freeze([
21
22
  'slot.render',
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../renderer/builtin/index.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport type { unstable_CapabilityId } from '../capabilities.js';\nimport { unstable_coreSlots } from '../coreSlots.js';\nimport {\n unstable_CRATIS_UI_ABI_VERSION,\n unstable_defineUiLibrary,\n type unstable_UiLibrary,\n} from '../manifest.js';\nimport type { unstable_SlotId } from '../slots.js';\n\nconst profileSlots = Object.freeze([\n 'common.button',\n 'common.iconButton',\n 'common.textInput',\n 'common.textArea',\n 'common.checkbox',\n 'common.radio',\n 'common.switch',\n 'common.progress',\n 'common.surface',\n 'common.tooltip',\n 'dropdown.select',\n 'dialogs.dialog',\n 'display.datePicker',\n 'datatables.paginator',\n] satisfies readonly unstable_SlotId[]);\n\nconst capabilities = Object.freeze([\n 'slot.render',\n 'parts.passthrough',\n 'focus.trap',\n 'focus.restore',\n 'overlay.portal',\n 'selection.multi',\n 'datetime.i18n',\n 'form.validationMessage',\n 'theme.tokens',\n 'ssr.staticRender',\n 'rtl',\n 'forcedColors',\n 'motion.reduced',\n] satisfies readonly unstable_CapabilityId[]);\n\n/**\n * Opt-in manifest for the Components-owned implementations of every renderer ABI v1 slot.\n *\n * This proof adapter is intentionally isolated to `@cratis/components/renderer/builtin`. Importing\n * it opts into the complete component-family graph; the package root and lean `./renderer` subpath\n * never reach this manifest or the private Core slot table behind it.\n *\n * @unstable Adapter-author proof contract. It is not an application default or a discovery API.\n */\nexport const unstable_cratisBuiltIn: unstable_UiLibrary =\n unstable_defineUiLibrary({\n id: 'cratis-built-in',\n displayName: 'Cratis built-in renderer',\n abi: unstable_CRATIS_UI_ABI_VERSION,\n level: 'full',\n profile: 'core/v1',\n profileSlots,\n capabilities,\n slots: unstable_coreSlots,\n });\n"],"names":[],"mappings":";;;AAYA,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC;IAC/B,eAAe;IACf,mBAAmB;IACnB,kBAAkB;IAClB,iBAAiB;IACjB,iBAAiB;IACjB,cAAc;IACd,eAAe;IACf,iBAAiB;IACjB,gBAAgB;IAChB,gBAAgB;IAChB,iBAAiB;IACjB,gBAAgB;IAChB,oBAAoB;IACpB,sBAAsB;AACY,CAAA,CAAC;AAEvC,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC;IAC/B,aAAa;IACb,mBAAmB;IACnB,YAAY;IACZ,eAAe;IACf,gBAAgB;IAChB,iBAAiB;IACjB,eAAe;IACf,wBAAwB;IACxB,cAAc;IACd,kBAAkB;IAClB,KAAK;IACL,cAAc;IACd,gBAAgB;AACwB,CAAA,CAAC;AAWtC,MAAM,sBAAsB,GAC/B,wBAAwB,CAAC;AACrB,IAAA,EAAE,EAAE,iBAAiB;AACrB,IAAA,WAAW,EAAE,0BAA0B;AACvC,IAAA,GAAG,EAAE,8BAA8B;AACnC,IAAA,KAAK,EAAE,MAAM;AACb,IAAA,OAAO,EAAE,SAAS;IAClB,YAAY;IACZ,YAAY;AACZ,IAAA,KAAK,EAAE,kBAAkB;AAC5B,CAAA;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../renderer/builtin/index.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport type { unstable_CapabilityId } from '../capabilities.js';\nimport { unstable_coreSlots } from '../coreSlots.js';\nimport {\n unstable_CRATIS_UI_ABI_VERSION,\n unstable_defineUiLibrary,\n type unstable_UiLibrary,\n} from '../manifest.js';\nimport type { unstable_SlotId } from '../slots.js';\n\nconst profileSlots = Object.freeze([\n 'common.button',\n 'common.iconButton',\n 'common.textInput',\n 'common.textArea',\n 'common.checkbox',\n 'common.radio',\n 'common.switch',\n 'common.progress',\n 'common.surface',\n 'common.tooltip',\n 'dropdown.select',\n 'dialogs.dialog',\n 'display.datePicker',\n 'datatables.paginator',\n 'common.numberInput',\n] satisfies readonly unstable_SlotId[]);\n\nconst capabilities = Object.freeze([\n 'slot.render',\n 'parts.passthrough',\n 'focus.trap',\n 'focus.restore',\n 'overlay.portal',\n 'selection.multi',\n 'datetime.i18n',\n 'form.validationMessage',\n 'theme.tokens',\n 'ssr.staticRender',\n 'rtl',\n 'forcedColors',\n 'motion.reduced',\n] satisfies readonly unstable_CapabilityId[]);\n\n/**\n * Opt-in manifest for the Components-owned implementations of every renderer ABI v1 slot.\n *\n * This proof adapter is intentionally isolated to `@cratis/components/renderer/builtin`. Importing\n * it opts into the complete component-family graph; the package root and lean `./renderer` subpath\n * never reach this manifest or the private Core slot table behind it.\n *\n * @unstable Adapter-author proof contract. It is not an application default or a discovery API.\n */\nexport const unstable_cratisBuiltIn: unstable_UiLibrary =\n unstable_defineUiLibrary({\n id: 'cratis-built-in',\n displayName: 'Cratis built-in renderer',\n abi: unstable_CRATIS_UI_ABI_VERSION,\n level: 'full',\n profile: 'core/v1',\n profileSlots,\n capabilities,\n slots: unstable_coreSlots,\n });\n"],"names":[],"mappings":";;;AAYA,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC;IAC/B,eAAe;IACf,mBAAmB;IACnB,kBAAkB;IAClB,iBAAiB;IACjB,iBAAiB;IACjB,cAAc;IACd,eAAe;IACf,iBAAiB;IACjB,gBAAgB;IAChB,gBAAgB;IAChB,iBAAiB;IACjB,gBAAgB;IAChB,oBAAoB;IACpB,sBAAsB;IACtB,oBAAoB;AACc,CAAA,CAAC;AAEvC,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC;IAC/B,aAAa;IACb,mBAAmB;IACnB,YAAY;IACZ,eAAe;IACf,gBAAgB;IAChB,iBAAiB;IACjB,eAAe;IACf,wBAAwB;IACxB,cAAc;IACd,kBAAkB;IAClB,KAAK;IACL,cAAc;IACd,gBAAgB;AACwB,CAAA,CAAC;AAWtC,MAAM,sBAAsB,GAC/B,wBAAwB,CAAC;AACrB,IAAA,EAAE,EAAE,iBAAiB;AACrB,IAAA,WAAW,EAAE,0BAA0B;AACvC,IAAA,GAAG,EAAE,8BAA8B;AACnC,IAAA,KAAK,EAAE,MAAM;AACb,IAAA,OAAO,EAAE,SAAS;IAClB,YAAY;IACZ,YAAY;AACZ,IAAA,KAAK,EAAE,kBAAkB;AAC5B,CAAA;;"}
@@ -78,5 +78,10 @@ export declare const unstable_coreSlots: Readonly<{
78
78
  fidelity: 'native';
79
79
  render: ComponentType<import("../DataTables/index.js").TablePaginatorProps>;
80
80
  }>;
81
+ 'common.numberInput': Readonly<{
82
+ mode: unstable_BehaviorMode;
83
+ fidelity: 'native';
84
+ render: ComponentType<import("../Common/index.js").NumericInputProps & import("react").RefAttributes<HTMLInputElement>>;
85
+ }>;
81
86
  }>;
82
87
  //# sourceMappingURL=coreSlots.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"coreSlots.d.ts","sourceRoot":"","sources":["../../../renderer/coreSlots.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAa3C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAAuB,CAAC;AAGnE,OAAO,KAAK,EACR,qBAAqB,EAExB,MAAM,YAAS,CAAC;AAOjB;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB;;;kBARM,QAAQ;;;;;kBAAR,QAAQ;;;;;kBAAR,QAAQ;;;;;kBAAR,QAAQ;;;;;kBAAR,QAAQ;;;;;kBAAR,QAAQ;;;;;kBAAR,QAAQ;;;;;kBAAR,QAAQ;;;;;kBAAR,QAAQ;;;;;kBAAR,QAAQ;;;;;kBAAR,QAAQ;;;;;kBAAR,QAAQ;;;;;kBAAR,QAAQ;;;;;kBAAR,QAAQ;;;EA0BhB,CAAC"}
1
+ {"version":3,"file":"coreSlots.d.ts","sourceRoot":"","sources":["../../../renderer/coreSlots.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAc3C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAAuB,CAAC;AAGnE,OAAO,KAAK,EACR,qBAAqB,EAExB,MAAM,YAAS,CAAC;AAOjB;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB;;;kBARM,QAAQ;;;;;kBAAR,QAAQ;;;;;kBAAR,QAAQ;;;;;kBAAR,QAAQ;;;;;kBAAR,QAAQ;;;;;kBAAR,QAAQ;;;;;kBAAR,QAAQ;;;;;kBAAR,QAAQ;;;;;kBAAR,QAAQ;;;;;kBAAR,QAAQ;;;;;kBAAR,QAAQ;;;;;kBAAR,QAAQ;;;;;kBAAR,QAAQ;;;;;kBAAR,QAAQ;;;;;kBAAR,QAAQ;;;EA2BhB,CAAC"}
@@ -2,6 +2,7 @@ import { ButtonImplementation } from '../Common/ButtonImplementation.js';
2
2
  import { CheckboxImplementation } from '../Common/CheckboxImplementation.js';
3
3
  import { DatePickerInputImplementation } from '../Common/DatePickerInputImplementation.js';
4
4
  import { IconButtonImplementation } from '../Common/IconButtonImplementation.js';
5
+ import { NumericInputImplementation } from '../Common/NumericInputImplementation.js';
5
6
  import { RadioImplementation } from '../Common/RadioImplementation.js';
6
7
  import { SurfaceImplementation } from '../Common/SurfaceImplementation.js';
7
8
  import { SwitchImplementation } from '../Common/SwitchImplementation.js';
@@ -29,6 +30,7 @@ const unstable_coreSlots = Object.freeze({
29
30
  'dialogs.dialog': nativeDeclaration('atomic', DialogImplementation),
30
31
  'display.datePicker': nativeDeclaration('atomic', DatePickerInputImplementation),
31
32
  'datatables.paginator': nativeDeclaration('atomic', TablePaginatorImplementation),
33
+ 'common.numberInput': nativeDeclaration('atomic', NumericInputImplementation),
32
34
  });
33
35
 
34
36
  export { unstable_coreSlots };
@@ -1 +1 @@
1
- {"version":3,"file":"coreSlots.js","sources":["../../../renderer/coreSlots.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport type { ComponentType } from 'react';\nimport { ButtonImplementation } from '../Common/ButtonImplementation';\nimport { CheckboxImplementation } from '../Common/CheckboxImplementation';\nimport { DatePickerInputImplementation } from '../Common/DatePickerInputImplementation';\nimport { IconButtonImplementation } from '../Common/IconButtonImplementation';\nimport { RadioImplementation } from '../Common/RadioImplementation';\nimport { SurfaceImplementation } from '../Common/SurfaceImplementation';\nimport { SwitchImplementation } from '../Common/SwitchImplementation';\nimport { TextAreaImplementation } from '../Common/TextAreaImplementation';\nimport { TextInputImplementation } from '../Common/TextInputImplementation';\nimport { TooltipImplementation } from '../Common/TooltipImplementation';\nimport { TablePaginatorImplementation } from '../DataTables/TablePaginatorImplementation';\nimport { ProgressBarImplementation } from '../Display/ProgressBarImplementation';\nimport type { CratisDialogSlotProps } from '../Dialogs/DialogHost';\nimport { DialogImplementation } from '../Dialogs/DialogImplementation';\nimport { DropdownImplementation } from '../Dropdown/DropdownImplementation';\nimport type {\n unstable_BehaviorMode,\n unstable_SlotMap,\n} from './slots';\n\nconst nativeDeclaration = <Props>(\n mode: unstable_BehaviorMode,\n render: ComponentType<Props>,\n) => Object.freeze({ mode, fidelity: 'native' as const, render });\n\n/**\n * Complete Core slot inventory for renderer ABI proof and conformance tests only.\n *\n * Every facade owns its local Core declaration, so neither the setup-only provider nor the public\n * renderer barrel may import this private all-family table.\n */\nexport const unstable_coreSlots = Object.freeze({\n 'common.button': nativeDeclaration('presentation', ButtonImplementation),\n 'common.iconButton': nativeDeclaration(\n 'presentation',\n IconButtonImplementation,\n ),\n 'common.textInput': nativeDeclaration('presentation', TextInputImplementation),\n 'common.textArea': nativeDeclaration('presentation', TextAreaImplementation),\n 'common.checkbox': nativeDeclaration('presentation', CheckboxImplementation),\n 'common.radio': nativeDeclaration('presentation', RadioImplementation),\n 'common.switch': nativeDeclaration('presentation', SwitchImplementation),\n 'common.progress': nativeDeclaration('presentation', ProgressBarImplementation),\n 'common.surface': nativeDeclaration('presentation', SurfaceImplementation),\n 'common.tooltip': nativeDeclaration('atomic', TooltipImplementation),\n 'dropdown.select': nativeDeclaration('atomic', DropdownImplementation),\n 'dialogs.dialog': nativeDeclaration<CratisDialogSlotProps>('atomic', DialogImplementation),\n 'display.datePicker': nativeDeclaration('atomic', DatePickerInputImplementation),\n 'datatables.paginator': nativeDeclaration('atomic', TablePaginatorImplementation),\n}) satisfies unstable_SlotMap;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAwBA,MAAM,iBAAiB,GAAG,CACtB,IAA2B,EAC3B,MAA4B,KAC3B,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAiB,EAAE,MAAM,EAAE,CAAC;AAQ1D,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAAC;AAC5C,IAAA,eAAe,EAAE,iBAAiB,CAAC,cAAc,EAAE,oBAAoB,CAAC;AACxE,IAAA,mBAAmB,EAAE,iBAAiB,CAClC,cAAc,EACd,wBAAwB,CAC3B;AACD,IAAA,kBAAkB,EAAE,iBAAiB,CAAC,cAAc,EAAE,uBAAuB,CAAC;AAC9E,IAAA,iBAAiB,EAAE,iBAAiB,CAAC,cAAc,EAAE,sBAAsB,CAAC;AAC5E,IAAA,iBAAiB,EAAE,iBAAiB,CAAC,cAAc,EAAE,sBAAsB,CAAC;AAC5E,IAAA,cAAc,EAAE,iBAAiB,CAAC,cAAc,EAAE,mBAAmB,CAAC;AACtE,IAAA,eAAe,EAAE,iBAAiB,CAAC,cAAc,EAAE,oBAAoB,CAAC;AACxE,IAAA,iBAAiB,EAAE,iBAAiB,CAAC,cAAc,EAAE,yBAAyB,CAAC;AAC/E,IAAA,gBAAgB,EAAE,iBAAiB,CAAC,cAAc,EAAE,qBAAqB,CAAC;AAC1E,IAAA,gBAAgB,EAAE,iBAAiB,CAAC,QAAQ,EAAE,qBAAqB,CAAC;AACpE,IAAA,iBAAiB,EAAE,iBAAiB,CAAC,QAAQ,EAAE,sBAAsB,CAAC;AACtE,IAAA,gBAAgB,EAAE,iBAAiB,CAAwB,QAAQ,EAAE,oBAAoB,CAAC;AAC1F,IAAA,oBAAoB,EAAE,iBAAiB,CAAC,QAAQ,EAAE,6BAA6B,CAAC;AAChF,IAAA,sBAAsB,EAAE,iBAAiB,CAAC,QAAQ,EAAE,4BAA4B,CAAC;AACpF,CAAA;;"}
1
+ {"version":3,"file":"coreSlots.js","sources":["../../../renderer/coreSlots.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport type { ComponentType } from 'react';\nimport { ButtonImplementation } from '../Common/ButtonImplementation';\nimport { CheckboxImplementation } from '../Common/CheckboxImplementation';\nimport { DatePickerInputImplementation } from '../Common/DatePickerInputImplementation';\nimport { IconButtonImplementation } from '../Common/IconButtonImplementation';\nimport { NumericInputImplementation } from '../Common/NumericInputImplementation';\nimport { RadioImplementation } from '../Common/RadioImplementation';\nimport { SurfaceImplementation } from '../Common/SurfaceImplementation';\nimport { SwitchImplementation } from '../Common/SwitchImplementation';\nimport { TextAreaImplementation } from '../Common/TextAreaImplementation';\nimport { TextInputImplementation } from '../Common/TextInputImplementation';\nimport { TooltipImplementation } from '../Common/TooltipImplementation';\nimport { TablePaginatorImplementation } from '../DataTables/TablePaginatorImplementation';\nimport { ProgressBarImplementation } from '../Display/ProgressBarImplementation';\nimport type { CratisDialogSlotProps } from '../Dialogs/DialogHost';\nimport { DialogImplementation } from '../Dialogs/DialogImplementation';\nimport { DropdownImplementation } from '../Dropdown/DropdownImplementation';\nimport type {\n unstable_BehaviorMode,\n unstable_SlotMap,\n} from './slots';\n\nconst nativeDeclaration = <Props>(\n mode: unstable_BehaviorMode,\n render: ComponentType<Props>,\n) => Object.freeze({ mode, fidelity: 'native' as const, render });\n\n/**\n * Complete Core slot inventory for renderer ABI proof and conformance tests only.\n *\n * Every facade owns its local Core declaration, so neither the setup-only provider nor the public\n * renderer barrel may import this private all-family table.\n */\nexport const unstable_coreSlots = Object.freeze({\n 'common.button': nativeDeclaration('presentation', ButtonImplementation),\n 'common.iconButton': nativeDeclaration(\n 'presentation',\n IconButtonImplementation,\n ),\n 'common.textInput': nativeDeclaration('presentation', TextInputImplementation),\n 'common.textArea': nativeDeclaration('presentation', TextAreaImplementation),\n 'common.checkbox': nativeDeclaration('presentation', CheckboxImplementation),\n 'common.radio': nativeDeclaration('presentation', RadioImplementation),\n 'common.switch': nativeDeclaration('presentation', SwitchImplementation),\n 'common.progress': nativeDeclaration('presentation', ProgressBarImplementation),\n 'common.surface': nativeDeclaration('presentation', SurfaceImplementation),\n 'common.tooltip': nativeDeclaration('atomic', TooltipImplementation),\n 'dropdown.select': nativeDeclaration('atomic', DropdownImplementation),\n 'dialogs.dialog': nativeDeclaration<CratisDialogSlotProps>('atomic', DialogImplementation),\n 'display.datePicker': nativeDeclaration('atomic', DatePickerInputImplementation),\n 'datatables.paginator': nativeDeclaration('atomic', TablePaginatorImplementation),\n 'common.numberInput': nativeDeclaration('atomic', NumericInputImplementation),\n}) satisfies unstable_SlotMap;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAyBA,MAAM,iBAAiB,GAAG,CACtB,IAA2B,EAC3B,MAA4B,KAC3B,MAAM,CAAC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../Common/Checkbox.js';
3
3
  import type { DatePickerInputProps } from '../Common/DatePickerInput.js';
4
4
  import type { IconButtonProps } from '../Common/IconButton.js';
5
+ import type { NumericInputProps } from '../Common/NumericInput.js';
5
6
  import type { RadioProps } from '../Common/Radio.js';
6
7
  import type { SurfaceProps } from '../Common/Surface.js';
7
8
  import type { SwitchProps } from '../Common/Switch.js';
@@ -43,6 +44,8 @@ declare module './slots.js' {
43
44
  'display.datePicker': DatePickerInputProps;
44
45
  /** Interaction-heavy, composite-adjacent table paginator contract. */
45
46
  'datatables.paginator': TablePaginatorProps;
47
+ /** Native number-input contract with a `number | undefined` value. */
48
+ 'common.numberInput': NumericInputProps;
46
49
  }
47
50
  }
48
51
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../renderer/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iCAA8B,CAAC;AACxE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAAwB,CAAC;AAC/D,OAAO,KA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AAoB,EACpB,iBAAiB,EACjB,wBAAwB,EACxB,eAAe,EACf,gBAAgB,GACnB,MAAM,YAAS,CAAC"}
@@ -4,6 +4,7 @@ import type { CheckboxProps } from '../Common/Checkbox.js';
4
4
  import type { DatePickerInputProps } from '../Common/DatePickerInput.js';
5
5
  import type { IconButtonProps } from '../Common/IconButton.js';
6
6
  import type { RadioProps } from '../Common/Radio.js';
7
+ import type { NumericInputProps } from '../Common/NumericInput.js';
7
8
  import type { SurfaceProps } from '../Common/Surface.js';
8
9
  import type { SwitchProps } from '../Common/Switch.js';
9
10
  import type { TextAreaProps } from '../Common/TextArea.js';
@@ -61,7 +62,7 @@ export type CratisPresentationSlotMap = {
61
62
  * implement any of them through {@link CratisPresentationUiLibrary.atomicSlots}; new ids are only
62
63
  * ever appended.
63
64
  */
64
- export declare const cratisAtomicSlotIds: readonly ["datatables.paginator", "common.tooltip", "dropdown.select", "display.datePicker", "dialogs.dialog"];
65
+ export declare const cratisAtomicSlotIds: readonly ["datatables.paginator", "common.tooltip", "dropdown.select", "display.datePicker", "dialogs.dialog", "common.numberInput"];
65
66
  /** Identifier of one stable atomic slot. */
66
67
  export type CratisAtomicSlotId = (typeof cratisAtomicSlotIds)[number];
67
68
  /** Exact public component prop contracts covered by the stable atomic slots. */
@@ -94,6 +95,13 @@ export interface CratisAtomicSlots {
94
95
  * focus trap, Escape, outside press, scroll lock and focus restoration. There is no ref.
95
96
  */
96
97
  readonly 'dialogs.dialog': CratisDialogSlotProps;
98
+ /**
99
+ * Number-input contract: a controlled native number input. `value` is a `number` (`undefined`
100
+ * renders empty), `onChange` receives the next number or `undefined` when the input is empty or
101
+ * not a valid number, and the `NumericInputParts` `root` part is the input. The adapter owns the
102
+ * typing interaction; Components owns converting `undefined` to the command value.
103
+ */
104
+ readonly 'common.numberInput': NumericInputProps;
97
105
  }
98
106
  /** One stable, adapter-owned atomic slot declaration. */
99
107
  export interface CratisAtomicSlotDeclaration<SlotId extends CratisAtomicSlotId> {
@@ -1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,EAAE,WAAW,CAAC;IAC5B,oDAAoD;IACpD,QAAQ,CAAC,OAAO,EAAE,OAAO,2BAA2B,CAAC;IACrD,yDAAyD;IACzD,QAAQ,CAAC,YAAY,EAAE,OAAO,yBAAyB,CAAC;IACxD,uFAAuF;IACvF,QAAQ,CAAC,YAAY,EAAE,8BAA8B,CAAC;IACtD,sDAAsD;IACtD,QAAQ,CAAC,KAAK,EAAE,yBAAyB,CAAC;IAC1C,yEAAyE;IACzE,QAAQ,CAAC,QAAQ,CAAC,EAAE,aAAa,CAAC,wCAAwC,CAAC,CAAC;IAC5E;;;OAGG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,mBAAmB,CAAC;CAC9C;AAuQD;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B,YAC3B,2BAA2B,KACrC,2BAqBF,CAAC;AAOF,iFAAiF;AACjF,MAAM,WAAW,uBAAuB;IACpC,mEAAmE;IACnE,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,6BAA6B;IAC7B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC5B"}
@@ -17,6 +17,7 @@ const cratisAtomicSlotIds = Object.freeze([
17
17
  'dropdown.select',
18
18
  'display.datePicker',
19
19
  'dialogs.dialog',
20
+ 'common.numberInput',
20
21
  ]);
21
22
  const requiredCapabilityIds = [
22
23
  'slot.render',