@youversion/design-system-components 1.5.0 → 1.7.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.
@@ -1,10 +1,14 @@
1
1
  /// <reference types="react" />
2
2
  export type SegmentedControlValue = string | number;
3
+ export type SegmentedControlSize = 'sm' | 'md' | 'lg';
3
4
  export interface SegmentedControlProps {
5
+ activeItemClassName?: string;
4
6
  className?: string;
5
7
  defaultValue?: number;
8
+ itemClassName?: string;
6
9
  onChange?: (index: number) => void;
10
+ size?: SegmentedControlSize;
7
11
  values: Array<SegmentedControlValue>;
8
12
  }
9
- export declare const SegmentedControl: import("react").ForwardRefExoticComponent<SegmentedControlProps & import("react").RefAttributes<HTMLAnchorElement>>;
13
+ export declare const SegmentedControl: import("react").ForwardRefExoticComponent<SegmentedControlProps & import("react").RefAttributes<HTMLDivElement>>;
10
14
  //# sourceMappingURL=SegmentedControl.d.ts.map
@@ -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,MAAM,KAAK,IAAI,CAAC;IACnC,MAAM,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAAC;CACtC;AAoCD,eAAO,MAAM,gBAAgB,qHAAwC,CAAC"}
1
+ {"version":3,"file":"SegmentedControl.d.ts","sourceRoot":"","sources":["../../../src/SegmentedControl/SegmentedControl.tsx"],"names":[],"mappings":";AAIA,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,MAAM,CAAC;AACpD,MAAM,MAAM,oBAAoB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACtD,MAAM,WAAW,qBAAqB;IACpC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,IAAI,CAAC,EAAE,oBAAoB,CAAC;IAC5B,MAAM,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAAC;CACtC;AAgDD,eAAO,MAAM,gBAAgB,kHAAwC,CAAC"}
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("./SegmentedControl").SegmentedControlProps & import("react").RefAttributes<HTMLAnchorElement>>;
2
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("./SegmentedControl").SegmentedControlProps & import("react").RefAttributes<HTMLDivElement>>;
3
3
  export default _default;
4
- export declare const SegmentedControlGroup: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./SegmentedControl").SegmentedControlProps & import("react").RefAttributes<HTMLAnchorElement>>;
4
+ export declare const SegmentedControlGroup: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./SegmentedControl").SegmentedControlProps & import("react").RefAttributes<HTMLDivElement>>;
5
+ export declare const SegmentedControlGroupSM: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./SegmentedControl").SegmentedControlProps & import("react").RefAttributes<HTMLDivElement>>;
5
6
  //# sourceMappingURL=SegmentedControl.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SegmentedControl.stories.d.ts","sourceRoot":"","sources":["../../../src/SegmentedControl/SegmentedControl.stories.tsx"],"names":[],"mappings":";;AAIA,wBAMmC;AAKnC,eAAO,MAAM,qBAAqB,sMAAoB,CAAC"}
1
+ {"version":3,"file":"SegmentedControl.stories.d.ts","sourceRoot":"","sources":["../../../src/SegmentedControl/SegmentedControl.stories.tsx"],"names":[],"mappings":";;AAIA,wBAMmC;AAKnC,eAAO,MAAM,qBAAqB,mMAAoB,CAAC;AAEvD,eAAO,MAAM,uBAAuB,mMAAoB,CAAC"}
@@ -1,11 +1,14 @@
1
- import { SegmentedControlValue } from '.';
1
+ import { SegmentedControlSize, SegmentedControlValue } from '.';
2
2
  export interface SegmentedItemProps {
3
3
  activeIndex: number;
4
+ activeItemClassName?: string;
5
+ className?: string;
4
6
  currentIndex: number;
5
7
  lastIndex: number;
6
8
  onSelectedValue: (index: number) => void;
7
9
  prevIndex: number;
10
+ size: SegmentedControlSize;
8
11
  value: SegmentedControlValue;
9
12
  }
10
- export declare function SegmentedControlItem({ activeIndex, currentIndex, lastIndex, onSelectedValue, prevIndex, value, }: SegmentedItemProps): JSX.Element;
13
+ export declare function SegmentedControlItem({ activeIndex, currentIndex, lastIndex, onSelectedValue, prevIndex, value, size, className, activeItemClassName, }: SegmentedItemProps): JSX.Element;
11
14
  //# 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,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,eAyBpB"}
1
+ {"version":3,"file":"SegmentedControlItem.d.ts","sourceRoot":"","sources":["../../../src/SegmentedControl/SegmentedControlItem.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,GAAG,CAAC;AAEhE,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,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,IAAI,EAAE,oBAAoB,CAAC;IAC3B,KAAK,EAAE,qBAAqB,CAAC;CAC9B;AAED,wBAAgB,oBAAoB,CAAC,EACnC,WAAW,EACX,YAAY,EACZ,SAAS,EACT,eAAe,EACf,SAAS,EACT,KAAK,EACL,IAAI,EACJ,SAAS,EACT,mBAAwB,GACzB,EAAE,kBAAkB,eA6BpB"}
@@ -7,6 +7,7 @@ export * from './Checkbox';
7
7
  export * from './ColorSelect';
8
8
  export * from './Dialog';
9
9
  export * from './Divider';
10
+ export * from './Dropdown';
10
11
  export * from './EditableWell';
11
12
  export * from './FauxPhone';
12
13
  export * from './FeatureWell';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B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": "@youversion/design-system-components",
3
- "version": "1.5.0",
3
+ "version": "1.7.0",
4
4
  "main": "./dist/index.umd.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "types": "./dist/index.d.ts",