@cdx-ui/components 0.0.1-beta.65 → 0.0.1-beta.66
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/commonjs/components/AlertDialog/index.js +12 -10
- package/lib/commonjs/components/AlertDialog/index.js.map +1 -1
- package/lib/commonjs/components/Avatar/index.js +125 -25
- package/lib/commonjs/components/Avatar/index.js.map +1 -1
- package/lib/commonjs/components/Button/index.js +127 -28
- package/lib/commonjs/components/Button/index.js.map +1 -1
- package/lib/commonjs/components/Button/styles.js +9 -3
- package/lib/commonjs/components/Button/styles.js.map +1 -1
- package/lib/commonjs/components/CLAUDE.md +115 -11
- package/lib/commonjs/components/Checkbox/index.js +69 -22
- package/lib/commonjs/components/Checkbox/index.js.map +1 -1
- package/lib/commonjs/components/Checkbox/styles.js +1 -1
- package/lib/commonjs/components/Checkbox/styles.js.map +1 -1
- package/lib/commonjs/components/Chip/index.js +44 -36
- package/lib/commonjs/components/Chip/index.js.map +1 -1
- package/lib/commonjs/components/Chip/styles.js +6 -35
- package/lib/commonjs/components/Chip/styles.js.map +1 -1
- package/lib/commonjs/components/Dialog/index.js +92 -72
- package/lib/commonjs/components/Dialog/index.js.map +1 -1
- package/lib/commonjs/components/Field/index.js +70 -26
- package/lib/commonjs/components/Field/index.js.map +1 -1
- package/lib/commonjs/components/Form/index.js +5 -12
- package/lib/commonjs/components/Form/index.js.map +1 -1
- package/lib/commonjs/components/IconButton/index.js +5 -33
- package/lib/commonjs/components/IconButton/index.js.map +1 -1
- package/lib/commonjs/components/Input/index.js +50 -20
- package/lib/commonjs/components/Input/index.js.map +1 -1
- package/lib/commonjs/components/Link/index.js +14 -7
- package/lib/commonjs/components/Link/index.js.map +1 -1
- package/lib/commonjs/components/ListItem/index.js +129 -54
- package/lib/commonjs/components/ListItem/index.js.map +1 -1
- package/lib/commonjs/components/OtpInput/index.js +94 -28
- package/lib/commonjs/components/OtpInput/index.js.map +1 -1
- package/lib/commonjs/components/ProgressBar/index.js +8 -13
- package/lib/commonjs/components/ProgressBar/index.js.map +1 -1
- package/lib/commonjs/components/Radio/index.js +51 -53
- package/lib/commonjs/components/Radio/index.js.map +1 -1
- package/lib/commonjs/components/Select/index.js +112 -46
- package/lib/commonjs/components/Select/index.js.map +1 -1
- package/lib/commonjs/components/Select/styles.js +2 -2
- package/lib/commonjs/components/Select/styles.js.map +1 -1
- package/lib/commonjs/components/Switch/BaseSwitch.js +23 -13
- package/lib/commonjs/components/Switch/BaseSwitch.js.map +1 -1
- package/lib/commonjs/components/Switch/BaseSwitch.web.js +25 -21
- package/lib/commonjs/components/Switch/BaseSwitch.web.js.map +1 -1
- package/lib/commonjs/components/Switch/index.js +34 -3
- package/lib/commonjs/components/Switch/index.js.map +1 -1
- package/lib/commonjs/components/Tile/index.js +150 -77
- package/lib/commonjs/components/Tile/index.js.map +1 -1
- package/lib/commonjs/figma/Chip.figma.js +2 -2
- package/lib/commonjs/figma/Chip.figma.js.map +1 -1
- package/lib/commonjs/utils/positionToDataIcon.js +41 -0
- package/lib/commonjs/utils/positionToDataIcon.js.map +1 -0
- package/lib/module/components/AlertDialog/index.js +13 -11
- package/lib/module/components/AlertDialog/index.js.map +1 -1
- package/lib/module/components/Avatar/index.js +128 -28
- package/lib/module/components/Avatar/index.js.map +1 -1
- package/lib/module/components/Button/index.js +130 -32
- package/lib/module/components/Button/index.js.map +1 -1
- package/lib/module/components/Button/styles.js +8 -2
- package/lib/module/components/Button/styles.js.map +1 -1
- package/lib/module/components/CLAUDE.md +115 -11
- package/lib/module/components/Checkbox/index.js +72 -25
- package/lib/module/components/Checkbox/index.js.map +1 -1
- package/lib/module/components/Checkbox/styles.js +1 -1
- package/lib/module/components/Checkbox/styles.js.map +1 -1
- package/lib/module/components/Chip/index.js +47 -39
- package/lib/module/components/Chip/index.js.map +1 -1
- package/lib/module/components/Chip/styles.js +6 -35
- package/lib/module/components/Chip/styles.js.map +1 -1
- package/lib/module/components/Dialog/index.js +96 -76
- package/lib/module/components/Dialog/index.js.map +1 -1
- package/lib/module/components/Field/index.js +74 -31
- package/lib/module/components/Field/index.js.map +1 -1
- package/lib/module/components/Form/index.js +7 -14
- package/lib/module/components/Form/index.js.map +1 -1
- package/lib/module/components/IconButton/index.js +6 -34
- package/lib/module/components/IconButton/index.js.map +1 -1
- package/lib/module/components/Input/index.js +53 -23
- package/lib/module/components/Input/index.js.map +1 -1
- package/lib/module/components/Link/index.js +16 -8
- package/lib/module/components/Link/index.js.map +1 -1
- package/lib/module/components/ListItem/index.js +134 -59
- package/lib/module/components/ListItem/index.js.map +1 -1
- package/lib/module/components/OtpInput/index.js +94 -28
- package/lib/module/components/OtpInput/index.js.map +1 -1
- package/lib/module/components/ProgressBar/index.js +9 -14
- package/lib/module/components/ProgressBar/index.js.map +1 -1
- package/lib/module/components/Radio/index.js +54 -57
- package/lib/module/components/Radio/index.js.map +1 -1
- package/lib/module/components/Select/index.js +118 -52
- package/lib/module/components/Select/index.js.map +1 -1
- package/lib/module/components/Select/styles.js +2 -2
- package/lib/module/components/Select/styles.js.map +1 -1
- package/lib/module/components/Switch/BaseSwitch.js +24 -14
- package/lib/module/components/Switch/BaseSwitch.js.map +1 -1
- package/lib/module/components/Switch/BaseSwitch.web.js +26 -22
- package/lib/module/components/Switch/BaseSwitch.web.js.map +1 -1
- package/lib/module/components/Switch/index.js +35 -4
- package/lib/module/components/Switch/index.js.map +1 -1
- package/lib/module/components/Tile/index.js +155 -83
- package/lib/module/components/Tile/index.js.map +1 -1
- package/lib/module/figma/Chip.figma.js +2 -2
- package/lib/module/figma/Chip.figma.js.map +1 -1
- package/lib/module/utils/positionToDataIcon.js +38 -0
- package/lib/module/utils/positionToDataIcon.js.map +1 -0
- package/lib/typescript/components/AlertDialog/index.d.ts.map +1 -1
- package/lib/typescript/components/Avatar/index.d.ts +6 -2
- package/lib/typescript/components/Avatar/index.d.ts.map +1 -1
- package/lib/typescript/components/Button/index.d.ts +31 -8
- package/lib/typescript/components/Button/index.d.ts.map +1 -1
- package/lib/typescript/components/Button/styles.d.ts +2 -1
- package/lib/typescript/components/Button/styles.d.ts.map +1 -1
- package/lib/typescript/components/Checkbox/index.d.ts +3 -1
- package/lib/typescript/components/Checkbox/index.d.ts.map +1 -1
- package/lib/typescript/components/Chip/index.d.ts +19 -9
- package/lib/typescript/components/Chip/index.d.ts.map +1 -1
- package/lib/typescript/components/Chip/styles.d.ts +0 -1
- package/lib/typescript/components/Chip/styles.d.ts.map +1 -1
- package/lib/typescript/components/Dialog/index.d.ts +12 -6
- package/lib/typescript/components/Dialog/index.d.ts.map +1 -1
- package/lib/typescript/components/Dialog/styles.d.ts +1 -1
- package/lib/typescript/components/Field/index.d.ts +14 -7
- package/lib/typescript/components/Field/index.d.ts.map +1 -1
- package/lib/typescript/components/Form/index.d.ts +4 -4
- package/lib/typescript/components/Form/index.d.ts.map +1 -1
- package/lib/typescript/components/IconButton/index.d.ts.map +1 -1
- package/lib/typescript/components/Input/index.d.ts +11 -3
- package/lib/typescript/components/Input/index.d.ts.map +1 -1
- package/lib/typescript/components/Link/index.d.ts +2 -0
- package/lib/typescript/components/Link/index.d.ts.map +1 -1
- package/lib/typescript/components/ListItem/index.d.ts +28 -6
- package/lib/typescript/components/ListItem/index.d.ts.map +1 -1
- package/lib/typescript/components/OtpInput/index.d.ts +1 -1
- package/lib/typescript/components/OtpInput/index.d.ts.map +1 -1
- package/lib/typescript/components/ProgressBar/index.d.ts +4 -4
- package/lib/typescript/components/ProgressBar/index.d.ts.map +1 -1
- package/lib/typescript/components/Radio/index.d.ts +4 -0
- package/lib/typescript/components/Radio/index.d.ts.map +1 -1
- package/lib/typescript/components/Select/index.d.ts +35 -2
- package/lib/typescript/components/Select/index.d.ts.map +1 -1
- package/lib/typescript/components/Select/styles.d.ts.map +1 -1
- package/lib/typescript/components/Switch/BaseSwitch.d.ts +12 -5
- package/lib/typescript/components/Switch/BaseSwitch.d.ts.map +1 -1
- package/lib/typescript/components/Switch/BaseSwitch.web.d.ts +11 -5
- package/lib/typescript/components/Switch/BaseSwitch.web.d.ts.map +1 -1
- package/lib/typescript/components/Switch/index.d.ts +5 -1
- package/lib/typescript/components/Switch/index.d.ts.map +1 -1
- package/lib/typescript/components/Tile/index.d.ts +8 -2
- package/lib/typescript/components/Tile/index.d.ts.map +1 -1
- package/lib/typescript/utils/positionToDataIcon.d.ts +29 -0
- package/lib/typescript/utils/positionToDataIcon.d.ts.map +1 -0
- package/package.json +5 -5
- package/src/components/AlertDialog/index.tsx +13 -14
- package/src/components/Avatar/index.tsx +134 -44
- package/src/components/Button/index.tsx +216 -44
- package/src/components/Button/styles.ts +50 -38
- package/src/components/CLAUDE.md +115 -11
- package/src/components/Checkbox/index.tsx +93 -32
- package/src/components/Checkbox/styles.ts +1 -1
- package/src/components/Chip/index.tsx +88 -61
- package/src/components/Chip/styles.ts +6 -18
- package/src/components/Dialog/index.tsx +139 -99
- package/src/components/Field/index.tsx +113 -49
- package/src/components/Form/index.tsx +18 -14
- package/src/components/IconButton/index.tsx +7 -31
- package/src/components/Input/index.tsx +75 -32
- package/src/components/Link/index.tsx +38 -12
- package/src/components/ListItem/index.tsx +158 -73
- package/src/components/OtpInput/index.tsx +126 -43
- package/src/components/ProgressBar/index.tsx +11 -16
- package/src/components/Radio/index.tsx +76 -54
- package/src/components/Select/index.tsx +174 -59
- package/src/components/Select/styles.ts +1 -2
- package/src/components/Switch/BaseSwitch.tsx +38 -16
- package/src/components/Switch/BaseSwitch.web.tsx +28 -35
- package/src/components/Switch/index.tsx +51 -4
- package/src/components/Tile/index.tsx +145 -94
- package/src/utils/positionToDataIcon.ts +34 -0
- package/lib/commonjs/components/Field/FieldLabel.js +0 -33
- package/lib/commonjs/components/Field/FieldLabel.js.map +0 -1
- package/lib/commonjs/components/Field/FieldLabel.web.js +0 -22
- package/lib/commonjs/components/Field/FieldLabel.web.js.map +0 -1
- package/lib/commonjs/components/Form/FormRoot.js +0 -25
- package/lib/commonjs/components/Form/FormRoot.js.map +0 -1
- package/lib/commonjs/components/Form/FormRoot.web.js +0 -17
- package/lib/commonjs/components/Form/FormRoot.web.js.map +0 -1
- package/lib/commonjs/components/Input/BaseInput.android.js +0 -20
- package/lib/commonjs/components/Input/BaseInput.android.js.map +0 -1
- package/lib/commonjs/components/Input/BaseInput.js +0 -13
- package/lib/commonjs/components/Input/BaseInput.js.map +0 -1
- package/lib/commonjs/components/Input/BaseInput.web.js +0 -50
- package/lib/commonjs/components/Input/BaseInput.web.js.map +0 -1
- package/lib/commonjs/components/Select/SelectTriggerHost.js +0 -10
- package/lib/commonjs/components/Select/SelectTriggerHost.js.map +0 -1
- package/lib/commonjs/components/Select/SelectTriggerHost.web.js +0 -102
- package/lib/commonjs/components/Select/SelectTriggerHost.web.js.map +0 -1
- package/lib/module/components/Field/FieldLabel.js +0 -29
- package/lib/module/components/Field/FieldLabel.js.map +0 -1
- package/lib/module/components/Field/FieldLabel.web.js +0 -17
- package/lib/module/components/Field/FieldLabel.web.js.map +0 -1
- package/lib/module/components/Form/FormRoot.js +0 -21
- package/lib/module/components/Form/FormRoot.js.map +0 -1
- package/lib/module/components/Form/FormRoot.web.js +0 -12
- package/lib/module/components/Form/FormRoot.web.js.map +0 -1
- package/lib/module/components/Input/BaseInput.android.js +0 -16
- package/lib/module/components/Input/BaseInput.android.js.map +0 -1
- package/lib/module/components/Input/BaseInput.js +0 -4
- package/lib/module/components/Input/BaseInput.js.map +0 -1
- package/lib/module/components/Input/BaseInput.web.js +0 -45
- package/lib/module/components/Input/BaseInput.web.js.map +0 -1
- package/lib/module/components/Select/SelectTriggerHost.js +0 -7
- package/lib/module/components/Select/SelectTriggerHost.js.map +0 -1
- package/lib/module/components/Select/SelectTriggerHost.web.js +0 -97
- package/lib/module/components/Select/SelectTriggerHost.web.js.map +0 -1
- package/lib/typescript/components/Field/FieldLabel.d.ts +0 -18
- package/lib/typescript/components/Field/FieldLabel.d.ts.map +0 -1
- package/lib/typescript/components/Field/FieldLabel.web.d.ts +0 -16
- package/lib/typescript/components/Field/FieldLabel.web.d.ts.map +0 -1
- package/lib/typescript/components/Form/FormRoot.d.ts +0 -14
- package/lib/typescript/components/Form/FormRoot.d.ts.map +0 -1
- package/lib/typescript/components/Form/FormRoot.web.d.ts +0 -10
- package/lib/typescript/components/Form/FormRoot.web.d.ts.map +0 -1
- package/lib/typescript/components/Input/BaseInput.android.d.ts +0 -3
- package/lib/typescript/components/Input/BaseInput.android.d.ts.map +0 -1
- package/lib/typescript/components/Input/BaseInput.d.ts +0 -2
- package/lib/typescript/components/Input/BaseInput.d.ts.map +0 -1
- package/lib/typescript/components/Input/BaseInput.web.d.ts +0 -3
- package/lib/typescript/components/Input/BaseInput.web.d.ts.map +0 -1
- package/lib/typescript/components/Select/SelectTriggerHost.d.ts +0 -3
- package/lib/typescript/components/Select/SelectTriggerHost.d.ts.map +0 -1
- package/lib/typescript/components/Select/SelectTriggerHost.web.d.ts +0 -16
- package/lib/typescript/components/Select/SelectTriggerHost.web.d.ts.map +0 -1
- package/src/components/Field/FieldLabel.tsx +0 -33
- package/src/components/Field/FieldLabel.web.tsx +0 -25
- package/src/components/Form/FormRoot.tsx +0 -20
- package/src/components/Form/FormRoot.web.tsx +0 -12
- package/src/components/Input/BaseInput.android.tsx +0 -13
- package/src/components/Input/BaseInput.tsx +0 -1
- package/src/components/Input/BaseInput.web.tsx +0 -41
- package/src/components/Select/SelectTriggerHost.tsx +0 -4
- package/src/components/Select/SelectTriggerHost.web.tsx +0 -143
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.BaseInput = void 0;
|
|
7
|
-
var _react = require("react");
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
const androidDefaults = {
|
|
11
|
-
includeFontPadding: false,
|
|
12
|
-
textAlignVertical: 'center'
|
|
13
|
-
};
|
|
14
|
-
const BaseInput = exports.BaseInput = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TextInput, {
|
|
15
|
-
ref: ref,
|
|
16
|
-
...props,
|
|
17
|
-
style: [androidDefaults, props.style]
|
|
18
|
-
}));
|
|
19
|
-
BaseInput.displayName = 'BaseInput';
|
|
20
|
-
//# sourceMappingURL=BaseInput.android.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_jsxRuntime","androidDefaults","includeFontPadding","textAlignVertical","BaseInput","exports","forwardRef","props","ref","jsx","TextInput","style","displayName"],"sourceRoot":"../../../../src","sources":["components/Input/BaseInput.android.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAA8D,IAAAE,WAAA,GAAAF,OAAA;AAE9D,MAAMG,eAAe,GAAG;EACtBC,kBAAkB,EAAE,KAAK;EACzBC,iBAAiB,EAAE;AACrB,CAAC;AAEM,MAAMC,SAAS,GAAAC,OAAA,CAAAD,SAAA,gBAAG,IAAAE,iBAAU,EAA4B,CAACC,KAAK,EAAEC,GAAG,kBACxE,IAAAR,WAAA,CAAAS,GAAA,EAACV,YAAA,CAAAW,SAAS;EAACF,GAAG,EAAEA,GAAI;EAAA,GAAKD,KAAK;EAAEI,KAAK,EAAE,CAACV,eAAe,EAAEM,KAAK,CAACI,KAAK;AAAE,CAAE,CACzE,CAAC;AAEFP,SAAS,CAACQ,WAAW,GAAG,WAAW","ignoreList":[]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "BaseInput", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _reactNative.TextInput;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
var _reactNative = require("react-native");
|
|
13
|
-
//# sourceMappingURL=BaseInput.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require"],"sourceRoot":"../../../../src","sources":["components/Input/BaseInput.tsx"],"mappings":";;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA","ignoreList":[]}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.BaseInput = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
11
|
-
const BaseInput = exports.BaseInput = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
12
|
-
if (props.type === 'file') {
|
|
13
|
-
return /*#__PURE__*/_react.default.createElement('input', {
|
|
14
|
-
ref,
|
|
15
|
-
type: 'file',
|
|
16
|
-
accept: props.accept || undefined,
|
|
17
|
-
multiple: props.multiple || undefined,
|
|
18
|
-
capture: props.capture || undefined,
|
|
19
|
-
disabled: props.disabled || undefined,
|
|
20
|
-
'aria-label': props['aria-label'],
|
|
21
|
-
'aria-required': props['aria-required'] || undefined,
|
|
22
|
-
'aria-invalid': props['aria-invalid'] || undefined,
|
|
23
|
-
'aria-disabled': props['aria-disabled'] || undefined,
|
|
24
|
-
onChange: e => {
|
|
25
|
-
const files = e.target.files;
|
|
26
|
-
if (files && props.onFiles) {
|
|
27
|
-
props.onFiles(Array.from(files));
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
onFocus: props.onFocus,
|
|
31
|
-
onBlur: props.onBlur,
|
|
32
|
-
style: {
|
|
33
|
-
flex: 1,
|
|
34
|
-
minWidth: 0,
|
|
35
|
-
border: 'none',
|
|
36
|
-
outline: 'none',
|
|
37
|
-
background: 'transparent',
|
|
38
|
-
cursor: props.disabled ? 'not-allowed' : 'pointer',
|
|
39
|
-
fontSize: 'inherit',
|
|
40
|
-
fontFamily: 'inherit'
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TextInput, {
|
|
45
|
-
ref: ref,
|
|
46
|
-
...props
|
|
47
|
-
});
|
|
48
|
-
});
|
|
49
|
-
BaseInput.displayName = 'BaseInput';
|
|
50
|
-
//# sourceMappingURL=BaseInput.web.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","BaseInput","exports","forwardRef","props","ref","type","React","createElement","accept","undefined","multiple","capture","disabled","onChange","files","target","onFiles","Array","from","onFocus","onBlur","style","flex","minWidth","border","outline","background","cursor","fontSize","fontFamily","jsx","TextInput","displayName"],"sourceRoot":"../../../../src","sources":["components/Input/BaseInput.web.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAAyC,IAAAE,WAAA,GAAAF,OAAA;AAAA,S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
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.SelectTriggerHost = void 0;
|
|
7
|
-
var _reactNative = require("react-native");
|
|
8
|
-
/** Native: `Pressable`. Web: `SelectTriggerHost.web` uses `<button>` so `<label htmlFor>` works. */
|
|
9
|
-
const SelectTriggerHost = exports.SelectTriggerHost = _reactNative.Pressable;
|
|
10
|
-
//# sourceMappingURL=SelectTriggerHost.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","SelectTriggerHost","exports","Pressable"],"sourceRoot":"../../../../src","sources":["components/Select/SelectTriggerHost.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA;AACO,MAAMC,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAGE,sBAAS","ignoreList":[]}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.SelectTriggerHost = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _primitives = require("@cdx-ui/primitives");
|
|
10
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
12
|
-
/** Props that must not be forwarded to a DOM `<button>`. */
|
|
13
|
-
const OMIT = new Set(['hitSlop', 'pressRetentionOffset', 'android_ripple', 'android_disableSound', 'unstable_pressDelay', 'onLongPress', 'delayLongPress', 'onPress', 'onPressIn', 'onPressOut', 'onHoverIn', 'onHoverOut', 'disabled', 'style', 'className', 'testID', 'children', 'accessible', 'accessibilityActions', 'accessibilityElementsHidden', 'accessibilityHint', 'accessibilityIgnoresInvertColors', 'accessibilityLabel', 'accessibilityLabelledBy', 'accessibilityLiveRegion', 'accessibilityRole', 'accessibilityState', 'accessibilityValue', 'accessibilityViewIsModal', 'importantForAccessibility', 'needsOffscreenAlphaCompositing', 'collapsable', 'shouldRasterizeIOS', 'removeClippedSubviews', 'onAccessibilityAction', 'onAccessibilityEscape', 'onAccessibilityTap']);
|
|
14
|
-
function resolveChildren(children) {
|
|
15
|
-
if (typeof children === 'function') {
|
|
16
|
-
return children({
|
|
17
|
-
pressed: false
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
return children;
|
|
21
|
-
}
|
|
22
|
-
function filterDomProps(rest) {
|
|
23
|
-
const entries = Object.entries(rest).filter(([key]) => !OMIT.has(key));
|
|
24
|
-
return Object.fromEntries(entries);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/** UA `<button>` defaults (centered text, inline sizing) fight our flex + `justify-between` layout. */
|
|
28
|
-
const webButtonLayoutStyle = {
|
|
29
|
-
display: 'flex',
|
|
30
|
-
flexDirection: 'row',
|
|
31
|
-
alignItems: 'center',
|
|
32
|
-
justifyContent: 'space-between',
|
|
33
|
-
width: '100%',
|
|
34
|
-
minWidth: 0,
|
|
35
|
-
textAlign: 'start',
|
|
36
|
-
boxSizing: 'border-box',
|
|
37
|
-
margin: 0,
|
|
38
|
-
font: 'inherit',
|
|
39
|
-
lineHeight: 'normal',
|
|
40
|
-
WebkitAppearance: 'none',
|
|
41
|
-
appearance: 'none'
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Native `<button type="button">` so the trigger is HTML-labelable (`<label htmlFor>` focuses it).
|
|
46
|
-
* `Pressable` on web is a non-labelable div; no extra refs are needed for label association.
|
|
47
|
-
*/
|
|
48
|
-
const SelectTriggerHost = exports.SelectTriggerHost = /*#__PURE__*/(0, _react.forwardRef)(function SelectTriggerHost(props, ref) {
|
|
49
|
-
const {
|
|
50
|
-
children,
|
|
51
|
-
onPress,
|
|
52
|
-
onPressIn,
|
|
53
|
-
onPressOut,
|
|
54
|
-
onHoverIn,
|
|
55
|
-
onHoverOut,
|
|
56
|
-
disabled,
|
|
57
|
-
style,
|
|
58
|
-
className,
|
|
59
|
-
testID,
|
|
60
|
-
dataSet,
|
|
61
|
-
...rest
|
|
62
|
-
} = props;
|
|
63
|
-
const domProps = filterDomProps(rest);
|
|
64
|
-
const dataAttrs = (0, _primitives.domDataAttributes)(dataSet ?? {});
|
|
65
|
-
const flattened = _reactNative.StyleSheet.flatten(style);
|
|
66
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
67
|
-
ref: ref,
|
|
68
|
-
...domProps,
|
|
69
|
-
...dataAttrs,
|
|
70
|
-
type: "button",
|
|
71
|
-
disabled: !!disabled,
|
|
72
|
-
className: typeof className === 'string' ? className : undefined,
|
|
73
|
-
style: {
|
|
74
|
-
...webButtonLayoutStyle,
|
|
75
|
-
...(flattened ?? {})
|
|
76
|
-
},
|
|
77
|
-
"data-testid": testID,
|
|
78
|
-
onClick: e => {
|
|
79
|
-
if (!disabled) {
|
|
80
|
-
onPress?.(e);
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
onPointerDown: e => {
|
|
84
|
-
onPressIn?.(e);
|
|
85
|
-
},
|
|
86
|
-
onPointerUp: e => {
|
|
87
|
-
onPressOut?.(e);
|
|
88
|
-
},
|
|
89
|
-
onPointerCancel: e => {
|
|
90
|
-
onPressOut?.(e);
|
|
91
|
-
},
|
|
92
|
-
onMouseEnter: e => {
|
|
93
|
-
onHoverIn?.(e);
|
|
94
|
-
},
|
|
95
|
-
onMouseLeave: e => {
|
|
96
|
-
onHoverOut?.(e);
|
|
97
|
-
},
|
|
98
|
-
children: resolveChildren(children)
|
|
99
|
-
});
|
|
100
|
-
});
|
|
101
|
-
SelectTriggerHost.displayName = 'SelectTriggerHost';
|
|
102
|
-
//# sourceMappingURL=SelectTriggerHost.web.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_primitives","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","OMIT","Set","resolveChildren","children","pressed","filterDomProps","rest","entries","filter","key","fromEntries","webButtonLayoutStyle","display","flexDirection","alignItems","justifyContent","width","minWidth","textAlign","boxSizing","margin","font","lineHeight","WebkitAppearance","appearance","SelectTriggerHost","exports","forwardRef","props","ref","onPress","onPressIn","onPressOut","onHoverIn","onHoverOut","disabled","style","className","testID","dataSet","domProps","dataAttrs","domDataAttributes","flattened","StyleSheet","flatten","jsx","type","undefined","onClick","onPointerDown","onPointerUp","onPointerCancel","onMouseEnter","onMouseLeave","displayName"],"sourceRoot":"../../../../src","sources":["components/Select/SelectTriggerHost.web.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,WAAA,GAAAF,OAAA;AAAmF,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAD,wBAAAK,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAP,uBAAA,YAAAA,CAAAK,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAA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import { composeEventHandlers, useFormControlContext } from '@cdx-ui/utils';
|
|
6
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
/**
|
|
8
|
-
* Native: `Text` label row — tap focuses the field input via form context
|
|
9
|
-
* (parity with `<label htmlFor>` on web).
|
|
10
|
-
*/
|
|
11
|
-
export const BaseFieldLabel = /*#__PURE__*/forwardRef(({
|
|
12
|
-
htmlFor: _omitHtmlFor,
|
|
13
|
-
onPress,
|
|
14
|
-
...props
|
|
15
|
-
}, ref) => {
|
|
16
|
-
void _omitHtmlFor;
|
|
17
|
-
const {
|
|
18
|
-
focusInput,
|
|
19
|
-
isDisabled
|
|
20
|
-
} = useFormControlContext();
|
|
21
|
-
return /*#__PURE__*/_jsx(Text, {
|
|
22
|
-
ref: ref,
|
|
23
|
-
...props,
|
|
24
|
-
disabled: Boolean(isDisabled),
|
|
25
|
-
onPress: composeEventHandlers(onPress, () => focusInput?.())
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
BaseFieldLabel.displayName = 'BaseFieldLabel';
|
|
29
|
-
//# sourceMappingURL=FieldLabel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["forwardRef","Text","composeEventHandlers","useFormControlContext","jsx","_jsx","BaseFieldLabel","htmlFor","_omitHtmlFor","onPress","props","ref","focusInput","isDisabled","disabled","Boolean","displayName"],"sourceRoot":"../../../../src","sources":["components/Field/FieldLabel.tsx"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,OAAO;AAClC,SAASC,IAAI,QAA+C,cAAc;AAC1E,SAASC,oBAAoB,EAAEC,qBAAqB,QAAQ,eAAe;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAS5E;AACA;AACA;AACA;AACA,OAAO,MAAMC,cAAc,gBAAGN,UAAU,CACtC,CAAC;EAAEO,OAAO,EAAEC,YAAY;EAAEC,OAAO;EAAE,GAAGC;AAAM,CAAC,EAAEC,GAAG,KAAK;EACrD,KAAKH,YAAY;EAEjB,MAAM;IAAEI,UAAU;IAAEC;EAAW,CAAC,GAAGV,qBAAqB,CAAC,CAAC;EAE1D,oBACEE,IAAA,CAACJ,IAAI;IACHU,GAAG,EAAEA,GAAI;IAAA,GACLD,KAAK;IACTI,QAAQ,EAAEC,OAAO,CAACF,UAAU,CAAE;IAC9BJ,OAAO,EAAEP,oBAAoB,CAACO,OAAO,EAAE,MAAMG,UAAU,GAAG,CAAC;EAAE,CAC9D,CAAC;AAEN,CACF,CAAC;AAEDN,cAAc,CAACU,WAAW,GAAG,gBAAgB","ignoreList":[]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React, { forwardRef } from 'react';
|
|
4
|
-
|
|
5
|
-
// TODO: Why does dataSet need to be decomposed into individual data attributes?
|
|
6
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
/** Real `<label>` so clicking the label focuses the associated control (`htmlFor` → input `id`). */
|
|
8
|
-
export const BaseFieldLabel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
9
|
-
return /*#__PURE__*/_jsx("label", {
|
|
10
|
-
ref: ref,
|
|
11
|
-
...props,
|
|
12
|
-
"data-invalid": props.dataSet?.invalid,
|
|
13
|
-
"data-required": props.dataSet?.required
|
|
14
|
-
});
|
|
15
|
-
});
|
|
16
|
-
BaseFieldLabel.displayName = 'BaseFieldLabel';
|
|
17
|
-
//# sourceMappingURL=FieldLabel.web.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","forwardRef","jsx","_jsx","BaseFieldLabel","props","ref","dataSet","invalid","required","displayName"],"sourceRoot":"../../../../src","sources":["components/Field/FieldLabel.web.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAwB,OAAO;;AAGzD;AAAA,SAAAC,GAAA,IAAAC,IAAA;AASA;AACA,OAAO,MAAMC,cAAc,gBAAGH,UAAU,CAAwC,CAACI,KAAK,EAAEC,GAAG,KAAK;EAC9F,oBACEH,IAAA;IACEG,GAAG,EAAEA,GAAI;IAAA,GACJD,KAAK;IACV,gBAAcA,KAAK,CAACE,OAAO,EAAEC,OAAQ;IACrC,iBAAeH,KAAK,CAACE,OAAO,EAAEE;EAAS,CACxC,CAAC;AAEN,CAAC,CAAC;AAEFL,cAAc,CAACM,WAAW,GAAG,gBAAgB","ignoreList":[]}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { forwardRef } from 'react';
|
|
4
|
-
import { View } from 'react-native';
|
|
5
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
export const BaseFormRoot = /*#__PURE__*/forwardRef(({
|
|
7
|
-
onSubmit: _onSubmit,
|
|
8
|
-
action: _action,
|
|
9
|
-
method: _method,
|
|
10
|
-
...props
|
|
11
|
-
}, ref) => {
|
|
12
|
-
void _onSubmit;
|
|
13
|
-
void _action;
|
|
14
|
-
void _method;
|
|
15
|
-
return /*#__PURE__*/_jsx(View, {
|
|
16
|
-
ref: ref,
|
|
17
|
-
...props
|
|
18
|
-
});
|
|
19
|
-
});
|
|
20
|
-
BaseFormRoot.displayName = 'BaseFormRoot';
|
|
21
|
-
//# sourceMappingURL=FormRoot.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["forwardRef","View","jsx","_jsx","BaseFormRoot","onSubmit","_onSubmit","action","_action","method","_method","props","ref","displayName"],"sourceRoot":"../../../../src","sources":["components/Form/FormRoot.tsx"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,OAAO;AAClC,SAASC,IAAI,QAAwB,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AASpD,OAAO,MAAMC,YAAY,gBAAGJ,UAAU,CACpC,CAAC;EAAEK,QAAQ,EAAEC,SAAS;EAAEC,MAAM,EAAEC,OAAO;EAAEC,MAAM,EAAEC,OAAO;EAAE,GAAGC;AAAM,CAAC,EAAEC,GAAG,KAAK;EAC5E,KAAKN,SAAS;EACd,KAAKE,OAAO;EACZ,KAAKE,OAAO;EACZ,oBAAOP,IAAA,CAACF,IAAI;IAACW,GAAG,EAAEA,GAAI;IAAA,GAAKD;EAAK,CAAG,CAAC;AACtC,CACF,CAAC;AAEDP,YAAY,CAACS,WAAW,GAAG,cAAc","ignoreList":[]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React, { forwardRef } from 'react';
|
|
4
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
-
export const BaseFormRoot = /*#__PURE__*/forwardRef((props, ref) => {
|
|
6
|
-
return /*#__PURE__*/_jsx("form", {
|
|
7
|
-
ref: ref,
|
|
8
|
-
...props
|
|
9
|
-
});
|
|
10
|
-
});
|
|
11
|
-
BaseFormRoot.displayName = 'BaseFormRoot';
|
|
12
|
-
//# sourceMappingURL=FormRoot.web.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","forwardRef","jsx","_jsx","BaseFormRoot","props","ref","displayName"],"sourceRoot":"../../../../src","sources":["components/Form/FormRoot.web.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAO1C,OAAO,MAAMC,YAAY,gBAAGH,UAAU,CAAqC,CAACI,KAAK,EAAEC,GAAG,KAAK;EACzF,oBAAOH,IAAA;IAAMG,GAAG,EAAEA,GAAI;IAAA,GAAKD;EAAK,CAAG,CAAC;AACtC,CAAC,CAAC;AAEFD,YAAY,CAACG,WAAW,GAAG,cAAc","ignoreList":[]}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { forwardRef } from 'react';
|
|
4
|
-
import { TextInput } from 'react-native';
|
|
5
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
const androidDefaults = {
|
|
7
|
-
includeFontPadding: false,
|
|
8
|
-
textAlignVertical: 'center'
|
|
9
|
-
};
|
|
10
|
-
export const BaseInput = /*#__PURE__*/forwardRef((props, ref) => /*#__PURE__*/_jsx(TextInput, {
|
|
11
|
-
ref: ref,
|
|
12
|
-
...props,
|
|
13
|
-
style: [androidDefaults, props.style]
|
|
14
|
-
}));
|
|
15
|
-
BaseInput.displayName = 'BaseInput';
|
|
16
|
-
//# sourceMappingURL=BaseInput.android.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["forwardRef","TextInput","jsx","_jsx","androidDefaults","includeFontPadding","textAlignVertical","BaseInput","props","ref","style","displayName"],"sourceRoot":"../../../../src","sources":["components/Input/BaseInput.android.tsx"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,OAAO;AAClC,SAASC,SAAS,QAA6B,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE9D,MAAMC,eAAe,GAAG;EACtBC,kBAAkB,EAAE,KAAK;EACzBC,iBAAiB,EAAE;AACrB,CAAC;AAED,OAAO,MAAMC,SAAS,gBAAGP,UAAU,CAA4B,CAACQ,KAAK,EAAEC,GAAG,kBACxEN,IAAA,CAACF,SAAS;EAACQ,GAAG,EAAEA,GAAI;EAAA,GAAKD,KAAK;EAAEE,KAAK,EAAE,CAACN,eAAe,EAAEI,KAAK,CAACE,KAAK;AAAE,CAAE,CACzE,CAAC;AAEFH,SAAS,CAACI,WAAW,GAAG,WAAW","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["TextInput","BaseInput"],"sourceRoot":"../../../../src","sources":["components/Input/BaseInput.tsx"],"mappings":";;AAAA,SAASA,SAAS,IAAIC,SAAS,QAAQ,cAAc","ignoreList":[]}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React, { forwardRef } from 'react';
|
|
4
|
-
import { TextInput } from 'react-native';
|
|
5
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
export const BaseInput = /*#__PURE__*/forwardRef((props, ref) => {
|
|
7
|
-
if (props.type === 'file') {
|
|
8
|
-
return /*#__PURE__*/React.createElement('input', {
|
|
9
|
-
ref,
|
|
10
|
-
type: 'file',
|
|
11
|
-
accept: props.accept || undefined,
|
|
12
|
-
multiple: props.multiple || undefined,
|
|
13
|
-
capture: props.capture || undefined,
|
|
14
|
-
disabled: props.disabled || undefined,
|
|
15
|
-
'aria-label': props['aria-label'],
|
|
16
|
-
'aria-required': props['aria-required'] || undefined,
|
|
17
|
-
'aria-invalid': props['aria-invalid'] || undefined,
|
|
18
|
-
'aria-disabled': props['aria-disabled'] || undefined,
|
|
19
|
-
onChange: e => {
|
|
20
|
-
const files = e.target.files;
|
|
21
|
-
if (files && props.onFiles) {
|
|
22
|
-
props.onFiles(Array.from(files));
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
onFocus: props.onFocus,
|
|
26
|
-
onBlur: props.onBlur,
|
|
27
|
-
style: {
|
|
28
|
-
flex: 1,
|
|
29
|
-
minWidth: 0,
|
|
30
|
-
border: 'none',
|
|
31
|
-
outline: 'none',
|
|
32
|
-
background: 'transparent',
|
|
33
|
-
cursor: props.disabled ? 'not-allowed' : 'pointer',
|
|
34
|
-
fontSize: 'inherit',
|
|
35
|
-
fontFamily: 'inherit'
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
return /*#__PURE__*/_jsx(TextInput, {
|
|
40
|
-
ref: ref,
|
|
41
|
-
...props
|
|
42
|
-
});
|
|
43
|
-
});
|
|
44
|
-
BaseInput.displayName = 'BaseInput';
|
|
45
|
-
//# sourceMappingURL=BaseInput.web.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","forwardRef","TextInput","jsx","_jsx","BaseInput","props","ref","type","createElement","accept","undefined","multiple","capture","disabled","onChange","e","files","target","onFiles","Array","from","onFocus","onBlur","style","flex","minWidth","border","outline","background","cursor","fontS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,OAAO,EAAE,MAAM;QACfC,UAAU,EAAE,aAAa;QACzBC,MAAM,EAAExB,KAAK,CAACQ,QAAQ,GAAG,aAAa,GAAG,SAAS;QAClDiB,QAAQ,EAAE,SAAS;QACnBC,UAAU,EAAE;MACd;IACF,CAAC,CAAC;EACJ;EAEA,oBAAO5B,IAAA,CAACF,SAAS;IAACK,GAAG,EAAEA,GAAI;IAAA,GAAKD;EAAK,CAAG,CAAC;AAC3C,CAAC,CAAC;AAEFD,SAAS,CAAC4B,WAAW,GAAG,WAAW","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["Pressable","SelectTriggerHost"],"sourceRoot":"../../../../src","sources":["components/Select/SelectTriggerHost.tsx"],"mappings":";;AAAA,SAASA,SAAS,QAAQ,cAAc;;AAExC;AACA,OAAO,MAAMC,iBAAiB,GAAGD,SAAS","ignoreList":[]}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React, { forwardRef } from 'react';
|
|
4
|
-
import { StyleSheet } from 'react-native';
|
|
5
|
-
import { domDataAttributes } from '@cdx-ui/primitives';
|
|
6
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
/** Props that must not be forwarded to a DOM `<button>`. */
|
|
8
|
-
const OMIT = new Set(['hitSlop', 'pressRetentionOffset', 'android_ripple', 'android_disableSound', 'unstable_pressDelay', 'onLongPress', 'delayLongPress', 'onPress', 'onPressIn', 'onPressOut', 'onHoverIn', 'onHoverOut', 'disabled', 'style', 'className', 'testID', 'children', 'accessible', 'accessibilityActions', 'accessibilityElementsHidden', 'accessibilityHint', 'accessibilityIgnoresInvertColors', 'accessibilityLabel', 'accessibilityLabelledBy', 'accessibilityLiveRegion', 'accessibilityRole', 'accessibilityState', 'accessibilityValue', 'accessibilityViewIsModal', 'importantForAccessibility', 'needsOffscreenAlphaCompositing', 'collapsable', 'shouldRasterizeIOS', 'removeClippedSubviews', 'onAccessibilityAction', 'onAccessibilityEscape', 'onAccessibilityTap']);
|
|
9
|
-
function resolveChildren(children) {
|
|
10
|
-
if (typeof children === 'function') {
|
|
11
|
-
return children({
|
|
12
|
-
pressed: false
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
return children;
|
|
16
|
-
}
|
|
17
|
-
function filterDomProps(rest) {
|
|
18
|
-
const entries = Object.entries(rest).filter(([key]) => !OMIT.has(key));
|
|
19
|
-
return Object.fromEntries(entries);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/** UA `<button>` defaults (centered text, inline sizing) fight our flex + `justify-between` layout. */
|
|
23
|
-
const webButtonLayoutStyle = {
|
|
24
|
-
display: 'flex',
|
|
25
|
-
flexDirection: 'row',
|
|
26
|
-
alignItems: 'center',
|
|
27
|
-
justifyContent: 'space-between',
|
|
28
|
-
width: '100%',
|
|
29
|
-
minWidth: 0,
|
|
30
|
-
textAlign: 'start',
|
|
31
|
-
boxSizing: 'border-box',
|
|
32
|
-
margin: 0,
|
|
33
|
-
font: 'inherit',
|
|
34
|
-
lineHeight: 'normal',
|
|
35
|
-
WebkitAppearance: 'none',
|
|
36
|
-
appearance: 'none'
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Native `<button type="button">` so the trigger is HTML-labelable (`<label htmlFor>` focuses it).
|
|
41
|
-
* `Pressable` on web is a non-labelable div; no extra refs are needed for label association.
|
|
42
|
-
*/
|
|
43
|
-
export const SelectTriggerHost = /*#__PURE__*/forwardRef(function SelectTriggerHost(props, ref) {
|
|
44
|
-
const {
|
|
45
|
-
children,
|
|
46
|
-
onPress,
|
|
47
|
-
onPressIn,
|
|
48
|
-
onPressOut,
|
|
49
|
-
onHoverIn,
|
|
50
|
-
onHoverOut,
|
|
51
|
-
disabled,
|
|
52
|
-
style,
|
|
53
|
-
className,
|
|
54
|
-
testID,
|
|
55
|
-
dataSet,
|
|
56
|
-
...rest
|
|
57
|
-
} = props;
|
|
58
|
-
const domProps = filterDomProps(rest);
|
|
59
|
-
const dataAttrs = domDataAttributes(dataSet ?? {});
|
|
60
|
-
const flattened = StyleSheet.flatten(style);
|
|
61
|
-
return /*#__PURE__*/_jsx("button", {
|
|
62
|
-
ref: ref,
|
|
63
|
-
...domProps,
|
|
64
|
-
...dataAttrs,
|
|
65
|
-
type: "button",
|
|
66
|
-
disabled: !!disabled,
|
|
67
|
-
className: typeof className === 'string' ? className : undefined,
|
|
68
|
-
style: {
|
|
69
|
-
...webButtonLayoutStyle,
|
|
70
|
-
...(flattened ?? {})
|
|
71
|
-
},
|
|
72
|
-
"data-testid": testID,
|
|
73
|
-
onClick: e => {
|
|
74
|
-
if (!disabled) {
|
|
75
|
-
onPress?.(e);
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
onPointerDown: e => {
|
|
79
|
-
onPressIn?.(e);
|
|
80
|
-
},
|
|
81
|
-
onPointerUp: e => {
|
|
82
|
-
onPressOut?.(e);
|
|
83
|
-
},
|
|
84
|
-
onPointerCancel: e => {
|
|
85
|
-
onPressOut?.(e);
|
|
86
|
-
},
|
|
87
|
-
onMouseEnter: e => {
|
|
88
|
-
onHoverIn?.(e);
|
|
89
|
-
},
|
|
90
|
-
onMouseLeave: e => {
|
|
91
|
-
onHoverOut?.(e);
|
|
92
|
-
},
|
|
93
|
-
children: resolveChildren(children)
|
|
94
|
-
});
|
|
95
|
-
});
|
|
96
|
-
SelectTriggerHost.displayName = 'SelectTriggerHost';
|
|
97
|
-
//# sourceMappingURL=SelectTriggerHost.web.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","forwardRef","StyleSheet","domDataAttributes","jsx","_jsx","OMIT","Set","resolveChildren","children","pressed","filterDomProps","rest","entries","Object","filter","key","has","fromEntries","webButtonLayoutStyle","display","flexDirection","alignItems","justifyContent","width","minWidth","textAlign","boxSizing","margin","font","lineHeight","WebkitAppearance","appearance","SelectTriggerHost","props","ref","onPress","onPressIn","onPressOut","onHoverIn","onHoverOut","disabled","style","className","testID","dataSet","domProps","dataAttrs","flattened","flatten","type","undefined","onClick","e","onPointerDown","onPointerUp","onPointerCancel","onMouseEnter","onMouseLeave","displayName"],"sourceRoot":"../../../../src","sources":["components/Select/SelectTriggerHost.web.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,SAASC,UAAU,QAAQ,cAAc;AAEzC,SAASC,iBAAiB,QAAoC,oBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAOnF;AACA,MAAMC,IAAI,GAAG,IAAIC,GAAG,CAAS,CAC3B,SAAS,EACT,sBAAsB,EACtB,gBAAgB,EAChB,sBAAsB,EACtB,qBAAqB,EACrB,aAAa,EACb,gBAAgB,EAChB,SAAS,EACT,WAAW,EACX,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,UAAU,EACV,OAAO,EACP,WAAW,EACX,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,sBAAsB,EACtB,6BAA6B,EAC7B,mBAAmB,EACnB,kCAAkC,EAClC,oBAAoB,EACpB,yBAAyB,EACzB,yBAAyB,EACzB,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,0BAA0B,EAC1B,2BAA2B,EAC3B,gCAAgC,EAChC,aAAa,EACb,oBAAoB,EACpB,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,oBAAoB,CACrB,CAAC;AAEF,SAASC,eAAeA,CAACC,QAAoC,EAAmB;EAC9E,IAAI,OAAOA,QAAQ,KAAK,UAAU,EAAE;IAClC,OAAOA,QAAQ,CAAC;MAAEC,OAAO,EAAE;IAAM,CAAC,CAAC;EACrC;EACA,OAAOD,QAAQ;AACjB;AAEA,SAASE,cAAcA,CAACC,IAAY,EAAiD;EACnF,MAAMC,OAAO,GAAGC,MAAM,CAACD,OAAO,CAACD,IAAI,CAAC,CAACG,MAAM,CAAC,CAAC,CAACC,GAAG,CAAC,KAAK,CAACV,IAAI,CAACW,GA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,IAAI,CAAC,CAAC;IAAE,CAAE;IACzD,eAAaJ,MAAO;IACpBQ,OAAO,EAAGC,CAAC,IAAK;MACd,IAAI,CAACZ,QAAQ,EAAE;QACbL,OAAO,GAAGiB,CAAqE,CAAC;MAClF;IACF,CAAE;IACFC,aAAa,EAAGD,CAAC,IAAK;MACpBhB,SAAS,GAAGgB,CAAuE,CAAC;IACtF,CAAE;IACFE,WAAW,EAAGF,CAAC,IAAK;MAClBf,UAAU,GAAGe,CAAwE,CAAC;IACxF,CAAE;IACFG,eAAe,EAAGH,CAAC,IAAK;MACtBf,UAAU,GAAGe,CAAwE,CAAC;IACxF,CAAE;IACFI,YAAY,EAAGJ,CAAC,IAAK;MACnBd,SAAS,GAAGc,CAAuE,CAAC;IACtF,CAAE;IACFK,YAAY,EAAGL,CAAC,IAAK;MACnBb,UAAU,GAAGa,CAAwE,CAAC;IACxF,CAAE;IAAA5C,QAAA,EAEDD,eAAe,CAACC,QAAQ;EAAC,CACpB,CAAC;AAEb,CACF,CAAC;AAEDwB,iBAAiB,CAAC0B,WAAW,GAAG,mBAAmB","ignoreList":[]}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Text, TextProps, type GestureResponderEvent } from 'react-native';
|
|
2
|
-
export type BaseFieldLabelProps = TextProps & {
|
|
3
|
-
/** @platform web — forwarded on web; ignored here (see `FieldLabelRoot.web`). */
|
|
4
|
-
htmlFor?: string;
|
|
5
|
-
/** Optional; composed with label tap-to-focus on native. */
|
|
6
|
-
onPress?: ((event: GestureResponderEvent) => void) | null;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Native: `Text` label row — tap focuses the field input via form context
|
|
10
|
-
* (parity with `<label htmlFor>` on web).
|
|
11
|
-
*/
|
|
12
|
-
export declare const BaseFieldLabel: import("react").ForwardRefExoticComponent<TextProps & {
|
|
13
|
-
/** @platform web — forwarded on web; ignored here (see `FieldLabelRoot.web`). */
|
|
14
|
-
htmlFor?: string;
|
|
15
|
-
/** Optional; composed with label tap-to-focus on native. */
|
|
16
|
-
onPress?: ((event: GestureResponderEvent) => void) | null;
|
|
17
|
-
} & import("react").RefAttributes<Text>>;
|
|
18
|
-
//# sourceMappingURL=FieldLabel.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FieldLabel.d.ts","sourceRoot":"","sources":["../../../../src/components/Field/FieldLabel.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAG3E,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG;IAC5C,iFAAiF;IACjF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,4DAA4D;IAC5D,OAAO,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC,GAAG,IAAI,CAAC;CAC3D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc;IAVzB,iFAAiF;cACvE,MAAM;IAChB,4DAA4D;cAClD,CAAC,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC,GAAG,IAAI;wCAsB1D,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React, { type ReactNode } from 'react';
|
|
2
|
-
import type { ViewProps } from 'react-native';
|
|
3
|
-
export type BaseFieldLabelProps = ViewProps & {
|
|
4
|
-
htmlFor?: string;
|
|
5
|
-
children?: ReactNode;
|
|
6
|
-
/** @platform native — ignored on DOM `<label>`; set by form primitive for Uniwind. */
|
|
7
|
-
dataSet?: Record<string, boolean | string>;
|
|
8
|
-
};
|
|
9
|
-
/** Real `<label>` so clicking the label focuses the associated control (`htmlFor` → input `id`). */
|
|
10
|
-
export declare const BaseFieldLabel: React.ForwardRefExoticComponent<ViewProps & {
|
|
11
|
-
htmlFor?: string;
|
|
12
|
-
children?: ReactNode;
|
|
13
|
-
/** @platform native — ignored on DOM `<label>`; set by form primitive for Uniwind. */
|
|
14
|
-
dataSet?: Record<string, boolean | string>;
|
|
15
|
-
} & React.RefAttributes<HTMLLabelElement>>;
|
|
16
|
-
//# sourceMappingURL=FieldLabel.web.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FieldLabel.web.d.ts","sourceRoot":"","sources":["../../../../src/components/Field/FieldLabel.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAI9C,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,sFAAsF;IACtF,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,CAAC,CAAC;CAC5C,CAAC;AAEF,oGAAoG;AACpG,eAAO,MAAM,cAAc;cAPf,MAAM;eACL,SAAS;IACpB,sFAAsF;cAC5E,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,CAAC;0CAa1C,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { View, type ViewProps } from 'react-native';
|
|
2
|
-
export type BaseFormRootProps = ViewProps & {
|
|
3
|
-
onSubmit?: (e: React.SyntheticEvent) => void;
|
|
4
|
-
action?: string | ((formData: FormData) => void | Promise<void>);
|
|
5
|
-
method?: string;
|
|
6
|
-
className?: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const BaseFormRoot: import("react").ForwardRefExoticComponent<ViewProps & {
|
|
9
|
-
onSubmit?: (e: React.SyntheticEvent) => void;
|
|
10
|
-
action?: string | ((formData: FormData) => void | Promise<void>);
|
|
11
|
-
method?: string;
|
|
12
|
-
className?: string;
|
|
13
|
-
} & import("react").RefAttributes<View>>;
|
|
14
|
-
//# sourceMappingURL=FormRoot.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormRoot.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/FormRoot.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpD,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG;IAC1C,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,cAAc,KAAK,IAAI,CAAC;IAC7C,MAAM,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;IACjE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,YAAY;eANZ,CAAC,CAAC,EAAE,KAAK,CAAC,cAAc,KAAK,IAAI;aACnC,MAAM,GAAG,CAAC,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;aACvD,MAAM;gBACH,MAAM;wCAUnB,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type BaseFormRootProps = React.FormHTMLAttributes<HTMLFormElement> & {
|
|
3
|
-
className?: string;
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
};
|
|
6
|
-
export declare const BaseFormRoot: React.ForwardRefExoticComponent<React.FormHTMLAttributes<HTMLFormElement> & {
|
|
7
|
-
className?: string;
|
|
8
|
-
children?: React.ReactNode;
|
|
9
|
-
} & React.RefAttributes<HTMLFormElement>>;
|
|
10
|
-
//# sourceMappingURL=FormRoot.web.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormRoot.web.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/FormRoot.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,kBAAkB,CAAC,eAAe,CAAC,GAAG;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,YAAY;gBAJX,MAAM;eACP,KAAK,CAAC,SAAS;yCAK1B,CAAC"}
|