@foxford/ui 2.0.6-beta-2691fd9-20221221 → 2.0.7-beta-3b91f0c-20230124
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/components/Anchor/Anchor.js +1 -1
- package/components/Anchor/Anchor.js.map +1 -1
- package/components/Button/Button.js +1 -1
- package/components/Button/Button.js.map +1 -1
- package/dts/index.d.ts +12 -0
- package/index.cjs.js +1 -1
- package/index.cjs.js.map +1 -1
- package/package.json +1 -1
- package/shared/utils/rel-builder.js +2 -0
- package/shared/utils/rel-builder.js.map +1 -0
- package/theme/index.js +1 -1
- package/theme/index.js.map +1 -1
package/package.json
CHANGED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
function n(n,t,e){var o=[];return Boolean(t)&&function(n,t){var e=arguments.length>0&&void 0!==n?n:'';var o=arguments.length>1?t:void 0;return/^((http|https):\/\/)/.test(e)&&'string'==typeof o&&!new URL(e).hostname.endsWith(o)}(t,n)&&('_blank'===e&&o.push('noopener'),o.push('nofollow')),o.join(' ')}export{n as relBuilder};
|
|
2
|
+
//# sourceMappingURL=rel-builder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rel-builder.js","sources":["../../../../src/shared/utils/rel-builder.ts"],"sourcesContent":["function isExternalUrl(url = '', hostname?: string): boolean {\n return /^((http|https):\\/\\/)/.test(url) && typeof hostname === 'string' && !new URL(url).hostname.endsWith(hostname)\n}\n\nexport function relBuilder(hostname: string, link?: string, target?: string): string {\n const relStr = []\n if (Boolean(link) && isExternalUrl(link, hostname)) {\n if (target === '_blank') relStr.push('noopener')\n relStr.push('nofollow')\n }\n return relStr.join(' ')\n}\n"],"names":["relBuilder","hostname","link","target","relStr","Boolean","n","t","url","arguments","length","test","URL","endsWith","push","join"],"mappings":"AAIO,SAASA,EAAWC,EAAkBC,EAAeC,GAC1D,IAAMC,EAAS,GAKf,OAJIC,QAAQH,IANd,SAAAI,EAAAC,GAA6D,IAAtCC,+BAAvBF,EAAAA,EAA6B,GAAgC,IAA5BL,EAA4BQ,UAAAC,OAAA,EAA7DH,SACE,MAAO,uBAAuBI,KAAKH,IAA4B,iBAAbP,IAA0B,IAAIW,IAAIJ,GAAKP,SAASY,SAASZ,GAD7G,CAMqCC,EAAMD,KACxB,WAAXE,GAAqBC,EAAOU,KAAK,YACrCV,EAAOU,KAAK,aAEPV,EAAOW,KAAK"}
|
package/theme/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import o from'@babel/runtime/helpers/objectSpread2';import{
|
|
1
|
+
import o from'@babel/runtime/helpers/objectSpread2';import{relBuilder as r}from'../shared/utils/rel-builder.js';import{SizeInput as e}from'../shared/enums/sizeInput.js';import{colors as s,socialColors as t,unitColors as a}from'./colors.js';export{ColorNames}from'./colors.js';import{breakpoints as l}from'./breakpoints.js';import'styled-components';import'./global-styled.js';import'react/jsx-runtime';var i='mineShaft';var m='mineShaft';var p={breakpoints:l,colors:o(o(o({},s),t),a),borderRadius:'5px',textColor:"mineShaft",fallbackColor:"mineShaft",zIndex:{modal:9e3,tooltip:80},classNamePrefix:'fox',defaultInputControlsWidth:e.l,utils:{relBuilder:r}};export{m as FALLBACK_COLOR,i as TEXT_COLOR,p as theme};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/theme/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/theme/index.ts"],"sourcesContent":["import { SizeInput } from 'shared/enums/sizeInput'\nimport { Theme } from '../shared/interfaces'\nimport { colors, socialColors, unitColors } from './colors'\nimport { breakpoints } from './breakpoints'\n\nexport const TEXT_COLOR = 'mineShaft'\nexport const FALLBACK_COLOR = 'mineShaft'\n\nconst theme: Theme = {\n breakpoints,\n colors: {\n ...colors,\n ...socialColors,\n ...unitColors,\n },\n borderRadius: '5px',\n textColor: TEXT_COLOR,\n fallbackColor: FALLBACK_COLOR,\n zIndex: {\n modal: 9000,\n tooltip: 80,\n },\n classNamePrefix: 'fox',\n defaultInputControlsWidth: SizeInput.l,\n}\n\nexport { theme }\n\nexport { ColorNames } from './colors'\n\nexport { ThemeProvider } from './theme-provider'\n"],"names":["TEXT_COLOR","FALLBACK_COLOR","theme","breakpoints","colors","socialColors","unitColors","borderRadius","textColor","fallbackColor","zIndex","modal","tooltip","classNamePrefix","defaultInputControlsWidth","SizeInput","l"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/theme/index.ts"],"sourcesContent":["import { relBuilder } from 'shared/utils/rel-builder'\nimport { SizeInput } from 'shared/enums/sizeInput'\nimport { Theme } from '../shared/interfaces'\nimport { colors, socialColors, unitColors } from './colors'\nimport { breakpoints } from './breakpoints'\n\nexport const TEXT_COLOR = 'mineShaft'\nexport const FALLBACK_COLOR = 'mineShaft'\n\nconst theme: Theme = {\n breakpoints,\n colors: {\n ...colors,\n ...socialColors,\n ...unitColors,\n },\n borderRadius: '5px',\n textColor: TEXT_COLOR,\n fallbackColor: FALLBACK_COLOR,\n zIndex: {\n modal: 9000,\n tooltip: 80,\n },\n classNamePrefix: 'fox',\n defaultInputControlsWidth: SizeInput.l,\n utils: {\n relBuilder,\n },\n}\n\nexport { theme }\n\nexport { ColorNames } from './colors'\n\nexport { ThemeProvider } from './theme-provider'\n"],"names":["TEXT_COLOR","FALLBACK_COLOR","theme","breakpoints","colors","socialColors","unitColors","borderRadius","textColor","fallbackColor","zIndex","modal","tooltip","classNamePrefix","defaultInputControlsWidth","SizeInput","l","utils","relBuilder"],"mappings":"kZAMO,IAAMA,EAAa,YACnB,IAAMC,EAAiB,YAE9B,IAAMC,EAAe,CACnBC,YAAAA,EACAC,gBACKA,GACAC,GACAC,GAELC,aAAc,MACdC,UAXwB,YAYxBC,cAX4B,YAY5BC,OAAQ,CACNC,MAAO,IACPC,QAAS,IAEXC,gBAAiB,MACjBC,0BAA2BC,EAAUC,EACrCC,MAAO,CACLC,WAAAA"}
|