@ilo-org/react 0.10.4 → 0.10.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.
Files changed (62) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/lib/cjs/{DailyMotion-e06c9a92.js → DailyMotion-17b56ecb.js} +1 -1
  3. package/lib/cjs/{Facebook-d58c4f38.js → Facebook-0c8d86ee.js} +1 -1
  4. package/lib/cjs/{FilePlayer-fd6ea462.js → FilePlayer-01d6dc08.js} +1 -1
  5. package/lib/cjs/{Kaltura-60c01a5d.js → Kaltura-40e8e581.js} +1 -1
  6. package/lib/cjs/{Mixcloud-124760a9.js → Mixcloud-e23f49d6.js} +1 -1
  7. package/lib/cjs/{Preview-81296819.js → Preview-8e490f54.js} +1 -1
  8. package/lib/cjs/{SoundCloud-1739c1f1.js → SoundCloud-2500b6cb.js} +1 -1
  9. package/lib/cjs/{Streamable-837b9cf6.js → Streamable-00723065.js} +1 -1
  10. package/lib/cjs/{Twitch-bf2a7602.js → Twitch-2c5c5733.js} +1 -1
  11. package/lib/cjs/{VideoPlayer-e2de3674.js → VideoPlayer-5f0a64c6.js} +14 -14
  12. package/lib/cjs/{Vidyard-1256273d.js → Vidyard-d36d6c45.js} +1 -1
  13. package/lib/cjs/{Vimeo-fc878336.js → Vimeo-d311e3b8.js} +1 -1
  14. package/lib/cjs/{Wistia-7aa618d2.js → Wistia-318b4e43.js} +1 -1
  15. package/lib/cjs/{YouTube-588e57ea.js → YouTube-a3796a55.js} +1 -1
  16. package/lib/cjs/components/Input/Input.js +2 -2
  17. package/lib/cjs/components/List/List.js +2 -2
  18. package/lib/cjs/components/LocalNav/LocalNav.js +0 -6
  19. package/lib/cjs/components/Navigation/Navigation.js +2 -0
  20. package/lib/cjs/components/Navigation/index.js +2 -0
  21. package/lib/cjs/components/SearchField/SearchField.js +15 -5
  22. package/lib/cjs/components/SearchField/index.js +3 -1
  23. package/lib/cjs/components/Video/Video.js +2 -2
  24. package/lib/cjs/components/Video/VideoPlayer.js +1 -1
  25. package/lib/cjs/components/Video/index.js +1 -1
  26. package/lib/cjs/components/index.js +1 -1
  27. package/lib/cjs/index.js +1 -1
  28. package/lib/esm/{DailyMotion-2e38ef76.js → DailyMotion-989c2db3.js} +1 -1
  29. package/lib/esm/{Facebook-4a2334f4.js → Facebook-04e9cc59.js} +1 -1
  30. package/lib/esm/{FilePlayer-40e1ae01.js → FilePlayer-0789336d.js} +1 -1
  31. package/lib/esm/{Kaltura-c80bdfb7.js → Kaltura-a9ed37a9.js} +1 -1
  32. package/lib/esm/{Mixcloud-b0f9376b.js → Mixcloud-5a3b4353.js} +1 -1
  33. package/lib/esm/{Preview-07219fbc.js → Preview-7ca1835e.js} +1 -1
  34. package/lib/esm/{SoundCloud-78094ae3.js → SoundCloud-47bccd79.js} +1 -1
  35. package/lib/esm/{Streamable-44c36485.js → Streamable-ee762126.js} +1 -1
  36. package/lib/esm/{Twitch-cec3b85d.js → Twitch-3cd4b54b.js} +1 -1
  37. package/lib/esm/{VideoPlayer-b5d125fd.js → VideoPlayer-96c2b20c.js} +14 -14
  38. package/lib/esm/{Vidyard-44d40c02.js → Vidyard-258ab0ef.js} +1 -1
  39. package/lib/esm/{Vimeo-dd76c909.js → Vimeo-4b29b580.js} +1 -1
  40. package/lib/esm/{Wistia-d98e9e9e.js → Wistia-3cbce669.js} +1 -1
  41. package/lib/esm/{YouTube-2e7e24ca.js → YouTube-db52da1c.js} +1 -1
  42. package/lib/esm/components/Input/Input.js +2 -2
  43. package/lib/esm/components/List/List.js +3 -3
  44. package/lib/esm/components/LocalNav/LocalNav.js +0 -6
  45. package/lib/esm/components/Navigation/Navigation.js +2 -0
  46. package/lib/esm/components/Navigation/index.js +2 -0
  47. package/lib/esm/components/SearchField/SearchField.js +15 -5
  48. package/lib/esm/components/SearchField/index.js +3 -1
  49. package/lib/esm/components/Video/Video.js +2 -2
  50. package/lib/esm/components/Video/VideoPlayer.js +1 -1
  51. package/lib/esm/components/Video/index.js +1 -1
  52. package/lib/esm/components/index.js +1 -1
  53. package/lib/esm/index.js +1 -1
  54. package/lib/types/react/src/components/Input/Input.props.d.ts +1 -0
  55. package/package.json +7 -7
  56. package/src/components/Input/Input.props.ts +2 -0
  57. package/src/components/Input/Input.tsx +2 -0
  58. package/src/components/List/List.tsx +7 -12
  59. package/src/components/SearchField/SearchField.args.ts +5 -0
  60. package/src/components/SearchField/SearchField.tsx +38 -16
  61. package/src/components/Video/Video.tsx +1 -1
  62. package/src/components/Video/VideoPlayer.tsx +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,42 @@
1
1
  # @ilo-org/react
2
2
 
3
+ ## 0.10.6
4
+
5
+ ### Patch Changes
6
+
7
+ - 460210518: Add clear button to search input field
8
+ - Updated dependencies [ac23bf484]
9
+ - Updated dependencies [1b9c54f99]
10
+ - Updated dependencies [138890e7a]
11
+ - @ilo-org/styles@0.14.0
12
+
13
+ ## 0.10.5
14
+
15
+ ### Patch Changes
16
+
17
+ - 9bf73c7bd: Fix lists containing other elements than li items to improve accessibility
18
+ - 056754038: Revise and refactor color names with the same values and remove duplicates and replace where it was used
19
+ - e1000fbbd: added legacy classname for react video component
20
+ - Updated dependencies [4153f99b5]
21
+ - Updated dependencies [c8de2b695]
22
+ - Updated dependencies [7472dd625]
23
+ - Updated dependencies [b3298a267]
24
+ - Updated dependencies [bf4432d7c]
25
+ - Updated dependencies [1ed3123ae]
26
+ - Updated dependencies [f76a35fdc]
27
+ - Updated dependencies [a3c872512]
28
+ - Updated dependencies [056754038]
29
+ - Updated dependencies [4bbac5457]
30
+ - Updated dependencies [e1000fbbd]
31
+ - Updated dependencies [ac58b53d2]
32
+ - Updated dependencies [51b20d4aa]
33
+ - Updated dependencies [5a1e32f8e]
34
+ - Updated dependencies [52eeae214]
35
+ - Updated dependencies [709675b79]
36
+ - @ilo-org/styles@0.13.3
37
+ - @ilo-org/brand-assets@0.4.0
38
+ - @ilo-org/themes@0.7.1
39
+
3
40
  ## 0.10.4
4
41
 
5
42
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var components_Video_VideoPlayer = require('./VideoPlayer-e2de3674.js');
3
+ var components_Video_VideoPlayer = require('./VideoPlayer-5f0a64c6.js');
4
4
  var require$$0 = require('react');
5
5
 
