@kaizen/components 0.0.0-canary-remove-tailwind-from-kaio-20240305223928 → 0.0.0-canary-hidden-optintprovider-nav-20240307220309

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": "@kaizen/components",
3
- "version": "0.0.0-canary-remove-tailwind-from-kaio-20240305223928",
3
+ "version": "0.0.0-canary-hidden-optintprovider-nav-20240307220309",
4
4
  "description": "Kaizen component library",
5
5
  "author": "Geoffrey Chong <geoff.chong@cultureamp.com>",
6
6
  "homepage": "https://cultureamp.design",
@@ -63,8 +63,8 @@
63
63
  "prosemirror-view": "^1.33.1",
64
64
  "react-animate-height": "^3.2.3",
65
65
  "react-day-picker": "^8.10.0",
66
- "react-focus-lock": "^2.9.7",
67
- "react-focus-on": "^3.9.1",
66
+ "react-focus-lock": "^2.11.2",
67
+ "react-focus-on": "^3.9.2",
68
68
  "react-media": "^1.10.0",
69
69
  "react-popper": "^2.3.0",
70
70
  "react-select": "^5.8.0",
@@ -94,7 +94,7 @@
94
94
  "@types/react-textfit": "^1.1.4",
95
95
  "@types/uuid": "^9.0.8",
96
96
  "agadoo": "^3.0.0",
97
- "autoprefixer": "^10.4.17",
97
+ "autoprefixer": "^10.4.18",
98
98
  "babel-plugin-pure-static-props": "^0.2.0",
99
99
  "concat-cli": "^4.0.0",
100
100
  "query-string": "^9.0.0",
