@uncinc/uncinc-react-kitchen-sink 2.16.9 → 2.16.11

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.
@@ -0,0 +1,7 @@
1
+ import React, { type ReactNode } from 'react';
2
+ import './style.scss';
3
+ export interface CookieWrapperProps {
4
+ children: ReactNode;
5
+ }
6
+ declare const CookieWrapper: React.FC<CookieWrapperProps>;
7
+ export default CookieWrapper;
@@ -0,0 +1,56 @@
1
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
6
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
+ import React from 'react';
8
+ import { useTranslation } from 'react-i18next';
9
+ import { Button, Icon } from '..';
10
+ import useCookieStore from '../../hooks/useCookieStore';
11
+ import { COOKIE_CONSENT_CATEGORIES, COOKIE_CONSENT_STATE } from '../GoogleConsentCookieBanner';
12
+ import { LocalConsentStatus } from '../GoogleConsentCookieBanner/types';
13
+ import './style.scss';
14
+ var CookieWrapper = function CookieWrapper(_ref) {
15
+ var children = _ref.children;
16
+ var _useTranslation = useTranslation(),
17
+ t = _useTranslation.t;
18
+ var _useCookieStore = useCookieStore(COOKIE_CONSENT_CATEGORIES),
19
+ _useCookieStore2 = _slicedToArray(_useCookieStore, 1),
20
+ categories = _useCookieStore2[0];
21
+ var _useCookieStore3 = useCookieStore(COOKIE_CONSENT_STATE),
22
+ _useCookieStore4 = _slicedToArray(_useCookieStore3, 2),
23
+ consent = _useCookieStore4[0],
24
+ setConsent = _useCookieStore4[1];
25
+ var consentStatus = categories && typeof categories === 'string' ? JSON.parse(categories).consent : null;
26
+ var editCookies = function editCookies() {
27
+ setConsent(JSON.stringify({
28
+ status: LocalConsentStatus.STATUS_EDITING,
29
+ version: '1.0.0'
30
+ }));
31
+ };
32
+
33
+ // If Analytical and Marketing cookies are not accepted, show the CookieWrapper,
34
+ // to prevent externally loaded content from placing cookies.
35
+ var blockContent = !consent || !categories || (consentStatus === null || consentStatus === void 0 ? void 0 : consentStatus.analytics_storage) !== 'granted' || (consentStatus === null || consentStatus === void 0 ? void 0 : consentStatus.ad_personalization) !== 'granted' || (consentStatus === null || consentStatus === void 0 ? void 0 : consentStatus.ad_user_data) !== 'granted' || (consentStatus === null || consentStatus === void 0 ? void 0 : consentStatus.ad_storage) !== 'granted';
36
+ if (blockContent) {
37
+ return /*#__PURE__*/React.createElement("div", {
38
+ className: "CookieWrapper"
39
+ }, /*#__PURE__*/React.createElement(Icon, {
40
+ flair: "outlined",
41
+ name: "cookie"
42
+ }), /*#__PURE__*/React.createElement("h3", {
43
+ className: "CookieWrapper__title"
44
+ }, t('cookie.wrapper.title', 'Cookies required')), /*#__PURE__*/React.createElement("p", {
45
+ className: "CookieWrapper__description"
46
+ }, t('cookie.wrapper.description', 'Analytics and Marketing cookies are required to display this content.')), /*#__PURE__*/React.createElement(Button, {
47
+ primary: false,
48
+ inverted: true,
49
+ onClick: function onClick() {
50
+ return editCookies();
51
+ }
52
+ }, t('cookie.wrapper.button', 'Change cookiesettings')));
53
+ }
54
+ return children;
55
+ };
56
+ export default CookieWrapper;
@@ -0,0 +1,7 @@
1
+ @import '../Icon/style';
2
+
3
+ $material-icon-names: (
4
+ cookie,
5
+ );
6
+
7
+ @include generateMaterialIconClasses;
@@ -267,15 +267,6 @@ var CookieCompliancePopup = function CookieCompliancePopup(props) {
267
267
  'GoogleConsentCookieBanner--editing': isEditing
268
268
  });
269
269
 
270
- // if it is answered in the current session
271
- // we still render the cookie but with the --hidden modifier,
272
- // allowing consumers to apply an animation if desired.
273
- // In other words, don't render only if a user has
274
- // answered in a previous session.
275
- if (isAnswered && !answeredInCurrentSession) {
276
- return null;
277
- }
278
-
279
270
  // This function renders the different options of checkboxes,
280
271
  // allowing us to add more checkboxes eventually.
