@codeleap/web 3.21.4 → 3.21.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codeleap/web",
3
- "version": "3.21.4",
3
+ "version": "3.21.6",
4
4
  "main": "src/index.ts",
5
5
  "repository": {
6
6
  "url": "https://github.com/codeleap-uk/internal-libs-monorepo.git",
@@ -129,9 +129,6 @@ export const Checkbox = (props: CheckboxProps) => {
129
129
  }}
130
130
  order={_checkboxOnLeft ? reversedOrder : InputBaseDefaultOrder}
131
131
  style={style}
132
- wrapperProps={{
133
- onClick: handleChange,
134
- }}
135
132
  >
136
133
  <motion.div
137
134
  css={[
@@ -126,6 +126,7 @@ const PagerComponent = (
126
126
  return (
127
127
  <View css={[variantStyles.wrapper, style]}>
128
128
  <Slider
129
+ adaptiveHeight={true}
129
130
  {...rest}
130
131
  arrows={false}
131
132
  ref={sliderRef}
package/src/lib/hooks.ts CHANGED
@@ -8,7 +8,7 @@ export function useWindowSize() {
8
8
  const [size, setSize] = useState([])
9
9
 
10
10
  onMount(() => {
11
- setSize([window.innerWidth, window.innerWidth])
11
+ setSize([window.innerWidth, window.innerHeight])
12
12
  })
13
13
 
14
14
  function handleResize() {