carbon-react 105.2.0 → 106.0.2

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 (122) hide show
  1. package/esm/__internal__/tooltip-provider/index.js +1 -1
  2. package/esm/__internal__/utils/helpers/browser/index.d.ts +15 -1
  3. package/esm/__internal__/utils/helpers/browser/index.js +33 -1
  4. package/esm/__internal__/utils/helpers/browser-type-check/index.d.ts +7 -1
  5. package/esm/__internal__/utils/helpers/browser-type-check/index.js +8 -1
  6. package/esm/__internal__/utils/helpers/events/composedPath.d.ts +1 -1
  7. package/esm/__internal__/utils/helpers/events/events.d.ts +132 -31
  8. package/esm/__internal__/utils/helpers/events/events.js +10 -125
  9. package/esm/__internal__/utils/helpers/guid/index.d.ts +5 -0
  10. package/esm/__internal__/utils/helpers/guid/{guid.js → index.js} +0 -2
  11. package/esm/__internal__/utils/helpers/tags/tags-specs/tags-specs.d.ts +4 -2
  12. package/esm/__internal__/utils/helpers/tags/tags-specs/tags-specs.js +2 -1
  13. package/esm/__internal__/utils/helpers/tags/tags.d.ts +10 -6
  14. package/esm/__internal__/utils/helpers/tags/tags.js +2 -6
  15. package/esm/__internal__/utils/helpers/useUniqueId/index.d.ts +2 -0
  16. package/esm/__internal__/utils/helpers/useUniqueId/index.js +7 -0
  17. package/esm/__internal__/utils/logger/index.d.ts +5 -1
  18. package/esm/__internal__/utils/logger/index.js +25 -1
  19. package/esm/components/app-wrapper/app-wrapper.component.js +5 -3
  20. package/esm/components/confirm/confirm.component.js +1 -1
  21. package/esm/components/dialog/dialog.component.js +1 -1
  22. package/esm/components/dialog-full-screen/dialog-full-screen.component.js +1 -1
  23. package/esm/components/fieldset/fieldset.component.d.ts +6 -1
  24. package/esm/components/fieldset/fieldset.component.js +14 -15
  25. package/esm/components/portrait/portrait-initials.component.js +1 -1
  26. package/esm/components/select/select-list/select-list.component.js +1 -1
  27. package/esm/components/select/select-textbox/select-textbox.component.js +1 -1
  28. package/esm/components/split-button/index.d.ts +1 -0
  29. package/esm/components/tabs/__internal__/tab-title/tab-title.style.js +3 -5
  30. package/esm/components/textbox/textbox.component.d.ts +1 -2
  31. package/esm/components/textbox/textbox.component.js +7 -6
  32. package/esm/style/{fonts → assets}/carbon-icons-webfont.woff +0 -0
  33. package/esm/style/fonts.css +30 -0
  34. package/esm/style/global-style.js +1 -1
  35. package/esm/style/themes/base/base-theme.config.d.ts +17 -8
  36. package/esm/style/themes/sage/index.d.ts +17 -8
  37. package/lib/__internal__/tooltip-provider/index.js +1 -1
  38. package/lib/__internal__/utils/helpers/browser/index.d.ts +15 -1
  39. package/lib/__internal__/utils/helpers/browser/index.js +33 -8
  40. package/lib/__internal__/utils/helpers/browser-type-check/index.d.ts +7 -1
  41. package/lib/__internal__/utils/helpers/browser-type-check/index.js +10 -21
  42. package/lib/__internal__/utils/helpers/events/composedPath.d.ts +1 -1
  43. package/lib/__internal__/utils/helpers/events/events.d.ts +132 -31
  44. package/lib/__internal__/utils/helpers/events/events.js +10 -125
  45. package/lib/__internal__/utils/helpers/guid/index.d.ts +5 -0
  46. package/lib/__internal__/utils/helpers/guid/{guid.js → index.js} +0 -2
  47. package/lib/__internal__/utils/helpers/guid/package.json +5 -2
  48. package/lib/__internal__/utils/helpers/tags/tags-specs/tags-specs.d.ts +4 -2
  49. package/lib/__internal__/utils/helpers/tags/tags-specs/tags-specs.js +2 -1
  50. package/lib/__internal__/utils/helpers/tags/tags.d.ts +10 -6
  51. package/lib/__internal__/utils/helpers/tags/tags.js +2 -6
  52. package/lib/__internal__/utils/helpers/useUniqueId/index.d.ts +2 -0
  53. package/lib/__internal__/utils/helpers/useUniqueId/index.js +20 -0
  54. package/lib/__internal__/utils/helpers/useUniqueId/package.json +6 -0
  55. package/lib/__internal__/utils/logger/index.d.ts +5 -1
  56. package/lib/__internal__/utils/logger/index.js +26 -8
  57. package/lib/components/app-wrapper/app-wrapper.component.js +5 -4
  58. package/lib/components/confirm/confirm.component.js +1 -1
  59. package/lib/components/dialog/dialog.component.js +1 -1
  60. package/lib/components/dialog-full-screen/dialog-full-screen.component.js +1 -1
  61. package/lib/components/fieldset/fieldset.component.d.ts +6 -1
  62. package/lib/components/fieldset/fieldset.component.js +14 -16
  63. package/lib/components/portrait/portrait-initials.component.js +1 -1
  64. package/lib/components/select/select-list/select-list.component.js +1 -1
  65. package/lib/components/select/select-textbox/select-textbox.component.js +1 -1
  66. package/lib/components/split-button/index.d.ts +1 -0
  67. package/lib/components/tabs/__internal__/tab-title/tab-title.style.js +3 -5
  68. package/lib/components/textbox/textbox.component.d.ts +1 -2
  69. package/lib/components/textbox/textbox.component.js +7 -8
  70. package/lib/style/{fonts → assets}/carbon-icons-webfont.woff +0 -0
  71. package/lib/style/fonts.css +30 -0
  72. package/lib/style/global-style.js +1 -1
  73. package/lib/style/themes/base/base-theme.config.d.ts +17 -8
  74. package/lib/style/themes/sage/index.d.ts +17 -8
  75. package/package.json +4 -3
  76. package/esm/__internal__/utils/ether/ether.d.ts +0 -19
  77. package/esm/__internal__/utils/ether/ether.js +0 -29
  78. package/esm/__internal__/utils/ether/index.d.ts +0 -1
  79. package/esm/__internal__/utils/ether/index.js +0 -1
  80. package/esm/__internal__/utils/helpers/browser/browser.d.ts +0 -17
  81. package/esm/__internal__/utils/helpers/browser/browser.js +0 -198
  82. package/esm/__internal__/utils/helpers/browser-type-check/browser-type-check.d.ts +0 -7
  83. package/esm/__internal__/utils/helpers/browser-type-check/browser-type-check.js +0 -14
  84. package/esm/__internal__/utils/helpers/guid/__spec__.d.ts +0 -1
  85. package/esm/__internal__/utils/helpers/guid/__spec__.js +0 -10
  86. package/esm/__internal__/utils/helpers/guid/guid.d.ts +0 -2
  87. package/esm/__internal__/utils/helpers/guid/package.json +0 -3
  88. package/esm/__internal__/utils/helpers/immutable/__spec__.d.ts +0 -1
  89. package/esm/__internal__/utils/helpers/immutable/__spec__.js +0 -117
  90. package/esm/__internal__/utils/helpers/immutable/immutable.d.ts +0 -4
  91. package/esm/__internal__/utils/helpers/immutable/immutable.js +0 -36
  92. package/esm/__internal__/utils/helpers/immutable/package.json +0 -4
  93. package/esm/__internal__/utils/helpers/with-unique-id-props/index.d.ts +0 -1
  94. package/esm/__internal__/utils/helpers/with-unique-id-props/index.js +0 -1
  95. package/esm/__internal__/utils/helpers/with-unique-id-props/with-unique-id-props.hoc.d.ts +0 -7
  96. package/esm/__internal__/utils/helpers/with-unique-id-props/with-unique-id-props.hoc.js +0 -82
  97. package/esm/__internal__/utils/logger/logger.d.ts +0 -9
  98. package/esm/__internal__/utils/logger/logger.js +0 -71
  99. package/lib/__internal__/utils/ether/ether.d.ts +0 -19
  100. package/lib/__internal__/utils/ether/ether.js +0 -33
  101. package/lib/__internal__/utils/ether/index.d.ts +0 -1
  102. package/lib/__internal__/utils/ether/index.js +0 -18
  103. package/lib/__internal__/utils/ether/package.json +0 -6
  104. package/lib/__internal__/utils/helpers/browser/browser.d.ts +0 -17
  105. package/lib/__internal__/utils/helpers/browser/browser.js +0 -213
  106. package/lib/__internal__/utils/helpers/browser-type-check/browser-type-check.d.ts +0 -7
  107. package/lib/__internal__/utils/helpers/browser-type-check/browser-type-check.js +0 -26
  108. package/lib/__internal__/utils/helpers/guid/__spec__.d.ts +0 -1
  109. package/lib/__internal__/utils/helpers/guid/__spec__.js +0 -15
  110. package/lib/__internal__/utils/helpers/guid/guid.d.ts +0 -2
  111. package/lib/__internal__/utils/helpers/immutable/__spec__.d.ts +0 -1
  112. package/lib/__internal__/utils/helpers/immutable/__spec__.js +0 -135
  113. package/lib/__internal__/utils/helpers/immutable/immutable.d.ts +0 -4
  114. package/lib/__internal__/utils/helpers/immutable/immutable.js +0 -46
  115. package/lib/__internal__/utils/helpers/immutable/package.json +0 -4
  116. package/lib/__internal__/utils/helpers/with-unique-id-props/index.d.ts +0 -1
  117. package/lib/__internal__/utils/helpers/with-unique-id-props/index.js +0 -15
  118. package/lib/__internal__/utils/helpers/with-unique-id-props/package.json +0 -6
  119. package/lib/__internal__/utils/helpers/with-unique-id-props/with-unique-id-props.hoc.d.ts +0 -7
  120. package/lib/__internal__/utils/helpers/with-unique-id-props/with-unique-id-props.hoc.js +0 -96
  121. package/lib/__internal__/utils/logger/logger.d.ts +0 -9
  122. package/lib/__internal__/utils/logger/logger.js +0 -78