281
272
  var renderChoices = function renderChoices() {
@@ -1,3 +1,5 @@
1
- export default LottieAnimation;
2
- declare const LottieAnimation: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
3
1
  import React from 'react';
2
+ import type { LottieProps } from '../types';
3
+ import './style.scss';
4
+ declare const LottieAnimation: React.ForwardRefExoticComponent<Omit<LottieProps, "delay"> & React.RefAttributes<import("lottie-web").AnimationItem>>;
5
+ export default LottieAnimation;
@@ -1,86 +1,145 @@
1
- import React, { useEffect, useCallback, useRef } from 'react';
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
7
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
8
+ import React, { useEffect, useCallback, useRef, useMemo } from 'react';
2
9
  import c from 'classnames';
3
10
  import lottie from 'lottie-web';
4
11
  import './style.scss';
12
+ var DIRECTION_FORWARD = 1;
13
+ var DIRECTION_BACKWARDS = -1;
5
14
  var LottieAnimation = /*#__PURE__*/React.forwardRef(function (props, ref) {
6
15
  var id = props.id,
7
16
  className = props.className,
8
- ariaLabel = props.ariaLabel,
9
- data = props.data;
10
- var DIRECTION_FORWARD = 1;
11
- var DIRECTION_BACKWARDS = -1;
12
- var lottieClasses = c('Lottie', className);
13
- var refInternal = useRef(null);
17
+ _props$ariaLabel = props.ariaLabel,
18
+ ariaLabel = _props$ariaLabel === void 0 ? 'animation' : _props$ariaLabel,
19
+ data = props.data,
20
+ path = props.path,
21
+ _props$renderer = props.renderer,
22
+ renderer = _props$renderer === void 0 ? 'svg' : _props$renderer,
23
+ _props$rendererSettin = props.rendererSettings,
24
+ rendererSettings = _props$rendererSettin === void 0 ? {
25
+ preserveAspectRatio: 'xMidYMid meet'
26
+ } : _props$rendererSettin,
27
+ _props$loop = props.loop,
28
+ loop = _props$loop === void 0 ? true : _props$loop,
29
+ _props$autoPlay = props.autoPlay,
30
+ autoPlay = _props$autoPlay === void 0 ? true : _props$autoPlay,
31
+ _props$speed = props.speed,
32
+ speed = _props$speed === void 0 ? 1 : _props$speed,
33
+ startPosition = props.startPosition,
34
+ _props$direction = props.direction,
35
+ direction = _props$direction === void 0 ? 1 : _props$direction,
36
+ segments = props.segments,
37
+ _props$activateOnHove = props.activateOnHover,
38
+ activateOnHover = _props$activateOnHove === void 0 ? false : _props$activateOnHove,
39
+ _props$pauseOnClick = props.pauseOnClick,
40
+ pauseOnClick = _props$pauseOnClick === void 0 ? false : _props$pauseOnClick,
41
+ onInit = props.onInit,
42
+ onDestroy = props.onDestroy;
43
+ var refInternal = useRef();
14
44
  var lottieAnimation = ref || refInternal;
15
- var lottieId = id || (data ? data.nm : null);
45
+ var rendererSettingsRef = useRef(rendererSettings);
46
+ var onInitRef = useRef(onInit);
47
+ var lottieClasses = c('Lottie', className);
48
+ var lottieId = useMemo(function () {
49
+ if (id) {
50
+ return id;
51
+ }
52
+ if (_typeof(data) === 'object' && data !== null && 'nm' in data && typeof data.nm === 'string') {
53
+ return data.nm;
54
+ }
55
+ return '';
56
+ }, [data, id]);
16
57
 
17
- /*
18
- * Initial load of the Lottie animation
19
- */
20
- var loadAnimation = useCallback(function () {
21
- var renderer = props.renderer,
22
- rendererSettings = props.rendererSettings,
23
- direction = props.direction,
24
- loop = props.loop,
25
- autoPlay = props.autoPlay,
26
- path = props.path,
27
- speed = props.speed,
28
- segments = props.segments,
29
- activateOnHover = props.activateOnHover,
30
- startPosition = props.startPosition,
31
- onInit = props.onInit;
32
- lottieAnimation.current = lottie.loadAnimation({
58
+ /**
59
+ * Create a Lottie config object from the given props
60
+ */
61
+ var config = useMemo(function () {
62
+ return {
33
63
  animationData: data,
34
- container: document.getElementById("lottie--".concat(lottieId)),
64
+ path: path,
35
65
  renderer: renderer,
36
- rendererSettings: rendererSettings,
37
- direction: direction,
38
66
  loop: activateOnHover ? false : loop,
39
67
  autoplay: activateOnHover ? false : autoPlay,
40
- path: path
41
- });
42
- onInit(lottieAnimation.current);
68
+ speed: speed,
69
+ startPosition: startPosition,
70
+ direction: direction,
71
+ segments: segments
72
+ };
73
+ }, [data, path, renderer, loop, autoPlay, speed, startPosition, direction, segments, activateOnHover]);
74
+
75
+ /*
76
+ * Initial load of the Lottie animation
77
+ */
78
+ var loadAnimation = useCallback(function () {
79
+ if (!lottieAnimation || !('current' in lottieAnimation)) {
80
+ return;
81
+ }
82
+ var container = document.getElementById("lottie--".concat(lottieId)) || document.documentElement;
83
+ lottieAnimation.current = lottie.loadAnimation(_objectSpread(_objectSpread({}, config), {}, {
84
+ container: container,
85
+ rendererSettings: rendererSettingsRef.current
86
+ }));
87
+ if (onInitRef.current) {
88
+ onInitRef.current(lottieAnimation.current);
89
+ }
43
90
 
44
91
  // Set the default speed.
45
- lottieAnimation.current.setSpeed(speed);
92
+ lottieAnimation.current.setSpeed(config.speed);
93
+
94
+ // Set the default direction.
95
+ lottieAnimation.current.setDirection(config.direction);
96
+
46
97
  // Play segments if we have them.
47
- if (segments) {
48
- lottieAnimation.current.playSegments(segments);
98
+ if (config.segments) {
99
+ lottieAnimation.current.playSegments(config.segments);
49
100
  }
50
- // If startPosition is defined use it as a starting frame, startPosition should be between 0 and 1.
51
- if (startPosition) {
52
- var startingFrame = Math.round(lottieAnimation.current.totalFrames * startPosition);
101
+
102
+ // If startPosition is defined use it as a starting frame,
103
+ // startPosition should be between 0 and 1.
104
+ if (config.startPosition) {
105
+ var startingFrame = Math.round(lottieAnimation.current.totalFrames * config.startPosition);
53
106
  lottieAnimation.current.goToAndStop(startingFrame, true);
54
107
  }
55
- }, [data, lottieAnimation, lottieId, props]);
108
+ }, [config, lottieAnimation, lottieId]);
56
109
 
57
110
  /*
58
111
  * Reverse direction on Mouse enter.
59
112
  */
60
- var onMouseEnter = function onMouseEnter(e) {
61
- var activateOnHover = props.activateOnHover;
113
+ var onMouseEnter = useCallback(function () {
114
+ if (!(_typeof(lottieAnimation) === 'object' && lottieAnimation.current)) {
115
+ return;
116
+ }
62
117
  if (activateOnHover) {
63
118
  lottieAnimation.current.setDirection(DIRECTION_FORWARD);
64
119
  lottieAnimation.current.play();
65
120
  }
66
- };
121
+ }, [activateOnHover, lottieAnimation]);
67
122
 
68
123
  /*
69
124
  * Reverse direction on Mouse leave
70
125
  */
71
- var onMouseLeave = function onMouseLeave() {
72
- var activateOnHover = props.activateOnHover;
126
+ var onMouseLeave = useCallback(function () {
127
+ if (!(_typeof(lottieAnimation) === 'object' && lottieAnimation.current)) {
128
+ return;
129
+ }
73
130
  if (activateOnHover) {
74
131
  lottieAnimation.current.setDirection(DIRECTION_BACKWARDS);
75
132
  lottieAnimation.current.play();
76
133
  }
77
- };
134
+ }, [activateOnHover, lottieAnimation]);
78
135
 
79
136
  /*
80
137
  * Toggle the animation on click
81
138
  */
82
- var onClick = function onClick() {
83
- var pauseOnClick = props.pauseOnClick;
139
+ var onClick = useCallback(function () {
140
+ if (!(_typeof(lottieAnimation) === 'object' && lottieAnimation.current)) {
141
+ return;
142
+ }
84
143
  if (pauseOnClick) {
85
144
  if (lottieAnimation.current.isPaused) {
86
145
  lottieAnimation.current.play();
@@ -88,29 +147,45 @@ var LottieAnimation = /*#__PURE__*/React.forwardRef(function (props, ref) {
88
147
  lottieAnimation.current.pause();
89
148
  }
90
149
  }
91
- };
150
+ }, [lottieAnimation, pauseOnClick]);
151
+
152
+ /**
153
+ * Handle keyboard interaction for accessibility
154
+ * @param event - keyboard event
155
+ */
156
+ var onKeyDown = useCallback(function (event) {
157
+ if (pauseOnClick && (event.key === 'Enter' || event.key === ' ')) {
158
+ event.preventDefault();
159
+ onClick();
160
+ }
161
+ }, [onClick, pauseOnClick]);
92
162
 
93
163
  // Init the Lottie animation.
94
164
  useEffect(function () {
95
- var onDestroy = props.onDestroy;
96
165
  loadAnimation();
97
166
  return function () {
98
- onDestroy(lottieAnimation.current);
167
+ if (!(_typeof(lottieAnimation) === 'object' && lottieAnimation.current)) {
168
+ return;
169
+ }
170
+ if (onDestroy) {
171
+ onDestroy(lottieAnimation.current);
172
+ }
99
173
  lottieAnimation.current.destroy();
100
174
  };
101
- }, [props, loadAnimation, lottieAnimation]);
102
- return (
103
- /*#__PURE__*/
104
- // eslint-disable-next-line jsx-a11y/interactive-supports-focus
105
- React.createElement("div", {
106
- onMouseEnter: onMouseEnter,
107
- onMouseLeave: onMouseLeave,
108
- onClick: onClick,
109
- className: lottieClasses,
110
- id: "lottie--".concat(lottieId),
111
- "aria-label": ariaLabel,
112
- role: "button"
113
- })
114
- );
175
+ }, [loadAnimation, lottieAnimation, onDestroy]);
176
+ return /*#__PURE__*/React.createElement("div", _extends({
177
+ className: lottieClasses,
178
+ id: "lottie--".concat(lottieId),
179
+ "aria-label": ariaLabel
180
+ // Only make the Lottie interactable if we provide the necessary props,
181
+ // otherwise it's just a plain div.
182
+ }, pauseOnClick || activateOnHover ? {
183
+ role: 'button',
184
+ tabIndex: 0,
185
+ onMouseEnter: onMouseEnter,
186
+ onMouseLeave: onMouseLeave,
187
+ onClick: onClick,
188
+ onKeyDown: onKeyDown
189
+ } : {}));
115
190
  });
116
191
  export default LottieAnimation;
@@ -1,3 +1,4 @@
1
- export default Lottie;
2
- declare const Lottie: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
3
1
  import React from 'react';
2
+ import type { LottieProps } from './types';
3
+ declare const Lottie: React.ForwardRefExoticComponent<LottieProps & React.RefAttributes<import("lottie-web").AnimationItem>>;
4
+ export default Lottie;
@@ -1,12 +1,15 @@
1
+ var _excluded = ["delay"];
1
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
2
5
  import React, { lazy, Suspense } from 'react';
3
- import PropTypes from 'prop-types';
4
-
5
6
  // Lazy-load Lottie animations with a delay.
6
7
  var Lottie = /*#__PURE__*/React.forwardRef(function (props, ref) {
7
- var delay = props.delay;
8
+ var delay = props.delay,
9
+ restProps = _objectWithoutProperties(props, _excluded);
8
10
  var LottieAnimation = /*#__PURE__*/lazy(function () {
9
11
  return new Promise(function (resolve) {
12
+ // @ts-expect-error
10
13
  setTimeout(function () {
11
14
  return resolve(import('./LottieAnimation'));
12
15
  }, delay);
@@ -14,56 +17,6 @@ var Lottie = /*#__PURE__*/React.forwardRef(function (props, ref) {
14
17
  });
15
18
  return /*#__PURE__*/React.createElement(Suspense, null, /*#__PURE__*/React.createElement(LottieAnimation, _extends({
16
19
  ref: ref
17
- }, props)));
20
+ }, restProps)));
18
21
  });
19
- Lottie.propTypes = {
20
- id: PropTypes.string,
21
- className: PropTypes.string,
22
- renderer: PropTypes.string,
23
- rendererSettings: PropTypes.shape({
24
- preserveAspectRatio: PropTypes.string
25
- }),
26
- data: PropTypes.object,
27
- path: PropTypes.string,
28
- segments: PropTypes.array,
29
- // Events
30
- onInit: PropTypes.func,
31
- onDestroy: PropTypes.func,
32
- // Options
33
- delay: PropTypes.number,
34
- autoPlay: PropTypes.bool,
35
- loop: PropTypes.bool,
36
- speed: PropTypes.number,
37
- direction: PropTypes.number,
38
- activateOnHover: PropTypes.bool,
39
- pauseOnClick: PropTypes.bool,
40
- olaTime: PropTypes.number,
41
- startPosition: PropTypes.number,
42
- ariaLabel: PropTypes.string
43
- };
44
- Lottie.defaultProps = {
45
- id: null,
46
- className: null,
47
- renderer: 'svg',
48
- rendererSettings: {
49
- preserveAspectRatio: 'xMidYMid meet'
50
- },
51
- data: null,
52
- path: null,
53
- segments: null,
54
- // Events
55
- onInit: function onInit() {},
56
- onDestroy: function onDestroy() {},
57
- // Options
58
- delay: null,
59
- autoPlay: true,
60
- loop: true,
61
- speed: 1,
62
- direction: 1,
63
- activateOnHover: false,
64
- pauseOnClick: false,
65
- ariaLabel: 'animation',
66
- olaTime: 300,
67
- startPosition: null
68
- };
69
22
  export default Lottie;
@@ -0,0 +1,22 @@
1
+ import type { AnimationConfig, AnimationConfigWithData, AnimationConfigWithPath, AnimationDirection, AnimationItem, RendererType } from 'lottie-web';
2
+ export type LottieItem = AnimationItem;
3
+ export interface LottieConfig<T extends RendererType = 'svg'> extends Omit<AnimationConfig<T>, 'container'> {
4
+ animationData?: AnimationConfigWithData['animationData'];
5
+ path?: AnimationConfigWithPath['path'];
6
+ speed: number;
7
+ startPosition?: number;
8
+ direction: AnimationDirection;
9
+ segments?: Array<any>;
10
+ }
11
+ export interface LottieProps extends Omit<Partial<LottieConfig>, 'animationData' | 'autoplay'> {
12
+ id?: string;
13
+ className?: string;
14
+ ariaLabel?: string;
15
+ data?: unknown;
16
+ autoPlay?: AnimationConfig['autoplay'];
17
+ delay?: number;
18
+ activateOnHover?: boolean;
19
+ pauseOnClick?: boolean;
20
+ onInit?: (lottie: LottieItem) => void;
21
+ onDestroy?: (lottie: LottieItem) => void;
22
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,5 @@
1
1
  export { default as Button } from "./Button";
2
+ export { default as Icon } from "./Icon";
2
3
  export { default as WysiwygField } from "./WysiwygField";
3
4
  export { default as MediaPlayer } from "./MediaPlayer";
4
5
  export { default as FormAddressAutocomplete } from "./Form/AddressAutocomplete";
@@ -1,4 +1,5 @@
1
1
  export { default as Button } from './Button';
2
+ export { default as Icon } from './Icon';
2
3
  export { default as WysiwygField } from './WysiwygField';
3
4
  export { default as MediaPlayer } from './MediaPlayer';
4
5
  export { default as FormAddressAutocomplete } from './Form/AddressAutocomplete';
package/dist/index.d.ts CHANGED
@@ -51,6 +51,7 @@ export { default as TitleWithText } from "./components/TitleWithText";
51
51
  export { default as TableRender } from "./components/TableRender";
52
52
  export { default as ApiAutocomplete } from "./components/ApiAutocomplete";
53
53
  export { default as Cookie } from "./components/Cookie";
54
+ export { default as CookieWrapper } from "./components/CookieWrapper";
54
55
  export { default as GoogleConsentCookieBanner } from "./components/GoogleConsentCookieBanner";
55
56
  export { default as CookieCategoryContents } from "./components/GoogleConsentCookieBanner/CookieCategoryContents";
56
57
  export { default as CookieCategoryContentsPartners } from "./components/GoogleConsentCookieBanner/CookieCategoryContentsPartners";
package/dist/index.js CHANGED
@@ -58,6 +58,7 @@ export { default as TableRender } from './components/TableRender';
58
58
  // Organisms
59
59
  export { default as ApiAutocomplete } from './components/ApiAutocomplete';
60
60
  export { default as Cookie } from './components/Cookie';
61
+ export { default as CookieWrapper } from './components/CookieWrapper';
61
62
  export { default as GoogleConsentCookieBanner } from './components/GoogleConsentCookieBanner';
62
63
  export { default as CookieCategoryContents } from './components/GoogleConsentCookieBanner/CookieCategoryContents';
63
64
  export { default as CookieCategoryContentsPartners } from './components/GoogleConsentCookieBanner/CookieCategoryContentsPartners';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uncinc/uncinc-react-kitchen-sink",
3
- "version": "2.16.9",
3
+ "version": "2.16.11",
4
4
  "description": "Default React components that are easily extended.",
5
5
  "author": "uncinc",
6
6
  "license": "MIT",