@foi/design-system 0.0.17 → 0.0.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/dist/{RadioGroup-DzEJw4WJ.js → RadioGroup-D_R-nwCD.js} +4 -4
- package/dist/{RadioGroup-DzEJw4WJ.js.map → RadioGroup-D_R-nwCD.js.map} +1 -1
- package/dist/{RadioGroup.context-Bu218uUX.js → RadioGroup.context-CdFGi5z1.js} +3 -3
- package/dist/{RadioGroup.context-Bu218uUX.js.map → RadioGroup.context-CdFGi5z1.js.map} +1 -1
- package/dist/{Switch-oAVuMb0V.js → Switch-DK5hEXUS.js} +4 -4
- package/dist/{Switch-oAVuMb0V.js.map → Switch-DK5hEXUS.js.map} +1 -1
- package/dist/{ThemeProvider-C47pyWG6.js → ThemeProvider-BlqXHfU_.js} +2 -2
- package/dist/{ThemeProvider-C47pyWG6.js.map → ThemeProvider-BlqXHfU_.js.map} +1 -1
- package/dist/atoms.mjs +2 -2
- package/dist/{emotion-react-jsx-runtime.browser.esm-Ch-DwUYg.js → emotion-react-jsx-runtime.browser.esm-Ct_bZ5JG.js} +2 -2
- package/dist/{emotion-react-jsx-runtime.browser.esm-Ch-DwUYg.js.map → emotion-react-jsx-runtime.browser.esm-Ct_bZ5JG.js.map} +1 -1
- package/dist/hocs.mjs +1 -1
- package/dist/index.mjs +6 -6
- package/dist/molecules.mjs +1 -1
- package/dist/theme/dark/components/Modal.d.ts +0 -3
- package/dist/theme/dark/components/index.d.ts +0 -3
- package/dist/theme/dark/index.d.ts +0 -3
- package/dist/theme/index.d.ts +0 -3
- package/dist/{theme-D01EcUA9.js → theme-CLkxVsoE.js} +2 -5
- package/dist/{theme-D01EcUA9.js.map → theme-CLkxVsoE.js.map} +1 -1
- package/dist/theme.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, n as t, t as n } from "./emotion-react-jsx-runtime.browser.esm-
|
|
1
|
+
import { a as e, n as t, t as n } from "./emotion-react-jsx-runtime.browser.esm-Ct_bZ5JG.js";
|
|
2
2
|
import { useLayoutEffect as r } from "react";
|
|
3
3
|
//#region src/hocs/ThemeProvider/fonts/loadFonts.ts
|
|
4
4
|
var i = `
|
|
@@ -36,4 +36,4 @@ var i = `
|
|
|
36
36
|
//#endregion
|
|
37
37
|
export { s as t };
|
|
38
38
|
|
|
39
|
-
//# sourceMappingURL=ThemeProvider-
|
|
39
|
+
//# sourceMappingURL=ThemeProvider-BlqXHfU_.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeProvider-
|
|
1
|
+
{"version":3,"file":"ThemeProvider-BlqXHfU_.js","names":[],"sources":["../src/hocs/ThemeProvider/fonts/loadFonts.ts","../src/hocs/ThemeProvider/ThemeProvider.tsx"],"sourcesContent":["const mulishRegular = new URL('../../../assets/fonts/Mulish/Mulish-Regular.ttf', import.meta.url).href;\nconst mulishMedium = new URL('../../../assets/fonts/Mulish/Mulish-Medium.ttf', import.meta.url).href;\nconst mulishSemiBold = new URL('../../../assets/fonts/Mulish/Mulish-SemiBold.ttf', import.meta.url).href;\nconst mulishBold = new URL('../../../assets/fonts/Mulish/Mulish-Bold.ttf', import.meta.url).href;\n\nconst leagueSpartanRegular = new URL('../../../assets/fonts/LeagueSpartan/LeagueSpartan-Regular.ttf', import.meta.url)\n .href;\nconst leagueSpartanBold = new URL('../../../assets/fonts/LeagueSpartan/LeagueSpartan-Bold.ttf', import.meta.url).href;\n\nconst googleSansCodeLight = new URL('../../../assets/fonts/GoogleSansCode/Light.ttf', import.meta.url).href;\nconst googleSansCodeLightItalic = new URL('../../../assets/fonts/GoogleSansCode/LightItalic.ttf', import.meta.url).href;\nconst googleSansCodeRegular = new URL('../../../assets/fonts/GoogleSansCode/Regular.ttf', import.meta.url).href;\nconst googleSansCodeItalic = new URL('../../../assets/fonts/GoogleSansCode/Italic.ttf', import.meta.url).href;\nconst googleSansCodeMedium = new URL('../../../assets/fonts/GoogleSansCode/Medium.ttf', import.meta.url).href;\nconst googleSansCodeMediumItalic = new URL('../../../assets/fonts/GoogleSansCode/MediumItalic.ttf', import.meta.url)\n .href;\nconst googleSansCodeSemiBold = new URL('../../../assets/fonts/GoogleSansCode/SemiBold.ttf', import.meta.url).href;\nconst googleSansCodeSemiBoldItalic = new URL('../../../assets/fonts/GoogleSansCode/SemiBoldItalic.ttf', import.meta.url)\n .href;\nconst googleSansCodeBold = new URL('../../../assets/fonts/GoogleSansCode/Bold.ttf', import.meta.url).href;\nconst googleSansCodeBoldItalic = new URL('../../../assets/fonts/GoogleSansCode/BoldItalic.ttf', import.meta.url).href;\n\nconst materialSymbolsRounded = new URL(\n '../../../assets/fonts/MaterialSymbolsRounded/MaterialSymbolsRounded.woff2',\n import.meta.url,\n).href;\n\nconst fontFaceCSS = `\n@font-face { font-family: 'Mulish'; src: url('${mulishRegular}') format('truetype'); }\n@font-face { font-family: 'Mulish'; src: url('${mulishMedium}') format('truetype'); font-weight: 500; }\n@font-face { font-family: 'Mulish'; src: url('${mulishSemiBold}') format('truetype'); font-weight: 600; }\n@font-face { font-family: 'Mulish'; src: url('${mulishBold}') format('truetype'); font-weight: 700; }\n\n@font-face { font-family: 'League Spartan'; src: url('${leagueSpartanRegular}') format('truetype'); }\n@font-face { font-family: 'League Spartan'; src: url('${leagueSpartanBold}') format('truetype'); font-weight: bold; }\n\n@font-face { font-family: 'Google Sans Code'; src: url('${googleSansCodeLight}') format('truetype'); font-weight: 300; }\n@font-face { font-family: 'Google Sans Code'; src: url('${googleSansCodeLightItalic}') format('truetype'); font-weight: 300; font-style: italic; }\n@font-face { font-family: 'Google Sans Code'; src: url('${googleSansCodeRegular}') format('truetype'); font-weight: 400; }\n@font-face { font-family: 'Google Sans Code'; src: url('${googleSansCodeItalic}') format('truetype'); font-weight: 400; font-style: italic; }\n@font-face { font-family: 'Google Sans Code'; src: url('${googleSansCodeMedium}') format('truetype'); font-weight: 500; }\n@font-face { font-family: 'Google Sans Code'; src: url('${googleSansCodeMediumItalic}') format('truetype'); font-weight: 500; font-style: italic; }\n@font-face { font-family: 'Google Sans Code'; src: url('${googleSansCodeSemiBold}') format('truetype'); font-weight: 600; }\n@font-face { font-family: 'Google Sans Code'; src: url('${googleSansCodeSemiBoldItalic}') format('truetype'); font-weight: 600; font-style: italic; }\n@font-face { font-family: 'Google Sans Code'; src: url('${googleSansCodeBold}') format('truetype'); font-weight: 700; }\n@font-face { font-family: 'Google Sans Code'; src: url('${googleSansCodeBoldItalic}') format('truetype'); font-weight: 700; font-style: italic; }\n\n@font-face { font-family: 'Material Symbols Rounded'; src: url('${materialSymbolsRounded}') format('woff2'); font-weight: 100 900; font-style: normal; font-display: block; }\n`;\n\nlet injected = false;\n\nexport const loadFonts = () => {\n console.log('loadFonts called, injected:', injected);\n if (typeof document === 'undefined' || injected) return;\n injected = true;\n const style = document.createElement('style');\n style.textContent = fontFaceCSS;\n document.head.appendChild(style);\n console.log('font style injected');\n};\n","import { useLayoutEffect } from 'react';\nimport { ThemeProviderComponent } from './ThemeProvider.interface';\nimport type { Theme } from './ThemeProvider.interface';\nimport { useCreateThemeStyles } from './useThemeProvider.hook';\nimport { loadFonts } from './fonts/loadFonts';\n\nconst ThemeProvider = <T extends readonly Theme[]>(props: ThemeProviderComponent<T>) => {\n const { themes, theme: selectedTheme, children } = props;\n useCreateThemeStyles(themes, selectedTheme);\n useLayoutEffect(() => {\n loadFonts();\n }, []);\n\n return <>{children}</>;\n};\n\nexport default ThemeProvider;\n"],"mappings":";;;AA2BA,IAAM,IAAc;gDA3BE,IAAA,IAAA,iv1IAAA,KAAA,OAAA,KAAA,IAA2E,CAAC,KA4BpC;gDA3BzC,IAAA,IAAA,qy1IAAA,KAAA,OAAA,KAAA,IAA0E,CAAC,KA4BnC;gDA3BtC,IAAA,IAAA,qt1IAAA,KAAA,OAAA,KAAA,IAA4E,CAAC,KA4BrC;gDA3B5C,IAAA,IAAA,iz1IAAA,KAAA,OAAA,KAAA,IAA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BAAa;CAMnD,OALA,EAAqB,GAAQ,EAAc,EAC3C,QAAsB;EACpB,GAAW;IACV,EAAE,CAAC,EAEC,kBAAA,GAAA,EAAG,aAAY,CAAA"}
|
package/dist/atoms.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as e, o as t, r as n } from "./RadioGroup.context-
|
|
2
|
-
import { a as r, c as i, i as a, n as o, o as s, r as c, s as l, t as u } from "./Switch-
|
|
1
|
+
import { n as e, o as t, r as n } from "./RadioGroup.context-CdFGi5z1.js";
|
|
2
|
+
import { a as r, c as i, i as a, n as o, o as s, r as c, s as l, t as u } from "./Switch-DK5hEXUS.js";
|
|
3
3
|
export { i as Button, n as Checkbox, l as DatePicker, t as Icon, e as IconButton, r as NumberField, a as Radio, c as Select, o as Slider, u as Switch, s as TextField };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e } from "./theme-
|
|
1
|
+
import { n as e } from "./theme-CLkxVsoE.js";
|
|
2
2
|
import * as t from "react";
|
|
3
3
|
import n, { forwardRef as r, useContext as i, useLayoutEffect as a, useMemo as o } from "react";
|
|
4
4
|
import * as s from "react/jsx-runtime";
|
|
@@ -992,4 +992,4 @@ var gt = s.Fragment, _t = function(e, t, n) {
|
|
|
992
992
|
//#endregion
|
|
993
993
|
export { b as a, y as i, _t as n, vt as r, gt as t };
|
|
994
994
|
|
|
995
|
-
//# sourceMappingURL=emotion-react-jsx-runtime.browser.esm-
|
|
995
|
+
//# sourceMappingURL=emotion-react-jsx-runtime.browser.esm-Ct_bZ5JG.js.map
|