6
6
  function _mergeNamespaces(n, m) {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var components_Video_VideoPlayer = require('./VideoPlayer-e2de3674.js');
3
+ var components_Video_VideoPlayer = require('./VideoPlayer-5f0a64c6.js');
4
4
  var require$$0 = require('react');
5
5
 
6
6
  function _mergeNamespaces(n, m) {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var components_Video_VideoPlayer = require('./VideoPlayer-e2de3674.js');
3
+ var components_Video_VideoPlayer = require('./VideoPlayer-5f0a64c6.js');
4
4
  var require$$0 = require('react');
5
5
 
6
6
  function _mergeNamespaces(n, m) {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var components_Video_VideoPlayer = require('./VideoPlayer-e2de3674.js');
3
+ var components_Video_VideoPlayer = require('./VideoPlayer-5f0a64c6.js');
4
4
  var require$$0 = require('react');
5
5
 
6
6
  function _mergeNamespaces(n, m) {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var components_Video_VideoPlayer = require('./VideoPlayer-e2de3674.js');
3
+ var components_Video_VideoPlayer = require('./VideoPlayer-5f0a64c6.js');
4
4
  var require$$0 = require('react');
5
5
 
6
6
  function _mergeNamespaces(n, m) {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var components_Video_VideoPlayer = require('./VideoPlayer-e2de3674.js');
3
+ var components_Video_VideoPlayer = require('./VideoPlayer-5f0a64c6.js');
4
4
  var require$$0 = require('react');
5
5
 
6
6
  function _mergeNamespaces(n, m) {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var components_Video_VideoPlayer = require('./VideoPlayer-e2de3674.js');
3
+ var components_Video_VideoPlayer = require('./VideoPlayer-5f0a64c6.js');
4
4
  var require$$0 = require('react');
5
5
 
6
6
  function _mergeNamespaces(n, m) {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var components_Video_VideoPlayer = require('./VideoPlayer-e2de3674.js');
3
+ var components_Video_VideoPlayer = require('./VideoPlayer-5f0a64c6.js');
4
4
  var require$$0 = require('react');
5
5
 
6
6
  function _mergeNamespaces(n, m) {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var components_Video_VideoPlayer = require('./VideoPlayer-e2de3674.js');
3
+ var components_Video_VideoPlayer = require('./VideoPlayer-5f0a64c6.js');
4
4
  var require$$0 = require('react');
5
5
 
6
6
  function _mergeNamespaces(n, m) {
@@ -634,7 +634,7 @@ patterns.canPlay = canPlay;
634
634
  lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
635
635
  return Promise.resolve().then(function () { return require(
636
636
  /* webpackChunkName: 'reactPlayerYouTube' */
637
- './YouTube-588e57ea.js'); }).then(function (n) { return n.YouTube; });
637
+ './YouTube-a3796a55.js'); }).then(function (n) { return n.YouTube; });
638
638
  })
639
639
  }, {
640
640
  key: 'soundcloud',
@@ -643,7 +643,7 @@ patterns.canPlay = canPlay;
643
643
  lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
644
644
  return Promise.resolve().then(function () { return require(
645
645
  /* webpackChunkName: 'reactPlayerSoundCloud' */
646
- './SoundCloud-1739c1f1.js'); }).then(function (n) { return n.SoundCloud; });
646
+ './SoundCloud-2500b6cb.js'); }).then(function (n) { return n.SoundCloud; });
647
647
  })
648
648
  }, {
649
649
  key: 'vimeo',
@@ -652,7 +652,7 @@ patterns.canPlay = canPlay;
652
652
  lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
653
653
  return Promise.resolve().then(function () { return require(
654
654
  /* webpackChunkName: 'reactPlayerVimeo' */
655
- './Vimeo-fc878336.js'); }).then(function (n) { return n.Vimeo; });
655
+ './Vimeo-d311e3b8.js'); }).then(function (n) { return n.Vimeo; });
656
656
  })
657
657
  }, {
658
658
  key: 'facebook',
@@ -661,7 +661,7 @@ patterns.canPlay = canPlay;
661
661
  lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
662
662
  return Promise.resolve().then(function () { return require(
663
663
  /* webpackChunkName: 'reactPlayerFacebook' */
664
- './Facebook-d58c4f38.js'); }).then(function (n) { return n.Facebook; });
664
+ './Facebook-0c8d86ee.js'); }).then(function (n) { return n.Facebook; });
665
665
  })
666
666
  }, {
667
667
  key: 'streamable',
@@ -670,7 +670,7 @@ patterns.canPlay = canPlay;
670
670
  lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
671
671
  return Promise.resolve().then(function () { return require(
672
672
  /* webpackChunkName: 'reactPlayerStreamable' */
673
- './Streamable-837b9cf6.js'); }).then(function (n) { return n.Streamable; });
673
+ './Streamable-00723065.js'); }).then(function (n) { return n.Streamable; });
674
674
  })
675
675
  }, {
676
676
  key: 'wistia',
@@ -679,7 +679,7 @@ patterns.canPlay = canPlay;
679
679
  lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
680
680
  return Promise.resolve().then(function () { return require(
681
681
  /* webpackChunkName: 'reactPlayerWistia' */
682
- './Wistia-7aa618d2.js'); }).then(function (n) { return n.Wistia; });
682
+ './Wistia-318b4e43.js'); }).then(function (n) { return n.Wistia; });
683
683
  })
684
684
  }, {
685
685
  key: 'twitch',
@@ -688,7 +688,7 @@ patterns.canPlay = canPlay;
688
688
  lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
689
689
  return Promise.resolve().then(function () { return require(
690
690
  /* webpackChunkName: 'reactPlayerTwitch' */
691
- './Twitch-bf2a7602.js'); }).then(function (n) { return n.Twitch; });
691
+ './Twitch-2c5c5733.js'); }).then(function (n) { return n.Twitch; });
692
692
  })
693
693
  }, {
694
694
  key: 'dailymotion',
@@ -697,7 +697,7 @@ patterns.canPlay = canPlay;
697
697
  lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
698
698
  return Promise.resolve().then(function () { return require(
699
699
  /* webpackChunkName: 'reactPlayerDailyMotion' */
700
- './DailyMotion-e06c9a92.js'); }).then(function (n) { return n.DailyMotion; });
700
+ './DailyMotion-17b56ecb.js'); }).then(function (n) { return n.DailyMotion; });
701
701
  })
702
702
  }, {
703
703
  key: 'mixcloud',
@@ -706,7 +706,7 @@ patterns.canPlay = canPlay;
706
706
  lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
707
707
  return Promise.resolve().then(function () { return require(
708
708
  /* webpackChunkName: 'reactPlayerMixcloud' */
709
- './Mixcloud-124760a9.js'); }).then(function (n) { return n.Mixcloud; });
709
+ './Mixcloud-e23f49d6.js'); }).then(function (n) { return n.Mixcloud; });
710
710
  })
711
711
  }, {
712
712
  key: 'vidyard',
@@ -715,7 +715,7 @@ patterns.canPlay = canPlay;
715
715
  lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
716
716
  return Promise.resolve().then(function () { return require(
717
717
  /* webpackChunkName: 'reactPlayerVidyard' */
718
- './Vidyard-1256273d.js'); }).then(function (n) { return n.Vidyard; });
718
+ './Vidyard-d36d6c45.js'); }).then(function (n) { return n.Vidyard; });
719
719
  })
720
720
  }, {
721
721
  key: 'kaltura',
@@ -724,7 +724,7 @@ patterns.canPlay = canPlay;
724
724
  lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
725
725
  return Promise.resolve().then(function () { return require(
726
726
  /* webpackChunkName: 'reactPlayerKaltura' */
727
- './Kaltura-60c01a5d.js'); }).then(function (n) { return n.Kaltura; });
727
+ './Kaltura-40e8e581.js'); }).then(function (n) { return n.Kaltura; });
728
728
  })
729
729
  }, {
730
730
  key: 'file',
@@ -736,7 +736,7 @@ patterns.canPlay = canPlay;
736
736
  lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
737
737
  return Promise.resolve().then(function () { return require(
738
738
  /* webpackChunkName: 'reactPlayerFilePlayer' */
739
- './FilePlayer-fd6ea462.js'); }).then(function (n) { return n.FilePlayer; });
739
+ './FilePlayer-01d6dc08.js'); }).then(function (n) { return n.FilePlayer; });
740
740
  })