@@ -268,6 +268,7 @@ export const DatePicker = ({
268
268
  return (
269
269
  <FocusOn
270
270
  scrollLock={false}
271
+ returnFocus={false}
271
272
  onDeactivation={handleReturnFocus}
272
273
  onClickOutside={(): void => setIsOpen(false)}
273
274
  onEscapeKey={(): void => setIsOpen(false)}
@@ -26,7 +26,7 @@ export const KaizenProvider = ({
26
26
  }, [documentIsAvailable])
27
27
 
28
28
  return (
29
- <OptionalIntlProvider locale={locale}>
29
+ // <OptionalIntlProvider locale={locale}>
30
30
  <>
31
31
  <ToastNotificationProvider>
32
32
  {notificationsList}
@@ -34,7 +34,7 @@ export const KaizenProvider = ({
34
34
  </ToastNotificationProvider>
35
35
  <FontDefinitions />
36
36
  </>
37
- </OptionalIntlProvider>
37
+ // </OptionalIntlProvider>
38
38
  )
39
39
  }
40
40
 
@@ -1,20 +0,0 @@
1
- 'use strict';
2
-
3
- var React = require('react');
4
- var i18nReactIntl = require('@cultureamp/i18n-react-intl');
5
- var reactIntl = require('react-intl');
6
- const OptionalIntlProvider = /*#__PURE__*/function () {
7
- const OptionalIntlProvider = function (_a) {
8
- var locale = _a.locale,
9
- children = _a.children;
10
- var parent = React.useContext(reactIntl.IntlContext);
11
- if (parent) return children;
12
- return React.createElement(i18nReactIntl.StaticIntlProvider, {
13
- locale: locale
14
- }, children);
15
- };
16
- OptionalIntlProvider.displayName = "OptionalIntlProvider";
17
- return OptionalIntlProvider;
18
- }();
19
- exports.OptionalIntlProvider = OptionalIntlProvider;
20
- //# sourceMappingURL=OptionalIntlProvider.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OptionalIntlProvider.cjs","sources":["../../../../../src/KaizenProvider/subcomponents/OptionalIntlProvider/OptionalIntlProvider.tsx"],"sourcesContent":["import React, { useContext } from \"react\"\nimport { StaticIntlProvider } from \"@cultureamp/i18n-react-intl\"\nimport { IntlContext } from \"react-intl\"\n\ntype Props = {\n locale: string\n children: React.ReactElement\n}\nexport const OptionalIntlProvider = ({\n locale,\n children,\n}: Props): JSX.Element => {\n const parent = useContext(IntlContext)\n\n if (parent) return children\n return <StaticIntlProvider locale={locale}>{children}</StaticIntlProvider>\n}\n\nOptionalIntlProvider.displayName = \"OptionalIntlProvider\"\n"],"names":["OptionalIntlProvider","_a","locale","children","parent","useContext","IntlContext","React","createElement","StaticIntlProvider","displayName"],"mappings":";;;;;MAQaA,oBAAoB;EAAA,MAApBA,oBAAoB,GAAG,SAAAA,CAACC,EAG7B,EAAA;QAFNC,MAAM,GAAAD,EAAA,CAAAC,MAAA;MACNC,QAAQ,GAAAF,EAAA,CAAAE,QAAA;IAER,IAAMC,MAAM,GAAGC,gBAAU,CAACC,SAAAA,CAAAA,WAAW,CAAC;IAEtC,IAAIF,MAAM,EAAE,OAAOD,QAAQ;IAC3B,OAAOI,KAAA,CAAAC,aAAA,CAACC,aAAkB,CAAAA,kBAAA,EAAC;MAAAP,MAAM,EAAEA;IAAM,CAAA,EAAGC,QAAQ,CAAsB;EAC5E,CAAC;EAEDH,oBAAoB,CAACU,WAAW,GAAG,sBAAsB;EAAA,OAV5CV,oBAAoB;AAAA;"}
@@ -1,18 +0,0 @@
1
- import React, { useContext } from 'react';
2
- import { StaticIntlProvider } from '@cultureamp/i18n-react-intl';
3
- import { IntlContext } from 'react-intl';
4
- const OptionalIntlProvider = /*#__PURE__*/function () {
5
- const OptionalIntlProvider = function (_a) {
6
- var locale = _a.locale,
7
- children = _a.children;
8
- var parent = useContext(IntlContext);
9
- if (parent) return children;
10
- return /*#__PURE__*/React.createElement(StaticIntlProvider, {
11
- locale: locale
12
- }, children);
13
- };
14
- OptionalIntlProvider.displayName = "OptionalIntlProvider";
15
- return OptionalIntlProvider;
16
- }();
17
- export { OptionalIntlProvider };
18
- //# sourceMappingURL=OptionalIntlProvider.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OptionalIntlProvider.mjs","sources":["../../../../../src/KaizenProvider/subcomponents/OptionalIntlProvider/OptionalIntlProvider.tsx"],"sourcesContent":["import React, { useContext } from \"react\"\nimport { StaticIntlProvider } from \"@cultureamp/i18n-react-intl\"\nimport { IntlContext } from \"react-intl\"\n\ntype Props = {\n locale: string\n children: React.ReactElement\n}\nexport const OptionalIntlProvider = ({\n locale,\n children,\n}: Props): JSX.Element => {\n const parent = useContext(IntlContext)\n\n if (parent) return children\n return <StaticIntlProvider locale={locale}>{children}</StaticIntlProvider>\n}\n\nOptionalIntlProvider.displayName = \"OptionalIntlProvider\"\n"],"names":["OptionalIntlProvider","_a","locale","children","parent","useContext","IntlContext","React","createElement","StaticIntlProvider","displayName"],"mappings":";;;MAQaA,oBAAoB;EAAA,MAApBA,oBAAoB,GAAG,SAAAA,CAACC,EAG7B,EAAA;QAFNC,MAAM,GAAAD,EAAA,CAAAC,MAAA;MACNC,QAAQ,GAAAF,EAAA,CAAAE,QAAA;IAER,IAAMC,MAAM,GAAGC,UAAU,CAACC,WAAW,CAAC;IAEtC,IAAIF,MAAM,EAAE,OAAOD,QAAQ;IAC3B,oBAAOI,KAAA,CAAAC,aAAA,CAACC,kBAAkB,EAAC;MAAAP,MAAM,EAAEA;IAAM,CAAA,EAAGC,QAAQ,CAAsB;EAC5E,CAAC;EAEDH,oBAAoB,CAACU,WAAW,GAAG,sBAAsB;EAAA,OAV5CV,oBAAoB;AAAA;"}