@okta/odyssey-react-mui 1.9.17 → 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 +4 -0
- package/dist/Status.js +2 -4
- package/dist/Status.js.map +1 -1
- package/dist/Tabs.js +2 -0
- package/dist/Tabs.js.map +1 -1
- package/dist/src/Status.d.ts +1 -6
- package/dist/src/Status.d.ts.map +1 -1
- package/dist/src/Tabs.d.ts.map +1 -1
- package/dist/theme/components.js +41 -43
- package/dist/theme/components.js.map +1 -1
- package/dist/tsconfig.production.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/Status.tsx +2 -13
- package/src/Tabs.tsx +6 -1
- package/src/theme/components.tsx +46 -46
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
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
|
+
|
|
6
10
|
## [1.9.17](https://github.com/okta/odyssey/compare/v1.9.16...v1.9.17) (2024-01-11)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @okta/odyssey-react-mui
|
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:
|
|
30
|
+
variant: "pill"
|
|
33
31
|
});
|
|
34
32
|
};
|
|
35
33
|
//# sourceMappingURL=Status.js.map
|
package/dist/Status.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Status.js","names":["useMuiProps","jsx","_jsx","statusSeverityValues","
|
|
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
|
|
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,CA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.ts
CHANGED
|
@@ -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
|
|
24
|
+
export declare const Status: ({ label, severity, testId, translate }: StatusProps) => JSX.Element;
|
|
30
25
|
//# sourceMappingURL=Status.d.ts.map
|
package/dist/src/Status.d.ts.map
CHANGED
|
@@ -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;
|
|
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;AAEX,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,EAAE,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;CACjD,GAAG,YAAY,CAAC;AAEjB,eAAO,MAAM,MAAM,2CAA4C,WAAW,gBAazE,CAAC"}
|
package/dist/src/Tabs.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../src/Tabs.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EACL,YAAY,EACZ,SAAS,EAKV,MAAM,OAAO,CAAC;AACf,OAAO,EAGL,YAAY,IAAI,eAAe,EAEhC,MAAM,UAAU,CAAC;AAIlB,OAAO,EAAS,UAAU,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAG9C,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,SAAS,CAAC,EAAE,YAAY,CAAC;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG;IACF,iBAAiB,CAAC,EAAE,UAAU,CAAC,cAAc,CAAC,CAAC;IAC/C,oBAAoB,CAAC,EAAE,UAAU,CAAC,iBAAiB,CAAC,CAAC;CACtD,GAAG,YAAY,CAAC;AAEjB,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,IAAI,EAAE,YAAY,EAAE,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,eAAe,CAAC,UAAU,CAAC,CAAC;CACxC,CAAC;
|
|
1
|
+
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../src/Tabs.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EACL,YAAY,EACZ,SAAS,EAKV,MAAM,OAAO,CAAC;AACf,OAAO,EAGL,YAAY,IAAI,eAAe,EAEhC,MAAM,UAAU,CAAC;AAIlB,OAAO,EAAS,UAAU,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAG9C,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,SAAS,CAAC,EAAE,YAAY,CAAC;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG;IACF,iBAAiB,CAAC,EAAE,UAAU,CAAC,cAAc,CAAC,CAAC;IAC/C,oBAAoB,CAAC,EAAE,UAAU,CAAC,iBAAiB,CAAC,CAAC;CACtD,GAAG,YAAY,CAAC;AAEjB,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,IAAI,EAAE,YAAY,EAAE,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,eAAe,CAAC,UAAU,CAAC,CAAC;CACxC,CAAC;AAqHF,QAAA,MAAM,YAAY,0GAzEf,SAAS,iBAyEmB,CAAC;AAGhC,OAAO,EAAE,YAAY,IAAI,IAAI,EAAE,CAAC"}
|
package/dist/theme/components.js
CHANGED
|
@@ -792,8 +792,11 @@ export const components = _ref => {
|
|
|
792
792
|
[`&.${chipClasses.disabled}`]: {
|
|
793
793
|
opacity: 1,
|
|
794
794
|
pointerEvents: "none",
|
|
795
|
-
|
|
796
|
-
color: odysseyTokens.TypographyColorDisabled
|
|
795
|
+
borderColor: odysseyTokens.BorderColorDisabled,
|
|
796
|
+
color: odysseyTokens.TypographyColorDisabled,
|
|
797
|
+
[`& .${chipClasses.deleteIcon}`]: {
|
|
798
|
+
color: odysseyTokens.HueNeutral300
|
|
799
|
+
}
|
|
797
800
|
},
|
|
798
801
|
...(ownerState.clickable && {
|
|
799
802
|
"&:hover": {
|
|
@@ -815,40 +818,6 @@ export const components = _ref => {
|
|
|
815
818
|
margin: 0,
|
|
816
819
|
marginInlineEnd: odysseyTokens.Spacing1
|
|
817
820
|
},
|
|
818
|
-
...(ownerState.variant === "lamp" && {
|
|
819
|
-
paddingBlock: 0,
|
|
820
|
-
paddingInline: 0,
|
|
821
|
-
borderRadius: 0,
|
|
822
|
-
border: 0,
|
|
823
|
-
backgroundColor: "transparent",
|
|
824
|
-
color: odysseyTokens.TypographyColorBody,
|
|
825
|
-
"&::before": {
|
|
826
|
-
content: "''",
|
|
827
|
-
width: ".64em",
|
|
828
|
-
height: ".64em",
|
|
829
|
-
marginInlineEnd: odysseyTokens.Spacing2,
|
|
830
|
-
borderRadius: "100%",
|
|
831
|
-
backgroundColor: odysseyTokens.HueNeutral600
|
|
832
|
-
},
|
|
833
|
-
[`&.${chipClasses.colorError}`]: {
|
|
834
|
-
"&::before": {
|
|
835
|
-
border: 0,
|
|
836
|
-
backgroundColor: odysseyTokens.PaletteDangerMain
|
|
837
|
-
}
|
|
838
|
-
},
|
|
839
|
-
[`&.${chipClasses.colorSuccess}`]: {
|
|
840
|
-
"&::before": {
|
|
841
|
-
border: 0,
|
|
842
|
-
backgroundColor: odysseyTokens.PaletteSuccessMain
|
|
843
|
-
}
|
|
844
|
-
},
|
|
845
|
-
[`&.${chipClasses.colorWarning}`]: {
|
|
846
|
-
"&::before": {
|
|
847
|
-
border: 0,
|
|
848
|
-
backgroundColor: odysseyTokens.HueYellow200
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
}),
|
|
852
821
|
...(ownerState.variant === "pill" && {
|
|
853
822
|
paddingBlock: odysseyTokens.Spacing1,
|
|
854
823
|
paddingInline: odysseyTokens.Spacing2,
|
|
@@ -858,14 +827,15 @@ export const components = _ref => {
|
|
|
858
827
|
lineHeight: odysseyTokens.TypographyLineHeightOverline,
|
|
859
828
|
backgroundColor: odysseyTokens.HueNeutral50,
|
|
860
829
|
color: odysseyTokens.TypographyColorSubordinate,
|
|
861
|
-
fontSize:
|
|
830
|
+
fontSize: "0.71428571rem",
|
|
831
|
+
textTransform: "uppercase",
|
|
862
832
|
"&::before": {
|
|
863
833
|
content: "''",
|
|
864
|
-
width: ".
|
|
865
|
-
height: ".
|
|
866
|
-
marginInlineEnd: odysseyTokens.
|
|
834
|
+
width: "0.42857143rem",
|
|
835
|
+
height: "0.42857143rem",
|
|
836
|
+
marginInlineEnd: odysseyTokens.Spacing2,
|
|
867
837
|
borderRadius: "100%",
|
|
868
|
-
backgroundColor: odysseyTokens.
|
|
838
|
+
backgroundColor: odysseyTokens.HueNeutral400
|
|
869
839
|
},
|
|
870
840
|
[`&.${chipClasses.colorError}`]: {
|
|
871
841
|
backgroundColor: odysseyTokens.PaletteDangerLighter,
|
|
@@ -2155,9 +2125,37 @@ export const components = _ref => {
|
|
|
2155
2125
|
minHeight: "unset",
|
|
2156
2126
|
marginBottom: odysseyTokens.Spacing5
|
|
2157
2127
|
},
|
|
2158
|
-
|
|
2159
|
-
gap: odysseyTokens.Spacing5,
|
|
2128
|
+
scroller: {
|
|
2160
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
|
+
}
|
|
2161
2159
|
}
|
|
2162
2160
|
}
|
|
2163
2161
|
},
|