@object-ui/components 7.1.0 → 7.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist/index.css +3 -0
- package/dist/index.js +2589 -2433
- package/dist/index.umd.cjs +3 -3
- package/dist/renderers/basic/text-input.d.ts +30 -0
- package/package.json +5 -5
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ObjectUI
|
|
3
|
+
* Copyright (c) 2024-present ObjectStack Inc.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the MIT license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*
|
|
8
|
+
* element:text_input — a single-line free-text input that writes the typed
|
|
9
|
+
* value into a page variable. The data-entry complement to
|
|
10
|
+
* element:record_picker (which picks an existing record): together they let a
|
|
11
|
+
* pure-SDUI page COLLECT input, which a submit button then posts via the action
|
|
12
|
+
* runtime's `{{page.<var>}}` bridge (useConsoleActionRuntime).
|
|
13
|
+
*
|
|
14
|
+
* Config is read off `schema.properties` (`schema.props` tolerated as a legacy
|
|
15
|
+
* alias):
|
|
16
|
+
* { inputType='text', label?, placeholder?, defaultValue?, required?,
|
|
17
|
+
* disabled?, description? }
|
|
18
|
+
*
|
|
19
|
+
* The value is written through `usePageVariableBinding(schema.id)`: the page
|
|
20
|
+
* variable whose `source` equals this input's id receives every keystroke. With
|
|
21
|
+
* no bound variable the input is uncontrolled (still usable, just not wired) so
|
|
22
|
+
* it never throws outside a Page — mirroring element:record_picker. An
|
|
23
|
+
* `inputType='number'` coerces the written value to a Number (empty → '') so
|
|
24
|
+
* `page.<var>` and any numeric submit param stay typed.
|
|
25
|
+
*/
|
|
26
|
+
import * as React from 'react';
|
|
27
|
+
declare function ElementTextInputRenderer({ schema }: {
|
|
28
|
+
schema: any;
|
|
29
|
+
}): React.JSX.Element;
|
|
30
|
+
export { ElementTextInputRenderer };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@object-ui/components",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Standard UI component library for Object UI, built with Shadcn UI + Tailwind CSS",
|
|
@@ -69,10 +69,10 @@
|
|
|
69
69
|
"tailwind-merge": "^3.6.0",
|
|
70
70
|
"tailwindcss-animate": "^1.0.7",
|
|
71
71
|
"vaul": "^1.1.2",
|
|
72
|
-
"@object-ui/core": "7.
|
|
73
|
-
"@object-ui/i18n": "7.
|
|
74
|
-
"@object-ui/react": "7.
|
|
75
|
-
"@object-ui/types": "7.
|
|
72
|
+
"@object-ui/core": "7.3.0",
|
|
73
|
+
"@object-ui/i18n": "7.3.0",
|
|
74
|
+
"@object-ui/react": "7.3.0",
|
|
75
|
+
"@object-ui/types": "7.3.0"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
78
|
"react": "^18.0.0 || ^19.0.0",
|