741
741
  }];
742
742
  exports["default"] = _default;
@@ -1661,7 +1661,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
1661
1661
  var Preview = /*#__PURE__*/(0, _react.lazy)(function () {
1662
1662
  return Promise.resolve().then(function () { return require(
1663
1663
  /* webpackChunkName: 'reactPlayerPreview' */
1664
- './Preview-81296819.js'); }).then(function (n) { return n.Preview; });
1664
+ './Preview-8e490f54.js'); }).then(function (n) { return n.Preview; });
1665
1665
  });
1666
1666
  var IS_BROWSER = typeof window !== 'undefined' && window.document;
1667
1667
  var IS_GLOBAL = typeof commonjsGlobal !== 'undefined' && commonjsGlobal.window && commonjsGlobal.window.document;
@@ -1917,7 +1917,7 @@ const ReactPlayer = RP;
1917
1917
  const VideoPlayer = ({ controls, src, poster, youtube, tracks, }) => {
1918
1918
  var _a;
1919
1919
  const { prefix } = hooks_useGlobalSettings();
1920
- const baseClass = `${prefix}--video`;
1920
+ const baseClass = `${prefix}--legacyvideo`;
1921
1921
  const playerClasses = classNames("", {
1922
1922
  [`${baseClass}--player`]: true,
1923
1923
  [`youtube`]: youtube,
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var components_Video_VideoPlayer = require('./VideoPlayer-e2de3674.js');
3
+ var components_Video_VideoPlayer = require('./VideoPlayer-5f0a64c6.js');
4
4
  var require$$0 = require('react');
5
5
 
6
6
  function _mergeNamespaces(n, m) {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var components_Video_VideoPlayer = require('./VideoPlayer-e2de3674.js');
3
+ var components_Video_VideoPlayer = require('./VideoPlayer-5f0a64c6.js');
4
4
  var require$$0 = require('react');
5
5
 
6
6
  function _mergeNamespaces(n, m) {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var components_Video_VideoPlayer = require('./VideoPlayer-e2de3674.js');
3
+ var components_Video_VideoPlayer = require('./VideoPlayer-5f0a64c6.js');
4
4
  var require$$0 = require('react');
5
5
 
6
6
  function _mergeNamespaces(n, m) {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var components_Video_VideoPlayer = require('./VideoPlayer-e2de3674.js');
3
+ var components_Video_VideoPlayer = require('./VideoPlayer-5f0a64c6.js');
4
4
  var require$$0 = require('react');
5
5
 
6
6
  function _mergeNamespaces(n, m) {
@@ -11,7 +11,7 @@ require('../../GlobalCtx-97e4b433.js');
11
11
  require('../Tooltip/Tooltip.js');
12
12
  require('@popperjs/core');
13
13
 
14
- const Input = ({ callback, disabled = false, error, helper, id, label, name, placeholder, required, tooltip, type = "text", }) => {
14
+ const Input = ({ callback, disabled = false, error, helper, id, label, name, placeholder, required, tooltip, value, type = "text", }) => {
15
15
  const { prefix } = hooks_useGlobalSettings();
16
16
  const baseClass = `${prefix}--input`;
17
17
  const InputClasses = classNames("", {
@@ -26,7 +26,7 @@ const Input = ({ callback, disabled = false, error, helper, id, label, name, pla
26
26
  callback(e);
27
27
  }
28
28
  };
29
- return (jsxRuntime.jsx(components_Fieldset_Fieldset.default, { children: jsxRuntime.jsx(components_FormElement_FormElement, Object.assign({ elemid: name, label: label, helper: helper, error: error, required: required, tooltip: tooltip }, { children: jsxRuntime.jsx("input", { id: id ? id : name, name: name, onChange: handleChange, disabled: disabled, placeholder: placeholder, required: required, type: type, className: InputClasses }) })) }));
29
+ return (jsxRuntime.jsx(components_Fieldset_Fieldset.default, { children: jsxRuntime.jsx(components_FormElement_FormElement, Object.assign({ elemid: name, label: label, helper: helper, error: error, required: required, tooltip: tooltip }, { children: jsxRuntime.jsx("input", { id: id ? id : name, name: name, onChange: handleChange, disabled: disabled, placeholder: placeholder, required: required, type: type, value: value, className: InputClasses }) })) }));
30
30
  };
31
31
 
32
32
  module.exports = Input;
@@ -17,9 +17,9 @@ const List = ({ children, className, alignment, ordered, title, }) => {
17
17
  [`${baseClass}--${alignment}`]: alignment,
18
18
  [`${baseClass}--${ordered}`]: true,
19
19
  });
20
- return (jsxRuntime.jsxs(ListCtx.ListContext.Provider, Object.assign({ value: {
20
+ return (jsxRuntime.jsx(ListCtx.ListContext.Provider, Object.assign({ value: {
21
21
  activeItems,
22
- } }, { children: [ordered && ordered === "ordered" && (jsxRuntime.jsxs("ol", Object.assign({ className: listClasses }, { children: [title && jsxRuntime.jsx("h5", Object.assign({ className: `${baseClass}__title` }, { children: title })), children] }))), ordered && ordered !== "ordered" && (jsxRuntime.jsxs("ul", Object.assign({ className: listClasses }, { children: [title && jsxRuntime.jsx("h5", Object.assign({ className: `${baseClass}__title` }, { children: title })), children] })))] })));
22
+ } }, { children: jsxRuntime.jsxs("div", Object.assign({ className: listClasses }, { children: [title && jsxRuntime.jsx("h5", Object.assign({ className: `${baseClass}__title` }, { children: title })), ordered && ordered === "ordered" && jsxRuntime.jsx("ol", { children: children }), ordered && ordered !== "ordered" && (jsxRuntime.jsx("ul", Object.assign({ className: `${baseClass}--${alignment}` }, { children: children })))] })) })));
23
23
  };
24
24
 
25
25
  module.exports = List;
@@ -37,9 +37,6 @@ var brand = {
37
37
  "ilo-dark-red": {
38
38
  value: "rgba(200, 48, 60, 1)"
39
39
  },
40
- "ilo-lighter-blue": {
41
- value: "rgba(235, 245, 253, 1)"
42
- },
43
40
  "ilo-light-blue": {
44
41
  value: "rgba(235, 245, 253, 1)"
45
42
  },
@@ -55,9 +52,6 @@ var brand = {
55
52
  "ilo-grey-accessible": {
56
53
  value: "rgba(109, 109, 109, 1)"
57
54
  },
58
- "ilo-grey-charcoal": {
59
- value: "rgba(45, 45, 45, 1)"
60
- },
61
55
  "ilo-black": {
62
56
  value: "rgba(45, 45, 45, 1)"
63
57
  },
@@ -13,6 +13,8 @@ require('../Fieldset/Fieldset.js');
13
13
  require('../Tooltip/Tooltip.js');
14
14
  require('@popperjs/core');
15
15
  require('../FormElement/FormElement.js');
16
+ require('../Icon/Icon.js');
17
+ require('@ilo-org/icons-react');
16
18
 
17
19
  const Navigation = ({ logo, mobilelogo, siteurl, tagline, primarynav, subnav, menulabel, menucloselabel, searchlabel, searchfield, languagelabel, languagecontextmenu, }) => {
18
20
  const { prefix } = hooks_useGlobalSettings();
@@ -14,6 +14,8 @@ require('../Fieldset/Fieldset.js');
14
14
  require('../Tooltip/Tooltip.js');
15
15
  require('@popperjs/core');
16
16
  require('../FormElement/FormElement.js');
17
+ require('../Icon/Icon.js');
18
+ require('@ilo-org/icons-react');
17
19
 
18
20
 
19
21
 
@@ -1,38 +1,48 @@
1
1
  'use strict';
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
+ var require$$0 = require('react');
4
5
  var classNames = require('classnames');
5
6
  var hooks_useGlobalSettings = require('../../hooks/useGlobalSettings.js');
6
7
  var components_Input_Input = require('../Input/Input.js');
8
+ var components_Icon_Icon = require('../Icon/Icon.js');
7
9
  require('tslib');
8
- require('react');
9
10
  require('../../GlobalCtx-97e4b433.js');
10
11
  require('../Fieldset/Fieldset.js');
11
12
  require('../Tooltip/Tooltip.js');
12
13
  require('@popperjs/core');
13
14
  require('../FormElement/FormElement.js');
15
+ require('@ilo-org/icons-react');
14
16
 
15
17
  const SearchField = ({ action, callback, className, input, }) => {
18
+ const [searchValue, setSearchValue] = require$$0.useState("");
16
19
  const { prefix } = hooks_useGlobalSettings();
17
20
  const baseClass = `${prefix}--searchfield`;
18
21
  const buttonClass = `${baseClass}--button`;
22
+ const clearButtonClass = `${baseClass}--clear-button ${searchValue.trim() !== "" && "show"}`;
23
+ const fieldSetClass = `${prefix}--fieldset`;
19
24
  const SearchFieldClasses = classNames(className, {
20
25
  [baseClass]: true,
21
26
  [`haslabel`]: input === null || input === void 0 ? void 0 : input.label,
22
27
  });
23
- /**
24
- * On click, if there is a callback, call it
25
- */
26
28
  const handleClick = (e) => {
27
29
  if (callback) {
28
30
  callback(e);
29
31
  }
30
32
  };
33
+ // handle click for clear button in search
34
+ const handleClearButtonClick = () => {
35
+ setSearchValue("");
36
+ };
37
+ // Update search value on input
38
+ const onKeyPress = (e) => {
39
+ setSearchValue(e.target.value);
40
+ };
31
41
  const inputHasType = !!(input === null || input === void 0 ? void 0 : input.type);
32
42
  if (!inputHasType) {
33
43
  throw new Error("SearchField: Input must have type prop");
34
44
  }
35
- return inputHasType ? (jsxRuntime.jsxs("form", Object.assign({ className: SearchFieldClasses, action: action }, { children: [jsxRuntime.jsx(components_Input_Input, { id: input === null || input === void 0 ? void 0 : input.id, name: input === null || input === void 0 ? void 0 : input.name, disabled: input === null || input === void 0 ? void 0 : input.disabled, callback: input === null || input === void 0 ? void 0 : input.callback, error: input === null || input === void 0 ? void 0 : input.error, helper: input === null || input === void 0 ? void 0 : input.helper, label: input === null || input === void 0 ? void 0 : input.label, placeholder: input === null || input === void 0 ? void 0 : input.placeholder, type: input === null || input === void 0 ? void 0 : input.type, className: `${prefix}--input` }), jsxRuntime.jsx("input", { className: buttonClass, disabled: input === null || input === void 0 ? void 0 : input.disabled, type: "submit", onClick: handleClick })] }))) : null;
45
+ return inputHasType ? (jsxRuntime.jsxs("form", Object.assign({ className: SearchFieldClasses, action: action }, { children: [jsxRuntime.jsxs("div", Object.assign({ className: fieldSetClass }, { children: [jsxRuntime.jsx(components_Input_Input, { id: input === null || input === void 0 ? void 0 : input.id, name: input === null || input === void 0 ? void 0 : input.name, disabled: input === null || input === void 0 ? void 0 : input.disabled, callback: onKeyPress, error: input === null || input === void 0 ? void 0 : input.error, helper: input === null || input === void 0 ? void 0 : input.helper, label: input === null || input === void 0 ? void 0 : input.label, placeholder: input === null || input === void 0 ? void 0 : input.placeholder, type: input === null || input === void 0 ? void 0 : input.type, value: searchValue, className: `${prefix}--input` }), jsxRuntime.jsx("span", Object.assign({ onClick: handleClearButtonClick, className: clearButtonClass }, { children: jsxRuntime.jsx(components_Icon_Icon, { name: "close", hidden: true }) }))] })), jsxRuntime.jsx("input", { className: buttonClass, disabled: input === null || input === void 0 ? void 0 : input.disabled, type: "submit", onClick: handleClick })] }))) : null;
36
46
  };
37
47
 
38
48
  module.exports = SearchField;
@@ -2,16 +2,18 @@
2
2
 
3
3
  var components_SearchField_SearchField = require('./SearchField.js');
4
4
  require('react/jsx-runtime');
5
+ require('react');
5
6
  require('classnames');
6
7
  require('../../hooks/useGlobalSettings.js');
7
8
  require('tslib');
8
- require('react');
9
9
  require('../../GlobalCtx-97e4b433.js');
10
10
  require('../Input/Input.js');
11
11
  require('../Fieldset/Fieldset.js');
12
12
  require('../Tooltip/Tooltip.js');
13
13
  require('@popperjs/core');
14
14
  require('../FormElement/FormElement.js');
15
+ require('../Icon/Icon.js');
16
+ require('@ilo-org/icons-react');
15
17
 
16
18
 
17
19
 
@@ -3,7 +3,7 @@
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
4
  var classNames = require('classnames');
5
5
  var hooks_useGlobalSettings = require('../../hooks/useGlobalSettings.js');
6
- var components_Video_VideoPlayer = require('../../VideoPlayer-e2de3674.js');
6
+ var components_Video_VideoPlayer = require('../../VideoPlayer-5f0a64c6.js');
7
7
  require('tslib');
8
8
  require('react');
9
9
  require('../../GlobalCtx-97e4b433.js');
@@ -14,7 +14,7 @@ require('screenfull');
14
14
 
15
15
  const Video = ({ className, caption, poster, video }) => {
16
16
  const { prefix } = hooks_useGlobalSettings();
17
- const baseClass = `${prefix}--video`;
17
+ const baseClass = `${prefix}--legacyvideo`;
18
18
  const videoClasses = classNames(className, {
19
19
  [baseClass]: true,
20
20
  });
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('react/jsx-runtime');
4
4
  require('react');
5
- var components_Video_VideoPlayer = require('../../VideoPlayer-e2de3674.js');
5
+ var components_Video_VideoPlayer = require('../../VideoPlayer-5f0a64c6.js');
6
6
  require('react-dom');
7
7
  require('classnames');
8
8
  require('../../hooks/useGlobalSettings.js');
@@ -7,7 +7,7 @@ require('../../hooks/useGlobalSettings.js');
7
7
  require('tslib');
8
8
  require('react');
9
9
  require('../../GlobalCtx-97e4b433.js');
10
- require('../../VideoPlayer-e2de3674.js');
10
+ require('../../VideoPlayer-5f0a64c6.js');
11
11
  require('../../index-0af02e81.js');
12
12
  require('react-dom');
13
13
  require('../../utils/hoursMinutesSeconds.js');
@@ -74,7 +74,7 @@ require('./Hero/HeroCard.js');
74
74
  require('./SocialMedia/SocialMedia.js');
75
75
  require('./Input/Input.js');
76
76
  require('./FormElement/FormElement.js');
77
- require('../VideoPlayer-e2de3674.js');
77
+ require('../VideoPlayer-5f0a64c6.js');
78
78
  require('../utils/hoursMinutesSeconds.js');
79
79
  require('screenfull');
80
80
  require('@ilo-org/icons-react');
package/lib/cjs/index.js CHANGED
@@ -75,7 +75,7 @@ require('./components/Hero/HeroCard.js');
75
75
  require('./components/SocialMedia/SocialMedia.js');
76
76
  require('./components/Input/Input.js');
77
77
  require('./components/FormElement/FormElement.js');
78
- require('./VideoPlayer-e2de3674.js');
78
+ require('./VideoPlayer-5f0a64c6.js');
79
79
  require('./utils/hoursMinutesSeconds.js');
80
80
  require('screenfull');
81
81
  require('./components/Logo/Logo.js');
@@ -1,4 +1,4 @@
1
- import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-b5d125fd.js';
1
+ import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-96c2b20c.js';
2
2
  import require$$0 from 'react';
3
3
 
4
4
  function _mergeNamespaces(n, m) {
@@ -1,4 +1,4 @@
1
- import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-b5d125fd.js';
1
+ import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-96c2b20c.js';
2
2
  import require$$0 from 'react';
3
3
 
4
4
  function _mergeNamespaces(n, m) {
@@ -1,4 +1,4 @@
1
- import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-b5d125fd.js';
1
+ import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-96c2b20c.js';
2
2
  import require$$0 from 'react';
3
3
 
4
4
  function _mergeNamespaces(n, m) {
@@ -1,4 +1,4 @@
1
- import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-b5d125fd.js';
1
+ import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-96c2b20c.js';
2
2
  import require$$0 from 'react';
3
3
 
4
4
  function _mergeNamespaces(n, m) {
@@ -1,4 +1,4 @@
1
- import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-b5d125fd.js';
1
+ import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-96c2b20c.js';
2
2
  import require$$0 from 'react';
3
3
 
4
4
  function _mergeNamespaces(n, m) {
@@ -1,4 +1,4 @@
1
- import { g as getDefaultExportFromCjs } from './VideoPlayer-b5d125fd.js';
1
+ import { g as getDefaultExportFromCjs } from './VideoPlayer-96c2b20c.js';
2
2
  import require$$0 from 'react';
3
3
 
4
4
  function _mergeNamespaces(n, m) {
@@ -1,4 +1,4 @@
1
- import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-b5d125fd.js';
1
+ import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-96c2b20c.js';
2
2
  import require$$0 from 'react';
3
3
 
4
4
  function _mergeNamespaces(n, m) {
@@ -1,4 +1,4 @@
1
- import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-b5d125fd.js';
1
+ import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-96c2b20c.js';
2
2
  import require$$0 from 'react';
3
3
 
4
4
  function _mergeNamespaces(n, m) {
@@ -1,4 +1,4 @@
1
- import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-b5d125fd.js';
1
+ import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-96c2b20c.js';
2
2
  import require$$0 from 'react';
3
3
 
4
4
  function _mergeNamespaces(n, m) {
@@ -632,7 +632,7 @@ patterns.canPlay = canPlay;
632
632
  lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
633
633
  return import(
634
634
  /* webpackChunkName: 'reactPlayerYouTube' */
635
- './YouTube-2e7e24ca.js').then(function (n) { return n.Y; });
635
+ './YouTube-db52da1c.js').then(function (n) { return n.Y; });
636
636
  })
637
637
  }, {
638
638
  key: 'soundcloud',
@@ -641,7 +641,7 @@ patterns.canPlay = canPlay;
641
641
  lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
642
642
  return import(
643
643
  /* webpackChunkName: 'reactPlayerSoundCloud' */
644
- './SoundCloud-78094ae3.js').then(function (n) { return n.S; });
644
+ './SoundCloud-47bccd79.js').then(function (n) { return n.S; });
645
645
  })
646
646
  }, {
647
647
  key: 'vimeo',
@@ -650,7 +650,7 @@ patterns.canPlay = canPlay;
650
650
  lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
651
651
  return import(
652
652
  /* webpackChunkName: 'reactPlayerVimeo' */
653
- './Vimeo-dd76c909.js').then(function (n) { return n.V; });
653
+ './Vimeo-4b29b580.js').then(function (n) { return n.V; });
654
654
  })
655
655
  }, {
656
656
  key: 'facebook',
@@ -659,7 +659,7 @@ patterns.canPlay = canPlay;
659
659
  lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
660
660
  return import(
661
661
  /* webpackChunkName: 'reactPlayerFacebook' */
662
- './Facebook-4a2334f4.js').then(function (n) { return n.F; });
662
+ './Facebook-04e9cc59.js').then(function (n) { return n.F; });
663
663
  })
664
664
  }, {
665
665
  key: 'streamable',
@@ -668,7 +668,7 @@ patterns.canPlay = canPlay;
668
668
  lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
669
669
  return import(
670
670
  /* webpackChunkName: 'reactPlayerStreamable' */
671
- './Streamable-44c36485.js').then(function (n) { return n.S; });
671
+ './Streamable-ee762126.js').then(function (n) { return n.S; });
672
672
  })
673
673
  }, {
674
674
  key: 'wistia',
@@ -677,7 +677,7 @@ patterns.canPlay = canPlay;
677
677
  lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
678
678
  return import(
679
679
  /* webpackChunkName: 'reactPlayerWistia' */
680
- './Wistia-d98e9e9e.js').then(function (n) { return n.W; });
680
+ './Wistia-3cbce669.js').then(function (n) { return n.W; });
681
681
  })
682
682
  }, {
683
683
  key: 'twitch',
@@ -686,7 +686,7 @@ patterns.canPlay = canPlay;
686
686
  lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
687
687
  return import(
688
688
  /* webpackChunkName: 'reactPlayerTwitch' */
689
- './Twitch-cec3b85d.js').then(function (n) { return n.T; });
689
+ './Twitch-3cd4b54b.js').then(function (n) { return n.T; });
690
690
  })
