cdslibrary 1.0.8 → 1.0.10

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.
@@ -3,7 +3,7 @@ import { useTheme } from "../context/CDSThemeContext";
3
3
  import getSemanticTextStyles from "../tokens/CDSsemanticTextStyles";
4
4
  import { useState } from "react";
5
5
 
6
- export default function StyledInput({ label, type, keyboard, placeholder }) {
6
+ export const CDSInput = ({ label, type, keyboard, placeholder }) => {
7
7
  const { theme } = useTheme();
8
8
  const textStyles = getSemanticTextStyles(theme);
9
9
  const [text, setText] = useState("");
@@ -3,7 +3,7 @@ import { View, Text, Switch, StyleSheet } from "react-native";
3
3
  import { useTheme } from "../context/CDSThemeContext";
4
4
  import getSemanticTextStyles from "../tokens/CDSsemanticTextStyles";
5
5
 
6
- export default function CDSSwitch({ label }) {
6
+ export const CDSSwitch = ({ label }) => {
7
7
  const { theme } = useTheme();
8
8
  const textStyles = getSemanticTextStyles(theme);
9
9
  const [isEnabled, setIsEnabled] = useState(false);
package/index.js CHANGED
@@ -1,16 +1,16 @@
1
- import { registerRootComponent } from 'expo';
1
+ // import { registerRootComponent } from 'expo';
2
2
 
3
- import App from './App';
3
+ // import App from './App';
4
4
 
5
- // registerRootComponent calls AppRegistry.registerComponent('main', () => App);
6
- // It also ensures that whether you load the app in Expo Go or in a native build,
7
- // the environment is set up appropriately
8
- registerRootComponent(App);
5
+ // // registerRootComponent calls AppRegistry.registerComponent('main', () => App);
6
+ // // It also ensures that whether you load the app in Expo Go or in a native build,
7
+ // // the environment is set up appropriately
8
+ // registerRootComponent(App);
9
9
 
10
10
  export {CDSBottomSheet} from './components/CDSBottomSheet';
11
11
  export {CDSButton} from './components/CDSButton';
12
12
  export {CDSCarousel} from './components/CDSCarousel';
13
- export {CDSCarouselDots} from './components/CDSCarouselDots';
13
+ // export {CDSCarouselDots} from './components/CDSCarouselDots';
14
14
  export {CDSInput} from './components/CDSInput';
15
15
  export {CDSOnboarding} from './components/CDSOnboarding';
16
16
  export {CDSSwitch} from './components/CDSSwitch';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cdslibrary",
3
3
  "license": "0BSD",
4
- "version": "1.0.8",
4
+ "version": "1.0.10",
5
5
  "main": "index.js",
6
6
  "author": "Nat Viramontes",
7
7
  "description": "A library of components for the CDS project",