@duro-app/ui 0.34.5 → 0.34.6
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/dist/index.native.d.ts +31 -0
- package/dist/index.native.d.ts.map +1 -0
- package/package.json +3 -2
- package/src/index.native.ts +36 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Native (React Native / Expo) entry — resolved via the `react-native` export
|
|
3
|
+
* condition (see package.json). Metro reads THIS instead of the web `index.ts`.
|
|
4
|
+
*
|
|
5
|
+
* Why a separate barrel: the web `index.ts` re-exports interactive/overlay
|
|
6
|
+
* components (Dialog, Drawer, Menu, Tabs, Select, Combobox, Form, ScrollArea,
|
|
7
|
+
* TagGroup, ThemeProvider's portal) that use web-only DOM APIs — and Combobox
|
|
8
|
+
* imports `react-dom`, so pulling the full barrel crashes on Metro. This barrel
|
|
9
|
+
* re-exports ONLY the components whose source is RN-safe (pure react-strict-dom
|
|
10
|
+
* `html` + `css`, audited 2026-06-02). The rest get RN variants in a later pass.
|
|
11
|
+
*
|
|
12
|
+
* Tokens resolve fine on native already: @duro-app/tokens's subpath exports
|
|
13
|
+
* (`./tokens/*.css`, `./themes/*.css`) point straight at their `.css.ts`
|
|
14
|
+
* source, so Metro/StyleX-native compile them directly.
|
|
15
|
+
*/
|
|
16
|
+
export { Badge, type BadgeVariant, type BadgeSize } from './components/Badge/Badge';
|
|
17
|
+
export { Button, type ButtonVariant, type ButtonSize } from './components/Button/Button';
|
|
18
|
+
export { Card, type CardVariant, type CardSize } from './components/Card/Card';
|
|
19
|
+
export { Checkbox } from './components/Checkbox/Checkbox';
|
|
20
|
+
export { Heading, type HeadingVariant } from './components/Heading/Heading';
|
|
21
|
+
export { Input, type InputVariant } from './components/Input/Input';
|
|
22
|
+
export { Switch } from './components/Switch/Switch';
|
|
23
|
+
export { Text, type TextVariant, type TextColor } from './components/Text/Text';
|
|
24
|
+
export { Textarea, type TextareaVariant } from './components/Textarea/Textarea';
|
|
25
|
+
export { Field } from './components/Field/Field';
|
|
26
|
+
export { InputGroup } from './components/InputGroup/InputGroup';
|
|
27
|
+
export { Stack, type SpacingKey } from './components/Stack/Stack';
|
|
28
|
+
export { Inline } from './components/Inline/Inline';
|
|
29
|
+
export { Cluster } from './components/Cluster/Cluster';
|
|
30
|
+
export { Grid } from './components/Grid/Grid';
|
|
31
|
+
//# sourceMappingURL=index.native.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../src/index.native.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAC,KAAK,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAC,MAAM,0BAA0B,CAAA;AACjF,OAAO,EAAC,MAAM,EAAE,KAAK,aAAa,EAAE,KAAK,UAAU,EAAC,MAAM,4BAA4B,CAAA;AACtF,OAAO,EAAC,IAAI,EAAE,KAAK,WAAW,EAAE,KAAK,QAAQ,EAAC,MAAM,wBAAwB,CAAA;AAC5E,OAAO,EAAC,QAAQ,EAAC,MAAM,gCAAgC,CAAA;AACvD,OAAO,EAAC,OAAO,EAAE,KAAK,cAAc,EAAC,MAAM,8BAA8B,CAAA;AACzE,OAAO,EAAC,KAAK,EAAE,KAAK,YAAY,EAAC,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAC,MAAM,EAAC,MAAM,4BAA4B,CAAA;AACjD,OAAO,EAAC,IAAI,EAAE,KAAK,WAAW,EAAE,KAAK,SAAS,EAAC,MAAM,wBAAwB,CAAA;AAC7E,OAAO,EAAC,QAAQ,EAAE,KAAK,eAAe,EAAC,MAAM,gCAAgC,CAAA;AAG7E,OAAO,EAAC,KAAK,EAAC,MAAM,0BAA0B,CAAA;AAC9C,OAAO,EAAC,UAAU,EAAC,MAAM,oCAAoC,CAAA;AAG7D,OAAO,EAAC,KAAK,EAAE,KAAK,UAAU,EAAC,MAAM,0BAA0B,CAAA;AAC/D,OAAO,EAAC,MAAM,EAAC,MAAM,4BAA4B,CAAA;AACjD,OAAO,EAAC,OAAO,EAAC,MAAM,8BAA8B,CAAA;AACpD,OAAO,EAAC,IAAI,EAAC,MAAM,wBAAwB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duro-app/ui",
|
|
3
|
-
"version": "0.34.
|
|
3
|
+
"version": "0.34.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"types": "dist/index.d.ts",
|
|
25
25
|
"exports": {
|
|
26
26
|
".": {
|
|
27
|
+
"react-native": "./src/index.native.ts",
|
|
27
28
|
"source": "./src/index.ts",
|
|
28
29
|
"import": "./dist/index.js",
|
|
29
30
|
"types": "./dist/index.d.ts"
|
|
@@ -53,7 +54,7 @@
|
|
|
53
54
|
}
|
|
54
55
|
},
|
|
55
56
|
"dependencies": {
|
|
56
|
-
"@duro-app/tokens": "^0.34.
|
|
57
|
+
"@duro-app/tokens": "^0.34.6"
|
|
57
58
|
},
|
|
58
59
|
"devDependencies": {
|
|
59
60
|
"@babel/preset-typescript": "^7.28.0",
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Native (React Native / Expo) entry — resolved via the `react-native` export
|
|
3
|
+
* condition (see package.json). Metro reads THIS instead of the web `index.ts`.
|
|
4
|
+
*
|
|
5
|
+
* Why a separate barrel: the web `index.ts` re-exports interactive/overlay
|
|
6
|
+
* components (Dialog, Drawer, Menu, Tabs, Select, Combobox, Form, ScrollArea,
|
|
7
|
+
* TagGroup, ThemeProvider's portal) that use web-only DOM APIs — and Combobox
|
|
8
|
+
* imports `react-dom`, so pulling the full barrel crashes on Metro. This barrel
|
|
9
|
+
* re-exports ONLY the components whose source is RN-safe (pure react-strict-dom
|
|
10
|
+
* `html` + `css`, audited 2026-06-02). The rest get RN variants in a later pass.
|
|
11
|
+
*
|
|
12
|
+
* Tokens resolve fine on native already: @duro-app/tokens's subpath exports
|
|
13
|
+
* (`./tokens/*.css`, `./themes/*.css`) point straight at their `.css.ts`
|
|
14
|
+
* source, so Metro/StyleX-native compile them directly.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
// Leaf primitives
|
|
18
|
+
export {Badge, type BadgeVariant, type BadgeSize} from './components/Badge/Badge'
|
|
19
|
+
export {Button, type ButtonVariant, type ButtonSize} from './components/Button/Button'
|
|
20
|
+
export {Card, type CardVariant, type CardSize} from './components/Card/Card'
|
|
21
|
+
export {Checkbox} from './components/Checkbox/Checkbox'
|
|
22
|
+
export {Heading, type HeadingVariant} from './components/Heading/Heading'
|
|
23
|
+
export {Input, type InputVariant} from './components/Input/Input'
|
|
24
|
+
export {Switch} from './components/Switch/Switch'
|
|
25
|
+
export {Text, type TextVariant, type TextColor} from './components/Text/Text'
|
|
26
|
+
export {Textarea, type TextareaVariant} from './components/Textarea/Textarea'
|
|
27
|
+
|
|
28
|
+
// Form field wrappers (RN-safe — used by Input/Textarea/Checkbox)
|
|
29
|
+
export {Field} from './components/Field/Field'
|
|
30
|
+
export {InputGroup} from './components/InputGroup/InputGroup'
|
|
31
|
+
|
|
32
|
+
// Layout primitives
|
|
33
|
+
export {Stack, type SpacingKey} from './components/Stack/Stack'
|
|
34
|
+
export {Inline} from './components/Inline/Inline'
|
|
35
|
+
export {Cluster} from './components/Cluster/Cluster'
|
|
36
|
+
export {Grid} from './components/Grid/Grid'
|