691
691
  }, {
692
692
  key: 'dailymotion',
@@ -695,7 +695,7 @@ patterns.canPlay = canPlay;
695
695
  lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
696
696
  return import(
697
697
  /* webpackChunkName: 'reactPlayerDailyMotion' */
698
- './DailyMotion-2e38ef76.js').then(function (n) { return n.D; });
698
+ './DailyMotion-989c2db3.js').then(function (n) { return n.D; });
699
699
  })
700
700
  }, {
701
701
  key: 'mixcloud',
@@ -704,7 +704,7 @@ patterns.canPlay = canPlay;
704
704
  lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
705
705
  return import(
706
706
  /* webpackChunkName: 'reactPlayerMixcloud' */
707
- './Mixcloud-b0f9376b.js').then(function (n) { return n.M; });
707
+ './Mixcloud-5a3b4353.js').then(function (n) { return n.M; });
708
708
  })
709
709
  }, {
710
710
  key: 'vidyard',
@@ -713,7 +713,7 @@ patterns.canPlay = canPlay;
713
713
  lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
714
714
  return import(
715
715
  /* webpackChunkName: 'reactPlayerVidyard' */
716
- './Vidyard-44d40c02.js').then(function (n) { return n.V; });
716
+ './Vidyard-258ab0ef.js').then(function (n) { return n.V; });
717
717
  })