@@ -1 +1,25 @@
1
- export { default } from "./logger";
1
+ /* eslint-disable no-console */
2
+ // Globally enable the logger
3
+ let enabled = process.env.NODE_ENV !== "production";
4
+ /*
5
+ * Logger
6
+ *
7
+ * Logger function will only output when enabled. By default this
8
+ * enabled state is set when your NODE_ENV !== 'production'
9
+ *
10
+ * Methods
11
+ * deprecate - console.warn which prepends the message with [Deprecation]
12
+ *
13
+ */
14
+
15
+ const Logger = {
16
+ setEnabledState: newState => {
17
+ enabled = newState;
18
+ },
19
+ deprecate: message => {
20
+ if (enabled) {
21
+ console.warn(`[Deprecation] ${message}`);
22
+ }
23
+ }
24
+ };
25
+ export default Logger;
@@ -24,7 +24,6 @@ import React from "react";
24
24
  import PropTypes from "prop-types";
25
25
  import classNames from "classnames";
26
26
  import tagComponent from "../../__internal__/utils/helpers/tags/tags";
27
- import { validProps } from "../../__internal__/utils/ether";
28
27
  import StyledAppWrapper from "./app-wrapper.style";
29
28
  import Logger from "../../__internal__/utils/logger";
30
29
  let deprecatedWarnTriggered = false;
