@flipdish/portal-library 2.1.4 → 3.0.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/Form/FormItemLayout/index.cjs.js +1 -1
- package/dist/components/Form/FormItemLayout/index.cjs.js.map +1 -1
- package/dist/components/Form/FormItemLayout/index.js +1 -1
- package/dist/components/Form/FormItemLayout/index.js.map +1 -1
- package/dist/components/GenericTable/index.cjs.js +17 -17
- package/dist/components/GenericTable/index.cjs.js.map +1 -1
- package/dist/components/GenericTable/index.d.ts +3 -3
- package/dist/components/GenericTable/index.js +17 -17
- package/dist/components/GenericTable/index.js.map +1 -1
- package/dist/components/GenericTableTitle/index.cjs.js +1 -1
- package/dist/components/GenericTableTitle/index.cjs.js.map +1 -1
- package/dist/components/GenericTableTitle/index.d.ts +4 -5
- package/dist/components/GenericTableTitle/index.js +1 -1
- package/dist/components/GenericTableTitle/index.js.map +1 -1
- package/dist/components/ListItemLinkButton/index.cjs.js +1 -1
- package/dist/components/ListItemLinkButton/index.cjs.js.map +1 -1
- package/dist/components/ListItemLinkButton/index.d.ts +1 -1
- package/dist/components/ListItemLinkButton/index.js +1 -1
- package/dist/components/ListItemLinkButton/index.js.map +1 -1
- package/dist/components/PageLayout/FullWidthContainer.cjs.js +1 -1
- package/dist/components/PageLayout/FullWidthContainer.cjs.js.map +1 -1
- package/dist/components/PageLayout/FullWidthContainer.d.ts +2 -2
- package/dist/components/PageLayout/FullWidthContainer.js +1 -1
- package/dist/components/PageLayout/FullWidthContainer.js.map +1 -1
- package/dist/components/PageLayout/GlobalSpacingStyles.cjs.js +1 -1
- package/dist/components/PageLayout/GlobalSpacingStyles.cjs.js.map +1 -1
- package/dist/components/PageLayout/GlobalSpacingStyles.js +1 -1
- package/dist/components/PageLayout/GlobalSpacingStyles.js.map +1 -1
- package/dist/components/PageLayout/index.cjs.js +1 -1
- package/dist/components/PageLayout/index.cjs.js.map +1 -1
- package/dist/components/PageLayout/index.d.ts +4 -4
- package/dist/components/PageLayout/index.js +1 -1
- package/dist/components/PageLayout/index.js.map +1 -1
- package/dist/components/PortalMock/index.cjs.js +22 -22
- package/dist/components/PortalMock/index.cjs.js.map +1 -1
- package/dist/components/PortalMock/index.d.ts +2 -2
- package/dist/components/PortalMock/index.js +22 -22
- package/dist/components/PortalMock/index.js.map +1 -1
- package/dist/components/atoms/Typography/index.cjs.js +2 -0
- package/dist/components/atoms/Typography/index.cjs.js.map +1 -0
- package/dist/components/atoms/Typography/index.d.ts +2 -0
- package/dist/components/atoms/Typography/index.js +2 -0
- package/dist/components/atoms/Typography/index.js.map +1 -0
- package/dist/themes/flipdishPublicTheme.cjs.js +1 -1
- package/dist/themes/flipdishPublicTheme.cjs.js.map +1 -1
- package/dist/themes/flipdishPublicTheme.d.ts +3 -3
- package/dist/themes/flipdishPublicTheme.js +1 -1
- package/dist/themes/flipdishPublicTheme.js.map +1 -1
- package/dist/themes/tokens/breakpoints/breakpoints.cjs.js +2 -0
- package/dist/themes/tokens/breakpoints/breakpoints.cjs.js.map +1 -0
- package/dist/themes/tokens/breakpoints/breakpoints.d.ts +20 -0
- package/dist/themes/tokens/breakpoints/breakpoints.js +2 -0
- package/dist/themes/tokens/breakpoints/breakpoints.js.map +1 -0
- package/dist/themes/tokens/radius/radius.cjs.js +2 -0
- package/dist/themes/tokens/radius/radius.cjs.js.map +1 -0
- package/dist/themes/tokens/radius/radius.d.ts +17 -0
- package/dist/themes/tokens/radius/radius.js +2 -0
- package/dist/themes/tokens/radius/radius.js.map +1 -0
- package/dist/themes/tokens/spacing/spacing.cjs.js +2 -0
- package/dist/themes/tokens/spacing/spacing.cjs.js.map +1 -0
- package/dist/themes/tokens/spacing/spacing.d.ts +23 -0
- package/dist/themes/tokens/spacing/spacing.js +2 -0
- package/dist/themes/tokens/spacing/spacing.js.map +1 -0
- package/dist/themes/tokens/typography/font-family.cjs.js +2 -0
- package/dist/themes/tokens/typography/font-family.cjs.js.map +1 -0
- package/dist/themes/tokens/typography/font-family.d.ts +14 -0
- package/dist/themes/tokens/typography/font-family.js +2 -0
- package/dist/themes/tokens/typography/font-family.js.map +1 -0
- package/dist/themes/tokens/typography/font-size.cjs.js +2 -0
- package/dist/themes/tokens/typography/font-size.cjs.js.map +1 -0
- package/dist/themes/tokens/typography/font-size.d.ts +28 -0
- package/dist/themes/tokens/typography/font-size.js +2 -0
- package/dist/themes/tokens/typography/font-size.js.map +1 -0
- package/dist/themes/tokens/typography/letter-spacing.cjs.js +2 -0
- package/dist/themes/tokens/typography/letter-spacing.cjs.js.map +1 -0
- package/dist/themes/tokens/typography/letter-spacing.d.ts +28 -0
- package/dist/themes/tokens/typography/letter-spacing.js +2 -0
- package/dist/themes/tokens/typography/letter-spacing.js.map +1 -0
- package/dist/themes/tokens/typography/line-height.cjs.js +2 -0
- package/dist/themes/tokens/typography/line-height.cjs.js.map +1 -0
- package/dist/themes/tokens/typography/line-height.d.ts +28 -0
- package/dist/themes/tokens/typography/line-height.js +2 -0
- package/dist/themes/tokens/typography/line-height.js.map +1 -0
- package/dist/themes/tokens/typography/variant-mapping.cjs.js +2 -0
- package/dist/themes/tokens/typography/variant-mapping.cjs.js.map +1 -0
- package/dist/themes/tokens/typography/variant-mapping.d.ts +32 -0
- package/dist/themes/tokens/typography/variant-mapping.js +2 -0
- package/dist/themes/tokens/typography/variant-mapping.js.map +1 -0
- package/dist/themes/typography.cjs.js +1 -1
- package/dist/themes/typography.cjs.js.map +1 -1
- package/dist/themes/typography.d.ts +3 -1
- package/dist/themes/typography.js +1 -1
- package/dist/themes/typography.js.map +1 -1
- package/package.json +7 -7
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const
|
|
1
|
+
import{fontFamily as e}from"./tokens/typography/font-family.js";import{fontSize as t}from"./tokens/typography/font-size.js";import{letterSpacing as o}from"./tokens/typography/letter-spacing.js";import{lineHeight as n}from"./tokens/typography/line-height.js";const d={textDecorationLine:"underline",textDecorationStyle:"solid",textDecorationSkipInk:"auto",textDecorationThickness:"2px",textUnderlineOffset:"25%",textUnderlinePosition:"from-font"},i=(i,a,r,h=!1)=>({fontFamily:e.desktop[a],fontSize:t.desktop[r],fontStyle:"normal",fontWeight:i,lineHeight:n.desktop[r],letterSpacing:o.desktop[r],...h?d:{}}),a=e=>({fontSize:t.mobile[e],lineHeight:n.mobile[e],letterSpacing:o.mobile[e]}),r={d1Strong:i(600,"heading","d1"),d1Weak:i(400,"body","d1"),d2Strong:i(600,"heading","d2"),d2Weak:i(400,"body","d2"),d3Strong:i(600,"heading","d3"),d3Weak:i(400,"body","d3"),d3WeakAlternate:i(400,"alternate","d3"),d4Strong:i(600,"heading","d4"),d4Weak:i(400,"body","d4"),d4WeakAlternate:i(400,"alternate","d4"),h1Strong:i(600,"heading","h1"),h1Weak:i(400,"body","h1"),h1WeakAlternate:i(400,"alternate","h1"),h2Strong:i(600,"heading","h2"),h2Weak:i(400,"body","h2"),h3Strong:i(600,"heading","h3"),h3Weak:i(400,"body","h3"),h4Strong:i(600,"heading","h4"),h4Weak:i(400,"body","h4"),h4StrongUnderlined:i(600,"heading","h4",!0),b1Strong:i(600,"body","b1"),b1Weak:i(400,"body","b1"),b1StrongUnderlined:i(600,"body","b1",!0),b1WeakUnderlined:i(400,"body","b1",!0),captionStrong:i(600,"body","caption"),captionWeak:i(400,"body","caption"),captionStrongUnderlined:i(600,"body","caption",!0),captionWeakUnderlined:i(400,"body","caption",!0)};export{a as getMobileTextStyle,r as typography};
|
|
2
2
|
//# sourceMappingURL=typography.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typography.js","sources":["../../src/themes/typography.ts"],"sourcesContent":["import type { ThemeOptions } from '@mui/material/styles/createTheme';\n\
|
|
1
|
+
{"version":3,"file":"typography.js","sources":["../../src/themes/typography.ts"],"sourcesContent":["import type { ThemeOptions } from '@mui/material/styles/createTheme';\n\nimport { fontFamily } from './tokens/typography/font-family';\nimport { fontSize } from './tokens/typography/font-size';\nimport { letterSpacing } from './tokens/typography/letter-spacing';\nimport { lineHeight } from './tokens/typography/line-height';\n\nconst underlineStyles: React.CSSProperties = {\n textDecorationLine: 'underline',\n textDecorationStyle: 'solid',\n textDecorationSkipInk: 'auto',\n textDecorationThickness: '2px', // Ensure a valid value\n textUnderlineOffset: '25%',\n textUnderlinePosition: 'from-font',\n};\n\nconst createTextStyle = (\n weight: number,\n type: 'alternate' | 'body' | 'heading',\n sizeKey: keyof (typeof fontSize)['desktop'],\n underline = false,\n): React.CSSProperties => ({\n fontFamily: fontFamily['desktop'][type],\n fontSize: fontSize['desktop'][sizeKey],\n fontStyle: 'normal',\n fontWeight: weight,\n lineHeight: lineHeight['desktop'][sizeKey],\n letterSpacing: letterSpacing['desktop'][sizeKey],\n ...(underline ? underlineStyles : {}),\n});\n\n// has to be done using media queries, otherwise it isn't responsive\nexport const getMobileTextStyle = (sizeKey: keyof (typeof fontSize)['mobile']): React.CSSProperties => ({\n fontSize: fontSize['mobile'][sizeKey],\n lineHeight: lineHeight['mobile'][sizeKey],\n letterSpacing: letterSpacing['mobile'][sizeKey],\n});\n\nexport const typography: ThemeOptions['typography'] = {\n d1Strong: createTextStyle(600, 'heading', 'd1'),\n d1Weak: createTextStyle(400, 'body', 'd1'),\n d2Strong: createTextStyle(600, 'heading', 'd2'),\n d2Weak: createTextStyle(400, 'body', 'd2'),\n d3Strong: createTextStyle(600, 'heading', 'd3'),\n d3Weak: createTextStyle(400, 'body', 'd3'),\n d3WeakAlternate: createTextStyle(400, 'alternate', 'd3'),\n d4Strong: createTextStyle(600, 'heading', 'd4'),\n d4Weak: createTextStyle(400, 'body', 'd4'),\n d4WeakAlternate: createTextStyle(400, 'alternate', 'd4'),\n h1Strong: createTextStyle(600, 'heading', 'h1'),\n h1Weak: createTextStyle(400, 'body', 'h1'),\n h1WeakAlternate: createTextStyle(400, 'alternate', 'h1'),\n h2Strong: createTextStyle(600, 'heading', 'h2'),\n h2Weak: createTextStyle(400, 'body', 'h2'),\n h3Strong: createTextStyle(600, 'heading', 'h3'),\n h3Weak: createTextStyle(400, 'body', 'h3'),\n h4Strong: createTextStyle(600, 'heading', 'h4'),\n h4Weak: createTextStyle(400, 'body', 'h4'),\n h4StrongUnderlined: createTextStyle(600, 'heading', 'h4', true),\n b1Strong: createTextStyle(600, 'body', 'b1'),\n b1Weak: createTextStyle(400, 'body', 'b1'),\n b1StrongUnderlined: createTextStyle(600, 'body', 'b1', true),\n b1WeakUnderlined: createTextStyle(400, 'body', 'b1', true),\n captionStrong: createTextStyle(600, 'body', 'caption'),\n captionWeak: createTextStyle(400, 'body', 'caption'),\n captionStrongUnderlined: createTextStyle(600, 'body', 'caption', true),\n captionWeakUnderlined: createTextStyle(400, 'body', 'caption', true),\n};\n"],"names":["underlineStyles","textDecorationLine","textDecorationStyle","textDecorationSkipInk","textDecorationThickness","textUnderlineOffset","textUnderlinePosition","createTextStyle","weight","type","sizeKey","underline","fontFamily","fontSize","fontStyle","fontWeight","lineHeight","letterSpacing","getMobileTextStyle","typography","d1Strong","d1Weak","d2Strong","d2Weak","d3Strong","d3Weak","d3WeakAlternate","d4Strong","d4Weak","d4WeakAlternate","h1Strong","h1Weak","h1WeakAlternate","h2Strong","h2Weak","h3Strong","h3Weak","h4Strong","h4Weak","h4StrongUnderlined","b1Strong","b1Weak","b1StrongUnderlined","b1WeakUnderlined","captionStrong","captionWeak","captionStrongUnderlined","captionWeakUnderlined"],"mappings":"kQAOA,MAAMA,EAAuC,CAC3CC,mBAAoB,YACpBC,oBAAqB,QACrBC,sBAAuB,OACvBC,wBAAyB,MACzBC,oBAAqB,MACrBC,sBAAuB,aAGnBC,EAAkB,CACtBC,EACAC,EACAC,EACAC,GAAY,KACa,CACzBC,WAAYA,EAAoB,QAAEH,GAClCI,SAAUA,EAAkB,QAAEH,GAC9BI,UAAW,SACXC,WAAYP,EACZQ,WAAYA,EAAoB,QAAEN,GAClCO,cAAeA,EAAuB,QAAEP,MACpCC,EAAYX,EAAkB,KAIvBkB,EAAsBR,IAAqE,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|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flipdish/portal-library",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"@actions/core": "^1.11.1",
|
|
41
41
|
"@emotion/react": "11.14.0",
|
|
42
42
|
"@emotion/styled": "11.14.0",
|
|
43
|
-
"@mui/icons-material": "6.4.
|
|
44
|
-
"@mui/material": "6.4.
|
|
43
|
+
"@mui/icons-material": "6.4.11",
|
|
44
|
+
"@mui/material": "6.4.11",
|
|
45
45
|
"@mui/x-date-pickers": "^7.23.3",
|
|
46
46
|
"@tanstack/react-query": "^5.62.0",
|
|
47
47
|
"formik": "^2.4.6",
|
|
@@ -79,10 +79,10 @@
|
|
|
79
79
|
"@testing-library/jest-dom": "6.6.3",
|
|
80
80
|
"@testing-library/react": "15.0.7",
|
|
81
81
|
"@types/react": "18.3.20",
|
|
82
|
-
"@types/react-dom": "18.3.
|
|
82
|
+
"@types/react-dom": "18.3.7",
|
|
83
83
|
"@typescript-eslint/eslint-plugin": "7.18.0",
|
|
84
84
|
"@typescript-eslint/parser": "7.18.0",
|
|
85
|
-
"@vitejs/plugin-react-swc": "3.
|
|
85
|
+
"@vitejs/plugin-react-swc": "3.9.0",
|
|
86
86
|
"chromatic": "^11.25.2",
|
|
87
87
|
"dotenv": "^16.4.5",
|
|
88
88
|
"eslint": "^8.56.0",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"eslint-plugin-prettier": "^5.1.3",
|
|
94
94
|
"eslint-plugin-react": "^7.37.4",
|
|
95
95
|
"eslint-plugin-react-hooks": "4.6.2",
|
|
96
|
-
"eslint-plugin-react-refresh": "0.4.
|
|
96
|
+
"eslint-plugin-react-refresh": "0.4.20",
|
|
97
97
|
"eslint-plugin-simple-import-sort": "^12.0.0",
|
|
98
98
|
"eslint-plugin-storybook": "^0.12.0",
|
|
99
99
|
"eslint-plugin-testing-library": "^7.1.1",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"storybook": "^8.6.7",
|
|
110
110
|
"tslib": "^2.8.0",
|
|
111
111
|
"typescript": "5.4.5",
|
|
112
|
-
"vite": "5.4.
|
|
112
|
+
"vite": "5.4.19",
|
|
113
113
|
"vite-plugin-svgr": "^3.2.0",
|
|
114
114
|
"vitest": "1.6.1"
|
|
115
115
|
},
|