718
718
  }, {
719
719
  key: 'kaltura',
@@ -722,7 +722,7 @@ patterns.canPlay = canPlay;
722
722
  lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
723
723
  return import(
724
724
  /* webpackChunkName: 'reactPlayerKaltura' */
725
- './Kaltura-c80bdfb7.js').then(function (n) { return n.K; });
725
+ './Kaltura-a9ed37a9.js').then(function (n) { return n.K; });
726
726
  })
727
727
  }, {
728
728
  key: 'file',
@@ -734,7 +734,7 @@ patterns.canPlay = canPlay;
734
734
  lazyPlayer: /*#__PURE__*/(0, _react.lazy)(function () {
735
735
  return import(
736
736
  /* webpackChunkName: 'reactPlayerFilePlayer' */
737
- './FilePlayer-40e1ae01.js').then(function (n) { return n.F; });
737
+ './FilePlayer-0789336d.js').then(function (n) { return n.F; });
738
738
  })
739
739
  }];
740
740
  exports["default"] = _default;
@@ -1659,7 +1659,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
1659
1659
  var Preview = /*#__PURE__*/(0, _react.lazy)(function () {
1660
1660
  return import(
1661
1661
  /* webpackChunkName: 'reactPlayerPreview' */
1662
- './Preview-07219fbc.js').then(function (n) { return n.P; });
1662
+ './Preview-7ca1835e.js').then(function (n) { return n.P; });
1663
1663
  });
