@helpdice/ui 2.4.9 → 2.5.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.
Files changed (25) hide show
  1. package/dist/carousal/index.d.ts +3 -3
  2. package/esm/carousal/{component/Arrow.js → Arrow.js} +1 -1
  3. package/esm/carousal/{component/Indicator.js → Indicator.js} +1 -1
  4. package/esm/carousal/{component/Thumbs.js → Thumbs.js} +6 -6
  5. package/esm/carousal/{component/animations.js → animations.js} +1 -1
  6. package/esm/carousal/{component/index.js → carousel.js} +4 -4
  7. package/esm/carousal/index.d.ts +3 -3
  8. package/esm/carousal/index.js +2 -2
  9. package/esm/carousal/{component/utils.js → utils.js} +1 -1
  10. package/package.json +1 -1
  11. /package/dist/carousal/{component/Arrow.d.ts → Arrow.d.ts} +0 -0
  12. /package/dist/carousal/{component/Indicator.d.ts → Indicator.d.ts} +0 -0
  13. /package/dist/carousal/{component/Thumbs.d.ts → Thumbs.d.ts} +0 -0
  14. /package/dist/carousal/{component/animations.d.ts → animations.d.ts} +0 -0
  15. /package/dist/carousal/{component/index.d.ts → carousel.d.ts} +0 -0
  16. /package/dist/carousal/{component/types.d.ts → types.d.ts} +0 -0
  17. /package/dist/carousal/{component/utils.d.ts → utils.d.ts} +0 -0
  18. /package/esm/carousal/{component/Arrow.d.ts → Arrow.d.ts} +0 -0
  19. /package/esm/carousal/{component/Indicator.d.ts → Indicator.d.ts} +0 -0
  20. /package/esm/carousal/{component/Thumbs.d.ts → Thumbs.d.ts} +0 -0
  21. /package/esm/carousal/{component/animations.d.ts → animations.d.ts} +0 -0
  22. /package/esm/carousal/{component/index.d.ts → carousel.d.ts} +0 -0
  23. /package/esm/carousal/{component/types.d.ts → types.d.ts} +0 -0
  24. /package/esm/carousal/{component/types.js → types.js} +0 -0
  25. /package/esm/carousal/{component/utils.d.ts → utils.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- import Carousel from './component';
2
- export type { CarouselProps } from './component/types';
3
- export { default as Thumbs } from './component/Thumbs';
1
+ import Carousel from './carousel';
2
+ export type { CarouselProps } from './types';
3
+ export { default as Thumbs } from './Thumbs';
4
4
  export default Carousel;
@@ -1,6 +1,6 @@
1
1
  import _JSXStyle from "../styled-jsx.es.js";
2
2
  import React from 'react';
3
- import klass from '../cssClasses'; // Assuming cssClasses.ts is in src/
3
+ import klass from './cssClasses'; // Assuming cssClasses.ts is in src/
4
4
 
5
5
  var Arrow = function Arrow(_ref) {
6
6
  var direction = _ref.direction,
@@ -1,6 +1,6 @@
1
1
  import _JSXStyle from "../styled-jsx.es.js";
2
2
  import React from 'react';
3
- import klass from '../cssClasses'; // Assuming cssClasses.ts is in src/
3
+ import klass from './cssClasses'; // Assuming cssClasses.ts is in src/
4
4
 
5
5
  var Indicator = function Indicator(_ref) {
6
6
  var onClickHandler = _ref.onClickHandler,
@@ -9,13 +9,13 @@ import _JSXStyle from "../styled-jsx.es.js";
9
9
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
10
10
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
11
11
  import React, { Component, Children } from 'react';
12
- import klass from '../cssClasses';
13
- import { outerWidth } from '../dimensions';
14
- import CSSTranslate from '../CSSTranslate';
12
+ import klass from './cssClasses';
13
+ import { outerWidth } from './dimensions';
14
+ import CSSTranslate from './CSSTranslate';
15
15
  // @ts-ignore
16
- import Swipe from '../../swipe';
17
- import getWindow from '../shims/window';
18
- import Button from '../../button';
16
+ import Swipe from '../swipe';
17
+ import getWindow from './shims/window';
18
+ import Button from '../button';
19
19
  import { ChevronLeft, ChevronRight } from '@helpdice/icons';
20
20
  var isKeyboardEvent = function isKeyboardEvent(e) {
21
21
  return e.hasOwnProperty('key');
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import { Children } from 'react';
3
- import CSSTranslate from '../CSSTranslate';
3
+ import CSSTranslate from './CSSTranslate';
4
4
  import { getPosition, setPosition } from './utils';
5
5
  /**
6
6
  * Main animation handler for the default 'sliding' style animation
@@ -10,11 +10,11 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
10
10
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
11
11
  import React, { Children } from 'react';
12
12
  // @ts-ignore
13
- import Swipe from '../../swipe';
14
- import klass from '../cssClasses';
13
+ import Swipe from '../swipe';
14
+ import klass from './cssClasses';
15
15
  import Thumbs from './Thumbs';
16
- import getDocument from '../shims/document';
17
- import getWindow from '../shims/window';
16
+ import getDocument from './shims/document';
17
+ import getWindow from './shims/window';
18
18
  import { noop, defaultStatusFormatter, isKeyboardEvent } from './utils';
19
19
  import Arrow from './Arrow';
20
20
  import Indicator from './Indicator';
@@ -1,4 +1,4 @@
1
- import Carousel from './component';
2
- export type { CarouselProps } from './component/types';
3
- export { default as Thumbs } from './component/Thumbs';
1
+ import Carousel from './carousel';
2
+ export type { CarouselProps } from './types';
3
+ export { default as Thumbs } from './Thumbs';
4
4
  export default Carousel;
@@ -1,3 +1,3 @@
1
- import Carousel from './component';
2
- export { default as Thumbs } from './component/Thumbs';
1
+ import Carousel from './carousel';
2
+ export { default as Thumbs } from './Thumbs';
3
3
  export default Carousel;
@@ -1,5 +1,5 @@
1
1
  import { Children } from 'react';
2
- import CSSTranslate from '../CSSTranslate';
2
+ import CSSTranslate from './CSSTranslate';
3
3
  export var noop = function noop() {};
4
4
  export var defaultStatusFormatter = function defaultStatusFormatter(current, total) {
5
5
  return "".concat(current, " of ").concat(total);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@helpdice/ui",
3
- "version": "2.4.9",
3
+ "version": "2.5.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "esm/index.d.ts",
6
6
  "unpkg": "dist/index.min.js",
File without changes