@castui/cast-ui 0.4.0 → 0.4.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
CHANGED
|
@@ -39,7 +39,7 @@ See [`design-tokens/DESIGN-TOKENS-SUMMARY.md`](design-tokens/DESIGN-TOKENS-SUMMA
|
|
|
39
39
|
|
|
40
40
|
For live examples showing Cast UI components with custom themes (Consumer, Corporate, Luxury), see the companion repo:
|
|
41
41
|
|
|
42
|
-
**[Connagh/cast-ui-examples](https://github.com/Connagh/cast-ui-examples)** — includes
|
|
42
|
+
**[Connagh/cast-ui-examples](https://github.com/Connagh/cast-ui-examples)** — includes an Expo Snack demo showing `createTheme()` with custom themes running cross-platform (iOS, Android, Web).
|
|
43
43
|
|
|
44
44
|
## Project Structure
|
|
45
45
|
|
|
@@ -112,7 +112,7 @@ This writes to `src/tokens/generated/` (gitignored). Runs automatically before S
|
|
|
112
112
|
npm run storybook
|
|
113
113
|
```
|
|
114
114
|
|
|
115
|
-
Opens at `http://localhost:6006` showing components in the Default theme.
|
|
115
|
+
Opens at `http://localhost:6006` showing components in the Default theme.
|
|
116
116
|
|
|
117
117
|
## Scripts
|
|
118
118
|
|
|
@@ -403,7 +403,7 @@ import type { CastTheme, DeepPartial } from '@castui/cast-ui';
|
|
|
403
403
|
|
|
404
404
|
Storybook runs React Native components in the browser via React Native Web. The webpack config in `.storybook/main.ts` aliases `react-native` to `react-native-web`.
|
|
405
405
|
|
|
406
|
-
The built-in Storybook shows components in the **Default theme
|
|
406
|
+
The built-in Storybook shows components in the **Default theme**. For a cross-platform demo with custom themes, see the [Expo Snack](https://github.com/Connagh/cast-ui-examples/tree/main/expo-snack) in the examples repo.
|
|
407
407
|
|
|
408
408
|
### Chromatic
|
|
409
409
|
|
|
@@ -3,7 +3,7 @@ import type { CastTheme } from './types';
|
|
|
3
3
|
export interface CastThemeProviderProps {
|
|
4
4
|
/** The theme object to provide. Defaults to the Default base theme. */
|
|
5
5
|
theme?: CastTheme;
|
|
6
|
-
children
|
|
6
|
+
children?: React.ReactNode;
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* Wraps the component tree with the selected Cast theme.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../src/theme/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAazC,MAAM,WAAW,sBAAsB;IACrC,uEAAuE;IACvE,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../src/theme/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAazC,MAAM,WAAW,sBAAsB;IACrC,uEAAuE;IACvE,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,KAAoB,EACpB,QAAQ,GACT,EAAE,sBAAsB,2CAIxB;AAMD;;;;;;;;;GASG;AACH,wBAAgB,QAAQ,IAAI,SAAS,CAEpC"}
|
package/package.json
CHANGED