@cdx-ui/components 0.0.1-alpha.1
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/README.md +34 -0
- package/lib/commonjs/components/Box/Box.js +30 -0
- package/lib/commonjs/components/Box/Box.js.map +1 -0
- package/lib/commonjs/components/Box/index.js +17 -0
- package/lib/commonjs/components/Box/index.js.map +1 -0
- package/lib/commonjs/components/Button/index.js +155 -0
- package/lib/commonjs/components/Button/index.js.map +1 -0
- package/lib/commonjs/components/Button/styles.js +312 -0
- package/lib/commonjs/components/Button/styles.js.map +1 -0
- package/lib/commonjs/components/Input/BaseInput.js +13 -0
- package/lib/commonjs/components/Input/BaseInput.js.map +1 -0
- package/lib/commonjs/components/Input/BaseInput.web.js +50 -0
- package/lib/commonjs/components/Input/BaseInput.web.js.map +1 -0
- package/lib/commonjs/components/Input/index.js +142 -0
- package/lib/commonjs/components/Input/index.js.map +1 -0
- package/lib/commonjs/components/Input/styles.js +62 -0
- package/lib/commonjs/components/Input/styles.js.map +1 -0
- package/lib/commonjs/components/Select/index.js +213 -0
- package/lib/commonjs/components/Select/index.js.map +1 -0
- package/lib/commonjs/components/Select/styles.js +120 -0
- package/lib/commonjs/components/Select/styles.js.map +1 -0
- package/lib/commonjs/components/Spinner/Spinner.js +15 -0
- package/lib/commonjs/components/Spinner/Spinner.js.map +1 -0
- package/lib/commonjs/components/Spinner/index.js +17 -0
- package/lib/commonjs/components/Spinner/index.js.map +1 -0
- package/lib/commonjs/components/Stack/HStack.js +45 -0
- package/lib/commonjs/components/Stack/HStack.js.map +1 -0
- package/lib/commonjs/components/Stack/VStack.js +45 -0
- package/lib/commonjs/components/Stack/VStack.js.map +1 -0
- package/lib/commonjs/components/Stack/index.js +20 -0
- package/lib/commonjs/components/Stack/index.js.map +1 -0
- package/lib/commonjs/components/Text/Text.js +30 -0
- package/lib/commonjs/components/Text/Text.js.map +1 -0
- package/lib/commonjs/components/Text/index.js +17 -0
- package/lib/commonjs/components/Text/index.js.map +1 -0
- package/lib/commonjs/components/index.js +83 -0
- package/lib/commonjs/components/index.js.map +1 -0
- package/lib/commonjs/index.js +17 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/styles.css +6 -0
- package/lib/commonjs/utils/WrapStringChild.js +22 -0
- package/lib/commonjs/utils/WrapStringChild.js.map +1 -0
- package/lib/module/components/Box/Box.js +26 -0
- package/lib/module/components/Box/Box.js.map +1 -0
- package/lib/module/components/Box/index.js +4 -0
- package/lib/module/components/Box/index.js.map +1 -0
- package/lib/module/components/Button/index.js +151 -0
- package/lib/module/components/Button/index.js.map +1 -0
- package/lib/module/components/Button/styles.js +309 -0
- package/lib/module/components/Button/styles.js.map +1 -0
- package/lib/module/components/Input/BaseInput.js +4 -0
- package/lib/module/components/Input/BaseInput.js.map +1 -0
- package/lib/module/components/Input/BaseInput.web.js +45 -0
- package/lib/module/components/Input/BaseInput.web.js.map +1 -0
- package/lib/module/components/Input/index.js +138 -0
- package/lib/module/components/Input/index.js.map +1 -0
- package/lib/module/components/Input/styles.js +58 -0
- package/lib/module/components/Input/styles.js.map +1 -0
- package/lib/module/components/Select/index.js +209 -0
- package/lib/module/components/Select/index.js.map +1 -0
- package/lib/module/components/Select/styles.js +117 -0
- package/lib/module/components/Select/styles.js.map +1 -0
- package/lib/module/components/Spinner/Spinner.js +11 -0
- package/lib/module/components/Spinner/Spinner.js.map +1 -0
- package/lib/module/components/Spinner/index.js +4 -0
- package/lib/module/components/Spinner/index.js.map +1 -0
- package/lib/module/components/Stack/HStack.js +41 -0
- package/lib/module/components/Stack/HStack.js.map +1 -0
- package/lib/module/components/Stack/VStack.js +41 -0
- package/lib/module/components/Stack/VStack.js.map +1 -0
- package/lib/module/components/Stack/index.js +5 -0
- package/lib/module/components/Stack/index.js.map +1 -0
- package/lib/module/components/Text/Text.js +26 -0
- package/lib/module/components/Text/Text.js.map +1 -0
- package/lib/module/components/Text/index.js +4 -0
- package/lib/module/components/Text/index.js.map +1 -0
- package/lib/module/components/index.js +9 -0
- package/lib/module/components/index.js.map +1 -0
- package/lib/module/index.js +4 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/styles.css +6 -0
- package/lib/module/utils/WrapStringChild.js +18 -0
- package/lib/module/utils/WrapStringChild.js.map +1 -0
- package/lib/typescript/components/Box/Box.d.ts +8 -0
- package/lib/typescript/components/Box/Box.d.ts.map +1 -0
- package/lib/typescript/components/Box/index.d.ts +2 -0
- package/lib/typescript/components/Box/index.d.ts.map +1 -0
- package/lib/typescript/components/Button/index.d.ts +41 -0
- package/lib/typescript/components/Button/index.d.ts.map +1 -0
- package/lib/typescript/components/Button/styles.d.ts +23 -0
- package/lib/typescript/components/Button/styles.d.ts.map +1 -0
- package/lib/typescript/components/Input/BaseInput.d.ts +2 -0
- package/lib/typescript/components/Input/BaseInput.d.ts.map +1 -0
- package/lib/typescript/components/Input/BaseInput.web.d.ts +3 -0
- package/lib/typescript/components/Input/BaseInput.web.d.ts.map +1 -0
- package/lib/typescript/components/Input/index.d.ts +32 -0
- package/lib/typescript/components/Input/index.d.ts.map +1 -0
- package/lib/typescript/components/Input/styles.d.ts +17 -0
- package/lib/typescript/components/Input/styles.d.ts.map +1 -0
- package/lib/typescript/components/Select/index.d.ts +45 -0
- package/lib/typescript/components/Select/index.d.ts.map +1 -0
- package/lib/typescript/components/Select/styles.d.ts +22 -0
- package/lib/typescript/components/Select/styles.d.ts.map +1 -0
- package/lib/typescript/components/Spinner/Spinner.d.ts +5 -0
- package/lib/typescript/components/Spinner/Spinner.d.ts.map +1 -0
- package/lib/typescript/components/Spinner/index.d.ts +2 -0
- package/lib/typescript/components/Spinner/index.d.ts.map +1 -0
- package/lib/typescript/components/Stack/HStack.d.ts +20 -0
- package/lib/typescript/components/Stack/HStack.d.ts.map +1 -0
- package/lib/typescript/components/Stack/VStack.d.ts +20 -0
- package/lib/typescript/components/Stack/VStack.d.ts.map +1 -0
- package/lib/typescript/components/Stack/index.d.ts +3 -0
- package/lib/typescript/components/Stack/index.d.ts.map +1 -0
- package/lib/typescript/components/Text/Text.d.ts +11 -0
- package/lib/typescript/components/Text/Text.d.ts.map +1 -0
- package/lib/typescript/components/Text/index.d.ts +2 -0
- package/lib/typescript/components/Text/index.d.ts.map +1 -0
- package/lib/typescript/components/index.d.ts +7 -0
- package/lib/typescript/components/index.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +2 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/utils/WrapStringChild.d.ts +10 -0
- package/lib/typescript/utils/WrapStringChild.d.ts.map +1 -0
- package/package.json +90 -0
- package/src/components/Box/Box.tsx +21 -0
- package/src/components/Box/index.ts +1 -0
- package/src/components/Button/index.tsx +186 -0
- package/src/components/Button/styles.ts +410 -0
- package/src/components/Input/BaseInput.tsx +1 -0
- package/src/components/Input/BaseInput.web.tsx +41 -0
- package/src/components/Input/index.tsx +161 -0
- package/src/components/Input/styles.ts +83 -0
- package/src/components/Select/index.tsx +215 -0
- package/src/components/Select/styles.ts +168 -0
- package/src/components/Spinner/Spinner.tsx +10 -0
- package/src/components/Spinner/index.ts +1 -0
- package/src/components/Stack/HStack.tsx +42 -0
- package/src/components/Stack/VStack.tsx +46 -0
- package/src/components/Stack/index.ts +2 -0
- package/src/components/Text/Text.tsx +58 -0
- package/src/components/Text/index.ts +1 -0
- package/src/components/index.ts +6 -0
- package/src/index.ts +1 -0
- package/src/styles.css +6 -0
- package/src/utils/WrapStringChild.tsx +25 -0
package/README.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# @cdx-ui/components
|
|
2
|
+
|
|
3
|
+
Styled, theme-aware UI components for the Candescent Design System.
|
|
4
|
+
|
|
5
|
+
Built on top of [`@cdx-ui/primitives`](../primitives/) and [`@cdx-ui/tokens`](../tokens/), styled via [Uniwind](https://uniwind.dev) + [CVA](https://cva.style).
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pnpm add @cdx-ui/components
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
### Peer dependencies
|
|
14
|
+
|
|
15
|
+
- `react` >= 18.0.0
|
|
16
|
+
- `react-native` >= 0.74.0 _(optional — for native targets)_
|
|
17
|
+
- `react-native-web` >= 0.19.0 _(optional — for web targets)_
|
|
18
|
+
- `uniwind` >= 1.3.0 _(optional — for styled usage)_
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
```tsx
|
|
23
|
+
import { Button } from '@cdx-ui/components';
|
|
24
|
+
|
|
25
|
+
export function Example() {
|
|
26
|
+
return (
|
|
27
|
+
<Button variant="solid" color="primary" size="md" onPress={() => console.log('pressed')}>
|
|
28
|
+
<Button.Label>Get Started</Button.Label>
|
|
29
|
+
</Button>
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Component stories live in [`apps/storybook`](../../apps/storybook/).
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Box = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _WrapStringChild = require("../../utils/WrapStringChild");
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
const Box = exports.Box = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
12
|
+
style,
|
|
13
|
+
className,
|
|
14
|
+
children,
|
|
15
|
+
textProps,
|
|
16
|
+
...restProps
|
|
17
|
+
}, ref) => {
|
|
18
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
19
|
+
ref: ref,
|
|
20
|
+
style: style,
|
|
21
|
+
className: className,
|
|
22
|
+
...restProps,
|
|
23
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_WrapStringChild.WrapStringChild, {
|
|
24
|
+
textProps: textProps,
|
|
25
|
+
children: children
|
|
26
|
+
})
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
Box.displayName = 'Box';
|
|
30
|
+
//# sourceMappingURL=Box.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_WrapStringChild","_jsxRuntime","Box","exports","forwardRef","style","className","children","textProps","restProps","ref","jsx","View","WrapStringChild","displayName"],"sourceRoot":"../../../../src","sources":["components/Box/Box.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,gBAAA,GAAAF,OAAA;AAA8D,IAAAG,WAAA,GAAAH,OAAA;AAQvD,MAAMI,GAAG,GAAAC,OAAA,CAAAD,GAAA,gBAAG,IAAAE,iBAAU,EAC3B,CAAC;EAAEC,KAAK;EAAEC,SAAS;EAAEC,QAAQ;EAAEC,SAAS;EAAE,GAAGC;AAAU,CAAC,EAAEC,GAAuB,KAAK;EACpF,oBACE,IAAAT,WAAA,CAAAU,GAAA,EAACZ,YAAA,CAAAa,IAAI;IAACF,GAAG,EAAEA,GAAI;IAACL,KAAK,EAAEA,KAAM;IAACC,SAAS,EAAEA,SAAU;IAAA,GAAKG,SAAS;IAAAF,QAAA,eAC/D,IAAAN,WAAA,CAAAU,GAAA,EAACX,gBAAA,CAAAa,eAAe;MAACL,SAAS,EAAEA,SAAU;MAAAD,QAAA,EAAEA;IAAQ,CAAkB;EAAC,CAC/D,CAAC;AAEX,CACF,CAAC;AAEDL,GAAG,CAACY,WAAW,GAAG,KAAK","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _Box = require("./Box");
|
|
7
|
+
Object.keys(_Box).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _Box[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _Box[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_Box","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sourceRoot":"../../../../src","sources":["components/Box/index.ts"],"mappings":";;;;;AAAA,IAAAA,IAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,IAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,IAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,IAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Button = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _primitives = require("@cdx-ui/primitives");
|
|
10
|
+
var _utils = require("@cdx-ui/utils");
|
|
11
|
+
var _styles = require("./styles");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
const SCOPE = 'BUTTON';
|
|
14
|
+
const Root = (0, _utils.withStyleContext)(_reactNative.Pressable, SCOPE);
|
|
15
|
+
const useButtonStyleContext = () => (0, _utils.useStyleContext)(SCOPE);
|
|
16
|
+
const ButtonPrimitive = (0, _primitives.createButton)({
|
|
17
|
+
Root,
|
|
18
|
+
Text: _reactNative.Text,
|
|
19
|
+
Group: _reactNative.View,
|
|
20
|
+
Spinner: _reactNative.ActivityIndicator,
|
|
21
|
+
Icon: _reactNative.View
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
// =============================================================================
|
|
25
|
+
// STYLED ROOT COMPONENT
|
|
26
|
+
// =============================================================================
|
|
27
|
+
|
|
28
|
+
const ButtonRoot = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
29
|
+
variant = 'solid',
|
|
30
|
+
color = 'primary',
|
|
31
|
+
size = 'md',
|
|
32
|
+
fullWidth = false,
|
|
33
|
+
className,
|
|
34
|
+
children,
|
|
35
|
+
style,
|
|
36
|
+
...props
|
|
37
|
+
}, ref) => {
|
|
38
|
+
const computedClassName = (0, _utils.cn)((0, _styles.buttonRootVariants)({
|
|
39
|
+
variant,
|
|
40
|
+
color,
|
|
41
|
+
size,
|
|
42
|
+
fullWidth
|
|
43
|
+
}), className);
|
|
44
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ButtonPrimitive, {
|
|
45
|
+
ref: ref,
|
|
46
|
+
className: computedClassName,
|
|
47
|
+
style: style,
|
|
48
|
+
context: {
|
|
49
|
+
variant,
|
|
50
|
+
color,
|
|
51
|
+
size,
|
|
52
|
+
fullWidth
|
|
53
|
+
},
|
|
54
|
+
...props,
|
|
55
|
+
children: children
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
ButtonRoot.displayName = 'Button';
|
|
59
|
+
|
|
60
|
+
// =============================================================================
|
|
61
|
+
// STYLED TEXT COMPONENT
|
|
62
|
+
// =============================================================================
|
|
63
|
+
|
|
64
|
+
const ButtonLabel = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
65
|
+
className,
|
|
66
|
+
children,
|
|
67
|
+
style,
|
|
68
|
+
...props
|
|
69
|
+
}, ref) => {
|
|
70
|
+
const {
|
|
71
|
+
variant,
|
|
72
|
+
color,
|
|
73
|
+
size
|
|
74
|
+
} = useButtonStyleContext();
|
|
75
|
+
const computedClassName = (0, _utils.cn)((0, _styles.buttonTextVariants)({
|
|
76
|
+
variant,
|
|
77
|
+
color,
|
|
78
|
+
size
|
|
79
|
+
}), className);
|
|
80
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ButtonPrimitive.Text, {
|
|
81
|
+
ref: ref,
|
|
82
|
+
className: computedClassName,
|
|
83
|
+
style: style,
|
|
84
|
+
...props,
|
|
85
|
+
children: children
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
ButtonLabel.displayName = 'Button.Label';
|
|
89
|
+
const ButtonGroup = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
90
|
+
className,
|
|
91
|
+
children,
|
|
92
|
+
style,
|
|
93
|
+
flexDirection = 'row',
|
|
94
|
+
isAttached,
|
|
95
|
+
...props
|
|
96
|
+
}, ref) => {
|
|
97
|
+
const groupClassName = (0, _utils.cn)((0, _styles.buttonGroupVariants)({
|
|
98
|
+
flexDirection,
|
|
99
|
+
isAttached: !!isAttached
|
|
100
|
+
}), className);
|
|
101
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ButtonPrimitive.Group, {
|
|
102
|
+
ref: ref,
|
|
103
|
+
className: groupClassName,
|
|
104
|
+
style: [{
|
|
105
|
+
flexDirection
|
|
106
|
+
}, style],
|
|
107
|
+
isAttached: isAttached,
|
|
108
|
+
...props,
|
|
109
|
+
children: children
|
|
110
|
+
});
|
|
111
|
+
});
|
|
112
|
+
ButtonGroup.displayName = 'Button.Group';
|
|
113
|
+
const ButtonIcon = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
114
|
+
className,
|
|
115
|
+
style,
|
|
116
|
+
...props
|
|
117
|
+
}, ref) => {
|
|
118
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ButtonPrimitive.Icon, {
|
|
119
|
+
ref: ref,
|
|
120
|
+
className: className,
|
|
121
|
+
style: style,
|
|
122
|
+
...props
|
|
123
|
+
});
|
|
124
|
+
});
|
|
125
|
+
ButtonIcon.displayName = 'Button.Icon';
|
|
126
|
+
const ButtonSpinner = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
127
|
+
className,
|
|
128
|
+
colorClassName,
|
|
129
|
+
style,
|
|
130
|
+
...props
|
|
131
|
+
}, ref) => {
|
|
132
|
+
const {
|
|
133
|
+
variant,
|
|
134
|
+
color
|
|
135
|
+
} = useButtonStyleContext();
|
|
136
|
+
const computedColorClassName = (0, _utils.cn)((0, _styles.buttonSpinnerVariants)({
|
|
137
|
+
variant,
|
|
138
|
+
color
|
|
139
|
+
}), colorClassName);
|
|
140
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ButtonPrimitive.Spinner, {
|
|
141
|
+
ref: ref,
|
|
142
|
+
className: className,
|
|
143
|
+
colorClassName: computedColorClassName,
|
|
144
|
+
style: style,
|
|
145
|
+
...props
|
|
146
|
+
});
|
|
147
|
+
});
|
|
148
|
+
ButtonSpinner.displayName = 'Button.Spinner';
|
|
149
|
+
const Button = exports.Button = Object.assign(ButtonRoot, {
|
|
150
|
+
Label: ButtonLabel,
|
|
151
|
+
Group: ButtonGroup,
|
|
152
|
+
Icon: ButtonIcon,
|
|
153
|
+
Spinner: ButtonSpinner
|
|
154
|
+
});
|
|
155
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_primitives","_utils","_styles","_jsxRuntime","SCOPE","Root","withStyleContext","Pressable","useButtonStyleContext","useStyleContext","ButtonPrimitive","createButton","Text","Group","View","Spinner","ActivityIndicator","Icon","ButtonRoot","forwardRef","variant","color","size","fullWidth","className","children","style","props","ref","computedClassName","cn","buttonRootVariants","jsx","context","displayName","ButtonLabel","buttonTextVariants","ButtonGroup","flexDirection","isAttached","groupClassName","buttonGroupVariants","ButtonIcon","ButtonSpinner","colorClassName","computedColorClassName","buttonSpinnerVariants","Button","exports","Object","assign","Label"],"sourceRoot":"../../../../src","sources":["components/Button/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAUA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AAOkB,IAAAK,WAAA,GAAAL,OAAA;AAElB,MAAMM,KAAK,GAAG,QAAQ;AAEtB,MAAMC,IAAI,GAAG,IAAAC,uBAAgB,EAACC,sBAAS,EAAEH,KAAK,CAAC;AAE/C,MAAMI,qBAAqB,GAAGA,CAAA,KAAM,IAAAC,sBAAe,EAACL,KAAK,CAAuB;AAEhF,MAAMM,eAAe,GAAG,IAAAC,wBAAY,EAAC;EACnCN,IAAI;EACJO,IAAI,EAAJA,iBAAI;EACJC,KAAK,EAAEC,iBAAI;EACXC,OAAO,EAAEC,8BAAiB;EAC1BC,IAAI,EAAEH;AACR,CAAC,CAAC;;AAEF;AACA;AACA;;AAOA,MAAMI,UAAU,gBAAG,IAAAC,iBAAU,EAC3B,CACE;EACEC,OAAO,GAAG,OAAO;EACjBC,KAAK,GAAG,SAAS;EACjBC,IAAI,GAAG,IAAI;EACXC,SAAS,GAAG,KAAK;EACjBC,SAAS;EACTC,QAAQ;EACRC,KAAK;EACL,GAAGC;AACL,CAAC,EACDC,GAAG,KACA;EACH,MAAMC,iBAAiB,GAAG,IAAAC,SAAE,EAC1B,IAAAC,0BAAkB,EAAC;IAAEX,OAAO;IAAEC,KAAK;IAAEC,IAAI;IAAEC;EAAU,CAAC,CAAC,EACvDC,SACF,CAAC;EAED,oBACE,IAAArB,WAAA,CAAA6B,GAAA,EAACtB,eAAe;IACdkB,GAAG,EAAEA,GAAI;IACTJ,SAAS,EAAEK,iBAAkB;IAC7BH,KAAK,EAAEA,KAAM;IACbO,OAAO,EAAE;MAAEb,OAAO;MAAEC,KAAK;MAAE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MAAM,CAACC,MAAM,CAAChC,UAAU,EAAE;EAC9CiC,KAAK,EAAEhB,WAAW;EAClBtB,KAAK,EAAEwB,WAAW;EAClBpB,IAAI,EAAEyB,UAAU;EAChB3B,OAAO,EAAE4B;AACX,CAAC,CAA4B","ignoreList":[]}
|
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.buttonTextVariants = exports.buttonSpinnerVariants = exports.buttonRootVariants = exports.buttonGroupVariants = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _classVarianceAuthority = require("class-variance-authority");
|
|
9
|
+
// TODO: Split into 2 files
|
|
10
|
+
// TODO: Create cva wrapper
|
|
11
|
+
|
|
12
|
+
const buttonRootVariants = exports.buttonRootVariants = (0, _classVarianceAuthority.cva)(['flex-row items-center justify-center', 'rounded-md', 'transition-colors duration-150',
|
|
13
|
+
// TODO: Transition not working on mobile
|
|
14
|
+
'data-[disabled=true]:opacity-60 data-[disabled=true]:cursor-not-allowed data-[disabled=true]:pointer-events-none', 'data-[focus-visible=true]:ring-2 data-[focus-visible=true]:ring-ring data-[focus-visible=true]:ring-offset-2 data-[focus-visible=true]:ring-offset-bg'], {
|
|
15
|
+
variants: {
|
|
16
|
+
variant: {
|
|
17
|
+
solid: [],
|
|
18
|
+
subtle: [],
|
|
19
|
+
outline: ['bg-transparent border border-border', 'data-[hover=true]:bg-surface', 'data-[active=true]:bg-surface-raised'],
|
|
20
|
+
ghost: ['bg-transparent', 'data-[hover=true]:bg-surface', 'data-[active=true]:bg-surface-raised']
|
|
21
|
+
},
|
|
22
|
+
color: {
|
|
23
|
+
primary: [],
|
|
24
|
+
secondary: [],
|
|
25
|
+
success: [],
|
|
26
|
+
danger: []
|
|
27
|
+
},
|
|
28
|
+
size: {
|
|
29
|
+
sm: 'h-8 px-3 gap-1.5',
|
|
30
|
+
md: 'h-10 px-4 gap-2',
|
|
31
|
+
lg: 'h-12 px-6 gap-2.5'
|
|
32
|
+
},
|
|
33
|
+
fullWidth: {
|
|
34
|
+
true: 'w-full',
|
|
35
|
+
false: ''
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
compoundVariants: [{
|
|
39
|
+
variant: 'solid',
|
|
40
|
+
color: 'primary',
|
|
41
|
+
className: ['bg-blue-500', _reactNative.Platform.select({
|
|
42
|
+
default: 'data-[active=true]:bg-blue-700',
|
|
43
|
+
web: 'data-[hover=true]:bg-blue-600 data-[active=true]:data-[hover=true]:bg-blue-700'
|
|
44
|
+
})]
|
|
45
|
+
}, {
|
|
46
|
+
variant: 'solid',
|
|
47
|
+
color: 'secondary',
|
|
48
|
+
className: ['bg-amber-500', _reactNative.Platform.select({
|
|
49
|
+
default: 'data-[active=true]:bg-amber-700',
|
|
50
|
+
web: 'data-[hover=true]:bg-amber-600 data-[active=true]:data-[hover=true]:bg-amber-700'
|
|
51
|
+
})]
|
|
52
|
+
}, {
|
|
53
|
+
variant: 'solid',
|
|
54
|
+
color: 'success',
|
|
55
|
+
className: ['bg-green-500', _reactNative.Platform.select({
|
|
56
|
+
default: 'data-[active=true]:bg-green-700',
|
|
57
|
+
web: 'data-[hover=true]:bg-green-600 data-[active=true]:data-[hover=true]:bg-green-700'
|
|
58
|
+
})]
|
|
59
|
+
}, {
|
|
60
|
+
variant: 'solid',
|
|
61
|
+
color: 'danger',
|
|
62
|
+
className: ['bg-red-500', _reactNative.Platform.select({
|
|
63
|
+
default: 'data-[active=true]:bg-red-700',
|
|
64
|
+
web: 'data-[hover=true]:bg-red-600 data-[active=true]:data-[hover=true]:bg-red-700'
|
|
65
|
+
})]
|
|
66
|
+
}, {
|
|
67
|
+
variant: 'subtle',
|
|
68
|
+
color: 'primary',
|
|
69
|
+
className: ['bg-blue-100', _reactNative.Platform.select({
|
|
70
|
+
default: 'data-[active=true]:bg-blue-200',
|
|
71
|
+
web: 'data-[hover=true]:bg-blue-200 data-[active=true]:data-[hover=true]:bg-blue-300'
|
|
72
|
+
})]
|
|
73
|
+
}, {
|
|
74
|
+
variant: 'subtle',
|
|
75
|
+
color: 'secondary',
|
|
76
|
+
className: ['bg-amber-200', _reactNative.Platform.select({
|
|
77
|
+
default: 'data-[active=true]:bg-amber-300',
|
|
78
|
+
web: 'data-[hover=true]:bg-amber-300 data-[active=true]:data-[hover=true]:bg-amber-400'
|
|
79
|
+
})]
|
|
80
|
+
}, {
|
|
81
|
+
variant: 'subtle',
|
|
82
|
+
color: 'success',
|
|
83
|
+
className: ['bg-green-200', _reactNative.Platform.select({
|
|
84
|
+
default: 'data-[active=true]:bg-green-300',
|
|
85
|
+
web: 'data-[hover=true]:bg-green-300 data-[active=true]:data-[hover=true]:bg-green-400'
|
|
86
|
+
})]
|
|
87
|
+
}, {
|
|
88
|
+
variant: 'subtle',
|
|
89
|
+
color: 'danger',
|
|
90
|
+
className: ['bg-red-200', _reactNative.Platform.select({
|
|
91
|
+
default: 'data-[active=true]:bg-red-300',
|
|
92
|
+
web: 'data-[hover=true]:bg-red-300 data-[active=true]:data-[hover=true]:bg-red-400'
|
|
93
|
+
})]
|
|
94
|
+
}, {
|
|
95
|
+
variant: 'outline',
|
|
96
|
+
color: 'primary',
|
|
97
|
+
className: ['border-blue-500', _reactNative.Platform.select({
|
|
98
|
+
default: 'data-[active=true]:border-blue-700 data-[active=true]:bg-blue-100',
|
|
99
|
+
web: 'data-[hover=true]:border-blue-600 data-[hover=true]:bg-blue-100 data-[active=true]:data-[hover=true]:border-blue-700 data-[active=true]:data-[hover=true]:bg-blue-200'
|
|
100
|
+
})]
|
|
101
|
+
}, {
|
|
102
|
+
variant: 'outline',
|
|
103
|
+
color: 'secondary',
|
|
104
|
+
className: ['border-amber-500', _reactNative.Platform.select({
|
|
105
|
+
default: 'data-[active=true]:border-amber-700 data-[active=true]:bg-amber-50',
|
|
106
|
+
web: 'data-[hover=true]:border-amber-600 data-[hover=true]:bg-amber-50 data-[active=true]:data-[hover=true]:border-amber-700 data-[active=true]:data-[hover=true]:bg-amber-100'
|
|
107
|
+
})]
|
|
108
|
+
}, {
|
|
109
|
+
variant: 'outline',
|
|
110
|
+
color: 'success',
|
|
111
|
+
className: ['border-green-500', _reactNative.Platform.select({
|
|
112
|
+
default: 'data-[active=true]:border-green-700 data-[active=true]:bg-green-100',
|
|
113
|
+
web: 'data-[hover=true]:border-green-600 data-[hover=true]:bg-green-100 data-[active=true]:data-[hover=true]:border-green-700 data-[active=true]:data-[hover=true]:bg-green-200'
|
|
114
|
+
})]
|
|
115
|
+
}, {
|
|
116
|
+
variant: 'outline',
|
|
117
|
+
color: 'danger',
|
|
118
|
+
className: ['border-red-500', _reactNative.Platform.select({
|
|
119
|
+
default: 'data-[active=true]:border-red-700 data-[active=true]:bg-red-100',
|
|
120
|
+
web: 'data-[hover=true]:border-red-600 data-[hover=true]:bg-red-100 data-[active=true]:data-[hover=true]:border-red-700 data-[active=true]:data-[hover=true]:bg-red-200'
|
|
121
|
+
})]
|
|
122
|
+
}, {
|
|
123
|
+
variant: 'ghost',
|
|
124
|
+
color: 'primary',
|
|
125
|
+
className: ['bg-transparent', _reactNative.Platform.select({
|
|
126
|
+
default: 'data-[active=true]:bg-blue-100',
|
|
127
|
+
web: 'data-[hover=true]:bg-blue-50 data-[active=true]:data-[hover=true]:bg-blue-100'
|
|
128
|
+
})]
|
|
129
|
+
}, {
|
|
130
|
+
variant: 'ghost',
|
|
131
|
+
color: 'secondary',
|
|
132
|
+
className: ['bg-transparent', _reactNative.Platform.select({
|
|
133
|
+
default: 'data-[active=true]:bg-amber-100',
|
|
134
|
+
web: 'data-[hover=true]:bg-amber-50 data-[active=true]:data-[hover=true]:bg-amber-100'
|
|
135
|
+
})]
|
|
136
|
+
}, {
|
|
137
|
+
variant: 'ghost',
|
|
138
|
+
color: 'success',
|
|
139
|
+
className: ['bg-transparent', _reactNative.Platform.select({
|
|
140
|
+
default: 'data-[active=true]:bg-green-100',
|
|
141
|
+
web: 'data-[hover=true]:bg-green-50 data-[active=true]:data-[hover=true]:bg-green-100'
|
|
142
|
+
})]
|
|
143
|
+
}, {
|
|
144
|
+
variant: 'ghost',
|
|
145
|
+
color: 'danger',
|
|
146
|
+
className: ['bg-transparent', _reactNative.Platform.select({
|
|
147
|
+
default: 'data-[active=true]:bg-red-100',
|
|
148
|
+
web: 'data-[hover=true]:bg-red-50 data-[active=true]:data-[hover=true]:bg-red-100'
|
|
149
|
+
})]
|
|
150
|
+
}],
|
|
151
|
+
defaultVariants: {
|
|
152
|
+
variant: 'solid',
|
|
153
|
+
color: 'primary',
|
|
154
|
+
size: 'md',
|
|
155
|
+
fullWidth: false
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
const buttonTextVariants = exports.buttonTextVariants = (0, _classVarianceAuthority.cva)(['font-medium', 'text-center'], {
|
|
159
|
+
variants: {
|
|
160
|
+
variant: {
|
|
161
|
+
solid: 'text-white',
|
|
162
|
+
subtle: [],
|
|
163
|
+
outline: [],
|
|
164
|
+
ghost: []
|
|
165
|
+
},
|
|
166
|
+
color: {
|
|
167
|
+
primary: [],
|
|
168
|
+
secondary: [],
|
|
169
|
+
success: [],
|
|
170
|
+
danger: []
|
|
171
|
+
},
|
|
172
|
+
size: {
|
|
173
|
+
sm: 'text-sm',
|
|
174
|
+
md: 'text-base',
|
|
175
|
+
lg: 'text-lg'
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
compoundVariants: [{
|
|
179
|
+
variant: 'subtle',
|
|
180
|
+
color: 'primary',
|
|
181
|
+
className: 'text-blue-950'
|
|
182
|
+
}, {
|
|
183
|
+
variant: 'subtle',
|
|
184
|
+
color: 'secondary',
|
|
185
|
+
className: 'text-amber-950'
|
|
186
|
+
}, {
|
|
187
|
+
variant: 'subtle',
|
|
188
|
+
color: 'success',
|
|
189
|
+
className: 'text-green-950'
|
|
190
|
+
}, {
|
|
191
|
+
variant: 'subtle',
|
|
192
|
+
color: 'danger',
|
|
193
|
+
className: 'text-red-950'
|
|
194
|
+
}, {
|
|
195
|
+
variant: ['outline', 'ghost'],
|
|
196
|
+
color: 'primary',
|
|
197
|
+
className: ['text-blue-500', _reactNative.Platform.select({
|
|
198
|
+
default: 'data-[active=true]:text-blue-700',
|
|
199
|
+
web: 'data-[hover=true]:text-blue-600 data-[active=true]:data-[hover=true]:text-blue-700'
|
|
200
|
+
})]
|
|
201
|
+
}, {
|
|
202
|
+
variant: ['outline', 'ghost'],
|
|
203
|
+
color: 'secondary',
|
|
204
|
+
className: ['text-amber-600', _reactNative.Platform.select({
|
|
205
|
+
default: 'data-[active=true]:text-amber-800',
|
|
206
|
+
web: 'data-[hover=true]:text-amber-700 data-[active=true]:data-[hover=true]:text-amber-800'
|
|
207
|
+
})]
|
|
208
|
+
}, {
|
|
209
|
+
variant: ['outline', 'ghost'],
|
|
210
|
+
color: 'success',
|
|
211
|
+
className: ['text-green-600', _reactNative.Platform.select({
|
|
212
|
+
default: 'data-[active=true]:text-green-800',
|
|
213
|
+
web: 'data-[hover=true]:text-green-700 data-[active=true]:data-[hover=true]:text-green-800'
|
|
214
|
+
})]
|
|
215
|
+
}, {
|
|
216
|
+
variant: ['outline', 'ghost'],
|
|
217
|
+
color: 'danger',
|
|
218
|
+
className: ['text-red-500', _reactNative.Platform.select({
|
|
219
|
+
default: 'data-[active=true]:text-red-700',
|
|
220
|
+
web: 'data-[hover=true]:text-red-600 data-[active=true]:data-[hover=true]:text-red-700'
|
|
221
|
+
})]
|
|
222
|
+
}],
|
|
223
|
+
defaultVariants: {
|
|
224
|
+
variant: 'solid',
|
|
225
|
+
color: 'primary',
|
|
226
|
+
size: 'md'
|
|
227
|
+
}
|
|
228
|
+
});
|
|
229
|
+
const buttonSpinnerVariants = exports.buttonSpinnerVariants = (0, _classVarianceAuthority.cva)([], {
|
|
230
|
+
variants: {
|
|
231
|
+
variant: {
|
|
232
|
+
solid: 'accent-white',
|
|
233
|
+
subtle: [],
|
|
234
|
+
outline: [],
|
|
235
|
+
ghost: []
|
|
236
|
+
},
|
|
237
|
+
color: {
|
|
238
|
+
primary: [],
|
|
239
|
+
secondary: [],
|
|
240
|
+
success: [],
|
|
241
|
+
danger: []
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
compoundVariants: [{
|
|
245
|
+
variant: 'subtle',
|
|
246
|
+
color: 'primary',
|
|
247
|
+
className: 'accent-blue-950'
|
|
248
|
+
}, {
|
|
249
|
+
variant: 'subtle',
|
|
250
|
+
color: 'secondary',
|
|
251
|
+
className: 'accent-amber-950'
|
|
252
|
+
}, {
|
|
253
|
+
variant: 'subtle',
|
|
254
|
+
color: 'success',
|
|
255
|
+
className: 'accent-green-950'
|
|
256
|
+
}, {
|
|
257
|
+
variant: 'subtle',
|
|
258
|
+
color: 'danger',
|
|
259
|
+
className: 'accent-red-950'
|
|
260
|
+
}, {
|
|
261
|
+
variant: ['outline', 'ghost'],
|
|
262
|
+
color: 'primary',
|
|
263
|
+
className: 'accent-blue-500'
|
|
264
|
+
}, {
|
|
265
|
+
variant: ['outline', 'ghost'],
|
|
266
|
+
color: 'secondary',
|
|
267
|
+
className: 'accent-amber-600'
|
|
268
|
+
}, {
|
|
269
|
+
variant: ['outline', 'ghost'],
|
|
270
|
+
color: 'success',
|
|
271
|
+
className: 'accent-green-600'
|
|
272
|
+
}, {
|
|
273
|
+
variant: ['outline', 'ghost'],
|
|
274
|
+
color: 'danger',
|
|
275
|
+
className: 'accent-red-500'
|
|
276
|
+
}],
|
|
277
|
+
defaultVariants: {
|
|
278
|
+
variant: 'solid',
|
|
279
|
+
color: 'primary'
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
const buttonGroupVariants = exports.buttonGroupVariants = (0, _classVarianceAuthority.cva)([], {
|
|
283
|
+
variants: {
|
|
284
|
+
flexDirection: {
|
|
285
|
+
row: _reactNative.Platform.select({
|
|
286
|
+
web: 'flex-row',
|
|
287
|
+
default: ''
|
|
288
|
+
}),
|
|
289
|
+
column: _reactNative.Platform.select({
|
|
290
|
+
web: 'flex-col',
|
|
291
|
+
default: ''
|
|
292
|
+
}),
|
|
293
|
+
'row-reverse': _reactNative.Platform.select({
|
|
294
|
+
web: 'flex-row-reverse',
|
|
295
|
+
default: ''
|
|
296
|
+
}),
|
|
297
|
+
'column-reverse': _reactNative.Platform.select({
|
|
298
|
+
web: 'flex-col-reverse',
|
|
299
|
+
default: ''
|
|
300
|
+
})
|
|
301
|
+
},
|
|
302
|
+
isAttached: {
|
|
303
|
+
true: 'gap-0',
|
|
304
|
+
false: 'gap-2'
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
defaultVariants: {
|
|
308
|
+
flexDirection: 'row',
|
|
309
|
+
isAttached: false
|
|
310
|
+
}
|
|
311
|
+
});
|
|
312
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_classVarianceAuthority","buttonRootVariants","exports","cva","variants","variant","solid","subtle","outline","ghost","color","primary","secondary","success","danger","size","sm","md","lg","fullWidth","true","false","compoundVariants","className","Platform","select","default","web","defaultVariants","buttonTextVariants","buttonSpinnerVariants","buttonGroupVariants","flexDirection","row","column","isAttached"],"sourceRoot":"../../../../src","sources":["components/Button/styles.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,uBAAA,GAAAD,OAAA;AAEA;AACA;;AAEO,MAAME,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,GAAG,IAAAE,2BAAG,EACnC,CACE,sCAAsC,EACtC,YAAY,EACZ,gCAAgC;AAAE;AAClC,kHAAkH,EAClH,uJAAuJ,CACxJ,EACD;EACEC,QAAQ,EAAE;IACRC,OAAO,EAAE;MACPC,KAAK,EAAE,EAAE;MACTC,MAAM,EAAE,EAAE;MACVC,OAAO,EAAE,CACP,qCAAqC,EACrC,8BAA8B,EAC9B,sCAAsC,CACvC;MACDC,KAAK,EAAE,CACL,gBAAgB,EAChB,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E,KAAK;IACpBG,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require"],"sourceRoot":"../../../../src","sources":["components/Input/BaseInput.tsx"],"mappings":";;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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,SAAAD,wBAAAI,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAN,uBAAA,YAAAA,CAAAI,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IAAAD,CAAA,CAAAC,CAAA,WAAAO,CAAA,KAAAR,CAAA,EAAAC,CAA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