@flipdish/portal-library 3.5.0 → 3.7.0
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/dist/components/atoms/AvatarGroup/index.cjs.js +2 -0
- package/dist/components/atoms/AvatarGroup/index.cjs.js.map +1 -0
- package/dist/components/atoms/AvatarGroup/index.d.ts +2 -0
- package/dist/components/atoms/AvatarGroup/index.js +2 -0
- package/dist/components/atoms/AvatarGroup/index.js.map +1 -0
- package/dist/components/atoms/Badge/index.cjs.js +2 -0
- package/dist/components/atoms/Badge/index.cjs.js.map +1 -0
- package/dist/components/atoms/Badge/index.d.ts +34 -0
- package/dist/components/atoms/Badge/index.js +2 -0
- package/dist/components/atoms/Badge/index.js.map +1 -0
- package/dist/components/atoms/Checkbox/index.cjs.js +2 -0
- package/dist/components/atoms/Checkbox/index.cjs.js.map +1 -0
- package/dist/components/atoms/Checkbox/index.d.ts +2 -0
- package/dist/components/atoms/Checkbox/index.js +2 -0
- package/dist/components/atoms/Checkbox/index.js.map +1 -0
- package/dist/components/atoms/Collapse/index.cjs.js +2 -0
- package/dist/components/atoms/Collapse/index.cjs.js.map +1 -0
- package/dist/components/atoms/Collapse/index.d.ts +2 -0
- package/dist/components/atoms/Collapse/index.js +2 -0
- package/dist/components/atoms/Collapse/index.js.map +1 -0
- package/dist/components/atoms/FormHelperText/index.cjs.js +2 -0
- package/dist/components/atoms/FormHelperText/index.cjs.js.map +1 -0
- package/dist/components/atoms/FormHelperText/index.d.ts +2 -0
- package/dist/components/atoms/FormHelperText/index.js +2 -0
- package/dist/components/atoms/FormHelperText/index.js.map +1 -0
- package/dist/components/atoms/Radio/index.cjs.js +2 -0
- package/dist/components/atoms/Radio/index.cjs.js.map +1 -0
- package/dist/components/atoms/Radio/index.d.ts +2 -0
- package/dist/components/atoms/Radio/index.js +2 -0
- package/dist/components/atoms/Radio/index.js.map +1 -0
- package/dist/components/atoms/Select/index.cjs.js +2 -0
- package/dist/components/atoms/Select/index.cjs.js.map +1 -0
- package/dist/components/atoms/Select/index.d.ts +2 -0
- package/dist/components/atoms/Select/index.js +2 -0
- package/dist/components/atoms/Select/index.js.map +1 -0
- package/dist/components/atoms/TextField/index.cjs.js +2 -0
- package/dist/components/atoms/TextField/index.cjs.js.map +1 -0
- package/dist/components/atoms/TextField/index.d.ts +2 -0
- package/dist/components/atoms/TextField/index.js +2 -0
- package/dist/components/atoms/TextField/index.js.map +1 -0
- package/dist/components/molecules/Autocomplete/index.cjs.js +2 -0
- package/dist/components/molecules/Autocomplete/index.cjs.js.map +1 -0
- package/dist/components/molecules/Autocomplete/index.d.ts +2 -0
- package/dist/components/molecules/Autocomplete/index.js +2 -0
- package/dist/components/molecules/Autocomplete/index.js.map +1 -0
- package/dist/components/molecules/FormControlLabel/index.cjs.js +2 -0
- package/dist/components/molecules/FormControlLabel/index.cjs.js.map +1 -0
- package/dist/components/molecules/FormControlLabel/index.d.ts +2 -0
- package/dist/components/molecules/FormControlLabel/index.js +2 -0
- package/dist/components/molecules/FormControlLabel/index.js.map +1 -0
- package/dist/components/molecules/FormGroup/index.cjs.js +2 -0
- package/dist/components/molecules/FormGroup/index.cjs.js.map +1 -0
- package/dist/components/molecules/FormGroup/index.d.ts +2 -0
- package/dist/components/molecules/FormGroup/index.js +2 -0
- package/dist/components/molecules/FormGroup/index.js.map +1 -0
- package/dist/components/molecules/RadioGroup/index.cjs.js +2 -0
- package/dist/components/molecules/RadioGroup/index.cjs.js.map +1 -0
- package/dist/components/molecules/RadioGroup/index.d.ts +2 -0
- package/dist/components/molecules/RadioGroup/index.js +2 -0
- package/dist/components/molecules/RadioGroup/index.js.map +1 -0
- package/dist/components/utilities/useTheme/index.cjs.js +2 -0
- package/dist/components/utilities/useTheme/index.cjs.js.map +1 -0
- package/dist/components/utilities/useTheme/index.d.ts +2 -0
- package/dist/components/utilities/useTheme/index.js +2 -0
- package/dist/components/utilities/useTheme/index.js.map +1 -0
- package/dist/themes/ThemeProvider.cjs.js.map +1 -1
- package/dist/themes/ThemeProvider.d.ts +2 -2
- package/dist/themes/ThemeProvider.js.map +1 -1
- package/dist/themes/theme.cjs.js +2 -0
- package/dist/themes/theme.cjs.js.map +1 -0
- package/dist/themes/theme.d.ts +322 -0
- package/dist/themes/theme.js +2 -0
- package/dist/themes/theme.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),r=require("@mui/material/Chip"),a=require("@mui/material/styles");function o(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var i=o(t);const l=(e,t)=>({neutral:{backgroundColor:t.palette.semantic.fill["fill-weak"],borderColor:t.palette.semantic.stroke["stroke-weak"],color:t.palette.semantic.text["text-strong"]},error:{backgroundColor:t.palette.semantic.fill["fill-error-weak"],borderColor:t.palette.semantic.stroke["stroke-error-weak"],color:t.palette.semantic.text["text-error"]},warning:{backgroundColor:t.palette.semantic.fill["fill-warning-weak"],borderColor:t.palette.semantic.stroke["stroke-warning-weak"],color:t.palette.semantic.text["text-warning"]},success:{backgroundColor:t.palette.semantic.fill["fill-success-weak"],borderColor:t.palette.semantic.stroke["stroke-success-weak"],color:t.palette.semantic.text["text-success"]},information:{backgroundColor:t.palette.semantic.fill["fill-information-weak"],borderColor:t.palette.semantic.stroke["stroke-information-weak"],color:t.palette.semantic.text["text-information"]},brand:{backgroundColor:t.palette.semantic.fill["fill-primary-weak"],borderColor:t.palette.semantic.stroke["stroke-primary-weak"],color:t.palette.semantic.text["text-primary"]}}[e]),n=a.styled(r,{shouldForwardProp:e=>!["tone"].includes(e)})((({theme:e,tone:t,size:r})=>({fontSize:"small"===r?e.typography.caption.fontSize:e.typography.body1.fontSize,lineHeight:"small"===r?e.typography.caption.lineHeight:e.typography.body1.lineHeight,fontWeight:400,padding:e.spacing(0,1),borderRadius:"small"===r?e.radius["radius-4"]:e.radius["radius-8"],borderWidth:"1px",borderStyle:"solid","& .MuiChip-label":{padding:e.spacing(0,.5)},"& .MuiChip-icon":{paddingRight:e.spacing(.5),color:"neutral"===t?e.palette.semantic.icon[""]:"inherit",fontSize:"inherit"},...l(t,e)}))),s=i.memo((({label:t,tone:r="neutral",size:a="medium",icon:o,className:i,"data-testid":l})=>e.jsx(n,{className:i,"data-testid":l,icon:o,label:t,size:a,tone:r})));s.displayName="Badge",exports.BADGE_TONES=["neutral","error","warning","success","information","brand"],exports.default=s;
|
|
2
|
+
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../../../../src/components/atoms/Badge/index.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport MuiChip, { type ChipProps as MuiChipProps } from '@mui/material/Chip';\nimport { styled, type Theme } from '@mui/material/styles';\n\n/** Available visual tones for the Badge component */\nexport const BADGE_TONES = ['neutral', 'error', 'warning', 'success', 'information', 'brand'] as const;\nexport type BadgeTone = (typeof BADGE_TONES)[number];\n\n/** Props for the Badge component */\nexport interface BadgeProps {\n /** Text label displayed in the badge */\n label: string;\n /** Visual tone/color of the badge */\n tone?: BadgeTone;\n /** Size of the badge */\n size?: MuiChipProps['size'];\n /** Optional icon to display within the badge */\n icon?: MuiChipProps['icon'];\n /** Additional CSS class names */\n className?: string;\n /** Test ID for testing and automation */\n 'data-testid'?: string;\n}\n\ninterface StyledBadgeProps {\n tone: BadgeTone;\n size: MuiChipProps['size'];\n}\n\n/** Color mapping for different tones */\nconst getToneStyles = (\n tone: BadgeTone,\n theme: Theme,\n): {\n backgroundColor: string;\n borderColor: string;\n color: string;\n} => {\n const colorMap = {\n neutral: {\n backgroundColor: theme.palette.semantic.fill['fill-weak'],\n borderColor: theme.palette.semantic.stroke['stroke-weak'],\n color: theme.palette.semantic.text['text-strong'],\n },\n error: {\n backgroundColor: theme.palette.semantic.fill['fill-error-weak'],\n borderColor: theme.palette.semantic.stroke['stroke-error-weak'],\n color: theme.palette.semantic.text['text-error'],\n },\n warning: {\n backgroundColor: theme.palette.semantic.fill['fill-warning-weak'],\n borderColor: theme.palette.semantic.stroke['stroke-warning-weak'],\n color: theme.palette.semantic.text['text-warning'],\n },\n success: {\n backgroundColor: theme.palette.semantic.fill['fill-success-weak'],\n borderColor: theme.palette.semantic.stroke['stroke-success-weak'],\n color: theme.palette.semantic.text['text-success'],\n },\n information: {\n backgroundColor: theme.palette.semantic.fill['fill-information-weak'],\n borderColor: theme.palette.semantic.stroke['stroke-information-weak'],\n color: theme.palette.semantic.text['text-information'],\n },\n brand: {\n backgroundColor: theme.palette.semantic.fill['fill-primary-weak'],\n borderColor: theme.palette.semantic.stroke['stroke-primary-weak'],\n color: theme.palette.semantic.text['text-primary'],\n },\n } satisfies Record<BadgeTone, object>;\n\n return colorMap[tone];\n};\n\nconst StyledBadge = styled(MuiChip, {\n shouldForwardProp: (prop) => !['tone'].includes(prop as string),\n})<StyledBadgeProps>(({ theme, tone, size }) => ({\n fontSize: size === 'small' ? theme.typography.caption.fontSize : theme.typography.body1.fontSize,\n lineHeight: size === 'small' ? theme.typography.caption.lineHeight : theme.typography.body1.lineHeight,\n fontWeight: 400,\n padding: theme.spacing(0, 1),\n borderRadius: size === 'small' ? theme.radius['radius-4'] : theme.radius['radius-8'],\n borderWidth: '1px',\n borderStyle: 'solid',\n '& .MuiChip-label': {\n padding: theme.spacing(0, 0.5),\n },\n '& .MuiChip-icon': {\n paddingRight: theme.spacing(0.5),\n color: tone === 'neutral' ? theme.palette.semantic.icon[''] : 'inherit',\n fontSize: 'inherit',\n },\n ...getToneStyles(tone, theme),\n}));\n\n/**\n * Badge component is used to highlight and categorize information using short text labels.\n * It supports different visual tones to convey different semantic meanings and can include\n * an optional icon.\n *\n * React.memo is used to optimize performance by preventing unnecessary re-renders\n * when the component's props haven't changed, which is beneficial for components\n * that may be used frequently throughout the application.\n */\nconst Badge = React.memo(\n ({\n label,\n tone = 'neutral',\n size = 'medium',\n icon,\n className,\n 'data-testid': dataTestId,\n }: BadgeProps): JSX.Element => (\n <StyledBadge\n className={className}\n data-testid={dataTestId}\n icon={icon}\n label={label}\n size={size}\n tone={tone}\n />\n ),\n);\n\nBadge.displayName = 'Badge';\n\nexport default Badge;\n"],"names":["getToneStyles","tone","theme","neutral","backgroundColor","palette","semantic","fill","borderColor","stroke","color","text","error","warning","success","information","brand","StyledBadge","styled","MuiChip","shouldForwardProp","prop","includes","size","fontSize","typography","caption","body1","lineHeight","fontWeight","padding","spacing","borderRadius","radius","borderWidth","borderStyle","paddingRight","icon","Badge","React","memo","label","className","dataTestId","_jsx","displayName"],"mappings":"0cAMa,MAyBPA,EAAgB,CACpBC,EACAC,KAMiB,CACfC,QAAS,CACPC,gBAAiBF,EAAMG,QAAQC,SAASC,KAAK,aAC7CC,YAAaN,EAAMG,QAAQC,SAASG,OAAO,eAC3CC,MAAOR,EAAMG,QAAQC,SAASK,KAAK,gBAErCC,MAAO,CACLR,gBAAiBF,EAAMG,QAAQC,SAASC,KAAK,mBAC7CC,YAAaN,EAAMG,QAAQC,SAASG,OAAO,qBAC3CC,MAAOR,EAAMG,QAAQC,SAASK,KAAK,eAErCE,QAAS,CACPT,gBAAiBF,EAAMG,QAAQC,SAASC,KAAK,qBAC7CC,YAAaN,EAAMG,QAAQC,SAASG,OAAO,uBAC3CC,MAAOR,EAAMG,QAAQC,SAASK,KAAK,iBAErCG,QAAS,CACPV,gBAAiBF,EAAMG,QAAQC,SAASC,KAAK,qBAC7CC,YAAaN,EAAMG,QAAQC,SAASG,OAAO,uBAC3CC,MAAOR,EAAMG,QAAQC,SAASK,KAAK,iBAErCI,YAAa,CACXX,gBAAiBF,EAAMG,QAAQC,SAASC,KAAK,yBAC7CC,YAAaN,EAAMG,QAAQC,SAASG,OAAO,2BAC3CC,MAAOR,EAAMG,QAAQC,SAASK,KAAK,qBAErCK,MAAO,CACLZ,gBAAiBF,EAAMG,QAAQC,SAASC,KAAK,qBAC7CC,YAAaN,EAAMG,QAAQC,SAASG,OAAO,uBAC3CC,MAAOR,EAAMG,QAAQC,SAASK,KAAK,kBAIvBV,IAGZgB,EAAcC,EAAMA,OAACC,EAAS,CAClCC,kBAAoBC,IAAU,CAAC,QAAQC,SAASD,IAD9BH,EAEC,EAAGhB,QAAOD,OAAMsB,WAAY,CAC/CC,SAAmB,UAATD,EAAmBrB,EAAMuB,WAAWC,QAAQF,SAAWtB,EAAMuB,WAAWE,MAAMH,SACxFI,WAAqB,UAATL,EAAmBrB,EAAMuB,WAAWC,QAAQE,WAAa1B,EAAMuB,WAAWE,MAAMC,WAC5FC,WAAY,IACZC,QAAS5B,EAAM6B,QAAQ,EAAG,GAC1BC,aAAuB,UAATT,EAAmBrB,EAAM+B,OAAO,YAAc/B,EAAM+B,OAAO,YACzEC,YAAa,MACbC,YAAa,QACb,mBAAoB,CAClBL,QAAS5B,EAAM6B,QAAQ,EAAG,KAE5B,kBAAmB,CACjBK,aAAclC,EAAM6B,QAAQ,IAC5BrB,MAAgB,YAATT,EAAqBC,EAAMG,QAAQC,SAAS+B,KAAK,IAAM,UAC9Db,SAAU,cAETxB,EAAcC,EAAMC,OAYnBoC,EAAQC,EAAMC,MAClB,EACEC,QACAxC,OAAO,UACPsB,OAAO,SACPc,OACAK,YACA,cAAeC,KAEfC,EAAAA,IAAC3B,EAAW,CACVyB,UAAWA,EAAS,cACPC,EACbN,KAAMA,EACNI,MAAOA,EACPlB,KAAMA,EACNtB,KAAMA,MAKZqC,EAAMO,YAAc,4BAvHO,CAAC,UAAW,QAAS,UAAW,UAAW,cAAe"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ChipProps } from '@mui/material/Chip';
|
|
3
|
+
|
|
4
|
+
/** Available visual tones for the Badge component */
|
|
5
|
+
declare const BADGE_TONES: readonly ["neutral", "error", "warning", "success", "information", "brand"];
|
|
6
|
+
type BadgeTone = (typeof BADGE_TONES)[number];
|
|
7
|
+
/** Props for the Badge component */
|
|
8
|
+
interface BadgeProps {
|
|
9
|
+
/** Text label displayed in the badge */
|
|
10
|
+
label: string;
|
|
11
|
+
/** Visual tone/color of the badge */
|
|
12
|
+
tone?: BadgeTone;
|
|
13
|
+
/** Size of the badge */
|
|
14
|
+
size?: ChipProps['size'];
|
|
15
|
+
/** Optional icon to display within the badge */
|
|
16
|
+
icon?: ChipProps['icon'];
|
|
17
|
+
/** Additional CSS class names */
|
|
18
|
+
className?: string;
|
|
19
|
+
/** Test ID for testing and automation */
|
|
20
|
+
'data-testid'?: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Badge component is used to highlight and categorize information using short text labels.
|
|
24
|
+
* It supports different visual tones to convey different semantic meanings and can include
|
|
25
|
+
* an optional icon.
|
|
26
|
+
*
|
|
27
|
+
* React.memo is used to optimize performance by preventing unnecessary re-renders
|
|
28
|
+
* when the component's props haven't changed, which is beneficial for components
|
|
29
|
+
* that may be used frequently throughout the application.
|
|
30
|
+
*/
|
|
31
|
+
declare const Badge: react.MemoExoticComponent<({ label, tone, size, icon, className, "data-testid": dataTestId, }: BadgeProps) => JSX.Element>;
|
|
32
|
+
|
|
33
|
+
export { BADGE_TONES, Badge as default };
|
|
34
|
+
export type { BadgeProps, BadgeTone };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import*as t from"react";import r from"@mui/material/Chip";import{styled as a}from"@mui/material/styles";const o=["neutral","error","warning","success","information","brand"],i=(e,t)=>({neutral:{backgroundColor:t.palette.semantic.fill["fill-weak"],borderColor:t.palette.semantic.stroke["stroke-weak"],color:t.palette.semantic.text["text-strong"]},error:{backgroundColor:t.palette.semantic.fill["fill-error-weak"],borderColor:t.palette.semantic.stroke["stroke-error-weak"],color:t.palette.semantic.text["text-error"]},warning:{backgroundColor:t.palette.semantic.fill["fill-warning-weak"],borderColor:t.palette.semantic.stroke["stroke-warning-weak"],color:t.palette.semantic.text["text-warning"]},success:{backgroundColor:t.palette.semantic.fill["fill-success-weak"],borderColor:t.palette.semantic.stroke["stroke-success-weak"],color:t.palette.semantic.text["text-success"]},information:{backgroundColor:t.palette.semantic.fill["fill-information-weak"],borderColor:t.palette.semantic.stroke["stroke-information-weak"],color:t.palette.semantic.text["text-information"]},brand:{backgroundColor:t.palette.semantic.fill["fill-primary-weak"],borderColor:t.palette.semantic.stroke["stroke-primary-weak"],color:t.palette.semantic.text["text-primary"]}}[e]),l=a(r,{shouldForwardProp:e=>!["tone"].includes(e)})((({theme:e,tone:t,size:r})=>({fontSize:"small"===r?e.typography.caption.fontSize:e.typography.body1.fontSize,lineHeight:"small"===r?e.typography.caption.lineHeight:e.typography.body1.lineHeight,fontWeight:400,padding:e.spacing(0,1),borderRadius:"small"===r?e.radius["radius-4"]:e.radius["radius-8"],borderWidth:"1px",borderStyle:"solid","& .MuiChip-label":{padding:e.spacing(0,.5)},"& .MuiChip-icon":{paddingRight:e.spacing(.5),color:"neutral"===t?e.palette.semantic.icon[""]:"inherit",fontSize:"inherit"},...i(t,e)}))),n=t.memo((({label:t,tone:r="neutral",size:a="medium",icon:o,className:i,"data-testid":n})=>e(l,{className:i,"data-testid":n,icon:o,label:t,size:a,tone:r})));n.displayName="Badge";export{o as BADGE_TONES,n as default};
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/atoms/Badge/index.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport MuiChip, { type ChipProps as MuiChipProps } from '@mui/material/Chip';\nimport { styled, type Theme } from '@mui/material/styles';\n\n/** Available visual tones for the Badge component */\nexport const BADGE_TONES = ['neutral', 'error', 'warning', 'success', 'information', 'brand'] as const;\nexport type BadgeTone = (typeof BADGE_TONES)[number];\n\n/** Props for the Badge component */\nexport interface BadgeProps {\n /** Text label displayed in the badge */\n label: string;\n /** Visual tone/color of the badge */\n tone?: BadgeTone;\n /** Size of the badge */\n size?: MuiChipProps['size'];\n /** Optional icon to display within the badge */\n icon?: MuiChipProps['icon'];\n /** Additional CSS class names */\n className?: string;\n /** Test ID for testing and automation */\n 'data-testid'?: string;\n}\n\ninterface StyledBadgeProps {\n tone: BadgeTone;\n size: MuiChipProps['size'];\n}\n\n/** Color mapping for different tones */\nconst getToneStyles = (\n tone: BadgeTone,\n theme: Theme,\n): {\n backgroundColor: string;\n borderColor: string;\n color: string;\n} => {\n const colorMap = {\n neutral: {\n backgroundColor: theme.palette.semantic.fill['fill-weak'],\n borderColor: theme.palette.semantic.stroke['stroke-weak'],\n color: theme.palette.semantic.text['text-strong'],\n },\n error: {\n backgroundColor: theme.palette.semantic.fill['fill-error-weak'],\n borderColor: theme.palette.semantic.stroke['stroke-error-weak'],\n color: theme.palette.semantic.text['text-error'],\n },\n warning: {\n backgroundColor: theme.palette.semantic.fill['fill-warning-weak'],\n borderColor: theme.palette.semantic.stroke['stroke-warning-weak'],\n color: theme.palette.semantic.text['text-warning'],\n },\n success: {\n backgroundColor: theme.palette.semantic.fill['fill-success-weak'],\n borderColor: theme.palette.semantic.stroke['stroke-success-weak'],\n color: theme.palette.semantic.text['text-success'],\n },\n information: {\n backgroundColor: theme.palette.semantic.fill['fill-information-weak'],\n borderColor: theme.palette.semantic.stroke['stroke-information-weak'],\n color: theme.palette.semantic.text['text-information'],\n },\n brand: {\n backgroundColor: theme.palette.semantic.fill['fill-primary-weak'],\n borderColor: theme.palette.semantic.stroke['stroke-primary-weak'],\n color: theme.palette.semantic.text['text-primary'],\n },\n } satisfies Record<BadgeTone, object>;\n\n return colorMap[tone];\n};\n\nconst StyledBadge = styled(MuiChip, {\n shouldForwardProp: (prop) => !['tone'].includes(prop as string),\n})<StyledBadgeProps>(({ theme, tone, size }) => ({\n fontSize: size === 'small' ? theme.typography.caption.fontSize : theme.typography.body1.fontSize,\n lineHeight: size === 'small' ? theme.typography.caption.lineHeight : theme.typography.body1.lineHeight,\n fontWeight: 400,\n padding: theme.spacing(0, 1),\n borderRadius: size === 'small' ? theme.radius['radius-4'] : theme.radius['radius-8'],\n borderWidth: '1px',\n borderStyle: 'solid',\n '& .MuiChip-label': {\n padding: theme.spacing(0, 0.5),\n },\n '& .MuiChip-icon': {\n paddingRight: theme.spacing(0.5),\n color: tone === 'neutral' ? theme.palette.semantic.icon[''] : 'inherit',\n fontSize: 'inherit',\n },\n ...getToneStyles(tone, theme),\n}));\n\n/**\n * Badge component is used to highlight and categorize information using short text labels.\n * It supports different visual tones to convey different semantic meanings and can include\n * an optional icon.\n *\n * React.memo is used to optimize performance by preventing unnecessary re-renders\n * when the component's props haven't changed, which is beneficial for components\n * that may be used frequently throughout the application.\n */\nconst Badge = React.memo(\n ({\n label,\n tone = 'neutral',\n size = 'medium',\n icon,\n className,\n 'data-testid': dataTestId,\n }: BadgeProps): JSX.Element => (\n <StyledBadge\n className={className}\n data-testid={dataTestId}\n icon={icon}\n label={label}\n size={size}\n tone={tone}\n />\n ),\n);\n\nBadge.displayName = 'Badge';\n\nexport default Badge;\n"],"names":["BADGE_TONES","getToneStyles","tone","theme","neutral","backgroundColor","palette","semantic","fill","borderColor","stroke","color","text","error","warning","success","information","brand","StyledBadge","styled","MuiChip","shouldForwardProp","prop","includes","size","fontSize","typography","caption","body1","lineHeight","fontWeight","padding","spacing","borderRadius","radius","borderWidth","borderStyle","paddingRight","icon","Badge","React","memo","label","className","dataTestId","_jsx","displayName"],"mappings":"gJAMa,MAAAA,EAAc,CAAC,UAAW,QAAS,UAAW,UAAW,cAAe,SAyB/EC,EAAgB,CACpBC,EACAC,KAMiB,CACfC,QAAS,CACPC,gBAAiBF,EAAMG,QAAQC,SAASC,KAAK,aAC7CC,YAAaN,EAAMG,QAAQC,SAASG,OAAO,eAC3CC,MAAOR,EAAMG,QAAQC,SAASK,KAAK,gBAErCC,MAAO,CACLR,gBAAiBF,EAAMG,QAAQC,SAASC,KAAK,mBAC7CC,YAAaN,EAAMG,QAAQC,SAASG,OAAO,qBAC3CC,MAAOR,EAAMG,QAAQC,SAASK,KAAK,eAErCE,QAAS,CACPT,gBAAiBF,EAAMG,QAAQC,SAASC,KAAK,qBAC7CC,YAAaN,EAAMG,QAAQC,SAASG,OAAO,uBAC3CC,MAAOR,EAAMG,QAAQC,SAASK,KAAK,iBAErCG,QAAS,CACPV,gBAAiBF,EAAMG,QAAQC,SAASC,KAAK,qBAC7CC,YAAaN,EAAMG,QAAQC,SAASG,OAAO,uBAC3CC,MAAOR,EAAMG,QAAQC,SAASK,KAAK,iBAErCI,YAAa,CACXX,gBAAiBF,EAAMG,QAAQC,SAASC,KAAK,yBAC7CC,YAAaN,EAAMG,QAAQC,SAASG,OAAO,2BAC3CC,MAAOR,EAAMG,QAAQC,SAASK,KAAK,qBAErCK,MAAO,CACLZ,gBAAiBF,EAAMG,QAAQC,SAASC,KAAK,qBAC7CC,YAAaN,EAAMG,QAAQC,SAASG,OAAO,uBAC3CC,MAAOR,EAAMG,QAAQC,SAASK,KAAK,kBAIvBV,IAGZgB,EAAcC,EAAOC,EAAS,CAClCC,kBAAoBC,IAAU,CAAC,QAAQC,SAASD,IAD9BH,EAEC,EAAGhB,QAAOD,OAAMsB,WAAY,CAC/CC,SAAmB,UAATD,EAAmBrB,EAAMuB,WAAWC,QAAQF,SAAWtB,EAAMuB,WAAWE,MAAMH,SACxFI,WAAqB,UAATL,EAAmBrB,EAAMuB,WAAWC,QAAQE,WAAa1B,EAAMuB,WAAWE,MAAMC,WAC5FC,WAAY,IACZC,QAAS5B,EAAM6B,QAAQ,EAAG,GAC1BC,aAAuB,UAATT,EAAmBrB,EAAM+B,OAAO,YAAc/B,EAAM+B,OAAO,YACzEC,YAAa,MACbC,YAAa,QACb,mBAAoB,CAClBL,QAAS5B,EAAM6B,QAAQ,EAAG,KAE5B,kBAAmB,CACjBK,aAAclC,EAAM6B,QAAQ,IAC5BrB,MAAgB,YAATT,EAAqBC,EAAMG,QAAQC,SAAS+B,KAAK,IAAM,UAC9Db,SAAU,cAETxB,EAAcC,EAAMC,OAYnBoC,EAAQC,EAAMC,MAClB,EACEC,QACAxC,OAAO,UACPsB,OAAO,SACPc,OACAK,YACA,cAAeC,KAEfC,EAAC3B,EAAW,CACVyB,UAAWA,EAAS,cACPC,EACbN,KAAMA,EACNI,MAAOA,EACPlB,KAAMA,EACNtB,KAAMA,MAKZqC,EAAMO,YAAc"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeProvider.cjs.js","sources":["../../src/themes/ThemeProvider.tsx"],"sourcesContent":["import CssBaseline from '@mui/material/CssBaseline';\nimport { ThemeProvider as MuiThemeProvider } from '@mui/material/styles';\n\nimport { darkTheme, lightTheme } from './flipdishPublicTheme';\n\ninterface ThemeProviderProps {\n children: React.ReactNode;\n themeModeOverride?: 'dark' | 'light';\n}\n\nconst ThemeProvider = ({ children, themeModeOverride }: ThemeProviderProps) => {\n const theme = themeModeOverride === 'dark' ? darkTheme : lightTheme;\n\n return (\n <MuiThemeProvider theme={theme}>\n <CssBaseline />\n {children}\n </MuiThemeProvider>\n );\n};\n\nexport default ThemeProvider;\n"],"names":["children","themeModeOverride","theme","darkTheme","lightTheme","_jsxs","MuiThemeProvider","_jsx","CssBaseline"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ThemeProvider.cjs.js","sources":["../../src/themes/ThemeProvider.tsx"],"sourcesContent":["import CssBaseline from '@mui/material/CssBaseline';\nimport { ThemeProvider as MuiThemeProvider } from '@mui/material/styles';\n\nimport './theme';\n\nimport { darkTheme, lightTheme } from './flipdishPublicTheme';\n\ninterface ThemeProviderProps {\n children: React.ReactNode;\n themeModeOverride?: 'dark' | 'light';\n}\n\nconst ThemeProvider = ({ children, themeModeOverride }: ThemeProviderProps): JSX.Element => {\n const theme = themeModeOverride === 'dark' ? darkTheme : lightTheme;\n\n return (\n <MuiThemeProvider theme={theme}>\n <CssBaseline />\n {children}\n </MuiThemeProvider>\n );\n};\n\nexport default ThemeProvider;\n"],"names":["children","themeModeOverride","theme","darkTheme","lightTheme","_jsxs","MuiThemeProvider","_jsx","CssBaseline"],"mappings":"kLAYsB,EAAGA,WAAUC,wBACjC,MAAMC,EAA8B,SAAtBD,EAA+BE,EAASA,UAAGC,EAAUA,WAEnE,OACEC,OAACC,EAAAA,cAAgB,CAACJ,MAAOA,EACvBF,SAAA,CAAAO,EAAAA,IAACC,EAAc,CAAA,GACdR,IACgB"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import './theme.js';
|
|
2
2
|
|
|
3
3
|
interface ThemeProviderProps {
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
themeModeOverride?: 'dark' | 'light';
|
|
6
6
|
}
|
|
7
|
-
declare const ThemeProvider: ({ children, themeModeOverride }: ThemeProviderProps) =>
|
|
7
|
+
declare const ThemeProvider: ({ children, themeModeOverride }: ThemeProviderProps) => JSX.Element;
|
|
8
8
|
|
|
9
9
|
export { ThemeProvider as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeProvider.js","sources":["../../src/themes/ThemeProvider.tsx"],"sourcesContent":["import CssBaseline from '@mui/material/CssBaseline';\nimport { ThemeProvider as MuiThemeProvider } from '@mui/material/styles';\n\nimport { darkTheme, lightTheme } from './flipdishPublicTheme';\n\ninterface ThemeProviderProps {\n children: React.ReactNode;\n themeModeOverride?: 'dark' | 'light';\n}\n\nconst ThemeProvider = ({ children, themeModeOverride }: ThemeProviderProps) => {\n const theme = themeModeOverride === 'dark' ? darkTheme : lightTheme;\n\n return (\n <MuiThemeProvider theme={theme}>\n <CssBaseline />\n {children}\n </MuiThemeProvider>\n );\n};\n\nexport default ThemeProvider;\n"],"names":["ThemeProvider","children","themeModeOverride","_jsxs","MuiThemeProvider","theme","darkTheme","lightTheme","_jsx","CssBaseline"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ThemeProvider.js","sources":["../../src/themes/ThemeProvider.tsx"],"sourcesContent":["import CssBaseline from '@mui/material/CssBaseline';\nimport { ThemeProvider as MuiThemeProvider } from '@mui/material/styles';\n\nimport './theme';\n\nimport { darkTheme, lightTheme } from './flipdishPublicTheme';\n\ninterface ThemeProviderProps {\n children: React.ReactNode;\n themeModeOverride?: 'dark' | 'light';\n}\n\nconst ThemeProvider = ({ children, themeModeOverride }: ThemeProviderProps): JSX.Element => {\n const theme = themeModeOverride === 'dark' ? darkTheme : lightTheme;\n\n return (\n <MuiThemeProvider theme={theme}>\n <CssBaseline />\n {children}\n </MuiThemeProvider>\n );\n};\n\nexport default ThemeProvider;\n"],"names":["ThemeProvider","children","themeModeOverride","_jsxs","MuiThemeProvider","theme","darkTheme","lightTheme","_jsx","CssBaseline"],"mappings":"qNAYM,MAAAA,EAAgB,EAAGC,WAAUC,uBAI/BC,EAACC,EAAgB,CAACC,MAHgB,SAAtBH,EAA+BI,EAAYC,EAIrDN,SAAA,CAAAO,EAACC,EAAc,CAAA,GACdR"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
import { Breakpoint } from '@mui/material/styles';
|
|
2
|
+
import { RadiusToken } from './tokens/radius/radius.js';
|
|
3
|
+
|
|
4
|
+
declare module '@mui/material/styles' {
|
|
5
|
+
interface Palette {
|
|
6
|
+
semantic: {
|
|
7
|
+
text: {
|
|
8
|
+
'text-strong': string;
|
|
9
|
+
'text-weak': string;
|
|
10
|
+
'text-primary': string;
|
|
11
|
+
'text-disabled': string;
|
|
12
|
+
'text-error': string;
|
|
13
|
+
'text-warning': string;
|
|
14
|
+
'text-success': string;
|
|
15
|
+
'text-information': string;
|
|
16
|
+
'text-inverse-strong': string;
|
|
17
|
+
'text-inverse-weak': string;
|
|
18
|
+
'text-inverse-disabled': string;
|
|
19
|
+
};
|
|
20
|
+
stroke: {
|
|
21
|
+
'stroke-strong': string;
|
|
22
|
+
'stroke-weak': string;
|
|
23
|
+
'stroke-selected': string;
|
|
24
|
+
'stroke-focus': string;
|
|
25
|
+
'stroke-disabled': string;
|
|
26
|
+
'stroke-primary-strong': string;
|
|
27
|
+
'stroke-primary-weak': string;
|
|
28
|
+
'stroke-secondary': string;
|
|
29
|
+
'stroke-tertiary': string;
|
|
30
|
+
'stroke-error-strong': string;
|
|
31
|
+
'stroke-error-weak': string;
|
|
32
|
+
'stroke-warning-strong': string;
|
|
33
|
+
'stroke-warning-weak': string;
|
|
34
|
+
'stroke-success-strong': string;
|
|
35
|
+
'stroke-success-weak': string;
|
|
36
|
+
'stroke-information-strong': string;
|
|
37
|
+
'stroke-information-weak': string;
|
|
38
|
+
'stroke-inverse-strong': string;
|
|
39
|
+
'stroke-inverse-weak': string;
|
|
40
|
+
'stroke-inverse-disabled': string;
|
|
41
|
+
};
|
|
42
|
+
icon: {
|
|
43
|
+
'icon-strong': string;
|
|
44
|
+
'icon-primary': string;
|
|
45
|
+
'icon-disabled': string;
|
|
46
|
+
'icon-error': string;
|
|
47
|
+
'icon-warning': string;
|
|
48
|
+
'icon-success': string;
|
|
49
|
+
'icon-information': string;
|
|
50
|
+
'icon-inverse': string;
|
|
51
|
+
'icon-inverse-strong': string;
|
|
52
|
+
'icon-inverse-disabled': string;
|
|
53
|
+
};
|
|
54
|
+
fill: {
|
|
55
|
+
'fill-strong': string;
|
|
56
|
+
'fill-weak': string;
|
|
57
|
+
'fill-weaker': string;
|
|
58
|
+
'fill-hover': string;
|
|
59
|
+
'fill-press': string;
|
|
60
|
+
'fill-selected': string;
|
|
61
|
+
'fill-disabled': string;
|
|
62
|
+
'fill-overlay': string;
|
|
63
|
+
'fill-primary-strong': string;
|
|
64
|
+
'fill-primary-weak': string;
|
|
65
|
+
'fill-secondary': string;
|
|
66
|
+
'fill-tertiary': string;
|
|
67
|
+
'fill-error-strong': string;
|
|
68
|
+
'fill-error-weak': string;
|
|
69
|
+
'fill-warning-strong': string;
|
|
70
|
+
'fill-warning-weak': string;
|
|
71
|
+
'fill-success-strong': string;
|
|
72
|
+
'fill-success-weak': string;
|
|
73
|
+
'fill-information-strong': string;
|
|
74
|
+
'fill-information-weak': string;
|
|
75
|
+
'fill-inverse-strong': string;
|
|
76
|
+
'fill-inverse-weak': string;
|
|
77
|
+
'fill-inverse-hover': string;
|
|
78
|
+
'fill-inverse-press': string;
|
|
79
|
+
'fill-inverse-disabled': string;
|
|
80
|
+
'fill-flipdishlogo': string;
|
|
81
|
+
'fill-black': string;
|
|
82
|
+
'fill-white': string;
|
|
83
|
+
'fill-yellow': string;
|
|
84
|
+
'fill-lightgrey': string;
|
|
85
|
+
'fill-lime': string;
|
|
86
|
+
'fill-pink': string;
|
|
87
|
+
};
|
|
88
|
+
background: {
|
|
89
|
+
'background-base': string;
|
|
90
|
+
'background-raised': string;
|
|
91
|
+
'background-overlay': string;
|
|
92
|
+
'background-sunken': string;
|
|
93
|
+
'background-alternate': string;
|
|
94
|
+
'background-primary': string;
|
|
95
|
+
'background-secondary': string;
|
|
96
|
+
'background-tertiary': string;
|
|
97
|
+
'background-inverse': string;
|
|
98
|
+
};
|
|
99
|
+
shadow: {
|
|
100
|
+
'shadow-strong': string;
|
|
101
|
+
'shadow-weak': string;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
interface PaletteOptions {
|
|
106
|
+
semantic?: {
|
|
107
|
+
text?: {
|
|
108
|
+
'text-strong'?: string;
|
|
109
|
+
'text-weak'?: string;
|
|
110
|
+
'text-primary'?: string;
|
|
111
|
+
'text-disabled'?: string;
|
|
112
|
+
'text-error'?: string;
|
|
113
|
+
'text-warning'?: string;
|
|
114
|
+
'text-success'?: string;
|
|
115
|
+
'text-information'?: string;
|
|
116
|
+
'text-inverse-strong'?: string;
|
|
117
|
+
'text-inverse-weak'?: string;
|
|
118
|
+
'text-inverse-disabled'?: string;
|
|
119
|
+
};
|
|
120
|
+
stroke?: {
|
|
121
|
+
'stroke-strong'?: string;
|
|
122
|
+
'stroke-weak'?: string;
|
|
123
|
+
'stroke-selected'?: string;
|
|
124
|
+
'stroke-focus'?: string;
|
|
125
|
+
'stroke-disabled'?: string;
|
|
126
|
+
'stroke-primary-strong'?: string;
|
|
127
|
+
'stroke-primary-weak'?: string;
|
|
128
|
+
'stroke-secondary'?: string;
|
|
129
|
+
'stroke-tertiary'?: string;
|
|
130
|
+
'stroke-error-strong'?: string;
|
|
131
|
+
'stroke-error-weak'?: string;
|
|
132
|
+
'stroke-warning-strong'?: string;
|
|
133
|
+
'stroke-warning-weak'?: string;
|
|
134
|
+
'stroke-success-strong'?: string;
|
|
135
|
+
'stroke-success-weak'?: string;
|
|
136
|
+
'stroke-information-strong'?: string;
|
|
137
|
+
'stroke-information-weak'?: string;
|
|
138
|
+
'stroke-inverse-strong'?: string;
|
|
139
|
+
'stroke-inverse-weak'?: string;
|
|
140
|
+
'stroke-inverse-disabled'?: string;
|
|
141
|
+
};
|
|
142
|
+
icon?: {
|
|
143
|
+
'icon-strong'?: string;
|
|
144
|
+
'icon-primary'?: string;
|
|
145
|
+
'icon-disabled'?: string;
|
|
146
|
+
'icon-error'?: string;
|
|
147
|
+
'icon-warning'?: string;
|
|
148
|
+
'icon-success'?: string;
|
|
149
|
+
'icon-information'?: string;
|
|
150
|
+
'icon-inverse': string;
|
|
151
|
+
'icon-inverse-strong'?: string;
|
|
152
|
+
'icon-inverse-disabled'?: string;
|
|
153
|
+
};
|
|
154
|
+
fill?: {
|
|
155
|
+
'fill-strong'?: string;
|
|
156
|
+
'fill-weak'?: string;
|
|
157
|
+
'fill-weaker'?: string;
|
|
158
|
+
'fill-hover'?: string;
|
|
159
|
+
'fill-press'?: string;
|
|
160
|
+
'fill-selected'?: string;
|
|
161
|
+
'fill-disabled'?: string;
|
|
162
|
+
'fill-overlay'?: string;
|
|
163
|
+
'fill-primary-strong'?: string;
|
|
164
|
+
'fill-primary-weak'?: string;
|
|
165
|
+
'fill-secondary'?: string;
|
|
166
|
+
'fill-tertiary'?: string;
|
|
167
|
+
'fill-error-strong'?: string;
|
|
168
|
+
'fill-error-weak'?: string;
|
|
169
|
+
'fill-warning-strong'?: string;
|
|
170
|
+
'fill-warning-weak'?: string;
|
|
171
|
+
'fill-success-strong'?: string;
|
|
172
|
+
'fill-success-weak'?: string;
|
|
173
|
+
'fill-information-strong'?: string;
|
|
174
|
+
'fill-information-weak'?: string;
|
|
175
|
+
'fill-inverse-strong'?: string;
|
|
176
|
+
'fill-inverse-weak'?: string;
|
|
177
|
+
'fill-inverse-hover'?: string;
|
|
178
|
+
'fill-inverse-press'?: string;
|
|
179
|
+
'fill-inverse-disabled'?: string;
|
|
180
|
+
'fill-flipdishlogo'?: string;
|
|
181
|
+
'fill-black'?: string;
|
|
182
|
+
'fill-white'?: string;
|
|
183
|
+
'fill-yellow'?: string;
|
|
184
|
+
'fill-lightgrey'?: string;
|
|
185
|
+
'fill-lime'?: string;
|
|
186
|
+
'fill-pink'?: string;
|
|
187
|
+
};
|
|
188
|
+
background?: {
|
|
189
|
+
'background-base'?: string;
|
|
190
|
+
'background-raised'?: string;
|
|
191
|
+
'background-overlay'?: string;
|
|
192
|
+
'background-sunken'?: string;
|
|
193
|
+
'background-alternate'?: string;
|
|
194
|
+
'background-primary'?: string;
|
|
195
|
+
'background-secondary'?: string;
|
|
196
|
+
'background-tertiary'?: string;
|
|
197
|
+
'background-inverse'?: string;
|
|
198
|
+
};
|
|
199
|
+
shadow?: {
|
|
200
|
+
'shadow-strong'?: string;
|
|
201
|
+
'shadow-weak'?: string;
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
interface Theme {
|
|
206
|
+
breakpoints: {
|
|
207
|
+
up: (key: Breakpoint | number) => string;
|
|
208
|
+
down: (key: Breakpoint | number) => string;
|
|
209
|
+
only: (key: Breakpoint | number) => string;
|
|
210
|
+
};
|
|
211
|
+
radius?: Record<RadiusToken, string>;
|
|
212
|
+
}
|
|
213
|
+
interface BreakpointOverrides {
|
|
214
|
+
base: true;
|
|
215
|
+
mobile: true;
|
|
216
|
+
tablet: true;
|
|
217
|
+
laptop: true;
|
|
218
|
+
desktop: true;
|
|
219
|
+
widescreen: true;
|
|
220
|
+
xs: false;
|
|
221
|
+
sm: false;
|
|
222
|
+
md: false;
|
|
223
|
+
lg: false;
|
|
224
|
+
xl: false;
|
|
225
|
+
xxl: false;
|
|
226
|
+
}
|
|
227
|
+
interface ThemeOptions {
|
|
228
|
+
radius?: Record<RadiusToken, string>;
|
|
229
|
+
}
|
|
230
|
+
interface TypographyVariants {
|
|
231
|
+
d1Strong: React.CSSProperties;
|
|
232
|
+
d1Weak: React.CSSProperties;
|
|
233
|
+
d2Strong: React.CSSProperties;
|
|
234
|
+
d2Weak: React.CSSProperties;
|
|
235
|
+
d3Strong: React.CSSProperties;
|
|
236
|
+
d3Weak: React.CSSProperties;
|
|
237
|
+
d3WeakAlternate: React.CSSProperties;
|
|
238
|
+
d4Strong: React.CSSProperties;
|
|
239
|
+
d4Weak: React.CSSProperties;
|
|
240
|
+
d4WeakAlternate: React.CSSProperties;
|
|
241
|
+
h1Strong: React.CSSProperties;
|
|
242
|
+
h1Weak: React.CSSProperties;
|
|
243
|
+
h1WeakAlternate: React.CSSProperties;
|
|
244
|
+
h2Strong: React.CSSProperties;
|
|
245
|
+
h2Weak: React.CSSProperties;
|
|
246
|
+
h3Strong: React.CSSProperties;
|
|
247
|
+
h3Weak: React.CSSProperties;
|
|
248
|
+
h4Strong: React.CSSProperties;
|
|
249
|
+
h4Weak: React.CSSProperties;
|
|
250
|
+
h4StrongUnderlined: React.CSSProperties;
|
|
251
|
+
b1Strong: React.CSSProperties;
|
|
252
|
+
b1Weak: React.CSSProperties;
|
|
253
|
+
b1StrongUnderlined: React.CSSProperties;
|
|
254
|
+
b1WeakUnderlined: React.CSSProperties;
|
|
255
|
+
captionStrong: React.CSSProperties;
|
|
256
|
+
captionWeak: React.CSSProperties;
|
|
257
|
+
captionStrongUnderlined: React.CSSProperties;
|
|
258
|
+
captionWeakUnderlined: React.CSSProperties;
|
|
259
|
+
}
|
|
260
|
+
interface TypographyVariantsOptions {
|
|
261
|
+
d1Strong?: React.CSSProperties;
|
|
262
|
+
d1Weak?: React.CSSProperties;
|
|
263
|
+
d2Strong?: React.CSSProperties;
|
|
264
|
+
d2Weak?: React.CSSProperties;
|
|
265
|
+
d3Strong?: React.CSSProperties;
|
|
266
|
+
d3Weak?: React.CSSProperties;
|
|
267
|
+
d3WeakAlternate?: React.CSSProperties;
|
|
268
|
+
d4Strong?: React.CSSProperties;
|
|
269
|
+
d4Weak?: React.CSSProperties;
|
|
270
|
+
d4WeakAlternate?: React.CSSProperties;
|
|
271
|
+
h1Strong?: React.CSSProperties;
|
|
272
|
+
h1Weak?: React.CSSProperties;
|
|
273
|
+
h1WeakAlternate?: React.CSSProperties;
|
|
274
|
+
h2Strong?: React.CSSProperties;
|
|
275
|
+
h2Weak?: React.CSSProperties;
|
|
276
|
+
h3Strong?: React.CSSProperties;
|
|
277
|
+
h3Weak?: React.CSSProperties;
|
|
278
|
+
h4Strong?: React.CSSProperties;
|
|
279
|
+
h4Weak?: React.CSSProperties;
|
|
280
|
+
h4StrongUnderlined?: React.CSSProperties;
|
|
281
|
+
b1Strong?: React.CSSProperties;
|
|
282
|
+
b1Weak?: React.CSSProperties;
|
|
283
|
+
b1StrongUnderlined?: React.CSSProperties;
|
|
284
|
+
b1WeakUnderlined?: React.CSSProperties;
|
|
285
|
+
captionStrong?: React.CSSProperties;
|
|
286
|
+
captionWeak?: React.CSSProperties;
|
|
287
|
+
captionStrongUnderlined?: React.CSSProperties;
|
|
288
|
+
captionWeakUnderlined?: React.CSSProperties;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
declare module '@mui/material/Typography' {
|
|
292
|
+
interface TypographyPropsVariantOverrides {
|
|
293
|
+
d1Strong: true;
|
|
294
|
+
d1Weak: true;
|
|
295
|
+
d2Strong: true;
|
|
296
|
+
d2Weak: true;
|
|
297
|
+
d3Strong: true;
|
|
298
|
+
d3Weak: true;
|
|
299
|
+
d3WeakAlternate: true;
|
|
300
|
+
d4Strong: true;
|
|
301
|
+
d4Weak: true;
|
|
302
|
+
d4WeakAlternate: true;
|
|
303
|
+
h1Strong: true;
|
|
304
|
+
h1Weak: true;
|
|
305
|
+
h1WeakAlternate: true;
|
|
306
|
+
h2Strong: true;
|
|
307
|
+
h2Weak: true;
|
|
308
|
+
h3Strong: true;
|
|
309
|
+
h3Weak: true;
|
|
310
|
+
h4Strong: true;
|
|
311
|
+
h4Weak: true;
|
|
312
|
+
h4StrongUnderlined: true;
|
|
313
|
+
b1Strong: true;
|
|
314
|
+
b1Weak: true;
|
|
315
|
+
b1StrongUnderlined: true;
|
|
316
|
+
b1WeakUnderlined: true;
|
|
317
|
+
captionStrong: true;
|
|
318
|
+
captionWeak: true;
|
|
319
|
+
captionStrongUnderlined: true;
|
|
320
|
+
captionWeakUnderlined: true;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|