@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
|
@@ -10,22 +10,8 @@ var _icons = require("@cdx-ui/icons");
|
|
|
10
10
|
var _primitives = require("@cdx-ui/primitives");
|
|
11
11
|
var _utils = require("@cdx-ui/utils");
|
|
12
12
|
var _Icon = require("../Icon");
|
|
13
|
-
var _FieldLabel = require("./FieldLabel");
|
|
14
13
|
var _styles = require("./styles");
|
|
15
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
-
// =============================================================================
|
|
17
|
-
// PRIMITIVE
|
|
18
|
-
// =============================================================================
|
|
19
|
-
const FieldPrimitive = (0, _primitives.createField)({
|
|
20
|
-
Root: _reactNative.View,
|
|
21
|
-
Label: _FieldLabel.BaseFieldLabel,
|
|
22
|
-
Helper: _reactNative.View,
|
|
23
|
-
HelperText: _reactNative.Text,
|
|
24
|
-
Error: _reactNative.View,
|
|
25
|
-
ErrorText: _reactNative.Text,
|
|
26
|
-
ErrorIcon: _reactNative.View
|
|
27
|
-
});
|
|
28
|
-
|
|
29
15
|
// =============================================================================
|
|
30
16
|
// FIELD ROOT
|
|
31
17
|
// =============================================================================
|
|
@@ -41,11 +27,14 @@ const FieldRoot = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
|
41
27
|
...props
|
|
42
28
|
}, ref) => {
|
|
43
29
|
const computedClassName = (0, _utils.cn)((0, _styles.fieldRootVariants)(), className);
|
|
44
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
30
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.FieldRoot, {
|
|
45
31
|
ref: ref,
|
|
46
32
|
className: computedClassName,
|
|
47
33
|
style: style,
|
|
48
34
|
...props,
|
|
35
|
+
...(0, _primitives.mergeDataAttributes)(props, (0, _primitives.dataAttributes)({
|
|
36
|
+
slot: 'field'
|
|
37
|
+
})),
|
|
49
38
|
children: children
|
|
50
39
|
});
|
|
51
40
|
});
|
|
@@ -65,11 +54,11 @@ const FieldLabel = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
|
65
54
|
const {
|
|
66
55
|
isLabelFocused,
|
|
67
56
|
isInvalid
|
|
68
|
-
} = (0,
|
|
57
|
+
} = (0, _primitives.useFormControlContext)();
|
|
69
58
|
// Native: inject text-content-action via context (group-has CSS handles web).
|
|
70
59
|
// native: prefix keeps this class inert on web so it never conflicts with text-content-primary.
|
|
71
60
|
const labelClassName = (0, _utils.cn)((0, _styles.fieldLabelVariants)(), isLabelFocused && !isInvalid && 'native:text-content-action', className);
|
|
72
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
61
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.FieldLabel, {
|
|
73
62
|
ref: ref,
|
|
74
63
|
className: labelClassName,
|
|
75
64
|
style: style,
|
|
@@ -80,29 +69,56 @@ const FieldLabel = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
|
80
69
|
children: ' *'
|
|
81
70
|
}),
|
|
82
71
|
...props,
|
|
72
|
+
...(0, _primitives.mergeDataAttributes)(props, (0, _primitives.dataAttributes)({
|
|
73
|
+
slot: 'field-label'
|
|
74
|
+
})),
|
|
83
75
|
children: children
|
|
84
76
|
});
|
|
85
77
|
});
|
|
86
78
|
FieldLabel.displayName = 'Field.Label';
|
|
87
79
|
|
|
88
80
|
// =============================================================================
|
|
89
|
-
// FIELD HELPER
|
|
81
|
+
// FIELD HELPER (styled-only — reads form context directly)
|
|
90
82
|
// =============================================================================
|
|
91
83
|
|
|
92
84
|
const FieldHelper = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
85
|
+
asChild,
|
|
93
86
|
className,
|
|
94
87
|
children,
|
|
95
88
|
style,
|
|
96
89
|
...props
|
|
97
90
|
}, ref) => {
|
|
91
|
+
const {
|
|
92
|
+
helpTextId,
|
|
93
|
+
setHasHelpText,
|
|
94
|
+
isInvalid
|
|
95
|
+
} = (0, _primitives.useFormControlContext)();
|
|
96
|
+
(0, _react.useEffect)(() => {
|
|
97
|
+
if (isInvalid) {
|
|
98
|
+
setHasHelpText?.(false);
|
|
99
|
+
return undefined;
|
|
100
|
+
}
|
|
101
|
+
setHasHelpText?.(true);
|
|
102
|
+
return () => {
|
|
103
|
+
setHasHelpText?.(false);
|
|
104
|
+
};
|
|
105
|
+
}, [setHasHelpText, isInvalid]);
|
|
106
|
+
if (isInvalid) {
|
|
107
|
+
return null;
|
|
108
|
+
}
|
|
98
109
|
const containerClassName = (0, _utils.cn)((0, _styles.fieldHelperVariants)(), className);
|
|
99
110
|
const textClassName = (0, _utils.cn)((0, _styles.fieldHelperTextVariants)());
|
|
100
|
-
|
|
111
|
+
const Comp = asChild ? _primitives.Slot : _reactNative.View;
|
|
112
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Comp, {
|
|
101
113
|
ref: ref,
|
|
102
114
|
className: containerClassName,
|
|
103
115
|
style: style,
|
|
104
116
|
...props,
|
|
105
|
-
|
|
117
|
+
...(0, _primitives.mergeDataAttributes)(props, (0, _primitives.dataAttributes)({
|
|
118
|
+
slot: 'field-helper'
|
|
119
|
+
})),
|
|
120
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
121
|
+
id: helpTextId,
|
|
106
122
|
className: textClassName,
|
|
107
123
|
children: children
|
|
108
124
|
})
|
|
@@ -111,7 +127,7 @@ const FieldHelper = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
|
111
127
|
FieldHelper.displayName = 'Field.Helper';
|
|
112
128
|
|
|
113
129
|
// =============================================================================
|
|
114
|
-
// FIELD ERROR (
|
|
130
|
+
// FIELD ERROR (styled-only — reads form context directly)
|
|
115
131
|
// =============================================================================
|
|
116
132
|
|
|
117
133
|
const FieldErrorIcon = ({
|
|
@@ -125,26 +141,54 @@ const FieldErrorIcon = ({
|
|
|
125
141
|
className: computedClassName,
|
|
126
142
|
style: style,
|
|
127
143
|
"aria-hidden": true,
|
|
128
|
-
...props
|
|
144
|
+
...props,
|
|
145
|
+
...(0, _primitives.mergeDataAttributes)(props, (0, _primitives.dataAttributes)({
|
|
146
|
+
slot: 'field-error-icon'
|
|
147
|
+
}))
|
|
129
148
|
});
|
|
130
149
|
};
|
|
131
150
|
FieldErrorIcon.displayName = 'Field.ErrorIcon';
|
|
132
151
|
const FieldError = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
152
|
+
asChild,
|
|
133
153
|
className,
|
|
134
154
|
children,
|
|
135
155
|
style,
|
|
136
156
|
...props
|
|
137
157
|
}, ref) => {
|
|
158
|
+
const {
|
|
159
|
+
isInvalid,
|
|
160
|
+
feedbackId,
|
|
161
|
+
setHasFeedbackText
|
|
162
|
+
} = (0, _primitives.useFormControlContext)();
|
|
163
|
+
const visible = Boolean(isInvalid && children);
|
|
164
|
+
(0, _react.useEffect)(() => {
|
|
165
|
+
if (!visible) {
|
|
166
|
+
setHasFeedbackText?.(false);
|
|
167
|
+
return undefined;
|
|
168
|
+
}
|
|
169
|
+
setHasFeedbackText?.(true);
|
|
170
|
+
return () => {
|
|
171
|
+
setHasFeedbackText?.(false);
|
|
172
|
+
};
|
|
173
|
+
}, [setHasFeedbackText, visible]);
|
|
174
|
+
if (!visible) {
|
|
175
|
+
return null;
|
|
176
|
+
}
|
|
138
177
|
const containerClassName = (0, _utils.cn)((0, _styles.fieldErrorVariants)(), className);
|
|
139
178
|
const textClassName = (0, _utils.cn)((0, _styles.fieldErrorTextVariants)());
|
|
140
|
-
|
|
179
|
+
const Comp = asChild ? _primitives.Slot : _reactNative.View;
|
|
180
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(Comp, {
|
|
141
181
|
ref: ref,
|
|
182
|
+
id: feedbackId,
|
|
183
|
+
accessibilityRole: "alert",
|
|
184
|
+
accessibilityLiveRegion: "assertive",
|
|
142
185
|
className: containerClassName,
|
|
143
186
|
style: style,
|
|
144
187
|
...props,
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
})
|
|
188
|
+
...(0, _primitives.mergeDataAttributes)(props, (0, _primitives.dataAttributes)({
|
|
189
|
+
slot: 'field-error'
|
|
190
|
+
})),
|
|
191
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(FieldErrorIcon, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
148
192
|
className: textClassName,
|
|
149
193
|
children: children
|
|
150
194
|
})]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_icons","_primitives","_utils","_Icon","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_icons","_primitives","_utils","_Icon","_styles","_jsxRuntime","FieldRoot","forwardRef","className","children","style","props","ref","computedClassName","cn","fieldRootVariants","jsx","mergeDataAttributes","dataAttributes","slot","displayName","FieldLabel","htmlFor","isLabelFocused","isInvalid","useFormControlContext","labelClassName","fieldLabelVariants","requiredIndicator","Text","FieldHelper","asChild","helpTextId","setHasHelpText","useEffect","undefined","containerClassName","fieldHelperVariants","textClassName","fieldHelperTextVariants","Comp","Slot","View","id","FieldErrorIcon","fieldErrorIconVariants","Icon","as","ErrorIcon","FieldError","feedbackId","setHasFeedbackText","visible","Boolean","fieldErrorVariants","fieldErrorTextVariants","jsxs","accessibilityRole","accessibilityLiveRegion","Field","exports","Object","assign","Label","Helper","Error"],"sourceRoot":"../../../../src","sources":["components/Field/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAUA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AAYkB,IAAAO,WAAA,GAAAP,OAAA;AAElB;AACA;AACA;;AAEA;AACA;AACA;;AAGA,MAAMQ,SAAS,gBAAG,IAAAC,iBAAU,EAC1B,CAAC;EAAEC,SAAS;EAAEC,QAAQ;EAAEC,KAAK;EAAE,GAAGC;AAAM,CAAC,EAAEC,GAAG,KAAK;EACjD,MAAMC,iBAAiB,GAAG,IAAAC,SAAE,EAAC,IAAAC,yBAAiB,EAAC,CAAC,EAAEP,SAAS,CAAC;EAE5D,oBACE,IAAAH,WAAA,CAAAW,GAAA,EAACf,WAAA,CAAAK,SAAkB;IACjBM,GAAG,EAAEA,GAAI;IACTJ,SAAS,EAAEK,iBAAkB;IAC7BH,KAAK,EAAEA,KAAM;IAAA,GACTC,KAAK;IAAA,GACL,IAAAM,+BAAmB,EAACN,KAAK,EAAE,IAAAO,0BAAc,EAAC;MAA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CAAC,EAAE9C,SAAS,CAAC;EAC9D,MAAM8B,aAAa,GAAG,IAAAxB,SAAE,EAAC,IAAAyC,8BAAsB,EAAC,CAAC,CAAC;EAClD,MAAMf,IAAI,GAAGT,OAAO,GAAGU,gBAAI,GAAGC,iBAAI;EAElC,oBACE,IAAArC,WAAA,CAAAmD,IAAA,EAAChB,IAAI;IACH5B,GAAG,EAAEA,GAAI;IACT+B,EAAE,EAAEO,UAAW;IACfO,iBAAiB,EAAC,OAAO;IACzBC,uBAAuB,EAAC,WAAW;IACnClD,SAAS,EAAE4B,kBAAmB;IAC9B1B,KAAK,EAAEA,KAAM;IAAA,GACTC,KAAK;IAAA,GACL,IAAAM,+BAAmB,EAACN,KAAK,EAAE,IAAAO,0BAAc,EAAC;MAAEC,IAAI,EAAE;IAAc,CAAC,CAAC,CAAC;IAAAV,QAAA,gBAEvE,IAAAJ,WAAA,CAAAW,GAAA,EAAC4B,cAAc,IAAE,CAAC,eAClB,IAAAvC,WAAA,CAAAW,GAAA,EAACjB,YAAA,CAAA8B,IAAI;MAACrB,SAAS,EAAE8B,aAAc;MAAA7B,QAAA,EAAEA;IAAQ,CAAO,CAAC;EAAA,CAC7C,CAAC;AAEX,CACF,CAAC;AAEDwC,UAAU,CAAC7B,WAAW,GAAG,aAAa;;AAEtC;AACA;AACA;;AAQO,MAAMuC,KAAK,GAAAC,OAAA,CAAAD,KAAA,GAAGE,MAAM,CAACC,MAAM,CAACxD,SAAS,EAAE;EAC5CyD,KAAK,EAAE1C,UAAU;EACjB2C,MAAM,EAAElC,WAAW;EACnBmC,KAAK,EAAEhB;AACT,CAAC,CAA2B","ignoreList":[]}
|
|
@@ -4,21 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.Form = void 0;
|
|
7
|
-
var _react =
|
|
7
|
+
var _react = require("react");
|
|
8
8
|
var _primitives = require("@cdx-ui/primitives");
|
|
9
9
|
var _utils = require("@cdx-ui/utils");
|
|
10
|
-
var _FormRoot = require("./FormRoot");
|
|
11
10
|
var _styles = require("./styles");
|
|
12
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
-
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); }
|
|
14
|
-
// =============================================================================
|
|
15
|
-
// PRIMITIVE
|
|
16
|
-
// =============================================================================
|
|
17
|
-
const FormPrimitive = (0, _primitives.createForm)({
|
|
18
|
-
Root: _FormRoot.BaseFormRoot
|
|
19
|
-
});
|
|
20
|
-
FormPrimitive.displayName = 'FormPrimitive';
|
|
21
|
-
|
|
22
12
|
// =============================================================================
|
|
23
13
|
// FORM ROOT (container — <form> on web, <View> on RN)
|
|
24
14
|
// =============================================================================
|
|
@@ -30,11 +20,14 @@ const FormRoot = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
|
30
20
|
...props
|
|
31
21
|
}, ref) => {
|
|
32
22
|
const computedClassName = (0, _utils.cn)((0, _styles.formRootVariants)(), className);
|
|
33
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
23
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.FormRoot, {
|
|
34
24
|
ref: ref,
|
|
35
25
|
className: computedClassName,
|
|
36
26
|
style: style,
|
|
37
27
|
...props,
|
|
28
|
+
...(0, _primitives.mergeDataAttributes)(props, (0, _primitives.dataAttributes)({
|
|
29
|
+
slot: 'form'
|
|
30
|
+
})),
|
|
38
31
|
children: children
|
|
39
32
|
});
|
|
40
33
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","
|
|
1
|
+
{"version":3,"names":["_react","require","_primitives","_utils","_styles","_jsxRuntime","FormRoot","forwardRef","className","children","style","props","ref","computedClassName","cn","formRootVariants","jsx","mergeDataAttributes","dataAttributes","slot","displayName","Form","exports"],"sourceRoot":"../../../../src","sources":["components/Form/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAD,OAAA;AAMA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AAA4C,IAAAI,WAAA,GAAAJ,OAAA;AAE5C;AACA;AACA;;AAMA,MAAMK,QAAQ,gBAAG,IAAAC,iBAAU,EAAkB,CAAC;EAAEC,SAAS;EAAEC,QAAQ;EAAEC,KAAK;EAAE,GAAGC;AAAM,CAAC,EAAEC,GAAG,KAAK;EAC9F,MAAMC,iBAAiB,GAAG,IAAAC,SAAE,EAAC,IAAAC,wBAAgB,EAAC,CAAC,EAAEP,SAAS,CAAC;EAE3D,oBACE,IAAAH,WAAA,CAAAW,GAAA,EAACd,WAAA,CAAAI,QAAiB;IAChBM,GAAG,EAAEA,GAAI;IACTJ,SAAS,EAAEK,iBAAkB;IAC7BH,KAAK,EAAEA,KAAM;IAAA,GACTC,KAAK;IAAA,GACL,IAAAM,+BAAmB,EAACN,KAAK,EAAE,IAAAO,0BAAc,EAAC;MAAEC,IAAI,EAAE;IAAO,CAAC,CAAC,CAAC;IAAAV,QAAA,EAE/DA;EAAQ,CACQ,CAAC;AAExB,CAAC,CAAC;AAEFH,QAAQ,CAACc,WAAW,GAAG,MAAM;;AAE7B;AACA;AACA;;AAEO,MAAMC,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAGf,QAAQ","ignoreList":[]}
|
|
@@ -5,42 +5,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.IconButton = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
8
|
var _primitives = require("@cdx-ui/primitives");
|
|
10
9
|
var _utils = require("@cdx-ui/utils");
|
|
11
10
|
var _Icon = require("../Icon");
|
|
12
11
|
var _styles = require("./styles");
|
|
13
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
-
const IconButtonPrimitive = (0, _primitives.createButton)({
|
|
15
|
-
Root: _reactNative.Pressable,
|
|
16
|
-
Text: _reactNative.Text,
|
|
17
|
-
Group: _reactNative.View,
|
|
18
|
-
Spinner: _reactNative.ActivityIndicator,
|
|
19
|
-
Icon: _reactNative.View
|
|
20
|
-
});
|
|
21
|
-
function IconButtonGlyph({
|
|
22
|
-
as: IconComponent,
|
|
23
|
-
className
|
|
24
|
-
}) {
|
|
25
|
-
const {
|
|
26
|
-
hover,
|
|
27
|
-
focus,
|
|
28
|
-
active,
|
|
29
|
-
disabled,
|
|
30
|
-
focusVisible
|
|
31
|
-
} = (0, _primitives.useButtonContext)();
|
|
32
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
33
|
-
as: IconComponent,
|
|
34
|
-
className: className,
|
|
35
|
-
...(0, _primitives.dataAttributes)({
|
|
36
|
-
hover,
|
|
37
|
-
focus,
|
|
38
|
-
active,
|
|
39
|
-
disabled,
|
|
40
|
-
focusVisible
|
|
41
|
-
})
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
13
|
const IconButtonRoot = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
45
14
|
variant = 'solid',
|
|
46
15
|
color = 'neutral',
|
|
@@ -63,13 +32,16 @@ const IconButtonRoot = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
|
63
32
|
variant,
|
|
64
33
|
color
|
|
65
34
|
}), iconClassName);
|
|
66
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
35
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.ButtonRoot, {
|
|
67
36
|
ref: ref,
|
|
68
37
|
accessibilityRole: accessibilityRole,
|
|
69
38
|
className: rootClassName,
|
|
70
39
|
style: style,
|
|
71
40
|
...props,
|
|
72
|
-
|
|
41
|
+
...(0, _primitives.mergeDataAttributes)(props, (0, _primitives.dataAttributes)({
|
|
42
|
+
slot: 'icon-button'
|
|
43
|
+
})),
|
|
44
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
73
45
|
as: IconComponent,
|
|
74
46
|
className: glyphClassName
|
|
75
47
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","
|
|
1
|
+
{"version":3,"names":["_react","require","_primitives","_utils","_Icon","_styles","_jsxRuntime","IconButtonRoot","forwardRef","variant","color","size","className","style","as","IconComponent","iconClassName","accessibilityRole","props","ref","rootClassName","cn","iconButtonRootVariants","glyphClassName","iconButtonGlyphVariants","iconButtonIconColorVariants","jsx","ButtonRoot","mergeDataAttributes","dataAttributes","slot","children","Icon","displayName","IconButton","exports"],"sourceRoot":"../../../../src","sources":["components/IconButton/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAD,OAAA;AAOA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AAKkB,IAAAK,WAAA,GAAAL,OAAA;AAUlB,MAAMM,cAAc,gBAAG,IAAAC,iBAAU,EAC/B,CACE;EACEC,OAAO,GAAG,OAAO;EACjBC,KAAK,GAAG,SAAS;EACjBC,IAAI,GAAG,SAAS;EAChBC,SAAS;EACTC,KAAK;EACLC,EAAE,EAAEC,aAAa;EACjBC,aAAa;EACbC,iBAAiB,GAAG,QAAQ;EAC5B,GAAGC;AACL,CAAC,EACDC,GAAG,KACA;EACH,MAAMC,aAAa,GAAG,IAAAC,SAAE,EAAC,IAAAC,8BAAsB,EAAC;IAAEb,OAAO;IAAEC,KAAK;IAAEC;EAAK,CAAC,CAAC,EAAEC,SAAS,CAAC;EAErF,MAAMW,cAAc,GAAG,IAAAF,SAAE,EACvB,IAAAG,+BAAuB,EAAC;IAAEb;EAAK,CAAC,CAAC,EACjC,IAAAc,mCAA2B,EAAC;IAAEhB,OAAO;IAAEC;EAAM,CAAC,CAAC,EAC/CM,aACF,CAAC;EAED,oBACE,IAAAV,WAAA,CAAAoB,GAAA,EAACxB,WAAA,CAAAyB,UAAU;IACTR,GAAG,EAAEA,GAAI;IACTF,iBAAiB,EAAEA,iBAAkB;IACrCL,SAAS,EAAEQ,aAAc;IACzBP,KAAK,EAAEA,KAAM;IAAA,GACTK,KAAK;IAAA,GACL,IAAAU,+BAAmB,EAACV,KAAK,EAAE,IAAAW,0BAAc,EAAC;MAAEC,IAAI,EAAE;IAAc,CAAC,CAAC,CAAC;IAAAC,QAAA,eAEvE,IAAAzB,WAAA,CAAAoB,GAAA,EAACtB,KAAA,CAAA4B,IAAI;MAAClB,EAAE,EAAEC,aAAc;MAACH,SAAS,EAAEW;IAAe,CAAE;EAAC,CAC5C,CAAC;AAEjB,CACF,CAAC;AAEDhB,cAAc,CAAC0B,WAAW,GAAG,YAAY;AAElC,MAAMC,UAAU,GAAAC,OAAA,CAAAD,UAAA,GAAG3B,cAAc","ignoreList":[]}
|
|
@@ -9,23 +9,17 @@ var _reactNative = require("react-native");
|
|
|
9
9
|
var _primitives = require("@cdx-ui/primitives");
|
|
10
10
|
var _utils = require("@cdx-ui/utils");
|
|
11
11
|
var _Icon = require("../Icon");
|
|
12
|
-
var _BaseInput = require("./BaseInput");
|
|
13
12
|
var _styles = require("./styles");
|
|
14
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
14
|
const SCOPE = 'INPUT';
|
|
16
|
-
const Root = (0, _utils.withStyleContext)(_reactNative.View, SCOPE);
|
|
17
15
|
const useInputStyleContext = () => (0, _utils.useStyleContext)(SCOPE);
|
|
18
|
-
const InputPrimitive = (0, _primitives.createInput)({
|
|
19
|
-
Root,
|
|
20
|
-
Slot: _reactNative.View,
|
|
21
|
-
Field: _BaseInput.BaseInput
|
|
22
|
-
});
|
|
23
16
|
|
|
24
17
|
// =============================================================================
|
|
25
18
|
// INPUT (ROOT)
|
|
26
19
|
// =============================================================================
|
|
27
20
|
|
|
28
21
|
const InputRoot = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
22
|
+
asChild,
|
|
29
23
|
variant = 'outline',
|
|
30
24
|
size = 'default',
|
|
31
25
|
className,
|
|
@@ -37,16 +31,27 @@ const InputRoot = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
|
37
31
|
variant,
|
|
38
32
|
size
|
|
39
33
|
}), className);
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
context: {
|
|
34
|
+
const parent = (0, _utils.useParentContext)();
|
|
35
|
+
const ctx = (0, _react.useMemo)(() => ({
|
|
36
|
+
...parent,
|
|
37
|
+
[SCOPE]: {
|
|
45
38
|
variant,
|
|
46
39
|
size
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
|
|
40
|
+
}
|
|
41
|
+
}), [parent, variant, size]);
|
|
42
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_utils.ParentContext.Provider, {
|
|
43
|
+
value: ctx,
|
|
44
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.InputRoot, {
|
|
45
|
+
ref: ref,
|
|
46
|
+
asChild: asChild,
|
|
47
|
+
className: computedClassName,
|
|
48
|
+
style: style,
|
|
49
|
+
...props,
|
|
50
|
+
...(0, _primitives.mergeDataAttributes)(props, (0, _primitives.dataAttributes)({
|
|
51
|
+
slot: 'input'
|
|
52
|
+
})),
|
|
53
|
+
children: children
|
|
54
|
+
})
|
|
50
55
|
});
|
|
51
56
|
});
|
|
52
57
|
InputRoot.displayName = 'Input';
|
|
@@ -68,32 +73,40 @@ const InputField = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
|
68
73
|
size
|
|
69
74
|
}), className);
|
|
70
75
|
const computedPlaceholderColorClassName = (0, _utils.cn)((0, _styles.inputFieldPlaceholderVariants)(), placeholderTextColorClassName);
|
|
71
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
76
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.InputField, {
|
|
72
77
|
ref: ref,
|
|
73
78
|
className: computedClassName,
|
|
74
79
|
placeholderTextColorClassName: computedPlaceholderColorClassName,
|
|
75
80
|
style: style,
|
|
76
|
-
...rest
|
|
81
|
+
...rest,
|
|
82
|
+
...(0, _primitives.mergeDataAttributes)(rest, (0, _primitives.dataAttributes)({
|
|
83
|
+
slot: 'input-field'
|
|
84
|
+
}))
|
|
77
85
|
});
|
|
78
86
|
});
|
|
79
87
|
InputField.displayName = 'Input.Field';
|
|
80
88
|
|
|
81
89
|
// =============================================================================
|
|
82
|
-
// INPUT SLOT
|
|
90
|
+
// INPUT SLOT — styled-only (Standard 3: no behavior beyond layout)
|
|
83
91
|
// =============================================================================
|
|
84
92
|
|
|
85
93
|
const InputSlot = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
94
|
+
asChild,
|
|
86
95
|
className,
|
|
87
96
|
children,
|
|
88
97
|
style,
|
|
89
98
|
...props
|
|
90
99
|
}, ref) => {
|
|
91
100
|
const computedClassName = (0, _utils.cn)((0, _styles.inputSlotVariants)(), className);
|
|
92
|
-
|
|
101
|
+
const Comp = asChild ? _primitives.Slot : _reactNative.View;
|
|
102
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Comp, {
|
|
93
103
|
ref: ref,
|
|
94
104
|
className: computedClassName,
|
|
95
105
|
style: style,
|
|
96
106
|
...props,
|
|
107
|
+
...(0, _primitives.mergeDataAttributes)(props, (0, _primitives.dataAttributes)({
|
|
108
|
+
slot: 'input-slot'
|
|
109
|
+
})),
|
|
97
110
|
children: children
|
|
98
111
|
});
|
|
99
112
|
});
|
|
@@ -104,6 +117,7 @@ InputSlot.displayName = 'Input.Slot';
|
|
|
104
117
|
// =============================================================================
|
|
105
118
|
|
|
106
119
|
const InputIcon = ({
|
|
120
|
+
asChild,
|
|
107
121
|
className,
|
|
108
122
|
style,
|
|
109
123
|
as,
|
|
@@ -115,11 +129,27 @@ const InputIcon = ({
|
|
|
115
129
|
const computedClassName = (0, _utils.cn)((0, _styles.inputIconVariants)({
|
|
116
130
|
size
|
|
117
131
|
}), className);
|
|
132
|
+
if (asChild) {
|
|
133
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.Slot, {
|
|
134
|
+
className: computedClassName,
|
|
135
|
+
style: style,
|
|
136
|
+
...props,
|
|
137
|
+
...(0, _primitives.mergeDataAttributes)(props, (0, _primitives.dataAttributes)({
|
|
138
|
+
slot: 'input-icon'
|
|
139
|
+
}))
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
if (!as) {
|
|
143
|
+
return null;
|
|
144
|
+
}
|
|
118
145
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
119
146
|
as: as,
|
|
120
147
|
className: computedClassName,
|
|
121
148
|
style: style,
|
|
122
|
-
...props
|
|
149
|
+
...props,
|
|
150
|
+
...(0, _primitives.mergeDataAttributes)(props, (0, _primitives.dataAttributes)({
|
|
151
|
+
slot: 'input-icon'
|
|
152
|
+
}))
|
|
123
153
|
});
|
|
124
154
|
};
|
|
125
155
|
InputIcon.displayName = 'Input.Icon';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_primitives","_utils","_Icon","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_primitives","_utils","_Icon","_styles","_jsxRuntime","SCOPE","useInputStyleContext","useStyleContext","InputRoot","forwardRef","asChild","variant","size","className","children","style","props","ref","computedClassName","cn","inputRootVariants","parent","useParentContext","ctx","useMemo","jsx","ParentContext","Provider","value","mergeDataAttributes","dataAttributes","slot","displayName","InputField","placeholderTextColorClassName","rest","inputFieldVariants","computedPlaceholderColorClassName","inputFieldPlaceholderVariants","InputSlot","inputSlotVariants","Comp","Slot","View","InputIcon","as","inputIconVariants","Icon","Input","exports","Object","assign","Field"],"sourceRoot":"../../../../src","sources":["components/Input/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AAUA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AAOkB,IAAAM,WAAA,GAAAN,OAAA;AAElB,MAAMO,KAAK,GAAG,OAAO;AAErB,MAAMC,oBAAoB,GAAGA,CAAA,KAAM,IAAAC,sBAAe,EAACF,KAAK,CAAsB;;AAE9E;AACA;AACA;;AAQA,MAAMG,SAAS,gBAAG,IAAAC,iBAAU,EAC1B,CACE;EAAEC,OAAO;EAAEC,OAAO,GAAG,SAAS;EAAEC,IAAI,GAAG,SAAS;EAAEC,SAAS;EAAEC,QAAQ;EAAEC,KAAK;EAAE,GAAGC;AAAM,CAAC,EACxFC,GAAG,KACA;EACH,MAAMC,iBAAiB,GAAG,IAAAC,SAAE,EAAC,IAAAC,yBAAiB,EAAC;IAAET,OAAO;IAAEC;EAAK,CAAC,CAAC,EAAEC,SAAS,CAAC;EAE7E,MAAMQ,MAAM,GAAG,IAAAC,uBAAgB,EAAC,CAAC;EACjC,MAAMC,GAAG,GAAG,IAAAC,cAAO,EAAC,OAAO;IAAE,GAAGH,MAAM;IAAE,CAAChB,KAAK,GAAG;MAAEM,OAAO;MAAEC;IAAK;EAAE,CAAC,CAAC,EAAE,CAACS,MAAM,EAAEV,OAAO,EAAEC,IAAI,CAAC,CAAC;EAE/F,oBACE,IAAAR,WAAA,CAAAqB,GAAA,EAACxB,MAAA,CAAAyB,aAAa,CAACC,QAAQ;IAACC,KAAK,EAAEL,GAAI;IAAAT,QAAA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,EAAC;QAAEC,IAAI,EAAE;MAAa,CAAC,CAAC;IAAC,CACvE,CAAC;EAEN;EAEA,IAAI,CAACc,EAAE,EAAE;IACP,OAAO,IAAI;EACb;EAEA,oBACE,IAAAzC,WAAA,CAAAqB,GAAA,EAACvB,KAAA,CAAA6C,IAAI;IACHF,EAAE,EAAEA,EAAG;IACPhC,SAAS,EAAEK,iBAAkB;IAC7BH,KAAK,EAAEA,KAAM;IAAA,GACTC,KAAK;IAAA,GACL,IAAAa,+BAAmB,EAACb,KAAK,EAAE,IAAAc,0BAAc,EAAC;MAAEC,IAAI,EAAE;IAAa,CAAC,CAAC;EAAC,CACvE,CAAC;AAEN,CAAC;AAEDa,SAAS,CAACZ,WAAW,GAAG,YAAY;;AAEpC;AACA;AACA;;AAQO,MAAMgB,KAAK,GAAAC,OAAA,CAAAD,KAAA,GAAGE,MAAM,CAACC,MAAM,CAAC3C,SAAS,EAAE;EAC5C4C,KAAK,EAAEnB,UAAU;EACjBS,IAAI,EAAEH,SAAS;EACfQ,IAAI,EAAEH;AACR,CAAC,CAA2B","ignoreList":[]}
|
|
@@ -17,10 +17,6 @@ var _utils = require("@cdx-ui/utils");
|
|
|
17
17
|
var _Icon = require("../Icon");
|
|
18
18
|
var _styles = require("./styles");
|
|
19
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
|
-
const LinkPrimitive = (0, _primitives.createLink)({
|
|
21
|
-
Root: _reactNative.Pressable
|
|
22
|
-
});
|
|
23
|
-
|
|
24
20
|
// =============================================================================
|
|
25
21
|
// STYLED ROOT COMPONENT
|
|
26
22
|
// =============================================================================
|
|
@@ -32,11 +28,14 @@ const LinkRoot = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
|
32
28
|
...props
|
|
33
29
|
}, ref) => {
|
|
34
30
|
const rootClassName = (0, _utils.cn)((0, _styles.linkRootVariants)(), className);
|
|
35
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
31
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.LinkRoot, {
|
|
36
32
|
ref: ref,
|
|
37
33
|
className: rootClassName,
|
|
38
34
|
style: style,
|
|
39
35
|
...props,
|
|
36
|
+
...(0, _primitives.mergeDataAttributes)(props, (0, _primitives.dataAttributes)({
|
|
37
|
+
slot: 'link'
|
|
38
|
+
})),
|
|
40
39
|
children: children
|
|
41
40
|
});
|
|
42
41
|
});
|
|
@@ -47,6 +46,7 @@ LinkRoot.displayName = 'Link';
|
|
|
47
46
|
// =============================================================================
|
|
48
47
|
|
|
49
48
|
const LinkLabel = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
49
|
+
asChild,
|
|
50
50
|
className,
|
|
51
51
|
children,
|
|
52
52
|
style,
|
|
@@ -58,11 +58,15 @@ const LinkLabel = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
|
58
58
|
const computedClassName = (0, _utils.cn)((0, _styles.linkLabelVariants)({
|
|
59
59
|
visited
|
|
60
60
|
}), className);
|
|
61
|
-
const
|
|
61
|
+
const Comp = asChild ? _primitives.Slot : _reactNative.Text;
|
|
62
|
+
const textElement = /*#__PURE__*/(0, _jsxRuntime.jsx)(Comp, {
|
|
62
63
|
ref: ref,
|
|
63
64
|
className: computedClassName,
|
|
64
65
|
style: style,
|
|
65
66
|
...props,
|
|
67
|
+
...(0, _primitives.mergeDataAttributes)(props, (0, _primitives.dataAttributes)({
|
|
68
|
+
slot: 'link-label'
|
|
69
|
+
})),
|
|
66
70
|
children: children
|
|
67
71
|
});
|
|
68
72
|
if (_reactNative.Platform.OS === 'web') {
|
|
@@ -97,7 +101,10 @@ const LinkIcon = ({
|
|
|
97
101
|
as: as,
|
|
98
102
|
className: computedClassName,
|
|
99
103
|
style: style,
|
|
100
|
-
...props
|
|
104
|
+
...props,
|
|
105
|
+
...(0, _primitives.mergeDataAttributes)(props, (0, _primitives.dataAttributes)({
|
|
106
|
+
slot: 'link-icon'
|
|
107
|
+
}))
|
|
101
108
|
});
|
|
102
109
|
};
|
|
103
110
|
LinkIcon.displayName = 'Link.Icon';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_primitives","_utils","_Icon","_styles","_jsxRuntime","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_primitives","_utils","_Icon","_styles","_jsxRuntime","LinkRoot","forwardRef","className","children","style","props","ref","rootClassName","cn","linkRootVariants","jsx","mergeDataAttributes","dataAttributes","slot","displayName","LinkLabel","asChild","visited","useLinkInteractionContext","computedClassName","linkLabelVariants","Comp","Slot","Text","textElement","Platform","OS","View","linkNativeUnderlineVariants","LinkIcon","as","linkIconVariants","Icon","Link","exports","Object","assign","Label"],"sourceRoot":"../../../../src","sources":["components/Link/index.tsx"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AAQA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AAKkB,IAAAM,WAAA,GAAAN,OAAA;AAIlB;AACA;AACA;;AAOA,MAAMO,QAAQ,gBAAG,IAAAC,iBAAU,EAAkB,CAAC;EAAEC,SAAS;EAAEC,QAAQ;EAAEC,KAAK;EAAE,GAAGC;AAAM,CAAC,EAAEC,GAAG,KAAK;EAC9F,MAAMC,aAAa,GAAG,IAAAC,SAAE,EAAC,IAAAC,wBAAgB,EAAC,CAAC,EAAEP,SAAS,CAAC;EAEvD,oBACE,IAAAH,WAAA,CAAAW,GAAA,EAACf,WAAA,CAAAK,QAAiB;IAChBM,GAAG,EAAEA,GAAI;IACTJ,SAAS,EAAEK,aAAc;IACzBH,KAAK,EAAEA,KAAM;IAAA,GACTC,KAAK;IAAA,GACL,IAAAM,+BAAmB,EAACN,KAAK,EAAE,IAAAO,0BAAc,EAAC;MAAEC,IAAI,EAAE;IAAO,CAAC,CAAC,CAAC;IAAAV,QA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