@okta/odyssey-react-mui 1.9.16 → 1.9.18

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/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.9.18](https://github.com/okta/odyssey/compare/v1.9.17...v1.9.18) (2024-01-11)
7
+
8
+ **Note:** Version bump only for package @okta/odyssey-react-mui
9
+
10
+ ## [1.9.17](https://github.com/okta/odyssey/compare/v1.9.16...v1.9.17) (2024-01-11)
11
+
12
+ **Note:** Version bump only for package @okta/odyssey-react-mui
13
+
6
14
  ## [1.9.16](https://github.com/okta/odyssey/compare/v1.9.15...v1.9.16) (2024-01-08)
7
15
 
8
16
  ### Bug Fixes
package/dist/Callout.js CHANGED
@@ -16,6 +16,8 @@ import _AlertTitle from "@mui/material/AlertTitle";
16
16
  import { memo } from "react";
17
17
  import { ScreenReaderText } from "./ScreenReaderText.js";
18
18
  import { useTranslation } from "react-i18next";
19
+ import { Link } from "./Link.js";
20
+ import { Paragraph } from "./Typography.js";
19
21
  import { jsx as _jsx } from "react/jsx-runtime";
20
22
  import { jsxs as _jsxs } from "react/jsx-runtime";
21
23
  export const calloutRoleValues = ["status", "alert"];
@@ -23,9 +25,12 @@ export const calloutSeverityValues = ["success", "info", "warning", "error"];
23
25
  const Callout = _ref => {
24
26
  let {
25
27
  children,
28
+ linkText,
29
+ linkUrl,
26
30
  role,
27
31
  severity,
28
32
  testId,
33
+ text,
29
34
  title,
30
35
  translate
31
36
  } = _ref;
@@ -43,9 +48,15 @@ const Callout = _ref => {
43
48
  }), title && _jsx(_AlertTitle, {
44
49
  translate: translate,
45
50
  children: title
46
- }), _jsx(_Box, {
51
+ }), children && _jsx(_Box, {
47
52
  component: "div",
48
53
  children: children
54
+ }), text && _jsx(Paragraph, {
55
+ children: text
56
+ }), linkUrl && _jsx(Link, {
57
+ href: linkUrl,
58
+ variant: "monochrome",
59
+ children: linkText
49
60
  })]
50
61
  });