1664
1664
  var IS_BROWSER = typeof window !== 'undefined' && window.document;
1665
1665
  var IS_GLOBAL = typeof commonjsGlobal !== 'undefined' && commonjsGlobal.window && commonjsGlobal.window.document;
@@ -1915,7 +1915,7 @@ const ReactPlayer = RP;
1915
1915
  const VideoPlayer = ({ controls, src, poster, youtube, tracks, }) => {
1916
1916
  var _a;
1917
1917
  const { prefix } = useGlobalSettings();
1918
- const baseClass = `${prefix}--video`;
1918
+ const baseClass = `${prefix}--legacyvideo`;
1919
1919
  const playerClasses = classNames("", {
1920
1920
  [`${baseClass}--player`]: true,
1921
1921
  [`youtube`]: youtube,
@@ -1,4 +1,4 @@
1
- import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-b5d125fd.js';
1
+ import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-96c2b20c.js';
2
2
  import require$$0 from 'react';
3
3
 
4
4
  function _mergeNamespaces(n, m) {
@@ -1,4 +1,4 @@
1
- import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-b5d125fd.js';
1
+ import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-96c2b20c.js';
2
2
  import require$$0 from 'react';
3
3
 
4
4
  function _mergeNamespaces(n, m) {
@@ -1,4 +1,4 @@
1
- import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-b5d125fd.js';
1
+ import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-96c2b20c.js';
2
2
  import require$$0 from 'react';
3
3
 
4
4
  function _mergeNamespaces(n, m) {
@@ -1,4 +1,4 @@
1
- import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-b5d125fd.js';
1
+ import { g as getDefaultExportFromCjs, p as patterns, u as utils } from './VideoPlayer-96c2b20c.js';
2
2
  import require$$0 from 'react';
3
3
 
4
4
  function _mergeNamespaces(n, m) {
@@ -9,7 +9,7 @@ import '../../GlobalCtx-7fb23cfa.js';
9
9
  import '../Tooltip/Tooltip.js';
10
10
  import '@popperjs/core';
11
11
 
12
- const Input = ({ callback, disabled = false, error, helper, id, label, name, placeholder, required, tooltip, type = "text", }) => {
12
+ const Input = ({ callback, disabled = false, error, helper, id, label, name, placeholder, required, tooltip, value, type = "text", }) => {
13
13
  const { prefix } = useGlobalSettings();
14
14
  const baseClass = `${prefix}--input`;
15
15
  const InputClasses = classNames("", {
@@ -24,7 +24,7 @@ const Input = ({ callback, disabled = false, error, helper, id, label, name, pla
24
24
  callback(e);
25
25
  }
26
26
  };
27
- return (jsx(Fieldset, { children: jsx(FormElement, Object.assign({ elemid: name, label: label, helper: helper, error: error, required: required, tooltip: tooltip }, { children: jsx("input", { id: id ? id : name, name: name, onChange: handleChange, disabled: disabled, placeholder: placeholder, required: required, type: type, className: InputClasses }) })) }));
27
+ return (jsx(Fieldset, { children: jsx(FormElement, Object.assign({ elemid: name, label: label, helper: helper, error: error, required: required, tooltip: tooltip }, { children: jsx("input", { id: id ? id : name, name: name, onChange: handleChange, disabled: disabled, placeholder: placeholder, required: required, type: type, value: value, className: InputClasses }) })) }));
28
28
  };
29
29
 
30
30
  export { Input as default };
@@ -1,4 +1,4 @@
1
- import { jsxs, jsx } from 'react/jsx-runtime';
1
+ import { jsx, jsxs } from 'react/jsx-runtime';
2
2
  import classNames from 'classnames';
3
3
  import { useState } from 'react';
4
4
  import useGlobalSettings from '../../hooks/useGlobalSettings.js';
@@ -15,9 +15,9 @@ const List = ({ children, className, alignment, ordered, title, }) => {
15
15
  [`${baseClass}--${alignment}`]: alignment,
16
16
  [`${baseClass}--${ordered}`]: true,
17
17
  });
18
- return (jsxs(ListContext.Provider, Object.assign({ value: {
18
+ return (jsx(ListContext.Provider, Object.assign({ value: {
19
19
  activeItems,
20
- } }, { children: [ordered && ordered === "ordered" && (jsxs("ol", Object.assign({ className: listClasses }, { children: [title && jsx("h5", Object.assign({ className: `${baseClass}__title` }, { children: title })), children] }))), ordered && ordered !== "ordered" && (jsxs("ul", Object.assign({ className: listClasses }, { children: [title && jsx("h5", Object.assign({ className: `${baseClass}__title` }, { children: title })), children] })))] })));
20
+ } }, { children: jsxs("div", Object.assign({ className: listClasses }, { children: [title && jsx("h5", Object.assign({ className: `${baseClass}__title` }, { children: title })), ordered && ordered === "ordered" && jsx("ol", { children: children }), ordered && ordered !== "ordered" && (jsx("ul", Object.assign({ className: `${baseClass}--${alignment}` }, { children: children })))] })) })));
21
21
  };
22
22
 
23
23
  export { List as default };
@@ -35,9 +35,6 @@ var brand = {
35
35
  "ilo-dark-red": {
36
36
  value: "rgba(200, 48, 60, 1)"
37
37
  },
38
- "ilo-lighter-blue": {
39
- value: "rgba(235, 245, 253, 1)"
40
- },
41
38
  "ilo-light-blue": {
42
39
  value: "rgba(235, 245, 253, 1)"
43
40
  },
@@ -53,9 +50,6 @@ var brand = {
53
50
  "ilo-grey-accessible": {
54
51
  value: "rgba(109, 109, 109, 1)"
55
52
  },
56
- "ilo-grey-charcoal": {
57
- value: "rgba(45, 45, 45, 1)"
58
- },
59
53
  "ilo-black": {
60
54
  value: "rgba(45, 45, 45, 1)"
61
55
  },
@@ -11,6 +11,8 @@ import '../Fieldset/Fieldset.js';
11
11
  import '../Tooltip/Tooltip.js';
12
12
  import '@popperjs/core';
13
13
  import '../FormElement/FormElement.js';
14
+ import '../Icon/Icon.js';
15
+ import '@ilo-org/icons-react';
14
16
 
15
17
  const Navigation = ({ logo, mobilelogo, siteurl, tagline, primarynav, subnav, menulabel, menucloselabel, searchlabel, searchfield, languagelabel, languagecontextmenu, }) => {
16
18
  const { prefix } = useGlobalSettings();
@@ -12,3 +12,5 @@ import '../Fieldset/Fieldset.js';
12
12
  import '../Tooltip/Tooltip.js';
13
13
  import '@popperjs/core';
14
14
  import '../FormElement/FormElement.js';
15
+ import '../Icon/Icon.js';
16
+ import '@ilo-org/icons-react';
@@ -1,36 +1,46 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import { useState } from 'react';
2
3
  import classNames from 'classnames';
3
4
  import useGlobalSettings from '../../hooks/useGlobalSettings.js';
4
5
  import Input from '../Input/Input.js';
6
+ import Icon from '../Icon/Icon.js';
5
7
  import 'tslib';
6
- import 'react';
7
8
  import '../../GlobalCtx-7fb23cfa.js';
8
9
  import '../Fieldset/Fieldset.js';
9
10
  import '../Tooltip/Tooltip.js';
10
11
  import '@popperjs/core';
11
12
  import '../FormElement/FormElement.js';
13
+ import '@ilo-org/icons-react';
12
14
 
13
15
  const SearchField = ({ action, callback, className, input, }) => {
16
+ const [searchValue, setSearchValue] = useState("");
14
17
  const { prefix } = useGlobalSettings();
15
18
  const baseClass = `${prefix}--searchfield`;
16
19
  const buttonClass = `${baseClass}--button`;
20
+ const clearButtonClass = `${baseClass}--clear-button ${searchValue.trim() !== "" && "show"}`;
21
+ const fieldSetClass = `${prefix}--fieldset`;
17
22
  const SearchFieldClasses = classNames(className, {
18
23
  [baseClass]: true,
19
24
  [`haslabel`]: input === null || input === void 0 ? void 0 : input.label,
20
25
  });
21
- /**
22
- * On click, if there is a callback, call it
23
- */
24
26
  const handleClick = (e) => {
25
27
  if (callback) {
26
28
  callback(e);
27
29
  }
28
30
  };
31
+ // handle click for clear button in search
32
+ const handleClearButtonClick = () => {
33
+ setSearchValue("");
34
+ };
35
+ // Update search value on input
36
+ const onKeyPress = (e) => {
37
+ setSearchValue(e.target.value);
38
+ };
29
39
  const inputHasType = !!(input === null || input === void 0 ? void 0 : input.type);
30
40
  if (!inputHasType) {
31
41
  throw new Error("SearchField: Input must have type prop");
32
42
  }
33
- return inputHasType ? (jsxs("form", Object.assign({ className: SearchFieldClasses, action: action }, { children: [jsx(Input, { id: input === null || input === void 0 ? void 0 : input.id, name: input === null || input === void 0 ? void 0 : input.name, disabled: input === null || input === void 0 ? void 0 : input.disabled, callback: input === null || input === void 0 ? void 0 : input.callback, error: input === null || input === void 0 ? void 0 : input.error, helper: input === null || input === void 0 ? void 0 : input.helper, label: input === null || input === void 0 ? void 0 : input.label, placeholder: input === null || input === void 0 ? void 0 : input.placeholder, type: input === null || input === void 0 ? void 0 : input.type, className: `${prefix}--input` }), jsx("input", { className: buttonClass, disabled: input === null || input === void 0 ? void 0 : input.disabled, type: "submit", onClick: handleClick })] }))) : null;
43
+ return inputHasType ? (jsxs("form", Object.assign({ className: SearchFieldClasses, action: action }, { children: [jsxs("div", Object.assign({ className: fieldSetClass }, { children: [jsx(Input, { id: input === null || input === void 0 ? void 0 : input.id, name: input === null || input === void 0 ? void 0 : input.name, disabled: input === null || input === void 0 ? void 0 : input.disabled, callback: onKeyPress, error: input === null || input === void 0 ? void 0 : input.error, helper: input === null || input === void 0 ? void 0 : input.helper, label: input === null || input === void 0 ? void 0 : input.label, placeholder: input === null || input === void 0 ? void 0 : input.placeholder, type: input === null || input === void 0 ? void 0 : input.type, value: searchValue, className: `${prefix}--input` }), jsx("span", Object.assign({ onClick: handleClearButtonClick, className: clearButtonClass }, { children: jsx(Icon, { name: "close", hidden: true }) }))] })), jsx("input", { className: buttonClass, disabled: input === null || input === void 0 ? void 0 : input.disabled, type: "submit", onClick: handleClick })] }))) : null;
34
44
  };
35
45
 
36
46
  export { SearchField as default };
@@ -1,12 +1,14 @@
1
1
  export { default as SearchField } from './SearchField.js';
2
2
  import 'react/jsx-runtime';
3
+ import 'react';
3
4
  import 'classnames';
4
5
  import '../../hooks/useGlobalSettings.js';
5
6
  import 'tslib';
6
- import 'react';
7
7
  import '../../GlobalCtx-7fb23cfa.js';
8
8
  import '../Input/Input.js';
9
9
  import '../Fieldset/Fieldset.js';
10
10
  import '../Tooltip/Tooltip.js';
11
11
  import '@popperjs/core';
12
12
  import '../FormElement/FormElement.js';
13
+ import '../Icon/Icon.js';
14
+ import '@ilo-org/icons-react';
@@ -1,7 +1,7 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import classNames from 'classnames';
3
3
  import useGlobalSettings from '../../hooks/useGlobalSettings.js';
4
- import { V as VideoPlayer } from '../../VideoPlayer-b5d125fd.js';
4
+ import { V as VideoPlayer } from '../../VideoPlayer-96c2b20c.js';
5
5
  import 'tslib';
6
6
  import 'react';
7
7
  import '../../GlobalCtx-7fb23cfa.js';
@@ -12,7 +12,7 @@ import 'screenfull';
12
12
 
13
13
  const Video = ({ className, caption, poster, video }) => {
14
14
  const { prefix } = useGlobalSettings();
15
- const baseClass = `${prefix}--video`;
15
+ const baseClass = `${prefix}--legacyvideo`;
16
16
  const videoClasses = classNames(className, {
17
17
  [baseClass]: true,
18
18
  });
@@ -1,6 +1,6 @@
1
1
  import 'react/jsx-runtime';
2
2
  import 'react';
3
- export { V as default } from '../../VideoPlayer-b5d125fd.js';
3
+ export { V as default } from '../../VideoPlayer-96c2b20c.js';
4
4
  import 'react-dom';
5
5
  import 'classnames';
6
6
  import '../../hooks/useGlobalSettings.js';
@@ -5,7 +5,7 @@ import '../../hooks/useGlobalSettings.js';
5
5
  import 'tslib';
6
6
  import 'react';
7
7
  import '../../GlobalCtx-7fb23cfa.js';
8
- import '../../VideoPlayer-b5d125fd.js';
8
+ import '../../VideoPlayer-96c2b20c.js';
9
9
  import '../../index-623ce3f5.js';
10
10
  import 'react-dom';
11
11
  import '../../utils/hoursMinutesSeconds.js';
@@ -72,7 +72,7 @@ import './Hero/HeroCard.js';
72
72
  import './SocialMedia/SocialMedia.js';
73
73
  import './Input/Input.js';
74
74
  import './FormElement/FormElement.js';
75
- import '../VideoPlayer-b5d125fd.js';
75
+ import '../VideoPlayer-96c2b20c.js';
76
76
  import '../utils/hoursMinutesSeconds.js';
77
77
  import 'screenfull';
78
78
  import '@ilo-org/icons-react';
package/lib/esm/index.js CHANGED
@@ -73,7 +73,7 @@ import './components/Hero/HeroCard.js';
73
73
  import './components/SocialMedia/SocialMedia.js';
74
74
  import './components/Input/Input.js';
75
75
  import './components/FormElement/FormElement.js';
76
- import './VideoPlayer-b5d125fd.js';
76
+ import './VideoPlayer-96c2b20c.js';
77
77
  import './utils/hoursMinutesSeconds.js';
78
78
  import 'screenfull';
79
79
  import './components/Logo/Logo.js';
@@ -48,4 +48,5 @@ export interface InputProps {
48
48
  * The input's type.
49
49
  */
50
50
  type: TextInputTypes;
51
+ value: string;
51
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ilo-org/react",
3
- "version": "0.10.4",
3
+ "version": "0.10.6",
4
4
  "description": "React components for the ILO's Design System",
5
5
  "keywords": [
6
6
  "ui_patterns",
@@ -74,11 +74,11 @@
74
74
  "nanoid": "^3.3.6",
75
75
  "react-player": "2.10.1",
76
76
  "react-transition-group": "^4.4.1",
77
- "@ilo-org/brand-assets": "0.3.1",
78
- "@ilo-org/fonts": "0.1.2",
77
+ "@ilo-org/brand-assets": "0.4.0",
79
78
  "@ilo-org/icons-react": "0.0.21",
80
- "@ilo-org/styles": "0.13.2",
81
- "@ilo-org/themes": "0.7.0",
79
+ "@ilo-org/fonts": "0.1.2",
80
+ "@ilo-org/styles": "0.14.0",
81
+ "@ilo-org/themes": "0.7.1",
82
82
  "@ilo-org/utils": "0.0.11"
83
83
  },
84
84
  "devDependencies": {
@@ -132,8 +132,8 @@
132
132
  "tslib": "^2.3.1",
133
133
  "vite": "^4.5.2",
134
134
  "@ilo-org/eslint-config": "0.1.0",
135
- "@ilo-org/prettier-config": "0.0.2",
136
- "@ilo-org/typescript-config": "0.0.1"
135
+ "@ilo-org/typescript-config": "0.0.1",
136
+ "@ilo-org/prettier-config": "0.0.2"
137
137
  },
138
138
  "peerDependencies": {
139
139
  "react": ">16",
@@ -60,4 +60,6 @@ export interface InputProps {
60
60
  * The input's type.
61
61
  */
62
62
  type: TextInputTypes;
63
+
64
+ value: string;
63
65
  }
@@ -16,6 +16,7 @@ const Input: FC<InputProps> = ({
16
16
  placeholder,
17
17
  required,
18
18
  tooltip,
19
+ value,
19
20
  type = "text",
20
21
  }) => {
21
22
  const { prefix } = useGlobalSettings();
@@ -53,6 +54,7 @@ const Input: FC<InputProps> = ({
53
54
  placeholder={placeholder}
54
55
  required={required as any}
55
56
  type={type}
57
+ value={value}
56
58
  className={InputClasses}
57
59
  />
58
60
  </FormElement>
@@ -27,18 +27,13 @@ const List: FC<ListProps> = ({
27
27
  activeItems,
28
28
  }}
29
29
  >
30
- {ordered && ordered === "ordered" && (
31
- <ol className={listClasses}>
32
- {title && <h5 className={`${baseClass}__title`}>{title}</h5>}
33
- {children}
34
- </ol>
35
- )}
36
- {ordered && ordered !== "ordered" && (
37
- <ul className={listClasses}>
38
- {title && <h5 className={`${baseClass}__title`}>{title}</h5>}
39
- {children}
40
- </ul>
41
- )}
30
+ <div className={listClasses}>
31
+ {title && <h5 className={`${baseClass}__title`}>{title}</h5>}
32
+ {ordered && ordered === "ordered" && <ol>{children}</ol>}
33
+ {ordered && ordered !== "ordered" && (
34
+ <ul className={`${baseClass}--${alignment}`}>{children}</ul>
35
+ )}
36
+ </div>
42
37
  </ListContext.Provider>
43
38
  );
44
39
  };
@@ -8,6 +8,7 @@ const searchfield: SearchFieldProps = {
8
8
  name: "search",
9
9
  placeholder: "Search Field",
10
10
  type: "search",
11
+ value: "",
11
12
  },
12
13
  };
13
14
 
@@ -20,6 +21,7 @@ const searchfielderror: SearchFieldProps = {
20
21
  name: "search",
21
22
  placeholder: "Search Field",
22
23
  type: "search",
24
+ value: "",
23
25
  },
24
26
  };
25
27
 
@@ -31,6 +33,7 @@ const searchfielddisabled: SearchFieldProps = {
31
33
  name: "search",
32
34
  placeholder: "Search Field",
33
35
  type: "search",
36
+ value: "",
34
37
  },
35
38
  };
36
39
 
@@ -41,6 +44,7 @@ const searchfieldlabel: SearchFieldProps = {
41
44
  name: "search",
42
45
  placeholder: "Search Field",
43
46
  type: "search",
47
+ value: "",
44
48
  },
45
49
  };
46
50
 
@@ -51,6 +55,7 @@ const searchfieldhelper: SearchFieldProps = {
51
55
  name: "search",
52
56
  placeholder: "Search Field",
53
57
  type: "search",
58
+ value: "",
54
59
  },
55
60
  };
56
61
 
@@ -1,8 +1,9 @@
1
- import { FC } from "react";
1
+ import { FC, useState } from "react";
2
2
  import classNames from "classnames";
3
3
  import useGlobalSettings from "../../hooks/useGlobalSettings";
4
4
  import { SearchFieldProps } from "./SearchField.props";
5
5
  import { Input } from "../Input";
6
+ import { Icon } from "../Icon";
6
7
 
7
8
  const SearchField: FC<SearchFieldProps> = ({
8
9
  action,
@@ -10,24 +11,39 @@ const SearchField: FC<SearchFieldProps> = ({
10
11
  className,
11
12
  input,
12
13
  }) => {
14
+ const [searchValue, setSearchValue] = useState("");
15
+
13
16
  const { prefix } = useGlobalSettings();
14
17
  const baseClass = `${prefix}--searchfield`;
15
18
  const buttonClass = `${baseClass}--button`;
19
+ const clearButtonClass = `${baseClass}--clear-button ${
20
+ searchValue.trim() !== "" && "show"
21
+ }`;
22
+ const fieldSetClass = `${prefix}--fieldset`;
16
23
 
17
24
  const SearchFieldClasses = classNames(className, {
18
25
  [baseClass]: true,
19
26
  [`haslabel`]: input?.label,
20
27
  });
21
28
 
22
- /**
23
- * On click, if there is a callback, call it
24
- */
25
29
  const handleClick: React.MouseEventHandler<HTMLInputElement> = (e) => {
26
30
  if (callback) {
27
31
  callback(e);
28
32
  }
29
33
  };
30
34
 
35
+ // handle click for clear button in search
36
+ const handleClearButtonClick: React.MouseEventHandler<
37
+ HTMLInputElement
38
+ > = () => {
39
+ setSearchValue("");
40
+ };
41
+
42
+ // Update search value on input
43
+ const onKeyPress: React.ChangeEventHandler<HTMLInputElement> = (e) => {
44
+ setSearchValue(e.target.value);
45
+ };
46
+
31
47
  const inputHasType = !!input?.type;
32
48
 
33
49
  if (!inputHasType) {
@@ -36,18 +52,24 @@ const SearchField: FC<SearchFieldProps> = ({
36
52
 
37
53
  return inputHasType ? (
38
54
  <form className={SearchFieldClasses} action={action}>
39
- <Input
40
- id={input?.id}
41
- name={input?.name}
42
- disabled={input?.disabled}
43
- callback={input?.callback}
44
- error={input?.error}
45
- helper={input?.helper}
46
- label={input?.label}
47
- placeholder={input?.placeholder}
48
- type={input?.type}
49
- className={`${prefix}--input`}
50
- />
55
+ <div className={fieldSetClass}>
56
+ <Input
57
+ id={input?.id}
58
+ name={input?.name}
59
+ disabled={input?.disabled}
60
+ callback={onKeyPress}
61
+ error={input?.error}
62
+ helper={input?.helper}
63
+ label={input?.label}
64
+ placeholder={input?.placeholder}
65
+ type={input?.type}
66
+ value={searchValue}
67
+ className={`${prefix}--input`}
68
+ />
69
+ <span onClick={handleClearButtonClick} className={clearButtonClass}>
70
+ <Icon name="close" hidden={true} />
71
+ </span>
72
+ </div>
51
73
  <input
52
74
  className={buttonClass}
53
75
  disabled={input?.disabled}
@@ -6,7 +6,7 @@ import VideoPlayer from "./VideoPlayer";
6
6
 
7
7
  const Video: FC<VideoProps> = ({ className, caption, poster, video }) => {
8
8
  const { prefix } = useGlobalSettings();
9
- const baseClass = `${prefix}--video`;
9
+ const baseClass = `${prefix}--legacyvideo`;
10
10
 
11
11
  const videoClasses = classNames(className, {
12
12
  [baseClass]: true,
@@ -27,7 +27,7 @@ const VideoPlayer: FC<VideoPlayerProps> = ({
27
27
  tracks,
28
28
  }) => {
29
29
  const { prefix } = useGlobalSettings();
30
- const baseClass = `${prefix}--video`;
30
+ const baseClass = `${prefix}--legacyvideo`;
31
31
 
32
32
  const playerClasses = classNames("", {
33
33
  [`${baseClass}--player`]: true,