@youversion/design-system-components 0.0.14 → 0.0.17

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,28 @@
1
1
  # @youversion/design-system-components
2
2
 
3
+ ## 0.0.17
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [cb6ef03]
8
+ - @youversion/design-system-icons@0.0.7
9
+
10
+ ## 0.0.16
11
+
12
+ ### Patch Changes
13
+
14
+ - 6c28b48: - Updated **PopoverBody** to have a default z-index of 10
15
+
16
+ ## 0.0.15
17
+
18
+ ### Patch Changes
19
+
20
+ - 6a7635a: Add a lockBodyScroll hook to lock scrolling of the body element.
21
+ - Updated dependencies [6a7635a]
22
+ - Updated dependencies [6a7635a]
23
+ - @youversion/design-system-core@0.0.4
24
+ - @youversion/design-system-icons@0.0.6
25
+
3
26
  ## 0.0.14
4
27
 
5
28
  ### Patch Changes
@@ -1,3 +1,4 @@
1
+ import { AllHTMLAttributes } from 'react';
1
2
  /**
2
3
  * The **Divider** component generates an html <hr> element.
3
4
  *
@@ -16,5 +17,5 @@
16
17
  * }
17
18
  * ```
18
19
  */
19
- export declare const Divider: () => JSX.Element;
20
+ export declare const Divider: ({ className, ...rest }: AllHTMLAttributes<HTMLHRElement>) => JSX.Element;
20
21
  //# sourceMappingURL=Divider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Divider.d.ts","sourceRoot":"","sources":["../../../src/Divider/Divider.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;GAiBG;AAEH,eAAO,MAAM,OAAO,mBAEnB,CAAC"}
1
+ {"version":3,"file":"Divider.d.ts","sourceRoot":"","sources":["../../../src/Divider/Divider.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEjD;;;;;;;;;;;;;;;;;GAiBG;AAEH,eAAO,MAAM,OAAO,2BAA4B,kBAAkB,aAAa,CAAC,gBAE/E,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"PopoverBodyContents.d.ts","sourceRoot":"","sources":["../../../src/PopoverBody/PopoverBodyContents.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAG/D,MAAM,WAAW,wBAAyB,SAAQ,IAAI,CAAC,gBAAgB,EAAE,WAAW,GAAG,QAAQ,CAAC;IAC9F,KAAK,EAAE,YAAY,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,mBAAmB,oEAO7B,wBAAwB,gBAiF1B,CAAC"}
1
+ {"version":3,"file":"PopoverBodyContents.d.ts","sourceRoot":"","sources":["../../../src/PopoverBody/PopoverBodyContents.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAE/D,MAAM,WAAW,wBAAyB,SAAQ,IAAI,CAAC,gBAAgB,EAAE,WAAW,GAAG,QAAQ,CAAC;IAC9F,KAAK,EAAE,YAAY,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,mBAAmB,oEAO7B,wBAAwB,gBAgF1B,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export * from './useCombinedRefs';
2
+ export * from './useLockBodyScroll';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.tsx"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.tsx"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This hook locks the scrolling of the body element. Generally used in dialogs and modals.
3
+ *
4
+ * @example
5
+ * ```tsx
6
+ * import { useLockBodyScroll } from '@youversion/design-system-components';
7
+ *
8
+ * function MyComponent() {
9
+ *
10
+ * useLockBodyScroll();
11
+ *
12
+ * return (
13
+ * <>
14
+ * ...
15
+ * </>
16
+ * )
17
+ * }
18
+ * ```
19
+ */
20
+ export declare function useLockBodyScroll(): void;
21
+ //# sourceMappingURL=useLockBodyScroll.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLockBodyScroll.d.ts","sourceRoot":"","sources":["../../../src/hooks/useLockBodyScroll.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,iBAAiB,IAAI,IAAI,CAMxC"}
package/dist/index.d.ts CHANGED
@@ -4,6 +4,7 @@ export * from './Button';
4
4
  export * from './Checkbox';
5
5
  export * from './Divider';
6
6
  export * from './FocusTrap';
7
+ export * from './hooks';
7
8
  export * from './IconButton';
8
9
  export * from './IconLinkButton';
9
10
  export * from './Input';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC"}