51
62
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Callout.js","names":["memo","ScreenReaderText","useTranslation","jsx","_jsx","jsxs","_jsxs","calloutRoleValues","calloutSeverityValues","Callout","_ref","children","role","severity","testId","title","translate","t","_Alert","variant","_AlertTitle","_Box","component","MemoizedCallout","displayName"],"sources":["../src/Callout.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { memo, ReactNode } from \"react\";\nimport { Alert, AlertTitle, Box } from \"@mui/material\";\nimport { ScreenReaderText } from \"./ScreenReaderText\";\nimport { useTranslation } from \"react-i18next\";\n\nimport type { AllowedProps } from \"./AllowedProps\";\n\nexport const calloutRoleValues = [\"status\", \"alert\"] as const;\nexport const calloutSeverityValues = [\n \"success\",\n \"info\",\n \"warning\",\n \"error\",\n] as const;\n\nexport type CalloutProps = {\n /**\n * The contents of the Callout\n */\n children: ReactNode;\n /**\n * Sets the ARIA role of the Callout\n * (\"status\" for something that dynamically updates, \"alert\" for errors, null for something\n * unchanging)\n */\n role?: (typeof calloutRoleValues)[number];\n /**\n * Determine the color and icon of the Callout\n */\n severity: (typeof calloutSeverityValues)[number];\n /**\n * The title of the Callout\n */\n title?: string;\n} & AllowedProps;\n\nconst Callout = ({\n children,\n role,\n severity,\n testId,\n title,\n translate,\n}: CalloutProps) => {\n const { t } = useTranslation();\n\n return (\n <Alert data-se={testId} role={role} severity={severity} variant=\"callout\">\n <ScreenReaderText translate={translate}>\n {t(`severity.${severity}`)}\n </ScreenReaderText>\n {title && <AlertTitle translate={translate}>{title}</AlertTitle>}\n <Box component=\"div\">{children}</Box>\n </Alert>\n );\n};\n\nconst MemoizedCallout = memo(Callout);\nMemoizedCallout.displayName = \"Callout\";\n\nexport { MemoizedCallout as Callout };\n"],"mappings":";;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,IAAI,QAAmB,OAAO;AAAC,SAE/BC,gBAAgB;AACzB,SAASC,cAAc,QAAQ,eAAe;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAI/C,OAAO,MAAMC,iBAAiB,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAU;AAC7D,OAAO,MAAMC,qBAAqB,GAAG,CACnC,SAAS,EACT,MAAM,EACN,SAAS,EACT,OAAO,CACC;AAuBV,MAAMC,OAAO,GAAGC,IAAA,IAOI;EAAA,IAPH;IACfC,QAAQ;IACRC,IAAI;IACJC,QAAQ;IACRC,MAAM;IACNC,KAAK;IACLC;EACY,CAAC,GAAAN,IAAA;EACb,MAAM;IAAEO;EAAE,CAAC,GAAGf,cAAc,CAAC,CAAC;EAE9B,OACEI,KAAA,CAAAY,MAAA;IAAO,WAASJ,MAAO;IAACF,IAAI,EAAEA,IAAK;IAACC,QAAQ,EAAEA,QAAS;IAACM,OAAO,EAAC,SAAS;IAAAR,QAAA,GACvEP,IAAA,CAACH,gBAAgB;MAACe,SAAS,EAAEA,SAAU;MAAAL,QAAA,EACpCM,CAAC,CAAE,YAAWJ,QAAS,EAAC;IAAC,CACV,CAAC,EAClBE,KAAK,IAAIX,IAAA,CAAAgB,WAAA;MAAYJ,SAAS,EAAEA,SAAU;MAAAL,QAAA,EAAEI;IAAK,CAAa,CAAC,EAChEX,IAAA,CAAAiB,IAAA;MAAKC,SAAS,EAAC,KAAK;MAAAX,QAAA,EAAEA;IAAQ,CAAM,CAAC;EAAA,CAChC,CAAC;AAEZ,CAAC;AAED,MAAMY,eAAe,GAAGvB,IAAI,CAACS,OAAO,CAAC;AACrCc,eAAe,CAACC,WAAW,GAAG,SAAS;AAEvC,SAASD,eAAe,IAAId,OAAO"}
1
+ {"version":3,"file":"Callout.js","names":["memo","ScreenReaderText","useTranslation","Link","Paragraph","jsx","_jsx","jsxs","_jsxs","calloutRoleValues","calloutSeverityValues","Callout","_ref","children","linkText","linkUrl","role","severity","testId","text","title","translate","t","_Alert","variant","_AlertTitle","_Box","component","href","MemoizedCallout","displayName"],"sources":["../src/Callout.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { memo, ReactNode } from \"react\";\nimport { Alert, AlertTitle, Box } from \"@mui/material\";\nimport { ScreenReaderText } from \"./ScreenReaderText\";\nimport { useTranslation } from \"react-i18next\";\n\nimport type { AllowedProps } from \"./AllowedProps\";\nimport { Link } from \"./Link\";\nimport { Paragraph } from \"./Typography\";\n\nexport const calloutRoleValues = [\"status\", \"alert\"] as const;\nexport const calloutSeverityValues = [\n \"success\",\n \"info\",\n \"warning\",\n \"error\",\n] as const;\n\nexport type CalloutProps = {\n /**\n * The contents of the Callout\n */\n children?: ReactNode;\n /**\n * Sets the ARIA role of the Callout\n * (\"status\" for something that dynamically updates, \"alert\" for errors, null for something\n * unchanging)\n */\n role?: (typeof calloutRoleValues)[number];\n /**\n * Determine the color and icon of the Callout\n */\n severity: (typeof calloutSeverityValues)[number];\n /**\n * The text content of the Callout\n */\n text?: string;\n /**\n * The title of the Callout\n */\n title?: string;\n} & (\n | {\n text: string;\n children?: never;\n }\n | {\n text?: never;\n children: ReactNode;\n }\n) &\n (\n | {\n /**\n * If linkUrl is not undefined, this is the text of the link.\n * If left blank, it defaults to \"Learn more\".\n * Note that linkText does nothing if linkUrl is not defined\n */\n linkUrl: string;\n /**\n * If defined, the Toast will include a link to the URL\n */\n linkText: string;\n }\n | {\n linkUrl?: never;\n linkText?: never;\n }\n ) &\n AllowedProps;\n\nconst Callout = ({\n children,\n linkText,\n linkUrl,\n role,\n severity,\n testId,\n text,\n title,\n translate,\n}: CalloutProps) => {\n const { t } = useTranslation();\n\n return (\n <Alert data-se={testId} role={role} severity={severity} variant=\"callout\">\n <ScreenReaderText translate={translate}>\n {t(`severity.${severity}`)}\n </ScreenReaderText>\n {title && <AlertTitle translate={translate}>{title}</AlertTitle>}\n {children && <Box component=\"div\">{children}</Box>}\n {text && <Paragraph>{text}</Paragraph>}\n {linkUrl && (\n <Link href={linkUrl} variant=\"monochrome\">\n {linkText}\n </Link>\n )}\n </Alert>\n );\n};\n\nconst MemoizedCallout = memo(Callout);\nMemoizedCallout.displayName = \"Callout\";\n\nexport { MemoizedCallout as Callout };\n"],"mappings":";;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,IAAI,QAAmB,OAAO;AAAC,SAE/BC,gBAAgB;AACzB,SAASC,cAAc,QAAQ,eAAe;AAAC,SAGtCC,IAAI;AAAA,SACJC,SAAS;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAElB,OAAO,MAAMC,iBAAiB,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAU;AAC7D,OAAO,MAAMC,qBAAqB,GAAG,CACnC,SAAS,EACT,MAAM,EACN,SAAS,EACT,OAAO,CACC;AAuDV,MAAMC,OAAO,GAAGC,IAAA,IAUI;EAAA,IAVH;IACfC,QAAQ;IACRC,QAAQ;IACRC,OAAO;IACPC,IAAI;IACJC,QAAQ;IACRC,MAAM;IACNC,IAAI;IACJC,KAAK;IACLC;EACY,CAAC,GAAAT,IAAA;EACb,MAAM;IAAEU;EAAE,CAAC,GAAGpB,cAAc,CAAC,CAAC;EAE9B,OACEM,KAAA,CAAAe,MAAA;IAAO,WAASL,MAAO;IAACF,IAAI,EAAEA,IAAK;IAACC,QAAQ,EAAEA,QAAS;IAACO,OAAO,EAAC,SAAS;IAAAX,QAAA,GACvEP,IAAA,CAACL,gBAAgB;MAACoB,SAAS,EAAEA,SAAU;MAAAR,QAAA,EACpCS,CAAC,CAAE,YAAWL,QAAS,EAAC;IAAC,CACV,CAAC,EAClBG,KAAK,IAAId,IAAA,CAAAmB,WAAA;MAAYJ,SAAS,EAAEA,SAAU;MAAAR,QAAA,EAAEO;IAAK,CAAa,CAAC,EAC/DP,QAAQ,IAAIP,IAAA,CAAAoB,IAAA;MAAKC,SAAS,EAAC,KAAK;MAAAd,QAAA,EAAEA;IAAQ,CAAM,CAAC,EACjDM,IAAI,IAAIb,IAAA,CAACF,SAAS;MAAAS,QAAA,EAAEM;IAAI,CAAY,CAAC,EACrCJ,OAAO,IACNT,IAAA,CAACH,IAAI;MAACyB,IAAI,EAAEb,OAAQ;MAACS,OAAO,EAAC,YAAY;MAAAX,QAAA,EACtCC;IAAQ,CACL,CACP;EAAA,CACI,CAAC;AAEZ,CAAC;AAED,MAAMe,eAAe,GAAG7B,IAAI,CAACW,OAAO,CAAC;AACrCkB,eAAe,CAACC,WAAW,GAAG,SAAS;AAEvC,SAASD,eAAe,IAAIlB,OAAO"}
package/dist/Status.js CHANGED
@@ -13,14 +13,12 @@ import _Chip from "@mui/material/Chip";
13
13
  import { useMuiProps } from "./MuiPropsContext.js";
14
14
  import { jsx as _jsx } from "react/jsx-runtime";
15
15
  export const statusSeverityValues = ["default", "error", "success", "warning"];
