@youversion/design-system-components 1.3.1 → 1.3.2

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,14 @@
1
1
  # @youversion/design-system-components
2
2
 
3
+ ## 1.3.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 6d7fb19: Move icon stories to storybook
8
+ - b88d728: Set `Box` as deprecated
9
+ - Updated dependencies [61b956a]
10
+ - @youversion/design-system-core@1.2.0
11
+
3
12
  ## 1.3.1
4
13
 
5
14
  ### Patch Changes
@@ -20,6 +20,8 @@ export interface BoxProps extends Omit<AllHTMLAttributes<HTMLElement>, 'height'
20
20
  *
21
21
  * Accepts {@link BoxProps}.
22
22
  *
23
+ * @deprecated Use html tags instead. For elevation, use `elevation-*` classes.
24
+ *
23
25
  * @returns Renders a div component, with the ability to pass YV tailwind tokens as props.
24
26
  * @example
25
27
  * ```tsx
@@ -1 +1 @@
1
- {"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../src/Box/Box.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAiB,WAAW,EAA4B,MAAM,OAAO,CAAC;AAKhG,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,YAAY,EACZ,aAAa,EACb,aAAa,EACb,cAAc,EACd,YAAY,EACb,MAAM,yBAAyB,CAAC;AAEjC,MAAM,WAAW,QAAS,SAAQ,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAC;IAClG,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC,YAAY,CAAC,EAAE,mBAAmB,CAAC;IACnC,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,2DAA2D;IAC3D,SAAS,CAA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;CACtB;AAyDD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,GAAG,kGAA2B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@youversion/design-system-components",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "main": "./dist/index.umd.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "types": "./dist/index.d.ts",
@@ -21,7 +21,7 @@
21
21
  "validate": "yarn lint && yarn typecheck && yarn test"
22
22
  },
23
23
  "dependencies": {
24
- "@youversion/design-system-core": "1.1.0",
24
+ "@youversion/design-system-core": "1.2.0",
25
25
  "@youversion/design-system-icons": "1.1.0",
26
26
  "@youversion/design-system-tokens": "1.3.0",
27
27
  "clsx": "1.2.1",
@@ -1,22 +0,0 @@
1
- declare const _default: {
2
- args: {
3
- size: number;
4
- };
5
- argTypes: {
6
- size: {
7
- control: {
8
- max: number;
9
- min: number;
10
- step: number;
11
- type: string;
12
- };
13
- };
14
- };
15
- component: ({ name, size, animationDuration, animated, ...props }: import("./IconsRenderer").IconProps) => JSX.Element;
16
- title: string;
17
- };
18
- export default _default;
19
- export declare const All: ({ size }: {
20
- size: number;
21
- }) => JSX.Element;
22
- //# sourceMappingURL=Icons.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Icons.stories.d.ts","sourceRoot":"","sources":["../../../src/stories/Icons.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAIA,wBAWE;AAEF,eAAO,MAAM,GAAG;UAAsB,MAAM;iBAgB3C,CAAC"}
@@ -1,34 +0,0 @@
1
- import * as Icons from '@youversion/design-system-icons/lib/index';
2
- import { ComponentProps } from 'react';
3
- type IconNames = keyof typeof Icons;
4
- type SVGRIconProps = ComponentProps<(typeof Icons)['ArrowDownStroked']>;
5
- export interface IconProps extends SVGRIconProps {
6
- /** True, if the icon should be animated. */
7
- animated?: boolean;
8
- /** The duration of the animation, if icon is animated. (e.g. "0.9s"). */
9
- animationDuration?: string | number;
10
- /**
11
- * The name of the icon to render.
12
- */
13
- name: IconNames;
14
- /** The size of the icon to render. */
15
- size?: string;
16
- }
17
- /** The **IconRenderer** is used to render an icon.
18
- *
19
- * @internal
20
- *
21
- * Accepts {@link IconProps}.
22
- *
23
- * @returns Renders an icon.
24
- *
25
- * @example
26
- * ```tsx
27
- * function MyComponent() {
28
- * <IconRenderer name={icon} />
29
- * }
30
- * ```
31
- */
32
- declare const IconRenderer: ({ name, size, animationDuration, animated, ...props }: IconProps) => JSX.Element;
33
- export { IconRenderer };
34
- //# sourceMappingURL=IconsRenderer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IconsRenderer.d.ts","sourceRoot":"","sources":["../../../src/stories/IconsRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,2CAA2C,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,KAAK,SAAS,GAAG,MAAM,OAAO,KAAK,CAAC;AACpC,KAAK,aAAa,GAAG,cAAc,CAAC,CAAC,OAAO,KAAK,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC;AACxE,MAAM,WAAW,SAAU,SAAQ,aAAa;IAC9C,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,yEAAyE;IACzE,iBAAiB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACpC;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB,sCAAsC;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,YAAY,0DAA2E,SAAS,gBAKrG,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC"}