@@ -73,9 +72,12 @@ let AppWrapper = /*#__PURE__*/function (_React$Component) {
73
72
  }, {
74
73
  key: "render",
75
74
  value: function render() {
76
- return /*#__PURE__*/React.createElement(StyledAppWrapper, _extends({}, validProps(this), {
75
+ const {
76
+ children
77
+ } = this.props;
78
+ return /*#__PURE__*/React.createElement(StyledAppWrapper, _extends({}, this.props, {
77
79
  className: this.classes()
78
- }, tagComponent("app-wrapper", this.props)), this.props.children);
80
+ }, tagComponent("app-wrapper", this.props)), children);
79
81
  }
80
82
  }]);
81
83
 
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
2
2
 
3
3
  import React, { useRef } from "react";
4
4
  import PropTypes from "prop-types";
5
- import createGuid from "../../__internal__/utils/helpers/guid/guid.js";
5
+ import createGuid from "../../__internal__/utils/helpers/guid";
6
6
  import Logger from "../../__internal__/utils/logger";
7
7
  import Heading from "../heading";
8
8
  import Dialog from "../dialog";
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
2
2
 
3
3
  import React, { useRef, useEffect, useLayoutEffect, useCallback } from "react";
4
4
  import PropTypes from "prop-types";
5
- import createGuid from "../../__internal__/utils/helpers/guid/guid.js";
5
+ import createGuid from "../../__internal__/utils/helpers/guid";
6
6
  import Modal from "../modal";
7
7
  import Heading from "../heading";
8
8
  import useResizeObserver from "../../hooks/__internal__/useResizeObserver";
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
2
2
 
3
3
  import React, { useRef } from "react";
4
4
  import PropTypes from "prop-types";
5
- import createGuid from "../../__internal__/utils/helpers/guid/guid.js";
5
+ import createGuid from "../../__internal__/utils/helpers/guid";
6
6
  import Modal from "../modal";
7
7
  import Heading from "../heading";
8
8
  import FullScreenHeading from "../../__internal__/full-screen-heading";
@@ -1,5 +1,10 @@
1
1
  export default Fieldset;
