atlas-design-system 1.11.0 → 1.12.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.
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.Button = void 0;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const react_native_1 = require("react-native");
9
- const ButtonStyle_1 = require("./styles/ButtonStyle");
10
9
  const Text_1 = __importDefault(require("../Text"));
10
+ const ButtonStyle_1 = require("./styles/ButtonStyle");
11
11
  const Button = ({ testID, disabled = false, onPress, text, loading, containerStyle = {}, appearance = "primary", }) => {
12
12
  const { buttonStyle, styles, textStyle } = (0, ButtonStyle_1.useButtonStyles)(appearance, disabled);
13
13
  return (<react_native_1.TouchableOpacity testID={testID} style={[buttonStyle, containerStyle]} onPress={onPress} disabled={disabled || loading}>
@@ -35,7 +35,7 @@ const SIZE_MAP = {
35
35
  const DragHandle = ({ size = "medium" }) => {
36
36
  const styles = useStyles(size).styles;
37
37
  return (<react_native_1.View style={styles.container}>
38
- <react_native_1.View style={styles.handle}></react_native_1.View>
38
+ <react_native_1.View style={styles.handle}/>
39
39
  </react_native_1.View>);
40
40
  };
41
41
  exports.DragHandle = DragHandle;
@@ -5,8 +5,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.FormSegmentedControl = FormSegmentedControl;
7
7
  const informed_1 = require("informed");
8
- const SegmentedControl_1 = __importDefault(require("../../SegmentedControl"));
9
8
  const react_1 = require("react");
9
+ const SegmentedControl_1 = __importDefault(require("../../SegmentedControl"));
10
10
  function FormSegmentedControl(props) {
11
11
  const { render, userProps, fieldApi, informed, fieldState } = (0, informed_1.useField)(Object.assign({}, props));
12
12
  const { value } = informed;
@@ -5,8 +5,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.FormSelectInput = FormSelectInput;
7
7
  const informed_1 = require("informed");
8
- const SelectInput_1 = __importDefault(require("../../SelectInput"));
9
8
  const react_1 = require("react");
9
+ const SelectInput_1 = __importDefault(require("../../SelectInput"));
10
10
  function FormSelectInput(props) {
11
11
  const { render, userProps, fieldApi, informed, fieldState } = (0, informed_1.useField)(Object.assign({}, props));
12
12
  const { value } = informed;
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.RadioOptionItem = RadioOptionItem;
7
7
  const react_1 = require("react");
8
8
  const react_native_1 = require("react-native");
9
- const Text_1 = __importDefault(require("../Text"));
10
9
  const hooks_1 = require("../../hooks");
10
+ const Text_1 = __importDefault(require("../Text"));
11
11
  function RadioOptionItem({ option, onPress, renderItem, disabled, }) {
12
12
  const { label, value, selected } = option;
13
13
  const styles = useStyles(selected).styles;
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SegmentedControl = SegmentedControl;
4
4
  const react_native_1 = require("react-native");
5
- const Text_1 = require("../Text");
6
- const hooks_1 = require("../../hooks");
7
5
  const react_1 = require("react");
6
+ const hooks_1 = require("../../hooks");
7
+ const Text_1 = require("../Text");
8
8
  const FieldError_1 = require("../FieldError/FieldError");
9
9
  const MenuItemDescription_1 = require("../MenuItemDescription");
10
10
  function SegmentedControl({ label, options = [], silenceWarning, error, caption, onChange, }) {
@@ -35,8 +35,8 @@ const Sheet_1 = __importDefault(require("../Sheet"));
35
35
  const MenuItemDescription_1 = require("../MenuItemDescription");
36
36
  const hooks_1 = require("../../hooks");
37
37
  const useInputFieldAnimatedBorder_1 = require("../../hooks/useInputFieldAnimatedBorder");
38
- const SelectionItem_1 = __importDefault(require("./components/SelectionItem"));
39
38
  const Chevron_1 = __importDefault(require("../Chevron"));
39
+ const SelectionItem_1 = __importDefault(require("./components/SelectionItem"));
40
40
  function SelectInput({ caption, label, options = [], onChange, error, renderOption, containerStyle, }) {
41
41
  const styles = useStyles().styles;
42
42
  const value = (0, react_1.useMemo)(() => {
@@ -15,4 +15,5 @@ export * from "./RadioOptionItem";
15
15
  export * from "./RadioOptionInput";
16
16
  export * from "./Chevron";
17
17
  export * from "./CheckboxOptionInput";
18
+ export * from "./CheckboxOptionItem";
18
19
  export * from "./Forms";
@@ -31,5 +31,6 @@ __exportStar(require("./RadioOptionItem"), exports);
31
31
  __exportStar(require("./RadioOptionInput"), exports);
32
32
  __exportStar(require("./Chevron"), exports);
33
33
  __exportStar(require("./CheckboxOptionInput"), exports);
34
+ __exportStar(require("./CheckboxOptionItem"), exports);
34
35
  // Forms
35
36
  __exportStar(require("./Forms"), exports);
@@ -1,5 +1,5 @@
1
- export type TypographyVariants = 'h1xl' | 'h1' | 'h2' | 'h3' | 'p1' | 'p2' | 'p3';
2
- export type FontWeights = '200' | '300' | '400' | '500' | '700' | '800' | '900';
1
+ export type TypographyVariants = "h1xl" | "h1" | "h2" | "h3" | "p1" | "p2" | "p3";
2
+ export type FontWeights = "200" | "300" | "400" | "500" | "700" | "800" | "900";
3
3
  export interface TypographyStyles {
4
4
  fontSize: number;
5
5
  lineHeight: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "atlas-design-system",
3
- "version": "1.11.0",
3
+ "version": "1.12.0",
4
4
  "description": "A react native design system for the Atlas workout app",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",