@candiesocean/craftui 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +20 -0
- package/README.md +45 -0
- package/lib/module/button.js +170 -0
- package/lib/module/button.js.map +1 -0
- package/lib/module/image.js +4 -0
- package/lib/module/image.js.map +1 -0
- package/lib/module/index.js +11 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/internal/cn.js +8 -0
- package/lib/module/internal/cn.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/pressable.js +7 -0
- package/lib/module/pressable.js.map +1 -0
- package/lib/module/squircle.js +9 -0
- package/lib/module/squircle.js.map +1 -0
- package/lib/module/text.js +42 -0
- package/lib/module/text.js.map +1 -0
- package/lib/module/theme.js +33 -0
- package/lib/module/theme.js.map +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/button.d.ts +181 -0
- package/lib/typescript/src/button.d.ts.map +1 -0
- package/lib/typescript/src/image.d.ts +2 -0
- package/lib/typescript/src/image.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +12 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/internal/cn.d.ts +3 -0
- package/lib/typescript/src/internal/cn.d.ts.map +1 -0
- package/lib/typescript/src/pressable.d.ts +7 -0
- package/lib/typescript/src/pressable.d.ts.map +1 -0
- package/lib/typescript/src/squircle.d.ts +1529 -0
- package/lib/typescript/src/squircle.d.ts.map +1 -0
- package/lib/typescript/src/text.d.ts +43 -0
- package/lib/typescript/src/text.d.ts.map +1 -0
- package/lib/typescript/src/theme.d.ts +22 -0
- package/lib/typescript/src/theme.d.ts.map +1 -0
- package/package.json +121 -0
- package/src/button.tsx +202 -0
- package/src/image.tsx +1 -0
- package/src/index.tsx +25 -0
- package/src/internal/cn.ts +7 -0
- package/src/pressable.tsx +6 -0
- package/src/squircle.tsx +8 -0
- package/src/text.tsx +47 -0
- package/src/theme.ts +37 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 om
|
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
6
|
+
in the Software without restriction, including without limitation the rights
|
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
9
|
+
furnished to do so, subject to the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
20
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# craftui
|
|
2
|
+
|
|
3
|
+
Minimal React Native UI primitives for Expo apps using Uniwind, Pressto, and rn-squircle.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npm install @candiesocean/craftui
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Install the required peer dependencies in the host app as well:
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
npm install expo expo-image pressto rn-squircle uniwind react-native-gesture-handler react-native-reanimated react-native-worklets
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
```js
|
|
20
|
+
import { Button, Squircle, Text } from '@candiesocean/craftui';
|
|
21
|
+
|
|
22
|
+
// ...
|
|
23
|
+
|
|
24
|
+
<Squircle borderRadius={24} className="bg-card p-6">
|
|
25
|
+
<Text variant="title">Hello</Text>
|
|
26
|
+
<Button label="Continue" />
|
|
27
|
+
</Squircle>;
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Notes
|
|
31
|
+
|
|
32
|
+
- `craftui` is provider-free. It reads your Uniwind theme from CSS variables.
|
|
33
|
+
- The host app should define the color tokens used by the library, such as `--color-primary`, `--color-foreground`, and `--color-border`.
|
|
34
|
+
- `Button` stays generic on purpose. If your app has its own icon system, compose it through accessories or an app-side wrapper.
|
|
35
|
+
- Keep token names semantic so different apps can skin the same components without changing library code.
|
|
36
|
+
|
|
37
|
+
## Contributing
|
|
38
|
+
|
|
39
|
+
- [Development workflow](CONTRIBUTING.md#development-workflow)
|
|
40
|
+
- [Sending a pull request](CONTRIBUTING.md#sending-a-pull-request)
|
|
41
|
+
- [Code of conduct](CODE_OF_CONDUCT.md)
|
|
42
|
+
|
|
43
|
+
## License
|
|
44
|
+
|
|
45
|
+
MIT
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { ActivityIndicator, View } from 'react-native';
|
|
4
|
+
import { tv } from 'tailwind-variants';
|
|
5
|
+
import { withUniwind } from 'uniwind';
|
|
6
|
+
import { cn } from "./internal/cn.js";
|
|
7
|
+
import Pressable from "./pressable.js";
|
|
8
|
+
import Squircle from "./squircle.js";
|
|
9
|
+
import Text from "./text.js";
|
|
10
|
+
import { useThemeColor } from "./theme.js";
|
|
11
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
+
const StyledView = withUniwind(View);
|
|
13
|
+
export const buttonStyles = tv({
|
|
14
|
+
slots: {
|
|
15
|
+
container: 'items-center justify-center flex-row gap-2',
|
|
16
|
+
label: 'font-semibold'
|
|
17
|
+
},
|
|
18
|
+
variants: {
|
|
19
|
+
variant: {
|
|
20
|
+
'primary': {
|
|
21
|
+
container: 'bg-primary',
|
|
22
|
+
label: 'text-primary-foreground'
|
|
23
|
+
},
|
|
24
|
+
'secondary': {
|
|
25
|
+
container: 'bg-muted',
|
|
26
|
+
label: 'text-foreground'
|
|
27
|
+
},
|
|
28
|
+
'outline': {
|
|
29
|
+
container: 'bg-transparent border-2 border-border',
|
|
30
|
+
label: 'text-foreground'
|
|
31
|
+
},
|
|
32
|
+
'ghost': {
|
|
33
|
+
container: 'bg-transparent',
|
|
34
|
+
label: 'text-primary'
|
|
35
|
+
},
|
|
36
|
+
'destructive': {
|
|
37
|
+
container: 'bg-destructive',
|
|
38
|
+
label: 'text-primary-foreground'
|
|
39
|
+
},
|
|
40
|
+
'destructive-light': {
|
|
41
|
+
container: 'bg-destructive/10',
|
|
42
|
+
label: 'text-destructive'
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
size: {
|
|
46
|
+
sm: {
|
|
47
|
+
container: 'px-4 py-2',
|
|
48
|
+
label: 'text-sm'
|
|
49
|
+
},
|
|
50
|
+
default: {
|
|
51
|
+
container: 'px-6 py-4',
|
|
52
|
+
label: 'text-base'
|
|
53
|
+
},
|
|
54
|
+
lg: {
|
|
55
|
+
container: 'px-8 py-5',
|
|
56
|
+
label: 'text-lg'
|
|
57
|
+
},
|
|
58
|
+
icon: {
|
|
59
|
+
container: 'p-2',
|
|
60
|
+
label: ''
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
disabled: {
|
|
64
|
+
true: {
|
|
65
|
+
container: 'opacity-50'
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
defaultVariants: {
|
|
70
|
+
variant: 'primary',
|
|
71
|
+
size: 'default',
|
|
72
|
+
disabled: false
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
export function useButtonForegroundColor(variant = 'primary') {
|
|
76
|
+
const primaryForeground = useThemeColor('primaryForeground');
|
|
77
|
+
const foreground = useThemeColor('foreground');
|
|
78
|
+
const primary = useThemeColor('primary');
|
|
79
|
+
const destructive = useThemeColor('destructive');
|
|
80
|
+
if (variant === 'secondary' || variant === 'outline') {
|
|
81
|
+
return foreground;
|
|
82
|
+
}
|
|
83
|
+
if (variant === 'ghost') {
|
|
84
|
+
return primary;
|
|
85
|
+
}
|
|
86
|
+
if (variant === 'destructive-light') {
|
|
87
|
+
return destructive;
|
|
88
|
+
}
|
|
89
|
+
return primaryForeground;
|
|
90
|
+
}
|
|
91
|
+
export function getButtonAccessorySize(size = 'default') {
|
|
92
|
+
if (size === 'sm') {
|
|
93
|
+
return 16;
|
|
94
|
+
}
|
|
95
|
+
if (size === 'lg') {
|
|
96
|
+
return 24;
|
|
97
|
+
}
|
|
98
|
+
return 20;
|
|
99
|
+
}
|
|
100
|
+
function Button({
|
|
101
|
+
children,
|
|
102
|
+
label,
|
|
103
|
+
variant = 'primary',
|
|
104
|
+
size = 'default',
|
|
105
|
+
disabled = false,
|
|
106
|
+
loading = false,
|
|
107
|
+
leadingAccessory,
|
|
108
|
+
trailingAccessory,
|
|
109
|
+
className,
|
|
110
|
+
labelClassName,
|
|
111
|
+
onPress,
|
|
112
|
+
...props
|
|
113
|
+
}) {
|
|
114
|
+
const styles = buttonStyles({
|
|
115
|
+
variant,
|
|
116
|
+
size,
|
|
117
|
+
disabled: disabled || loading
|
|
118
|
+
});
|
|
119
|
+
const foregroundColor = useButtonForegroundColor(variant);
|
|
120
|
+
const renderContent = () => {
|
|
121
|
+
if (children) {
|
|
122
|
+
return /*#__PURE__*/_jsx(StyledView, {
|
|
123
|
+
className: cn({
|
|
124
|
+
'opacity-0': loading
|
|
125
|
+
}),
|
|
126
|
+
children: children
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
130
|
+
children: [leadingAccessory && /*#__PURE__*/_jsx(StyledView, {
|
|
131
|
+
className: cn({
|
|
132
|
+
'opacity-0': loading
|
|
133
|
+
}),
|
|
134
|
+
children: leadingAccessory
|
|
135
|
+
}), label && /*#__PURE__*/_jsx(Text, {
|
|
136
|
+
className: cn(styles.label(), labelClassName, {
|
|
137
|
+
'opacity-0': loading
|
|
138
|
+
}),
|
|
139
|
+
children: label
|
|
140
|
+
}), trailingAccessory && /*#__PURE__*/_jsx(StyledView, {
|
|
141
|
+
className: cn({
|
|
142
|
+
'opacity-0': loading
|
|
143
|
+
}),
|
|
144
|
+
children: trailingAccessory
|
|
145
|
+
})]
|
|
146
|
+
});
|
|
147
|
+
};
|
|
148
|
+
return /*#__PURE__*/_jsx(Pressable, {
|
|
149
|
+
onPress: onPress,
|
|
150
|
+
enabled: !disabled && !loading,
|
|
151
|
+
accessibilityRole: "button",
|
|
152
|
+
accessibilityState: {
|
|
153
|
+
disabled: disabled || loading
|
|
154
|
+
},
|
|
155
|
+
...props,
|
|
156
|
+
children: /*#__PURE__*/_jsxs(Squircle, {
|
|
157
|
+
borderRadius: 12,
|
|
158
|
+
className: cn(styles.container(), className),
|
|
159
|
+
children: [renderContent(), loading && /*#__PURE__*/_jsx(StyledView, {
|
|
160
|
+
className: "absolute inset-0 items-center justify-center",
|
|
161
|
+
children: /*#__PURE__*/_jsx(ActivityIndicator, {
|
|
162
|
+
size: "small",
|
|
163
|
+
color: foregroundColor
|
|
164
|
+
})
|
|
165
|
+
})]
|
|
166
|
+
})
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
export default Button;
|
|
170
|
+
//# sourceMappingURL=button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ActivityIndicator","View","tv","withUniwind","cn","Pressable","Squircle","Text","useThemeColor","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","StyledView","buttonStyles","slots","container","label","variants","variant","size","sm","default","lg","icon","disabled","true","defaultVariants","useButtonForegroundColor","primaryForeground","foreground","primary","destructive","getButtonAccessorySize","Button","children","loading","leadingAccessory","trailingAccessory","className","labelClassName","onPress","props","styles","foregroundColor","renderContent","enabled","accessibilityRole","accessibilityState","borderRadius","color"],"sourceRoot":"../../src","sources":["button.tsx"],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Image","default"],"sourceRoot":"../../src","sources":["image.tsx"],"mappings":";;AAAA,SAASA,KAAK,IAAIC,OAAO,QAAQ,eAAY","ignoreList":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export { default as Button } from "./button.js";
|
|
4
|
+
export { buttonStyles, getButtonAccessorySize, useButtonForegroundColor } from "./button.js";
|
|
5
|
+
export { default as Image } from "./image.js";
|
|
6
|
+
export { default as Pressable } from "./pressable.js";
|
|
7
|
+
export { default as Squircle, Image as SquircleImage } from "./squircle.js";
|
|
8
|
+
export { default as Text } from "./text.js";
|
|
9
|
+
export { textStyles } from "./text.js";
|
|
10
|
+
export { requiredThemeVariables, themeColorVariables, useThemeColor, useThemeColors } from "./theme.js";
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["default","Button","buttonStyles","getButtonAccessorySize","useButtonForegroundColor","Image","Pressable","Squircle","SquircleImage","Text","textStyles","requiredThemeVariables","themeColorVariables","useThemeColor","useThemeColors"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,SAASA,OAAO,IAAIC,MAAM,QAAQ,aAAU;AAE5C,SACEC,YAAY,EACZC,sBAAsB,EACtBC,wBAAwB,QACnB,aAAU;AAEjB,SAASJ,OAAO,IAAIK,KAAK,QAAQ,YAAS;AAE1C,SAASL,OAAO,IAAIM,SAAS,QAAQ,gBAAa;AAElD,SAASN,OAAO,IAAIO,QAAQ,EAAEF,KAAK,IAAIG,aAAa,QAAQ,eAAY;AAExE,SAASR,OAAO,IAAIS,IAAI,QAAQ,WAAQ;AAExC,SAASC,UAAU,QAAQ,WAAQ;AAGnC,SACEC,sBAAsB,EACtBC,mBAAmB,EACnBC,aAAa,EACbC,cAAc,QACT,YAAS","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["clsx","twMerge","cn","inputs"],"sourceRoot":"../../../src","sources":["internal/cn.ts"],"mappings":";;AACA,SAASA,IAAI,QAAQ,MAAM;AAC3B,SAASC,OAAO,QAAQ,gBAAgB;AAExC,OAAO,SAASC,EAAEA,CAAC,GAAGC,MAAoB,EAAE;EAC1C,OAAOF,OAAO,CAACD,IAAI,CAACG,MAAM,CAAC,CAAC;AAC9B","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["PressableScale","withUniwind","Pressable"],"sourceRoot":"../../src","sources":["pressable.tsx"],"mappings":";;AAAA,SAASA,cAAc,QAAQ,SAAS;AACxC,SAASC,WAAW,QAAQ,SAAS;AAErC,MAAMC,SAAS,GAAGD,WAAW,CAACD,cAAc,CAAC;AAE7C,eAAeE,SAAS","ignoreList":[]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { SquircleImage, SquircleView } from 'rn-squircle';
|
|
4
|
+
import { withUniwind } from 'uniwind';
|
|
5
|
+
const Squircle = withUniwind(SquircleView);
|
|
6
|
+
const Image = withUniwind(SquircleImage);
|
|
7
|
+
export default Squircle;
|
|
8
|
+
export { Image, Image as SquircleImage };
|
|
9
|
+
//# sourceMappingURL=squircle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["SquircleImage","SquircleView","withUniwind","Squircle","Image"],"sourceRoot":"../../src","sources":["squircle.tsx"],"mappings":";;AAAA,SAASA,aAAa,EAAEC,YAAY,QAAQ,aAAa;AACzD,SAASC,WAAW,QAAQ,SAAS;AAErC,MAAMC,QAAQ,GAAGD,WAAW,CAACD,YAAY,CAAC;AAC1C,MAAMG,KAAK,GAAGF,WAAW,CAACF,aAAa,CAAC;AAExC,eAAeG,QAAQ;AACvB,SAASC,KAAK,EAAEA,KAAK,IAAIJ,aAAa","ignoreList":[]}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { Text as RNText } from 'react-native';
|
|
4
|
+
import { tv } from 'tailwind-variants';
|
|
5
|
+
import { withUniwind } from 'uniwind';
|
|
6
|
+
import { cn } from "./internal/cn.js";
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
const StyledText = withUniwind(RNText);
|
|
9
|
+
export const textStyles = tv({
|
|
10
|
+
base: 'text-foreground',
|
|
11
|
+
variants: {
|
|
12
|
+
variant: {
|
|
13
|
+
'display': 'text-3xl font-bold',
|
|
14
|
+
'title': 'text-2xl font-bold',
|
|
15
|
+
'subtitle': 'text-xl font-semibold',
|
|
16
|
+
'body': 'text-base',
|
|
17
|
+
'body-secondary': 'text-base text-text-secondary',
|
|
18
|
+
'caption': 'text-sm',
|
|
19
|
+
'caption-secondary': 'text-sm text-text-secondary',
|
|
20
|
+
'button': 'text-base font-semibold text-primary-foreground'
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
defaultVariants: {
|
|
24
|
+
variant: 'body'
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
function Text({
|
|
28
|
+
variant = 'body',
|
|
29
|
+
children,
|
|
30
|
+
className,
|
|
31
|
+
...props
|
|
32
|
+
}) {
|
|
33
|
+
return /*#__PURE__*/_jsx(StyledText, {
|
|
34
|
+
className: cn(textStyles({
|
|
35
|
+
variant
|
|
36
|
+
}), className),
|
|
37
|
+
...props,
|
|
38
|
+
children: children
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
export default Text;
|
|
42
|
+
//# sourceMappingURL=text.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Text","RNText","tv","withUniwind","cn","jsx","_jsx","StyledText","textStyles","base","variants","variant","defaultVariants","children","className","props"],"sourceRoot":"../../src","sources":["text.tsx"],"mappings":";;AACA,SAASA,IAAI,IAAIC,MAAM,QAAQ,cAAc;AAE7C,SAASC,EAAE,QAAQ,mBAAmB;AACtC,SAASC,WAAW,QAAQ,SAAS;AACrC,SAASC,EAAE,QAAQ,kBAAe;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEnC,MAAMC,UAAU,GAAGJ,WAAW,CAACF,MAAM,CAAC;AAEtC,OAAO,MAAMO,UAAU,GAAGN,EAAE,CAAC;EAC3BO,IAAI,EAAE,iBAAiB;EACvBC,QAAQ,EAAE;IACRC,OAAO,EAAE;MACP,SAAS,EAAE,oBAAoB;MAC/B,OAAO,EAAE,oBAAoB;MAC7B,UAAU,EAAE,uBAAuB;MACnC,MAAM,EAAE,WAAW;MACnB,gBAAgB,EAAE,+BAA+B;MACjD,SAAS,EAAE,SAAS;MACpB,mBAAmB,EAAE,6BAA6B;MAClD,QAAQ,EAAE;IACZ;EACF,CAAC;EACDC,eAAe,EAAE;IACfD,OAAO,EAAE;EACX;AACF,CAAC,CAAC;AAYF,SAASX,IAAIA,CAAC;EAAEW,OAAO,GAAG,MAAM;EAAEE,QAAQ;EAAEC,SAAS;EAAE,GAAGC;AAAiB,CAAC,EAAE;EAC5E,oBACET,IAAA,CAACC,UAAU;IAACO,SAAS,EAAEV,EAAE,CAACI,UAAU,CAAC;MAAEG;IAAQ,CAAC,CAAC,EAAEG,SAAS,CAAE;IAAA,GAAKC,KAAK;IAAAF,QAAA,EACrEA;EAAQ,CACC,CAAC;AAEjB;AAEA,eAAeb,IAAI","ignoreList":[]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useCSSVariable } from 'uniwind';
|
|
4
|
+
export const themeColorVariables = {
|
|
5
|
+
background: '--color-background',
|
|
6
|
+
backgroundElement: '--color-background-element',
|
|
7
|
+
foreground: '--color-foreground',
|
|
8
|
+
text: '--color-text',
|
|
9
|
+
textSecondary: '--color-text-secondary',
|
|
10
|
+
primary: '--color-primary',
|
|
11
|
+
primaryForeground: '--color-primary-foreground',
|
|
12
|
+
muted: '--color-muted',
|
|
13
|
+
mutedForeground: '--color-muted-foreground',
|
|
14
|
+
card: '--color-card',
|
|
15
|
+
cardForeground: '--color-card-foreground',
|
|
16
|
+
border: '--color-border',
|
|
17
|
+
destructive: '--color-destructive',
|
|
18
|
+
success: '--color-success',
|
|
19
|
+
warning: '--color-warning'
|
|
20
|
+
};
|
|
21
|
+
export const requiredThemeVariables = Object.values(themeColorVariables);
|
|
22
|
+
export function useThemeColor(colorName) {
|
|
23
|
+
return useCSSVariable(themeColorVariables[colorName]);
|
|
24
|
+
}
|
|
25
|
+
export function useThemeColors() {
|
|
26
|
+
const values = useCSSVariable(requiredThemeVariables);
|
|
27
|
+
const colorNames = Object.keys(themeColorVariables);
|
|
28
|
+
return colorNames.reduce((acc, name, index) => {
|
|
29
|
+
acc[name] = values[index] ?? '';
|
|
30
|
+
return acc;
|
|
31
|
+
}, {});
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=theme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useCSSVariable","themeColorVariables","background","backgroundElement","foreground","text","textSecondary","primary","primaryForeground","muted","mutedForeground","card","cardForeground","border","destructive","success","warning","requiredThemeVariables","Object","values","useThemeColor","colorName","useThemeColors","colorNames","keys","reduce","acc","name","index"],"sourceRoot":"../../src","sources":["theme.ts"],"mappings":";;AAAA,SAASA,cAAc,QAAQ,SAAS;AAExC,OAAO,MAAMC,mBAAmB,GAAG;EACjCC,UAAU,EAAE,oBAAoB;EAChCC,iBAAiB,EAAE,4BAA4B;EAC/CC,UAAU,EAAE,oBAAoB;EAChCC,IAAI,EAAE,cAAc;EACpBC,aAAa,EAAE,wBAAwB;EACvCC,OAAO,EAAE,iBAAiB;EAC1BC,iBAAiB,EAAE,4BAA4B;EAC/CC,KAAK,EAAE,eAAe;EACtBC,eAAe,EAAE,0BAA0B;EAC3CC,IAAI,EAAE,cAAc;EACpBC,cAAc,EAAE,yBAAyB;EACzCC,MAAM,EAAE,gBAAgB;EACxBC,WAAW,EAAE,qBAAqB;EAClCC,OAAO,EAAE,iBAAiB;EAC1BC,OAAO,EAAE;AACX,CAAU;AAIV,OAAO,MAAMC,sBAAsB,GAAGC,MAAM,CAACC,MAAM,CAAClB,mBAAmB,CAAC;AAExE,OAAO,SAASmB,aAAaA,CAACC,SAAyB,EAAU;EAC/D,OAAOrB,cAAc,CAACC,mBAAmB,CAACoB,SAAS,CAAC,CAAC;AACvD;AAEA,OAAO,SAASC,cAAcA,CAAA,EAAmC;EAC/D,MAAMH,MAAM,GAAGnB,cAAc,CAACiB,sBAAsB,CAAa;EACjE,MAAMM,UAAU,GAAGL,MAAM,CAACM,IAAI,CAACvB,mBAAmB,CAAqB;EAEvE,OAAOsB,UAAU,CAACE,MAAM,CAAC,CAACC,GAAG,EAAEC,IAAI,EAAEC,KAAK,KAAK;IAC7CF,GAAG,CAACC,IAAI,CAAC,GAAGR,MAAM,CAACS,KAAK,CAAC,IAAI,EAAE;IAC/B,OAAOF,GAAG;EACZ,CAAC,EAAE,CAAC,CAAmC,CAAC;AAC1C","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import type { CustomPressableProps } from 'pressto';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
import type { VariantProps } from 'tailwind-variants';
|
|
4
|
+
export declare const buttonStyles: import("tailwind-variants").TVReturnType<{
|
|
5
|
+
variant: {
|
|
6
|
+
primary: {
|
|
7
|
+
container: string;
|
|
8
|
+
label: string;
|
|
9
|
+
};
|
|
10
|
+
secondary: {
|
|
11
|
+
container: string;
|
|
12
|
+
label: string;
|
|
13
|
+
};
|
|
14
|
+
outline: {
|
|
15
|
+
container: string;
|
|
16
|
+
label: string;
|
|
17
|
+
};
|
|
18
|
+
ghost: {
|
|
19
|
+
container: string;
|
|
20
|
+
label: string;
|
|
21
|
+
};
|
|
22
|
+
destructive: {
|
|
23
|
+
container: string;
|
|
24
|
+
label: string;
|
|
25
|
+
};
|
|
26
|
+
'destructive-light': {
|
|
27
|
+
container: string;
|
|
28
|
+
label: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
size: {
|
|
32
|
+
sm: {
|
|
33
|
+
container: string;
|
|
34
|
+
label: string;
|
|
35
|
+
};
|
|
36
|
+
default: {
|
|
37
|
+
container: string;
|
|
38
|
+
label: string;
|
|
39
|
+
};
|
|
40
|
+
lg: {
|
|
41
|
+
container: string;
|
|
42
|
+
label: string;
|
|
43
|
+
};
|
|
44
|
+
icon: {
|
|
45
|
+
container: string;
|
|
46
|
+
label: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
disabled: {
|
|
50
|
+
true: {
|
|
51
|
+
container: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
}, {
|
|
55
|
+
container: string;
|
|
56
|
+
label: string;
|
|
57
|
+
}, undefined, {
|
|
58
|
+
variant: {
|
|
59
|
+
primary: {
|
|
60
|
+
container: string;
|
|
61
|
+
label: string;
|
|
62
|
+
};
|
|
63
|
+
secondary: {
|
|
64
|
+
container: string;
|
|
65
|
+
label: string;
|
|
66
|
+
};
|
|
67
|
+
outline: {
|
|
68
|
+
container: string;
|
|
69
|
+
label: string;
|
|
70
|
+
};
|
|
71
|
+
ghost: {
|
|
72
|
+
container: string;
|
|
73
|
+
label: string;
|
|
74
|
+
};
|
|
75
|
+
destructive: {
|
|
76
|
+
container: string;
|
|
77
|
+
label: string;
|
|
78
|
+
};
|
|
79
|
+
'destructive-light': {
|
|
80
|
+
container: string;
|
|
81
|
+
label: string;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
size: {
|
|
85
|
+
sm: {
|
|
86
|
+
container: string;
|
|
87
|
+
label: string;
|
|
88
|
+
};
|
|
89
|
+
default: {
|
|
90
|
+
container: string;
|
|
91
|
+
label: string;
|
|
92
|
+
};
|
|
93
|
+
lg: {
|
|
94
|
+
container: string;
|
|
95
|
+
label: string;
|
|
96
|
+
};
|
|
97
|
+
icon: {
|
|
98
|
+
container: string;
|
|
99
|
+
label: string;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
disabled: {
|
|
103
|
+
true: {
|
|
104
|
+
container: string;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
}, {
|
|
108
|
+
container: string;
|
|
109
|
+
label: string;
|
|
110
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
111
|
+
variant: {
|
|
112
|
+
primary: {
|
|
113
|
+
container: string;
|
|
114
|
+
label: string;
|
|
115
|
+
};
|
|
116
|
+
secondary: {
|
|
117
|
+
container: string;
|
|
118
|
+
label: string;
|
|
119
|
+
};
|
|
120
|
+
outline: {
|
|
121
|
+
container: string;
|
|
122
|
+
label: string;
|
|
123
|
+
};
|
|
124
|
+
ghost: {
|
|
125
|
+
container: string;
|
|
126
|
+
label: string;
|
|
127
|
+
};
|
|
128
|
+
destructive: {
|
|
129
|
+
container: string;
|
|
130
|
+
label: string;
|
|
131
|
+
};
|
|
132
|
+
'destructive-light': {
|
|
133
|
+
container: string;
|
|
134
|
+
label: string;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
size: {
|
|
138
|
+
sm: {
|
|
139
|
+
container: string;
|
|
140
|
+
label: string;
|
|
141
|
+
};
|
|
142
|
+
default: {
|
|
143
|
+
container: string;
|
|
144
|
+
label: string;
|
|
145
|
+
};
|
|
146
|
+
lg: {
|
|
147
|
+
container: string;
|
|
148
|
+
label: string;
|
|
149
|
+
};
|
|
150
|
+
icon: {
|
|
151
|
+
container: string;
|
|
152
|
+
label: string;
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
disabled: {
|
|
156
|
+
true: {
|
|
157
|
+
container: string;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
}, {
|
|
161
|
+
container: string;
|
|
162
|
+
label: string;
|
|
163
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
164
|
+
type ButtonVariants = VariantProps<typeof buttonStyles>;
|
|
165
|
+
export type ButtonVariant = NonNullable<ButtonVariants['variant']>;
|
|
166
|
+
export type ButtonSize = NonNullable<ButtonVariants['size']>;
|
|
167
|
+
export interface ButtonProps extends Omit<CustomPressableProps, 'children' | 'onPress'>, ButtonVariants {
|
|
168
|
+
children?: ReactNode;
|
|
169
|
+
label?: string;
|
|
170
|
+
loading?: boolean;
|
|
171
|
+
leadingAccessory?: ReactNode;
|
|
172
|
+
trailingAccessory?: ReactNode;
|
|
173
|
+
className?: string;
|
|
174
|
+
labelClassName?: string;
|
|
175
|
+
onPress?: () => void | Promise<void>;
|
|
176
|
+
}
|
|
177
|
+
export declare function useButtonForegroundColor(variant?: ButtonVariant): string;
|
|
178
|
+
export declare function getButtonAccessorySize(size?: ButtonSize): number;
|
|
179
|
+
declare function Button({ children, label, variant, size, disabled, loading, leadingAccessory, trailingAccessory, className, labelClassName, onPress, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
180
|
+
export default Button;
|
|
181
|
+
//# sourceMappingURL=button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAWtD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CA6DvB,CAAC;AAEH,KAAK,cAAc,GAAG,YAAY,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD,MAAM,MAAM,aAAa,GAAG,WAAW,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,CAAC;AACnE,MAAM,MAAM,UAAU,GAAG,WAAW,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;AAE7D,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,oBAAoB,EAAE,UAAU,GAAG,SAAS,CAAC,EACxD,cAAc;IAChB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAC7B,iBAAiB,CAAC,EAAE,SAAS,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACtC;AAED,wBAAgB,wBAAwB,CACtC,OAAO,GAAE,aAAyB,GACjC,MAAM,CAmBR;AAED,wBAAgB,sBAAsB,CAAC,IAAI,GAAE,UAAsB,GAAG,MAAM,CAU3E;AAED,iBAAS,MAAM,CAAC,EACd,QAAQ,EACR,KAAK,EACL,OAAmB,EACnB,IAAgB,EAChB,QAAgB,EAChB,OAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,SAAS,EACT,cAAc,EACd,OAAO,EACP,GAAG,KAAK,EACT,EAAE,WAAW,2CAwDb;AAED,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../src/image.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,OAAO,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { default as Button } from './button';
|
|
2
|
+
export type { ButtonProps, ButtonSize, ButtonVariant } from './button';
|
|
3
|
+
export { buttonStyles, getButtonAccessorySize, useButtonForegroundColor, } from './button';
|
|
4
|
+
export { default as Image } from './image';
|
|
5
|
+
export { default as Pressable } from './pressable';
|
|
6
|
+
export { default as Squircle, Image as SquircleImage } from './squircle';
|
|
7
|
+
export { default as Text } from './text';
|
|
8
|
+
export type { TextProps, TextVariant } from './text';
|
|
9
|
+
export { textStyles } from './text';
|
|
10
|
+
export type { ThemeColorName } from './theme';
|
|
11
|
+
export { requiredThemeVariables, themeColorVariables, useThemeColor, useThemeColors, } from './theme';
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACvE,OAAO,EACL,YAAY,EACZ,sBAAsB,EACtB,wBAAwB,GACzB,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAE3C,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AAEnD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,KAAK,IAAI,aAAa,EAAE,MAAM,YAAY,CAAC;AAEzE,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEpC,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EACL,sBAAsB,EACtB,mBAAmB,EACnB,aAAa,EACb,cAAc,GACf,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cn.d.ts","sourceRoot":"","sources":["../../../../src/internal/cn.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAIvC,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pressable.d.ts","sourceRoot":"","sources":["../../../src/pressable.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,SAAS;;;;8DAA8B,CAAC;AAE9C,eAAe,SAAS,CAAC"}
|