2
- declare function Fieldset(props: any): JSX.Element;
2
+ declare function Fieldset({ children, inline, legend, ...rest }: {
3
+ [x: string]: any;
4
+ children: any;
5
+ inline: any;
6
+ legend: any;
7
+ }): JSX.Element;
3
8
  declare namespace Fieldset {
4
9
  namespace propTypes {
5
10
  const children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
@@ -3,39 +3,38 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
3
3
  import React from "react";
4
4
  import PropTypes from "prop-types";
5
5
  import styledSystemPropTypes from "@styled-system/prop-types";
6
- import { validProps } from "../../__internal__/utils/ether";
7
6
  import tagComponent from "../../__internal__/utils/helpers/tags/tags";
8
7
  import { filterStyledSystemMarginProps } from "../../style/utils";
9
8
  import { FieldsetStyle, LegendContainerStyle, FieldsetContentStyle } from "./fieldset.style";
10
9
  import { NewValidationContext } from "../carbon-provider/carbon-provider.component";
11
10
  const marginPropTypes = filterStyledSystemMarginProps(styledSystemPropTypes.space);
12
11
 
13
- const Fieldset = props => {
14
- const legend = () => {
15
- if (!props.legend) return null;
12
+ const Fieldset = ({
13
+ children,
14
+ inline,
15
+ legend,
16
+ ...rest
17
+ }) => {
18
+ const getLegend = () => {
19
+ if (!legend) return null;
16
20
  return /*#__PURE__*/React.createElement(LegendContainerStyle, {
17
- inline: props.inline,
21
+ inline: inline,
18
22
  "data-component": "legend-style"
19
23
  }, /*#__PURE__*/React.createElement("legend", {
20
24
  "data-element": "legend"
21
- }, props.legend));
25
+ }, legend));
22
26
  };
23
27
 
24
- const { ...safeProps
25
- } = validProps({
26
- propTypes: Fieldset.propTypes,
27
- props
28
- });
29
28
  return /*#__PURE__*/React.createElement(NewValidationContext.Provider, {
30
29
  value: {
31
30
  validationRedesignOptIn: false
32
31
  }
33
- }, /*#__PURE__*/React.createElement(FieldsetStyle, _extends({}, tagComponent("fieldset", props), safeProps, {
32
+ }, /*#__PURE__*/React.createElement(FieldsetStyle, _extends({}, tagComponent("fieldset", rest), rest, {
34
33
  m: 0
35
- }, filterStyledSystemMarginProps(props)), /*#__PURE__*/React.createElement(FieldsetContentStyle, {
34
+ }, filterStyledSystemMarginProps(rest)), /*#__PURE__*/React.createElement(FieldsetContentStyle, {
36
35
  "data-component": "fieldset-style",
37
- inline: props.inline
38
- }, legend(), props.children)));
36
+ inline: inline
37
+ }, getLegend(), children)));
39
38
  };
40
39
 