16
- export const statusVariantValues = ["lamp", "pill"];
17
16
  export const Status = _ref => {
18
17
  let {
19
18
  label,
20
19
  severity,
21
20
  testId,
22
- translate,
23
- variant = "lamp"
21
+ translate
24
22
  } = _ref;
25
23
  const muiProps = useMuiProps();
26
24
  return _jsx(_Chip, {
@@ -29,7 +27,7 @@ export const Status = _ref => {
29
27
  "data-se": testId,
30
28
  label: label,
31
29
  translate: translate,
32
- variant: variant
30
+ variant: "pill"
33
31
  });
34
32
  };
35
33
  //# sourceMappingURL=Status.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Status.js","names":["useMuiProps","jsx","_jsx","statusSeverityValues","statusVariantValues","Status","_ref","label","severity","testId","translate","variant","muiProps","_Chip","color"],"sources":["../src/Status.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { Chip } from \"@mui/material\";\n\nimport { useMuiProps } from \"./MuiPropsContext\";\nimport type { AllowedProps } from \"./AllowedProps\";\n\nexport const statusSeverityValues = [\n \"default\",\n \"error\",\n \"success\",\n \"warning\",\n] as const;\nexport const statusVariantValues = [\"lamp\", \"pill\"] as const;\n\nexport type StatusProps = {\n /**\n * The text content of the Status\n */\n label: string;\n /**\n * Determine the color and icon of the Status\n */\n severity: (typeof statusSeverityValues)[number];\n /**\n * The style of the Status indicator\n */\n variant?: (typeof statusVariantValues)[number];\n} & AllowedProps;\n\nexport const Status = ({\n label,\n severity,\n testId,\n translate,\n variant = \"lamp\",\n}: StatusProps) => {\n const muiProps = useMuiProps();\n\n return (\n <Chip\n {...muiProps}\n color={severity}\n data-se={testId}\n label={label}\n translate={translate}\n variant={variant}\n />\n );\n};\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAVA,SAcSA,WAAW;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAGpB,OAAO,MAAMC,oBAAoB,GAAG,CAClC,SAAS,EACT,OAAO,EACP,SAAS,EACT,SAAS,CACD;AACV,OAAO,MAAMC,mBAAmB,GAAG,CAAC,MAAM,EAAE,MAAM,CAAU;AAiB5D,OAAO,MAAMC,MAAM,GAAGC,IAAA,IAMH;EAAA,IANI;IACrBC,KAAK;IACLC,QAAQ;IACRC,MAAM;IACNC,SAAS;IACTC,OAAO,GAAG;EACC,CAAC,GAAAL,IAAA;EACZ,MAAMM,QAAQ,GAAGZ,WAAW,CAAC,CAAC;EAE9B,OACEE,IAAA,CAAAW,KAAA;IAAA,GACMD,QAAQ;IACZE,KAAK,EAAEN,QAAS;IAChB,WAASC,MAAO;IAChBF,KAAK,EAAEA,KAAM;IACbG,SAAS,EAAEA,SAAU;IACrBC,OAAO,EAAEA;EAAQ,CAClB,CAAC;AAEN,CAAC"}
1
+ {"version":3,"file":"Status.js","names":["useMuiProps","jsx","_jsx","statusSeverityValues","Status","_ref","label","severity","testId","translate","muiProps","_Chip","color","variant"],"sources":["../src/Status.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { Chip } from \"@mui/material\";\n\nimport { useMuiProps } from \"./MuiPropsContext\";\nimport type { AllowedProps } from \"./AllowedProps\";\n\nexport const statusSeverityValues = [\n \"default\",\n \"error\",\n \"success\",\n \"warning\",\n] as const;\n\nexport type StatusProps = {\n /**\n * The text content of the Status\n */\n label: string;\n /**\n * Determine the color and icon of the Status\n */\n severity: (typeof statusSeverityValues)[number];\n} & AllowedProps;\n\nexport const Status = ({ label, severity, testId, translate }: StatusProps) => {\n const muiProps = useMuiProps();\n\n return (\n <Chip\n {...muiProps}\n color={severity}\n data-se={testId}\n label={label}\n translate={translate}\n variant=\"pill\"\n />\n );\n};\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAVA,SAcSA,WAAW;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAGpB,OAAO,MAAMC,oBAAoB,GAAG,CAClC,SAAS,EACT,OAAO,EACP,SAAS,EACT,SAAS,CACD;AAaV,OAAO,MAAMC,MAAM,GAAGC,IAAA,IAAyD;EAAA,IAAxD;IAAEC,KAAK;IAAEC,QAAQ;IAAEC,MAAM;IAAEC;EAAuB,CAAC,GAAAJ,IAAA;EACxE,MAAMK,QAAQ,GAAGV,WAAW,CAAC,CAAC;EAE9B,OACEE,IAAA,CAAAS,KAAA;IAAA,GACMD,QAAQ;IACZE,KAAK,EAAEL,QAAS;IAChB,WAASC,MAAO;IAChBF,KAAK,EAAEA,KAAM;IACbG,SAAS,EAAEA,SAAU;IACrBI,OAAO,EAAC;EAAM,CACf,CAAC;AAEN,CAAC"}
package/dist/Tabs.js CHANGED
@@ -73,6 +73,7 @@ const Tabs = _ref2 => {
73
73
  "data-se": testId,
74
74
  disabled: isDisabled,
75
75
  icon: startIcon,
76
+ tabIndex: 0,
76
77
  label: _jsx(TabLabel, {
77
78
  label: label,
78
79
  notificationCount: notificationCount,
@@ -88,6 +89,7 @@ const Tabs = _ref2 => {
88
89
  children: [_jsx(MuiTabList, {
89
90
  onChange: onChange,
90
91
  "aria-label": ariaLabel,
92
+ variant: "scrollable",
91
93
  children: tabs.map((tab, index) => renderTab(tab, index))
92
94
  }), tabs.map((tab, index) => _jsx(MuiTabPanel, {
93
95
  value: tab.value ? tab.value : index.toString(),
package/dist/Tabs.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.js","names":["memo","useCallback","useEffect","useState","TabContext","MuiTabContext","TabList","MuiTabList","TabPanel","MuiTabPanel","useOdysseyDesignTokens","Badge","Box","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","TabLabel","_ref","label","notificationCount","notificationCountMax","tabState","value","odysseyDesignTokens","children","undefined","sx","marginInlineStart","Spacing2","badgeContent","badgeContentMax","type","Tabs","_ref2","ariaLabel","initialValue","tabs","onChange","onChangeProp","setTabState","event","renderTab","tab","index","testId","isDisabled","startIcon","_Tab","disabled","icon","toString","map","MemoizedTabs","displayName"],"sources":["../src/Tabs.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport {\n ReactElement,\n ReactNode,\n memo,\n useCallback,\n useEffect,\n useState,\n} from \"react\";\nimport {\n TabContext as MuiTabContext,\n TabList as MuiTabList,\n TabListProps as MuiTabListProps,\n TabPanel as MuiTabPanel,\n} from \"@mui/lab\";\nimport { Tab as MuiTab } from \"@mui/material\";\n\nimport { useOdysseyDesignTokens } from \"./OdysseyDesignTokensContext\";\nimport { Badge, BadgeProps } from \"./Badge\";\nimport { AllowedProps } from \"./AllowedProps\";\nimport { Box } from \"./Box\";\n\nexport type TabItemProps = {\n /**\n * The content of the Tab itself\n */\n children: ReactNode;\n /**\n * If `true`, the TabItem is disabled\n */\n isDisabled?: boolean;\n /**\n * The label text for the TabItem\n */\n label: string;\n /**\n * An optional icon to display at the start of the TabItem\n */\n startIcon?: ReactElement;\n /**\n * The value associated with the TabItem\n */\n value?: string;\n} & {\n notificationCount?: BadgeProps[\"badgeContent\"];\n notificationCountMax?: BadgeProps[\"badgeContentMax\"];\n} & AllowedProps;\n\nexport type TabsProps = {\n /**\n * The ARIA label for the full Tabs group\n */\n ariaLabel?: string;\n /**\n * @deprecated please use the `value` prop instead\n * When `value` is provided, `initialValue` isn't used.\n */\n initialValue?: string;\n /**\n * The TabItems to be included in the Tabs group\n */\n tabs: TabItemProps[];\n /**\n * Identifier for the selected tab.\n */\n value?: string;\n /**\n * Callback fired when the active tab is changed.\n */\n onChange?: MuiTabListProps[\"onChange\"];\n};\n\nconst TabLabel = ({\n label,\n notificationCount,\n notificationCountMax,\n tabState,\n value,\n}: Pick<\n TabItemProps,\n \"label\" | \"notificationCount\" | \"notificationCountMax\" | \"value\"\n> & {\n tabState: string;\n}) => {\n const odysseyDesignTokens = useOdysseyDesignTokens();\n\n return (\n <>\n {label}\n {notificationCount !== undefined && notificationCount > 0 && (\n <Box\n sx={{\n marginInlineStart: notificationCount\n ? odysseyDesignTokens.Spacing2\n : 0,\n }}\n >\n <Badge\n badgeContent={notificationCount}\n badgeContentMax={notificationCountMax}\n type={value === tabState ? \"attention\" : \"default\"}\n />\n </Box>\n )}\n </>\n );\n};\n\nconst Tabs = ({\n ariaLabel,\n initialValue,\n tabs,\n value,\n onChange: onChangeProp,\n}: TabsProps) => {\n const [tabState, setTabState] = useState(initialValue ?? value ?? \"0\");\n\n const onChange = useCallback<NonNullable<MuiTabListProps[\"onChange\"]>>(\n (event, value: string) => {\n setTabState(value);\n onChangeProp?.(event, value);\n },\n [onChangeProp]\n );\n\n useEffect(() => {\n if (value !== undefined) {\n setTabState(value);\n }\n }, [value]);\n\n const renderTab = useCallback(\n (tab, index) => {\n const {\n testId,\n isDisabled,\n label,\n startIcon,\n value,\n notificationCount,\n notificationCountMax,\n } = tab;\n\n return (\n <MuiTab\n data-se={testId}\n disabled={isDisabled}\n icon={startIcon}\n label={\n <TabLabel\n label={label}\n notificationCount={notificationCount}\n notificationCountMax={notificationCountMax}\n tabState={tabState}\n value={value}\n />\n }\n value={value ? value : index.toString()}\n key={value ? value : index.toString()}\n />\n );\n },\n [tabState]\n );\n\n return (\n <MuiTabContext value={tabState}>\n <MuiTabList onChange={onChange} aria-label={ariaLabel}>\n {tabs.map((tab, index) => renderTab(tab, index))}\n </MuiTabList>\n {tabs.map((tab, index) => (\n <MuiTabPanel\n value={tab.value ? tab.value : index.toString()}\n key={tab.value ? tab.value : index.toString()}\n >\n {tab.children}\n </MuiTabPanel>\n ))}\n </MuiTabContext>\n );\n};\n\nconst MemoizedTabs = memo(Tabs);\nMemoizedTabs.displayName = \"Tabs\";\n\nexport { MemoizedTabs as Tabs };\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAGEA,IAAI,EACJC,WAAW,EACXC,SAAS,EACTC,QAAQ,QACH,OAAO;AACd,SACEC,UAAU,IAAIC,aAAa,EAC3BC,OAAO,IAAIC,UAAU,EAErBC,QAAQ,IAAIC,WAAW,QAClB,UAAU;AAAC,SAGTC,sBAAsB;AAAA,SACtBC,KAAK;AAAA,SAELC,GAAG;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,QAAA,IAAAC,SAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAoDZ,MAAMC,QAAQ,GAAGC,IAAA,IAWX;EAAA,IAXY;IAChBC,KAAK;IACLC,iBAAiB;IACjBC,oBAAoB;IACpBC,QAAQ;IACRC;EAMF,CAAC,GAAAL,IAAA;EACC,MAAMM,mBAAmB,GAAGhB,sBAAsB,CAAC,CAAC;EAEpD,OACEQ,KAAA,CAAAF,SAAA;IAAAW,QAAA,GACGN,KAAK,EACLC,iBAAiB,KAAKM,SAAS,IAAIN,iBAAiB,GAAG,CAAC,IACvDR,IAAA,CAACF,GAAG;MACFiB,EAAE,EAAE;QACFC,iBAAiB,EAAER,iBAAiB,GAChCI,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BAAkB;QACrCC,oBAAoB,EAAEA,oBAAqB;QAC3CC,QAAQ,EAAEA,QAAS;QACnBC,KAAK,EAAEA;MAAM,CACd,CACF;MACDA,KAAK,EAAEA,KAAK,GAAGA,KAAK,GAAGqB,KAAK,CAACO,QAAQ,CAAC;IAAE,GACnC5B,KAAK,GAAGA,KAAK,GAAGqB,KAAK,CAACO,QAAQ,CAAC,CACrC,CAAC;EAEN,CAAC,EACD,CAAC7B,QAAQ,CACX,CAAC;EAED,OACEN,KAAA,CAACb,aAAa;IAACoB,KAAK,EAAED,QAAS;IAAAG,QAAA,GAC7Bb,IAAA,CAACP,UAAU;MAACiC,QAAQ,EAAEA,QAAS;MAAC,cAAYH,SAAU;MAAAV,QAAA,EACnDY,IAAI,CAACe,GAAG,CAAC,CAACT,GAAG,EAAEC,KAAK,KAAKF,SAAS,CAACC,GAAG,EAAEC,KAAK,CAAC;IAAC,CACtC,CAAC,EACZP,IAAI,CAACe,GAAG,CAAC,CAACT,GAAG,EAAEC,KAAK,KACnBhC,IAAA,CAACL,WAAW;MACVgB,KAAK,EAAEoB,GAAG,CAACpB,KAAK,GAAGoB,GAAG,CAACpB,KAAK,GAAGqB,KAAK,CAACO,QAAQ,CAAC,CAAE;MAAA1B,QAAA,EAG/CkB,GAAG,CAAClB;IAAQ,GAFRkB,GAAG,CAACpB,KAAK,GAAGoB,GAAG,CAACpB,KAAK,GAAGqB,KAAK,CAACO,QAAQ,CAAC,CAGjC,CACd,CAAC;EAAA,CACW,CAAC;AAEpB,CAAC;AAED,MAAME,YAAY,GAAGvD,IAAI,CAACmC,IAAI,CAAC;AAC/BoB,YAAY,CAACC,WAAW,GAAG,MAAM;AAEjC,SAASD,YAAY,IAAIpB,IAAI"}
1
+ {"version":3,"file":"Tabs.js","names":["memo","useCallback","useEffect","useState","TabContext","MuiTabContext","TabList","MuiTabList","TabPanel","MuiTabPanel","useOdysseyDesignTokens","Badge","Box","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","TabLabel","_ref","label","notificationCount","notificationCountMax","tabState","value","odysseyDesignTokens","children","undefined","sx","marginInlineStart","Spacing2","badgeContent","badgeContentMax","type","Tabs","_ref2","ariaLabel","initialValue","tabs","onChange","onChangeProp","setTabState","event","renderTab","tab","index","testId","isDisabled","startIcon","_Tab","disabled","icon","tabIndex","toString","variant","map","MemoizedTabs","displayName"],"sources":["../src/Tabs.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport {\n ReactElement,\n ReactNode,\n memo,\n useCallback,\n useEffect,\n useState,\n} from \"react\";\nimport {\n TabContext as MuiTabContext,\n TabList as MuiTabList,\n TabListProps as MuiTabListProps,\n TabPanel as MuiTabPanel,\n} from \"@mui/lab\";\nimport { Tab as MuiTab } from \"@mui/material\";\n\nimport { useOdysseyDesignTokens } from \"./OdysseyDesignTokensContext\";\nimport { Badge, BadgeProps } from \"./Badge\";\nimport { AllowedProps } from \"./AllowedProps\";\nimport { Box } from \"./Box\";\n\nexport type TabItemProps = {\n /**\n * The content of the Tab itself\n */\n children: ReactNode;\n /**\n * If `true`, the TabItem is disabled\n */\n isDisabled?: boolean;\n /**\n * The label text for the TabItem\n */\n label: string;\n /**\n * An optional icon to display at the start of the TabItem\n */\n startIcon?: ReactElement;\n /**\n * The value associated with the TabItem\n */\n value?: string;\n} & {\n notificationCount?: BadgeProps[\"badgeContent\"];\n notificationCountMax?: BadgeProps[\"badgeContentMax\"];\n} & AllowedProps;\n\nexport type TabsProps = {\n /**\n * The ARIA label for the full Tabs group\n */\n ariaLabel?: string;\n /**\n * @deprecated please use the `value` prop instead\n * When `value` is provided, `initialValue` isn't used.\n */\n initialValue?: string;\n /**\n * The TabItems to be included in the Tabs group\n */\n tabs: TabItemProps[];\n /**\n * Identifier for the selected tab.\n */\n value?: string;\n /**\n * Callback fired when the active tab is changed.\n */\n onChange?: MuiTabListProps[\"onChange\"];\n};\n\nconst TabLabel = ({\n label,\n notificationCount,\n notificationCountMax,\n tabState,\n value,\n}: Pick<\n TabItemProps,\n \"label\" | \"notificationCount\" | \"notificationCountMax\" | \"value\"\n> & {\n tabState: string;\n}) => {\n const odysseyDesignTokens = useOdysseyDesignTokens();\n\n return (\n <>\n {label}\n {notificationCount !== undefined && notificationCount > 0 && (\n <Box\n sx={{\n marginInlineStart: notificationCount\n ? odysseyDesignTokens.Spacing2\n : 0,\n }}\n >\n <Badge\n badgeContent={notificationCount}\n badgeContentMax={notificationCountMax}\n type={value === tabState ? \"attention\" : \"default\"}\n />\n </Box>\n )}\n </>\n );\n};\n\nconst Tabs = ({\n ariaLabel,\n initialValue,\n tabs,\n value,\n onChange: onChangeProp,\n}: TabsProps) => {\n const [tabState, setTabState] = useState(initialValue ?? value ?? \"0\");\n\n const onChange = useCallback<NonNullable<MuiTabListProps[\"onChange\"]>>(\n (event, value: string) => {\n setTabState(value);\n onChangeProp?.(event, value);\n },\n [onChangeProp]\n );\n\n useEffect(() => {\n if (value !== undefined) {\n setTabState(value);\n }\n }, [value]);\n\n const renderTab = useCallback(\n (tab, index) => {\n const {\n testId,\n isDisabled,\n label,\n startIcon,\n value,\n notificationCount,\n notificationCountMax,\n } = tab;\n\n return (\n <MuiTab\n data-se={testId}\n disabled={isDisabled}\n icon={startIcon}\n tabIndex={0}\n label={\n <TabLabel\n label={label}\n notificationCount={notificationCount}\n notificationCountMax={notificationCountMax}\n tabState={tabState}\n value={value}\n />\n }\n value={value ? value : index.toString()}\n key={value ? value : index.toString()}\n />\n );\n },\n [tabState]\n );\n\n return (\n <MuiTabContext value={tabState}>\n <MuiTabList\n onChange={onChange}\n aria-label={ariaLabel}\n variant=\"scrollable\"\n >\n {tabs.map((tab, index) => renderTab(tab, index))}\n </MuiTabList>\n {tabs.map((tab, index) => (\n <MuiTabPanel\n value={tab.value ? tab.value : index.toString()}\n key={tab.value ? tab.value : index.toString()}\n >\n {tab.children}\n </MuiTabPanel>\n ))}\n </MuiTabContext>\n );\n};\n\nconst MemoizedTabs = memo(Tabs);\nMemoizedTabs.displayName = \"Tabs\";\n\nexport { MemoizedTabs as Tabs };\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAGEA,IAAI,EACJC,WAAW,EACXC,SAAS,EACTC,QAAQ,QACH,OAAO;AACd,SACEC,UAAU,IAAIC,aAAa,EAC3BC,OAAO,IAAIC,UAAU,EAErBC,QAAQ,IAAIC,WAAW,QAClB,UAAU;AAAC,SAGTC,sBAAsB;AAAA,SACtBC,KAAK;AAAA,SAELC,GAAG;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,QAAA,IAAAC,SAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAoDZ,MAAMC,QAAQ,GAAGC,IAAA,IAWX;EAAA,IAXY;IAChBC,KAAK;IACLC,iBAAiB;IACjBC,oBAAoB;IACpBC,QAAQ;IACRC;EAMF,CAAC,GAAAL,IAAA;EACC,MAAMM,mBAAmB,GAAGhB,sBAAsB,CAAC,CAAC;EAEpD,OACEQ,KAAA,CAAAF,SAAA;IAAAW,QAAA,GACGN,KAAK,EACLC,iBAAiB,KAAKM,SAAS,IAAIN,iBAAiB,GAAG,CAAC,IACvDR,IAAA,CAACF,GAAG;MACFiB,EAAE,EAAE;QACFC,iBAAiB,EAAER,iBAAiB,GAChCI,mBAAmB,CAACK,QAAQ,GAC5B;MACN,CAAE;MAAAJ,QAAA,EAEFb,IAAA,CAACH,KAAK;QACJqB,YAAY,EAAEV,iBAAkB;QAChCW,eAAe,EAAEV,oBAAqB;QACtCW,IA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,KAAK,GAAGA,KAAK,GAAGqB,KAAK,CAACQ,QAAQ,CAAC;IAAE,GACnC7B,KAAK,GAAGA,KAAK,GAAGqB,KAAK,CAACQ,QAAQ,CAAC,CACrC,CAAC;EAEN,CAAC,EACD,CAAC9B,QAAQ,CACX,CAAC;EAED,OACEN,KAAA,CAACb,aAAa;IAACoB,KAAK,EAAED,QAAS;IAAAG,QAAA,GAC7Bb,IAAA,CAACP,UAAU;MACTiC,QAAQ,EAAEA,QAAS;MACnB,cAAYH,SAAU;MACtBkB,OAAO,EAAC,YAAY;MAAA5B,QAAA,EAEnBY,IAAI,CAACiB,GAAG,CAAC,CAACX,GAAG,EAAEC,KAAK,KAAKF,SAAS,CAACC,GAAG,EAAEC,KAAK,CAAC;IAAC,CACtC,CAAC,EACZP,IAAI,CAACiB,GAAG,CAAC,CAACX,GAAG,EAAEC,KAAK,KACnBhC,IAAA,CAACL,WAAW;MACVgB,KAAK,EAAEoB,GAAG,CAACpB,KAAK,GAAGoB,GAAG,CAACpB,KAAK,GAAGqB,KAAK,CAACQ,QAAQ,CAAC,CAAE;MAAA3B,QAAA,EAG/CkB,GAAG,CAAClB;IAAQ,GAFRkB,GAAG,CAACpB,KAAK,GAAGoB,GAAG,CAACpB,KAAK,GAAGqB,KAAK,CAACQ,QAAQ,CAAC,CAGjC,CACd,CAAC;EAAA,CACW,CAAC;AAEpB,CAAC;AAED,MAAMG,YAAY,GAAGzD,IAAI,CAACmC,IAAI,CAAC;AAC/BsB,YAAY,CAACC,WAAW,GAAG,MAAM;AAEjC,SAASD,YAAY,IAAItB,IAAI"}
@@ -17,7 +17,7 @@ export type CalloutProps = {
17
17
  /**
18
18
  * The contents of the Callout
19
19
  */
20
- children: ReactNode;
20
+ children?: ReactNode;
21
21
  /**
22
22
  * Sets the ARIA role of the Callout
23
23
  * ("status" for something that dynamically updates, "alert" for errors, null for something
@@ -28,11 +28,35 @@ export type CalloutProps = {
28
28
  * Determine the color and icon of the Callout
29
29
  */
30
30
  severity: (typeof calloutSeverityValues)[number];
31
+ /**
32
+ * The text content of the Callout
33
+ */
34
+ text?: string;
31
35
  /**
32
36
  * The title of the Callout
33
37
  */
34
38
  title?: string;
35
- } & AllowedProps;
36
- declare const MemoizedCallout: import("react").MemoExoticComponent<({ children, role, severity, testId, title, translate, }: CalloutProps) => JSX.Element>;
39
+ } & ({
40
+ text: string;
41
+ children?: never;
42
+ } | {
43
+ text?: never;
44
+ children: ReactNode;
45
+ }) & ({
46
+ /**
47
+ * If linkUrl is not undefined, this is the text of the link.
48
+ * If left blank, it defaults to "Learn more".
49
+ * Note that linkText does nothing if linkUrl is not defined
50
+ */
51
+ linkUrl: string;
52
+ /**
53
+ * If defined, the Toast will include a link to the URL
54
+ */
55
+ linkText: string;
56
+ } | {
57
+ linkUrl?: never;
58
+ linkText?: never;
59
+ }) & AllowedProps;
60
+ declare const MemoizedCallout: import("react").MemoExoticComponent<({ children, linkText, linkUrl, role, severity, testId, text, title, translate, }: CalloutProps) => JSX.Element>;
37
61
  export { MemoizedCallout as Callout };
38
62
  //# sourceMappingURL=Callout.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Callout.d.ts","sourceRoot":"","sources":["../../src/Callout.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAQ,SAAS,EAAE,MAAM,OAAO,CAAC;AAKxC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,eAAO,MAAM,iBAAiB,8BAA+B,CAAC;AAC9D,eAAO,MAAM,qBAAqB,kDAKxB,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;IAC1C;;OAEG;IACH,QAAQ,EAAE,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;IACjD;;O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AC;AAGtC,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,CAAC"}
@@ -11,7 +11,6 @@
11
11
  */
12
12
  import type { AllowedProps } from "./AllowedProps";
13
13
  export declare const statusSeverityValues: readonly ["default", "error", "success", "warning"];
14
- export declare const statusVariantValues: readonly ["lamp", "pill"];
15
14
  export type StatusProps = {
16
15
  /**
17
16
  * The text content of the Status
@@ -21,10 +20,6 @@ export type StatusProps = {
21
20
  * Determine the color and icon of the Status
22
21
  */
23
22
  severity: (typeof statusSeverityValues)[number];
24
- /**
25
- * The style of the Status indicator
26
- */
27
- variant?: (typeof statusVariantValues)[number];
28
23
  } & AllowedProps;
29
- export declare const Status: ({ label, severity, testId, translate, variant, }: StatusProps) => JSX.Element;
24
+ export declare const Status: ({ label, severity, testId, translate }: StatusProps) => JSX.Element;
30
25
  //# sourceMappingURL=Status.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Status.d.ts","sourceRoot":"","sources":["../../src/Status.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,eAAO,MAAM,oBAAoB,qDAKvB,CAAC;AACX,eAAO,MAAM,mBAAmB,2BAA4B,CAAC;AAE7D,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,EAAE,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;IAChD;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;CAChD,GAAG,YAAY,CAAC;AAEjB,eAAO,MAAM,MAAM,qDAMhB,WAAW,gBAab,CAAC"}
1
+ {"version":3,"file":"Status.d.ts","sourceRoot":"","sources":["../../src/Status.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,YAAY,EAAE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AC;CACxC,CAAC;AAqHF,QAAA,MAAM,YAAY,0GAzEf,SAAS,iBAyEmB,CAAC;AAGhC,OAAO,EAAE,YAAY,IAAI,IAAI,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/theme/components.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAoC7C,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAGvC,eAAO,MAAM,UAAU;mBAIN,YAAY;;MAEzB,YAAY,CAAC,YAAY,CAomF5B,CAAC"}
1
+ {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/theme/components.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAqC7C,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAGvC,eAAO,MAAM,UAAU;mBAIN,YAAY;;MAEzB,YAAY,CAAC,YAAY,CAmoF5B,CAAC"}
@@ -21,6 +21,7 @@ import { formLabelClasses } from "@mui/material/FormLabel";
21
21
  import { formGroupClasses } from "@mui/material/FormGroup";
22
22
  import { inputAdornmentClasses } from "@mui/material/InputAdornment";
23
23
  import { inputBaseClasses } from "@mui/material/InputBase";
24
+ import { linkClasses } from "@mui/material/Link";
24
25
  import { listItemIconClasses } from "@mui/material/ListItemIcon";
25
26
  import { listItemTextClasses } from "@mui/material/ListItemText";
26
27
  import { menuItemClasses } from "@mui/material/MenuItem";
@@ -179,6 +180,10 @@ export const components = _ref => {
179
180
  }),
180
181
  ...(ownerState.variant === "banner" && {
181
182
  marginBlockEnd: 0
183
+ }),
184
+ ...(ownerState.variant === "callout" && {
185
+ fontSize: odysseyTokens.TypographySizeHeading5,
186
+ lineHeight: odysseyTokens.TypographyLineHeightHeading5
182
187
  })
183
188
  },
184
189
  ...(ownerState.variant === "banner" && {
@@ -192,6 +197,7 @@ export const components = _ref => {
192
197
  }),
193
198
  ...(ownerState.variant === "callout" && {
194
199
  borderRadius: odysseyTokens.BorderRadiusMain,
200
+ padding: odysseyTokens.Spacing5,
195
201
  "&:not(:last-child)": {
196
202
  marginBottom: odysseyTokens.Spacing6
197
203
  }
@@ -200,7 +206,10 @@ export const components = _ref => {
200
206
  maxWidth: odysseyTokens.TypographyLineLengthMax,
201
207
  borderRadius: odysseyTokens.BorderRadiusOuter,
202
208
  position: "relative",
203
- alignItems: "center",
209
+ paddingInlineStart: odysseyTokens.Spacing5,
210
+ paddingInlineEnd: odysseyTokens.Spacing4,
211
+ paddingBlock: odysseyTokens.Spacing3,
212
+ alignItems: "flex-start",
204
213
  backdropFilter: "blur(10px)"
205
214
  })
206
215
  };
@@ -220,8 +229,16 @@ export const components = _ref => {
220
229
  }),
221
230
  ...(ownerState.variant === "toast" && {
222
231
  padding: 0,
223
- marginInlineStart: 0,
224
- marginInlineEnd: 0
232
+ marginInline: 0,
233
+ marginBlock: 1,
234
+ [`& .${buttonClasses.root}`]: {
235
+ "&:hover, &:focus": {
236
+ backgroundColor: odysseyTokens.PaletteNeutralDark.concat("11")
237
+ },
238
+ "&:active": {
239
+ backgroundColor: odysseyTokens.PaletteNeutralDark.concat("22")
240
+ }
241
+ }
225
242
  })
226
243
  };
227
244
  },
@@ -244,7 +261,13 @@ export const components = _ref => {
244
261
  color: odysseyTokens.PaletteSuccessMain
245
262
  }),
246
263
  ...(ownerState.severity === "warning" && {
247
- color: odysseyTokens.PaletteWarningDark
264
+ color: odysseyTokens.HueYellow400
265
+ }),
266
+ ...(ownerState.variant === "toast" && {
267
+ marginBlock: odysseyTokens.Spacing2
268
+ }),
269
+ ...(ownerState.variant === "callout" && {
270
+ marginBlock: 1.5
248
271
  }),
249
272
  [`& .${svgIconClasses.root}`]: {
250
273
  alignSelf: "center",
@@ -265,8 +288,13 @@ export const components = _ref => {
265
288
  gap: odysseyTokens.Spacing4
266
289
  }),
267
290
  ...(ownerState.variant === "toast" && {
268
- flexGrow: 1
269
- })
291
+ flexGrow: 1,
292
+ marginBlock: odysseyTokens.Spacing2
293
+ }),
294
+ [`& .${linkClasses.root}`]: {
295
+ display: "inline-block",
296
+ marginTop: odysseyTokens.Spacing5
297
+ }
270
298
  };
271
299
  }
272
300
  }
@@ -764,8 +792,11 @@ export const components = _ref => {
764
792
  [`&.${chipClasses.disabled}`]: {
765
793
  opacity: 1,
766
794
  pointerEvents: "none",
767
- backgroundColor: odysseyTokens.HueNeutral200,
768
- color: odysseyTokens.TypographyColorDisabled
795
+ borderColor: odysseyTokens.BorderColorDisabled,
796
+ color: odysseyTokens.TypographyColorDisabled,
797
+ [`& .${chipClasses.deleteIcon}`]: {
798
+ color: odysseyTokens.HueNeutral300
799
+ }
769
800
  },
770
801
  ...(ownerState.clickable && {
771
802
  "&:hover": {
@@ -787,40 +818,6 @@ export const components = _ref => {
787
818
  margin: 0,
788
819
  marginInlineEnd: odysseyTokens.Spacing1
789
820
  },
790
- ...(ownerState.variant === "lamp" && {
791
- paddingBlock: 0,
792
- paddingInline: 0,
793
- borderRadius: 0,
794
- border: 0,
795
- backgroundColor: "transparent",
796
- color: odysseyTokens.TypographyColorBody,
797
- "&::before": {
798
- content: "''",
799
- width: ".64em",
800
- height: ".64em",
801
- marginInlineEnd: odysseyTokens.Spacing2,
802
- borderRadius: "100%",
803
- backgroundColor: odysseyTokens.HueNeutral600
804
- },
805
- [`&.${chipClasses.colorError}`]: {
806
- "&::before": {
807
- border: 0,
808
- backgroundColor: odysseyTokens.PaletteDangerMain
809
- }
810
- },
811
- [`&.${chipClasses.colorSuccess}`]: {
812
- "&::before": {
813
- border: 0,
814
- backgroundColor: odysseyTokens.PaletteSuccessMain
815
- }
816
- },
817
- [`&.${chipClasses.colorWarning}`]: {
818
- "&::before": {
819
- border: 0,
820
- backgroundColor: odysseyTokens.HueYellow200
821
- }
822
- }
823
- }),
824
821
  ...(ownerState.variant === "pill" && {
825
822
  paddingBlock: odysseyTokens.Spacing1,
826
823
  paddingInline: odysseyTokens.Spacing2,
@@ -830,14 +827,15 @@ export const components = _ref => {
830
827
  lineHeight: odysseyTokens.TypographyLineHeightOverline,
831
828
  backgroundColor: odysseyTokens.HueNeutral50,
832
829
  color: odysseyTokens.TypographyColorSubordinate,
833
- fontSize: odysseyTokens.TypographySizeSubordinate,
830
+ fontSize: "0.71428571rem",
831
+ textTransform: "uppercase",
834
832
  "&::before": {
835
833
  content: "''",
836
- width: ".64em",
837
- height: ".64em",
838
- marginInlineEnd: odysseyTokens.Spacing1,
834
+ width: "0.42857143rem",
835
+ height: "0.42857143rem",
836
+ marginInlineEnd: odysseyTokens.Spacing2,
839
837
  borderRadius: "100%",
840
- backgroundColor: odysseyTokens.HueNeutral600
838
+ backgroundColor: odysseyTokens.HueNeutral400
841
839
  },
842
840
  [`&.${chipClasses.colorError}`]: {
843
841
  backgroundColor: odysseyTokens.PaletteDangerLighter,
@@ -2127,9 +2125,37 @@ export const components = _ref => {
2127
2125
  minHeight: "unset",
2128
2126
  marginBottom: odysseyTokens.Spacing5
2129
2127
  },
2130
- flexContainer: {
2131
- gap: odysseyTokens.Spacing5,
2128
+ scroller: {
2132
2129
  borderBottom: `${odysseyTokens.BorderWidthMain} ${odysseyTokens.BorderStyleMain} ${odysseyTokens.BorderColorDisplay}`
2130
+ },
2131
+ flexContainer: {
2132
+ gap: odysseyTokens.Spacing5
2133
+ },
2134
+ scrollButtons: {
2135
+ zIndex: 1,
2136
+ transitionProperty: "opacity",
2137
+ transitionDuration: odysseyTokens.TransitionDurationMain,
2138
+ transitionTimingFunction: odysseyTokens.TransitionTimingMain,
2139
+ "& svg": {
2140
+ width: odysseyTokens.Spacing4,
2141
+ height: odysseyTokens.Spacing4,
2142
+ color: odysseyTokens.PaletteNeutralDark
2143
+ },
2144
+ "&::after": {
2145
+ content: '""',
2146
+ position: "absolute",
2147
+ top: 0,
2148
+ bottom: 0,
2149
+ width: odysseyTokens.Spacing3
2150
+ },
2151
+ "&:first-of-type::after": {
2152
+ right: `-${odysseyTokens.Spacing3}`,
2153
+ background: "linear-gradient(90deg, #FFF 0%, #FFF 72.49%, rgba(255, 255, 255, 0.70) 86.5%, rgba(255, 255, 255, 0.00) 100%)"
2154
+ },
2155
+ "&:last-of-type::after": {
2156
+ left: `-${odysseyTokens.Spacing3}`,
2157
+ background: "linear-gradient(-90deg, #FFF 0%, #FFF 72.49%, rgba(255, 255, 255, 0.70) 86.5%, rgba(255, 255, 255, 0.00) 100%)"
2158
+ }
2133
2159
  }
2134
2160
  }
2135
2161
  },