@youversion/design-system-components 0.11.0 → 0.13.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/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @youversion/design-system-components
2
2
 
3
+ ## 0.13.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 6de073f: Fixed segemented control styles to fit design
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [35271ef]
12
+ - @youversion/design-system-icons@0.1.0
13
+
14
+ ## 0.12.0
15
+
16
+ ### Minor Changes
17
+
18
+ - de1054a: updated segmented control onChange
19
+
3
20
  ## 0.11.0
4
21
 
5
22
  ### Minor Changes
@@ -2,7 +2,7 @@ export type SegmentedControlValue = string | number;
2
2
  export interface SegmentedControlProps {
3
3
  className?: string;
4
4
  defaultValue?: number;
5
- onChange?: (value: SegmentedControlValue) => void;
5
+ onChange?: (index: number) => void;
6
6
  values: Array<SegmentedControlValue>;
7
7
  }
8
8
  export declare const SegmentedControl: import("react").ForwardRefExoticComponent<SegmentedControlProps & import("react").RefAttributes<HTMLAnchorElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"SegmentedControl.d.ts","sourceRoot":"","sources":["../../../src/SegmentedControl/SegmentedControl.tsx"],"names":[],"mappings":"AAKA,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,MAAM,CAAC;AACpD,MAAM,WAAW,qBAAqB;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAClD,MAAM,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAAC;CACtC;AAmCD,eAAO,MAAM,gBAAgB,qHAAwC,CAAC"}
1
+ {"version":3,"file":"SegmentedControl.d.ts","sourceRoot":"","sources":["../../../src/SegmentedControl/SegmentedControl.tsx"],"names":[],"mappings":"AAKA,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,MAAM,CAAC;AACpD,MAAM,WAAW,qBAAqB;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,MAAM,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAAC;CACtC;AAoCD,eAAO,MAAM,gBAAgB,qHAAwC,CAAC"}
@@ -2,9 +2,10 @@ import { SegmentedControlValue } from '.';
2
2
  export interface SegmentedItemProps {
3
3
  activeIndex: number;
4
4
  currentIndex: number;
5
+ lastIndex: number;
5
6
  onSelectedValue: (index: number) => void;
6
7
  prevIndex: number;
7
8
  value: SegmentedControlValue;
8
9
  }
9
- export declare function SegmentedControlItem({ activeIndex, currentIndex, onSelectedValue, prevIndex, value, }: SegmentedItemProps): JSX.Element;
10
+ export declare function SegmentedControlItem({ activeIndex, currentIndex, lastIndex, onSelectedValue, prevIndex, value, }: SegmentedItemProps): JSX.Element;
10
11
  //# sourceMappingURL=SegmentedControlItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SegmentedControlItem.d.ts","sourceRoot":"","sources":["../../../src/SegmentedControl/SegmentedControlItem.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,GAAG,CAAC;AAE1C,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,qBAAqB,CAAC;CAC9B;AAED,wBAAgB,oBAAoB,CAAC,EACnC,WAAW,EACX,YAAY,EACZ,eAAe,EACf,SAAS,EACT,KAAK,GACN,EAAE,kBAAkB,eAsBpB"}
1
+ {"version":3,"file":"SegmentedControlItem.d.ts","sourceRoot":"","sources":["../../../src/SegmentedControl/SegmentedControlItem.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,GAAG,CAAC;AAE1C,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,qBAAqB,CAAC;CAC9B;AAED,wBAAgB,oBAAoB,CAAC,EACnC,WAAW,EACX,YAAY,EACZ,SAAS,EACT,eAAe,EACf,SAAS,EACT,KAAK,GACN,EAAE,kBAAkB,eAwBpB"}