41
40
  Fieldset.propTypes = {
@@ -40,7 +40,7 @@ const PortraitInitials = ({
40
40
  canvas.height = dimensions; // Select a font family to support different language characters
41
41
  // like Arial
42
42
 
43
- context.font = `${Math.round(canvas.width / 2.4)}px Lato, Arial`;
43
+ context.font = `${Math.round(canvas.width / 2.4)}px "Sage UI", Arial`;
44
44
  context.textAlign = "center"; // Setup background and front color
45
45
 
46
46
  context.fillStyle = tokens[bgColor];
@@ -13,7 +13,7 @@ import ListActionButton from "../list-action-button/list-action-button.component
13
13
  import StyledSelectListContainer from "./select-list-container.style";
14
14
  import Loader from "../../loader";
15
15
  import Option from "../option/option.component";
16
- import guid from "../../../__internal__/utils/helpers/guid/guid";
16
+ import guid from "../../../__internal__/utils/helpers/guid";
17
17
  import SelectListContext from "../__internal__/select-list-context";
18
18
  const fixedPopoverModifiers = [{
19
19
  name: "offset",
@@ -5,7 +5,7 @@ import PropTypes from "prop-types";
5
5
  import { createPopper } from "@popperjs/core";
6
6
  import Textbox from "../../textbox";
7
7
  import SelectText from "../__internal__/select-text/select-text.component";
8
- import guid from "../../../__internal__/utils/helpers/guid/guid";
8
+ import guid from "../../../__internal__/utils/helpers/guid";
9
9
  import useLocale from "../../../hooks/__internal__/useLocale";
10
10
  import useResizeObserver from "../../../hooks/__internal__/useResizeObserver";
11
11
  const modifiers = [{
@@ -1 +1,2 @@
1
1
  export { default } from "./split-button";
2
+ export type { SplitButtonProps } from "./split-button";
@@ -356,18 +356,16 @@ const StyledTabTitle = styled.button`
356
356
 
357
357
  ${alternateStyling && css`
358
358
  &:focus {
359
- background-color: var(--colorsActionMinor100);
359
+ background-color: var(--colorsActionMinor200);
360
360
  }
361
361
 
362
362
  &:hover {
363
- background-color: ${isTabSelected ? "var(--colorsActionMinor100)" : "var(--colorsActionMinor150)"};
363
+ background-color: ${isTabSelected ? "var(--colorsActionMinor200)" : "var(--colorsActionMinor250)"};
364
364
  }
365
365
 
366
366
  ${isTabSelected && css`
367
- background-color: var(--colorsActionMinor100);
367
+ background-color: var(--colorsActionMinor200);
368
368
  `}
369
-
370
- ${isInSidebar && `padding-bottom: 1px;`}
371
369
  `}
372
370
  `}
373
371
  `;
@@ -1,6 +1,5 @@
1
1
  export { Textbox as OriginalTextbox };
2
- declare var _default: JSX.Element;
3
- export default _default;
2
+ export default Textbox;
4
3
  declare function Textbox({ align, autoFocus, children, disabled, inputIcon, leftChildren, labelId: externalLabelId, label, labelAlign, labelHelp, labelInline, labelSpacing, id, formattedValue, fieldHelp, error, warning, info, name, reverse, size, value, readOnly, placeholder, inputRef, onBlur, onClick, onFocus, onChange, onMouseDown, onChangeDeferred, deferTimeout, isOptional, iconOnClick, iconOnMouseDown, iconTabIndex, validationOnLabel, labelWidth, inputWidth, prefix, adaptiveLabelBreakpoint, required, positionedChildren, tooltipPosition, "data-component": dataComponent, "data-element": dataElement, "data-role": dataRole, enforceCharacterLimit, characterLimit, warnOverLimit, helpAriaLabel, ...props }: {
5
4
  [x: string]: any;
6
5
  align: any;
@@ -7,7 +7,7 @@ import { filterStyledSystemMarginProps } from "../../style/utils";
7
7
  import { Input, InputPresentation } from "../../__internal__/input";
8
8
  import InputIconToggle from "../../__internal__/input-icon-toggle";
9
9
  import FormField from "../../__internal__/form-field";
10
- import withUniqueIdProps from "../../__internal__/utils/helpers/with-unique-id-props";
10
+ import useUniqueId from "../../__internal__/utils/helpers/useUniqueId";
11
11
  import { InputBehaviour } from "../../__internal__/input-behaviour";
12
12
  import StyledPrefix from "./__internal__/prefix.style";
13
13
  import { TooltipProvider } from "../../__internal__/tooltip-provider";
@@ -83,13 +83,14 @@ const Textbox = ({
83
83
 
84
84
  const computeLabelPropValues = prop => validationRedesignOptIn ? undefined : prop;
85
85
 
86
+ const [uniqueId, uniqueName] = useUniqueId(id, name);
86
87
  const {
87
88
  labelId: internalLabelId,
88
89
  validationIconId,
89
90
  fieldHelpId,
90
91
  ariaDescribedBy
91
92
  } = useInputAccessibility({
92
- id,
93
+ id: uniqueId,
93
94
  error,
94
95
  warning,
95
96
  info,
@@ -115,7 +116,7 @@ const Textbox = ({
115
116
  labelInline: computeLabelPropValues(labelInline),
116
117
  labelSpacing: labelSpacing,
117
118
  labelWidth: computeLabelPropValues(labelWidth),
118
- id: id,
119
+ id: uniqueId,
119
120
  reverse: computeLabelPropValues(reverse),
120
121
  isOptional: isOptional,
121
122
  useValidationIcon: computeLabelPropValues(validationOnLabel),
@@ -155,9 +156,9 @@ const Textbox = ({
155
156
  autoFocus: autoFocus,
156
157
  deferTimeout: deferTimeout,
157
158
  disabled: disabled,
158
- id: id,
159
+ id: uniqueId,
159
160
  inputRef: inputRef,
160
- name: name,
161
+ name: uniqueName,
161
162
  onBlur: onBlur,
162
163
  onChange: onChange,
163
164
  onChangeDeferred: onChangeDeferred,
@@ -379,4 +380,4 @@ Textbox.defaultProps = {
379
380
  validationOnLabel: false
380
381
  };
381
382
  export { Textbox as OriginalTextbox };
382
- export default withUniqueIdProps(Textbox);
383
+ export default Textbox;
@@ -0,0 +1,30 @@
1
+ @font-face{
2
+ font-family: "Sage UI";
3
+ src: url('https://fonts.sage.com/Sage_UI-Regular.woff2') format("woff2"), url('https://fonts.sage.com/Sage_UI-Regular.woff') format("woff");
4
+ font-weight: 400;
5
+ font-style: normal;
6
+ font-display: swap;
7
+ }
8
+
9
+ @font-face{
10
+ font-family: "Sage UI";
11
+ src: url('https://fonts.sage.com/Sage_UI-Medium.woff2') format("woff2"), url('https://fonts.sage.com/Sage_UI-Medium.woff') format("woff");
12
+ font-weight: 700;
13
+ font-style: normal;
14
+ font-display: swap;
15
+ }
16
+
17
+ @font-face{
18
+ font-family: "Sage UI";
19
+ src: url('https://fonts.sage.com/Sage_UI-Bold.woff2') format("woff2"), url('https://fonts.sage.com/Sage_UI-Bold.woff') format("woff");
20
+ font-weight: 900;
21
+ font-style: normal;
22
+ font-display: swap;
23
+ }
24
+
25
+ @font-face {
26
+ font-family: "CarbonIcons";
27
+ src: url("./assets/carbon-icons-webfont.woff") format("woff");
28
+ font-weight: normal;
29
+ font-style: normal;
30
+ }
@@ -2,7 +2,7 @@ import { createGlobalStyle } from "styled-components";
2
2
  const GlobalStyle = createGlobalStyle`
3
3
  body {
4
4
  color: rgba(0, 0, 0, 0.9);
5
- font-family: 'Lato';
5
+ font-family: "Sage UI", sans-serif;
6
6
  font-size: 14px;
7
7
  margin: 0px;
8
8
  padding: 0px;
@@ -54,6 +54,7 @@ declare function _default(palette: any): {
54
54
  colorsYin075: string;
55
55
  colorsYin090: string;
56
56
  colorsYang100: string;
57
+ colorsYang030: string;
57
58
  colorsYang080: string;
58
59
  colorsGray850: string;
59
60
  colorsGray900: string;
@@ -138,6 +139,8 @@ declare function _default(palette: any): {
138
139
  colorsUtilityReadOnly400: string;
139
140
  colorsUtilityReadOnly500: string;
140
141
  colorsUtilityReadOnly600: string;
142
+ colorsActionMajor350: string;
143
+ colorsActionMajor450: string;
141
144
  colorsActionMajor700: string;
142
145
  colorsActionMajor025: string;
143
146
  colorsActionMajorTransparent: string;
@@ -146,6 +149,7 @@ declare function _default(palette: any): {
146
149
  colorsActionMajorYin065: string;
147
150
  colorsActionMajorYin090: string;
148
151
  colorsActionMajorYang100: string;
152
+ colorsActionMajorYang030: string;
149
153
  colorsActionMinor100: string;
150
154
  colorsActionMinor150: string;
151
155
  colorsActionMinor200: string;
@@ -305,16 +309,10 @@ declare function _default(palette: any): {
305
309
  typographyDatePickerCalendarDateM: string;
306
310
  typographyDatePickerCalendarDayM: string;
307
311
  typographyDatePickerCalendarMonthM: string;
308
- typographyDialogTitleXs: string;
309
- typographyDialogTitleS: string;
310
- typographyDialogTitleMs: string;
311
312
  typographyDialogTitleM: string;
312
- typographyDialogTitleMl: string;
313
- typographyDialogTitleL: string;
314
- typographyDialogTitleXl: string;
315
- typographyDialogParagraphXs: string;
316
- typographyDialogParagraphS: string;
313
+ typographyDialogParagraphM: string;
317
314
  typographyDrawerTitleM: string;
315
+ typographyDrawerParagraphM: string;
318
316
  typographyFlashTextM: string;
319
317
  typographyFlashTextL: string;
320
318
  typographyFormFieldLabelXs: string;
@@ -349,6 +347,7 @@ declare function _default(palette: any): {
349
347
  typographyFormFieldCharacterCountS: string;
350
348
  typographyFormFieldCharacterCountM: string;
351
349
  typographyFormFieldCharacterCountL: string;
350
+ typographyLinkTextS: string;
352
351
  typographyLinkTextM: string;
353
352
  typographyLinkTextL: string;
354
353
  typographyMenuLabelM: string;
@@ -358,6 +357,7 @@ declare function _default(palette: any): {
358
357
  typographyMessageTextM: string;
359
358
  typographyMessageTextL: string;
360
359
  typographyPaginationLabelM: string;
360
+ typographyTileParagraphM: string;
361
361
  typographyPillLabelS: string;
362
362
  typographyPillLabelM: string;
363
363
  typographyPillLabelL: string;
@@ -390,13 +390,22 @@ declare function _default(palette: any): {
390
390
  typographySidebarTitleS: string;
391
391
  typographySidebarTitleM: string;
392
392
  typographySidebarTitleL: string;
393
+ typographySidebarParagraphM: string;
393
394
  typographyStepFlowCompleteLabelM: string;
394
395
  typographyStepFlowCurrentLabelM: string;
395
396
  typographyStepFlowIncompleteLabelM: string;
396
397
  typographySwitchOptionLabelM: string;
397
398
  typographySwitchOptionLabelL: string;
399
+ typographyTableHeaderTextXs: string;
400
+ typographyTableHeaderTextS: string;
398
401
  typographyTableHeaderTextM: string;
402
+ typographyTableHeaderTextL: string;
403
+ typographyTableHeaderTextXl: string;
404
+ typographyTableCellTextXs: string;
405
+ typographyTableCellTextS: string;
399
406
  typographyTableCellTextM: string;
407
+ typographyTableCellTextL: string;
408
+ typographyTableCellTextXl: string;
400
409
  typographyTooltipTextM: string;
401
410
  typographyTooltipTextL: string;
402
411
  opacity300: string;
@@ -10,6 +10,7 @@ declare var _default: {
10
10
  colorsYin075: string;
11
11
  colorsYin090: string;
12
12
  colorsYang100: string;
13
+ colorsYang030: string;
13
14
  colorsYang080: string;
14
15
  colorsGray850: string;
15
16
  colorsGray900: string;
@@ -95,6 +96,8 @@ declare var _default: {
95
96
  colorsUtilityReadOnly500: string;
96
97
  colorsUtilityReadOnly600: string;
97
98
  colorsActionMajor150: string;
99
+ colorsActionMajor350: string;
100
+ colorsActionMajor450: string;
98
101
  colorsActionMajor500: string;
99
102
  colorsActionMajor600: string;
100
103
  colorsActionMajor700: string;
@@ -105,6 +108,7 @@ declare var _default: {
105
108
  colorsActionMajorYin065: string;
106
109
  colorsActionMajorYin090: string;
107
110
  colorsActionMajorYang100: string;
111
+ colorsActionMajorYang030: string;
108
112
  colorsActionMinor100: string;
109
113
  colorsActionMinor150: string;
110
114
  colorsActionMinor200: string;
@@ -270,16 +274,10 @@ declare var _default: {
270
274
  typographyDatePickerCalendarDateM: string;
271
275
  typographyDatePickerCalendarDayM: string;
272
276
  typographyDatePickerCalendarMonthM: string;
273
- typographyDialogTitleXs: string;
274
- typographyDialogTitleS: string;
275
- typographyDialogTitleMs: string;
276
277
  typographyDialogTitleM: string;
277
- typographyDialogTitleMl: string;
278
- typographyDialogTitleL: string;
279
- typographyDialogTitleXl: string;
280
- typographyDialogParagraphXs: string;
281
- typographyDialogParagraphS: string;
278
+ typographyDialogParagraphM: string;
282
279
  typographyDrawerTitleM: string;
280
+ typographyDrawerParagraphM: string;
283
281
  typographyFlashTextM: string;
284
282
  typographyFlashTextL: string;
285
283
  typographyFormFieldLabelXs: string;
@@ -314,6 +312,7 @@ declare var _default: {
314
312
  typographyFormFieldCharacterCountS: string;
315
313
  typographyFormFieldCharacterCountM: string;
316
314
  typographyFormFieldCharacterCountL: string;
315
+ typographyLinkTextS: string;
317
316
  typographyLinkTextM: string;
318
317
  typographyLinkTextL: string;
319
318
  typographyMenuLabelM: string;
@@ -323,6 +322,7 @@ declare var _default: {
323
322
  typographyMessageTextM: string;
324
323
  typographyMessageTextL: string;
325
324
  typographyPaginationLabelM: string;
325
+ typographyTileParagraphM: string;
326
326
  typographyPillLabelS: string;
327
327
  typographyPillLabelM: string;
328
328
  typographyPillLabelL: string;
@@ -355,13 +355,22 @@ declare var _default: {
355
355
  typographySidebarTitleS: string;
356
356
  typographySidebarTitleM: string;
357
357
  typographySidebarTitleL: string;
358
+ typographySidebarParagraphM: string;
358
359
  typographyStepFlowCompleteLabelM: string;
359
360
  typographyStepFlowCurrentLabelM: string;
360
361
  typographyStepFlowIncompleteLabelM: string;
361
362
  typographySwitchOptionLabelM: string;
362
363
  typographySwitchOptionLabelL: string;
364
+ typographyTableHeaderTextXs: string;
365
+ typographyTableHeaderTextS: string;
363
366
  typographyTableHeaderTextM: string;
367
+ typographyTableHeaderTextL: string;
368
+ typographyTableHeaderTextXl: string;
369
+ typographyTableCellTextXs: string;
370
+ typographyTableCellTextS: string;
364
371
  typographyTableCellTextM: string;
372
+ typographyTableCellTextL: string;
373
+ typographyTableCellTextXl: string;
365
374
  typographyTooltipTextM: string;
366
375
  typographyTooltipTextL: string;
367
376
  opacity300: string;
@@ -7,7 +7,7 @@ exports.TooltipProvider = exports.TooltipContext = void 0;
7
7
 
8
8
  var _react = _interopRequireWildcard(require("react"));
9
9
 
10
- var _guid = _interopRequireDefault(require("../utils/helpers/guid/guid"));
10
+ var _guid = _interopRequireDefault(require("../utils/helpers/guid"));
11
11
 
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
13
 
@@ -1 +1,15 @@
1
- export { default } from "./browser";
1
+ /**
2
+ * Browser provides helper methods for working with Browser behavior.
3
+ */
4
+ declare const Browser: {
5
+ isDomAvailable: () => boolean;
6
+ /**
7
+ * Get the current window
8
+ */
9
+ getWindow: () => Window | undefined;
10
+ /**
11
+ * Get the current document
12
+ */
13
+ getDocument: () => Document | undefined;
14
+ };
15
+ export default Browser;
@@ -3,13 +3,38 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- Object.defineProperty(exports, "default", {
7
- enumerable: true,
8
- get: function () {
9
- return _browser.default;
10
- }
11
- });
6
+ exports.default = void 0;
7
+ const globalNode = {
8
+ window,
9
+ document: window.document,
10
+ ...global
11
+ };
12
+ /**
13
+ * Browser provides helper methods for working with Browser behavior.
14
+ */
15
+
16
+ const Browser = {
17
+ isDomAvailable: () => {
18
+ const _window = Browser.getWindow();
12
19
 
13
- var _browser = _interopRequireDefault(require("./browser"));
20
+ const _document = Browser.getDocument();
14
21
 
15
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
22
+ return !!(typeof _window !== "undefined" && _document && _document.createElement);
23
+ },
24
+
25
+ /**
26
+ * Get the current window
27
+ */
28
+ getWindow: () => {
29
+ return globalNode.window;
30
+ },
31
+
32
+ /**
33
+ * Get the current document
34
+ */
35
+ getDocument: () => {
36
+ return globalNode.document;
37
+ }
38
+ };
39
+ var _default = Browser;
40
+ exports.default = _default;
@@ -1 +1,7 @@
1
- export { default, isSafari, isEdge } from "./browser-type-check";
1
+ interface WindowInterface extends Partial<Window> {
2
+ chrome?: Record<string, unknown>;
3
+ sidebar?: Record<string, unknown>;
4
+ }
5
+ declare function browserTypeCheck(_window: WindowInterface): boolean;
6
+ export declare function isSafari(navigator: Navigator): boolean;
7
+ export default browserTypeCheck;
@@ -3,27 +3,16 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- Object.defineProperty(exports, "default", {
7
- enumerable: true,
8
- get: function () {
9
- return _browserTypeCheck.default;
10
- }
11
- });
12
- Object.defineProperty(exports, "isSafari", {
13
- enumerable: true,
14
- get: function () {
15
- return _browserTypeCheck.isSafari;
16
- }
17
- });
18
- Object.defineProperty(exports, "isEdge", {
19
- enumerable: true,
20
- get: function () {
21
- return _browserTypeCheck.isEdge;
22
- }
23
- });
6
+ exports.isSafari = isSafari;
7
+ exports.default = void 0;
24
8
 
25
- var _browserTypeCheck = _interopRequireWildcard(require("./browser-type-check"));
9
+ function browserTypeCheck(_window) {
10
+ return Boolean(_window.chrome || _window.sidebar);
11
+ }
26
12
 
27
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
13
+ function isSafari(navigator) {
14
+ return navigator.vendor.includes("Apple");
15
+ }
28
16
 
29
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
+ var _default = browserTypeCheck;
18
+ exports.default = _default;
@@ -1,2 +1,2 @@
1
- declare function _default(ev: any): any[];
1
+ declare const _default: (ev: CustomEvent) => EventTarget[];
2
2
  export default _default;