@os-design/styles 1.0.32 → 1.0.33
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/cjs/ellipsisStyles/index.js.map +1 -1
- package/dist/cjs/emotion.d.js.map +1 -1
- package/dist/cjs/enableScrollingStyles/index.js.map +1 -1
- package/dist/cjs/horizontalPaddingStyles/index.js.map +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/lineClampStyles/index.js.map +1 -1
- package/dist/cjs/resetButtonStyles/index.js.map +1 -1
- package/dist/cjs/resetFocusStyles/index.js.map +1 -1
- package/dist/cjs/resetUlStyles/index.js.map +1 -1
- package/dist/cjs/sizeStyles/index.js.map +1 -1
- package/dist/cjs/transitionStyles/index.js.map +1 -1
- package/dist/esm/ellipsisStyles/index.js.map +1 -1
- package/dist/esm/emotion.d.js.map +1 -1
- package/dist/esm/enableScrollingStyles/index.js.map +1 -1
- package/dist/esm/horizontalPaddingStyles/index.js.map +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lineClampStyles/index.js.map +1 -1
- package/dist/esm/resetButtonStyles/index.js.map +1 -1
- package/dist/esm/resetFocusStyles/index.js.map +1 -1
- package/dist/esm/resetUlStyles/index.js.map +1 -1
- package/dist/esm/sizeStyles/index.js.map +1 -1
- package/dist/esm/transitionStyles/index.js.map +1 -1
- package/dist/types/ellipsisStyles/index.d.ts +1 -1
- package/dist/types/resetButtonStyles/index.d.ts +1 -1
- package/dist/types/resetFocusStyles/index.d.ts +1 -1
- package/dist/types/resetUlStyles/index.d.ts +1 -1
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":["ellipsisStyles","css"],"sources":["../../../src/ellipsisStyles/index.ts"],"sourcesContent":["import { css } from '@emotion/react';\n\nconst ellipsisStyles = css`\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n`;\n\nexport default ellipsisStyles;\n"],"mappings":";;;;;;;AAAA;;;;;;AAEA,IAAMA,cAAc,OAAGC,UAAH,iJAApB;eAMeD,c"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"emotion.d.js","names":[],"sources":["../../src/emotion.d.ts"],"sourcesContent":["import '@emotion/react';\nimport { Theme as BaseTheme } from '@os-design/theming';\n\ndeclare module '@emotion/react' {\n // eslint-disable-next-line @typescript-eslint/no-empty-interface\n export interface Theme extends BaseTheme {}\n}\n"],"mappings":";;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":["enableScrollingStyles","axis","showScrollbar","css","includes"],"sources":["../../../src/enableScrollingStyles/index.ts"],"sourcesContent":["import { css } from '@emotion/react';\nimport { SerializedStyles } from '@emotion/serialize';\n\nconst enableScrollingStyles = (\n axis: 'x' | 'y' | 'both',\n showScrollbar = true\n): SerializedStyles => css`\n ${['x', 'both'].includes(axis) &&\n css`\n overflow-x: auto;\n `};\n\n ${['y', 'both'].includes(axis) &&\n css`\n overflow-y: auto;\n `};\n\n ${!showScrollbar &&\n css`\n ::-webkit-scrollbar {\n display: none;\n }\n `};\n\n -webkit-overflow-scrolling: touch;\n`;\n\nexport default enableScrollingStyles;\n"],"mappings":";;;;;;;AAAA;;;;;;AAGA,IAAMA,qBAAqB,GAAG,SAAxBA,qBAAwB,CAC5BC,IAD4B;EAAA,IAE5BC,aAF4B,uEAEZ,IAFY;EAAA,WAGPC,UAHO,gJAI1B,CAAC,GAAD,EAAM,MAAN,EAAcC,QAAd,CAAuBH,IAAvB,SACFE,UADE,mGAJ0B,EAS1B,CAAC,GAAD,EAAM,MAAN,EAAcC,QAAd,CAAuBH,IAAvB,SACFE,UADE,mGAT0B,EAc1B,CAACD,aAAD,QACFC,UADE,oIAd0B;AAAA,CAA9B;;eAwBeH,qB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":["horizontalPaddingStyles","side","p","fp","m","min","sm","paddingLeft","includes","theme","horizontalPadding","map","v","undefined","paddingRight"],"sources":["../../../src/horizontalPaddingStyles/index.ts"],"sourcesContent":["import fp from 'facepaint';\nimport { m } from '@os-design/media';\n\ntype Side = 'left' | 'right' | 'both';\n\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\nconst horizontalPaddingStyles =\n (side: Side = 'both') =>\n (p) =>\n fp([m.min.sm])({\n paddingLeft: ['left', 'both'].includes(side)\n ? p.theme.horizontalPadding.map((v) => `${v}em`)\n : undefined,\n paddingRight: ['right', 'both'].includes(side)\n ? p.theme.horizontalPadding.map((v) => `${v}em`)\n : undefined,\n });\n\nexport default horizontalPaddingStyles;\n"],"mappings":";;;;;;;AAAA;;AACA;;;;AAIA;AACA,IAAMA,uBAAuB,GAC3B,SADIA,uBACJ;EAAA,IAACC,IAAD,uEAAc,MAAd;EAAA,OACA,UAACC,CAAD;IAAA,OACE,IAAAC,qBAAA,EAAG,CAACC,QAAA,CAAEC,GAAF,CAAMC,EAAP,CAAH,EAAe;MACbC,WAAW,EAAE,CAAC,MAAD,EAAS,MAAT,EAAiBC,QAAjB,CAA0BP,IAA1B,IACTC,CAAC,CAACO,KAAF,CAAQC,iBAAR,CAA0BC,GAA1B,CAA8B,UAACC,CAAD;QAAA,iBAAUA,CAAV;MAAA,CAA9B,CADS,GAETC,SAHS;MAIbC,YAAY,EAAE,CAAC,OAAD,EAAU,MAAV,EAAkBN,QAAlB,CAA2BP,IAA3B,IACVC,CAAC,CAACO,KAAF,CAAQC,iBAAR,CAA0BC,GAA1B,CAA8B,UAACC,CAAD;QAAA,iBAAUA,CAAV;MAAA,CAA9B,CADU,GAEVC;IANS,CAAf,CADF;EAAA,CADA;AAAA,CADF;;eAYeb,uB"}
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/index.ts"],"sourcesContent":["export { default as ellipsisStyles } from './ellipsisStyles';\nexport { default as enableScrollingStyles } from './enableScrollingStyles';\nexport { default as horizontalPaddingStyles } from './horizontalPaddingStyles';\nexport { default as lineClampStyles } from './lineClampStyles';\nexport { default as resetButtonStyles } from './resetButtonStyles';\nexport { default as resetFocusStyles } from './resetFocusStyles';\nexport { default as resetUlStyles } from './resetUlStyles';\nexport { default as sizeStyles } from './sizeStyles';\nexport { default as transitionStyles } from './transitionStyles';\n\nexport * from './sizeStyles';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAGA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AAFA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":["lineClampStyles","maxLines","css"],"sources":["../../../src/lineClampStyles/index.ts"],"sourcesContent":["import { css } from '@emotion/react';\nimport { SerializedStyles } from '@emotion/serialize';\n\nconst lineClampStyles = (maxLines: number): SerializedStyles => css`\n display: -webkit-box;\n -webkit-line-clamp: ${maxLines};\n -webkit-box-orient: vertical;\n overflow: hidden;\n`;\n\nexport default lineClampStyles;\n"],"mappings":";;;;;;;AAAA;;;;;;AAGA,IAAMA,eAAe,GAAG,SAAlBA,eAAkB,CAACC,QAAD;EAAA,WAAwCC,UAAxC,qLAEAD,QAFA;AAAA,CAAxB;;eAOeD,e"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":["resetButtonStyles","css","resetFocusStyles"],"sources":["../../../src/resetButtonStyles/index.ts"],"sourcesContent":["import { css } from '@emotion/react';\nimport resetFocusStyles from '../resetFocusStyles';\n\nconst resetButtonStyles = css`\n ${resetFocusStyles};\n border: 0;\n padding: 0;\n`;\n\nexport default resetButtonStyles;\n"],"mappings":";;;;;;;AAAA;;AACA;;;;;;;;AAEA,IAAMA,iBAAiB,OAAGC,UAAH,+GACnBC,4BADmB,CAAvB;eAMeF,iB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":["resetFocusStyles","css"],"sources":["../../../src/resetFocusStyles/index.ts"],"sourcesContent":["import { css } from '@emotion/react';\n\nconst resetFocusStyles = css`\n &:focus {\n outline: none;\n }\n`;\n\nexport default resetFocusStyles;\n"],"mappings":";;;;;;;AAAA;;;;;;AAEA,IAAMA,gBAAgB,OAAGC,UAAH,8GAAtB;eAMeD,gB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":["resetUlStyles","css"],"sources":["../../../src/resetUlStyles/index.ts"],"sourcesContent":["import { css } from '@emotion/react';\n\nconst resetUlStyles = css`\n list-style: none;\n margin: 0;\n padding: 0;\n`;\n\nexport default resetUlStyles;\n"],"mappings":";;;;;;;AAAA;;;;;;AAEA,IAAMA,aAAa,OAAGC,UAAH,0HAAnB;eAMeD,a"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":["sizeStyles","p","size","theme","sizes","css"],"sources":["../../../src/sizeStyles/index.ts"],"sourcesContent":["import { css } from '@emotion/react';\nimport { SerializedStyles } from '@emotion/serialize';\n\nexport interface WithSize {\n /**\n * The size of the element.\n * @default medium\n */\n size?: 'small' | 'medium' | 'large' | string;\n}\n\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\nconst sizeStyles = (p): SerializedStyles => {\n const size = p.theme.sizes[p.size || 'medium'];\n if (!size) {\n return css`\n font-size: ${p.size};\n `;\n }\n return css`\n font-size: ${size}em;\n `;\n};\n\nexport default sizeStyles;\n"],"mappings":";;;;;;;AAAA;;;;;;AAWA;AACA,IAAMA,UAAU,GAAG,SAAbA,UAAa,CAACC,CAAD,EAAyB;EAC1C,IAAMC,IAAI,GAAGD,CAAC,CAACE,KAAF,CAAQC,KAAR,CAAcH,CAAC,CAACC,IAAF,IAAU,QAAxB,CAAb;;EACA,IAAI,CAACA,IAAL,EAAW;IACT,WAAOG,UAAP,qGACeJ,CAAC,CAACC,IADjB;EAGD;;EACD,WAAOG,UAAP,qGACeH,IADf;AAGD,CAVD;;eAYeF,U"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":["singleTransitionStyles","property","p","css","theme","transitionDelay","multipleTransitionsStyles","properties","join","transitionStyles","props","length"],"sources":["../../../src/transitionStyles/index.ts"],"sourcesContent":["import { css } from '@emotion/react';\nimport { SerializedStyles } from '@emotion/serialize';\n\nconst singleTransitionStyles = (property: string) => (p) =>\n css`\n transition: ${property} ${p.theme.transitionDelay}ms;\n `;\n\nconst multipleTransitionsStyles = (properties: string[]) => (p) =>\n css`\n transition: all ${p.theme.transitionDelay}ms;\n transition-property: ${properties.join(', ')};\n `;\n\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\nconst transitionStyles =\n (...props: string[]) =>\n (p): SerializedStyles =>\n props.length === 1\n ? singleTransitionStyles(props[0])(p)\n : multipleTransitionsStyles(props)(p);\n\nexport default transitionStyles;\n"],"mappings":";;;;;;;AAAA;;;;;;AAGA,IAAMA,sBAAsB,GAAG,SAAzBA,sBAAyB,CAACC,QAAD;EAAA,OAAsB,UAACC,CAAD;IAAA,WACnDC,UADmD,yGAEnCF,QAFmC,EAEvBC,CAAC,CAACE,KAAF,CAAQC,eAFe;EAAA,CAAtB;AAAA,CAA/B;;AAKA,IAAMC,yBAAyB,GAAG,SAA5BA,yBAA4B,CAACC,UAAD;EAAA,OAA0B,UAACL,CAAD;IAAA,WAC1DC,UAD0D,0IAEtCD,CAAC,CAACE,KAAF,CAAQC,eAF8B,EAGjCE,UAAU,CAACC,IAAX,CAAgB,IAAhB,CAHiC;EAAA,CAA1B;AAAA,CAAlC,C,CAMA;;;AACA,IAAMC,gBAAgB,GACpB,SADIA,gBACJ;EAAA,kCAAIC,KAAJ;IAAIA,KAAJ;EAAA;;EAAA,OACA,UAACR,CAAD;IAAA,OACEQ,KAAK,CAACC,MAAN,KAAiB,CAAjB,GACIX,sBAAsB,CAACU,KAAK,CAAC,CAAD,CAAN,CAAtB,CAAiCR,CAAjC,CADJ,GAEII,yBAAyB,CAACI,KAAD,CAAzB,CAAiCR,CAAjC,CAHN;EAAA,CADA;AAAA,CADF;;eAOeO,gB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":["css","ellipsisStyles"],"sources":["../../../src/ellipsisStyles/index.ts"],"sourcesContent":["import { css } from '@emotion/react';\n\nconst ellipsisStyles = css`\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n`;\n\nexport default ellipsisStyles;\n"],"mappings":"AAAA,SAASA,GAAT,QAAoB,gBAApB;AAEA,MAAMC,cAAc,GAAGD,GAAI;AAC3B;AACA;AACA;AACA,CAJA;AAMA,eAAeC,cAAf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"emotion.d.js","names":[],"sources":["../../src/emotion.d.ts"],"sourcesContent":["import '@emotion/react';\nimport { Theme as BaseTheme } from '@os-design/theming';\n\ndeclare module '@emotion/react' {\n // eslint-disable-next-line @typescript-eslint/no-empty-interface\n export interface Theme extends BaseTheme {}\n}\n"],"mappings":"AAAA,OAAO,gBAAP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":["css","enableScrollingStyles","axis","showScrollbar","includes"],"sources":["../../../src/enableScrollingStyles/index.ts"],"sourcesContent":["import { css } from '@emotion/react';\nimport { SerializedStyles } from '@emotion/serialize';\n\nconst enableScrollingStyles = (\n axis: 'x' | 'y' | 'both',\n showScrollbar = true\n): SerializedStyles => css`\n ${['x', 'both'].includes(axis) &&\n css`\n overflow-x: auto;\n `};\n\n ${['y', 'both'].includes(axis) &&\n css`\n overflow-y: auto;\n `};\n\n ${!showScrollbar &&\n css`\n ::-webkit-scrollbar {\n display: none;\n }\n `};\n\n -webkit-overflow-scrolling: touch;\n`;\n\nexport default enableScrollingStyles;\n"],"mappings":"AAAA,SAASA,GAAT,QAAoB,gBAApB;;AAGA,MAAMC,qBAAqB,GAAG,CAC5BC,IAD4B,EAE5BC,aAAa,GAAG,IAFY,KAGPH,GAAI;AAC3B,IAAI,CAAC,GAAD,EAAM,MAAN,EAAcI,QAAd,CAAuBF,IAAvB,KACFF,GAAI;AACN;AACA,GAAI;AACJ;AACA,IAAI,CAAC,GAAD,EAAM,MAAN,EAAcI,QAAd,CAAuBF,IAAvB,KACFF,GAAI;AACN;AACA,GAAI;AACJ;AACA,IAAI,CAACG,aAAD,IACFH,GAAI;AACN;AACA;AACA;AACA,GAAI;AACJ;AACA;AACA,CAtBA;;AAwBA,eAAeC,qBAAf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":["fp","m","horizontalPaddingStyles","side","p","min","sm","paddingLeft","includes","theme","horizontalPadding","map","v","undefined","paddingRight"],"sources":["../../../src/horizontalPaddingStyles/index.ts"],"sourcesContent":["import fp from 'facepaint';\nimport { m } from '@os-design/media';\n\ntype Side = 'left' | 'right' | 'both';\n\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\nconst horizontalPaddingStyles =\n (side: Side = 'both') =>\n (p) =>\n fp([m.min.sm])({\n paddingLeft: ['left', 'both'].includes(side)\n ? p.theme.horizontalPadding.map((v) => `${v}em`)\n : undefined,\n paddingRight: ['right', 'both'].includes(side)\n ? p.theme.horizontalPadding.map((v) => `${v}em`)\n : undefined,\n });\n\nexport default horizontalPaddingStyles;\n"],"mappings":"AAAA,OAAOA,EAAP,MAAe,WAAf;AACA,SAASC,CAAT,QAAkB,kBAAlB;;AAIA;AACA,MAAMC,uBAAuB,GAC3B,CAACC,IAAU,GAAG,MAAd,KACCC,CAAD,IACEJ,EAAE,CAAC,CAACC,CAAC,CAACI,GAAF,CAAMC,EAAP,CAAD,CAAF,CAAe;EACbC,WAAW,EAAE,CAAC,MAAD,EAAS,MAAT,EAAiBC,QAAjB,CAA0BL,IAA1B,IACTC,CAAC,CAACK,KAAF,CAAQC,iBAAR,CAA0BC,GAA1B,CAA+BC,CAAD,IAAQ,GAAEA,CAAE,IAA1C,CADS,GAETC,SAHS;EAIbC,YAAY,EAAE,CAAC,OAAD,EAAU,MAAV,EAAkBN,QAAlB,CAA2BL,IAA3B,IACVC,CAAC,CAACK,KAAF,CAAQC,iBAAR,CAA0BC,GAA1B,CAA+BC,CAAD,IAAQ,GAAEA,CAAE,IAA1C,CADU,GAEVC;AANS,CAAf,CAHJ;;AAYA,eAAeX,uBAAf"}
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":["default","ellipsisStyles","enableScrollingStyles","horizontalPaddingStyles","lineClampStyles","resetButtonStyles","resetFocusStyles","resetUlStyles","sizeStyles","transitionStyles"],"sources":["../../src/index.ts"],"sourcesContent":["export { default as ellipsisStyles } from './ellipsisStyles';\nexport { default as enableScrollingStyles } from './enableScrollingStyles';\nexport { default as horizontalPaddingStyles } from './horizontalPaddingStyles';\nexport { default as lineClampStyles } from './lineClampStyles';\nexport { default as resetButtonStyles } from './resetButtonStyles';\nexport { default as resetFocusStyles } from './resetFocusStyles';\nexport { default as resetUlStyles } from './resetUlStyles';\nexport { default as sizeStyles } from './sizeStyles';\nexport { default as transitionStyles } from './transitionStyles';\n\nexport * from './sizeStyles';\n"],"mappings":"AAAA,SAASA,OAAO,IAAIC,cAApB,QAA0C,kBAA1C;AACA,SAASD,OAAO,IAAIE,qBAApB,QAAiD,yBAAjD;AACA,SAASF,OAAO,IAAIG,uBAApB,QAAmD,2BAAnD;AACA,SAASH,OAAO,IAAII,eAApB,QAA2C,mBAA3C;AACA,SAASJ,OAAO,IAAIK,iBAApB,QAA6C,qBAA7C;AACA,SAASL,OAAO,IAAIM,gBAApB,QAA4C,oBAA5C;AACA,SAASN,OAAO,IAAIO,aAApB,QAAyC,iBAAzC;AACA,SAASP,OAAO,IAAIQ,UAApB,QAAsC,cAAtC;AACA,SAASR,OAAO,IAAIS,gBAApB,QAA4C,oBAA5C;AAEA,cAAc,cAAd"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":["css","lineClampStyles","maxLines"],"sources":["../../../src/lineClampStyles/index.ts"],"sourcesContent":["import { css } from '@emotion/react';\nimport { SerializedStyles } from '@emotion/serialize';\n\nconst lineClampStyles = (maxLines: number): SerializedStyles => css`\n display: -webkit-box;\n -webkit-line-clamp: ${maxLines};\n -webkit-box-orient: vertical;\n overflow: hidden;\n`;\n\nexport default lineClampStyles;\n"],"mappings":"AAAA,SAASA,GAAT,QAAoB,gBAApB;;AAGA,MAAMC,eAAe,GAAIC,QAAD,IAAwCF,GAAI;AACpE;AACA,wBAAwBE,QAAS;AACjC;AACA;AACA,CALA;;AAOA,eAAeD,eAAf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":["css","resetFocusStyles","resetButtonStyles"],"sources":["../../../src/resetButtonStyles/index.ts"],"sourcesContent":["import { css } from '@emotion/react';\nimport resetFocusStyles from '../resetFocusStyles';\n\nconst resetButtonStyles = css`\n ${resetFocusStyles};\n border: 0;\n padding: 0;\n`;\n\nexport default resetButtonStyles;\n"],"mappings":"AAAA,SAASA,GAAT,QAAoB,gBAApB;AACA,OAAOC,gBAAP,MAA6B,qBAA7B;AAEA,MAAMC,iBAAiB,GAAGF,GAAI;AAC9B,IAAIC,gBAAiB;AACrB;AACA;AACA,CAJA;AAMA,eAAeC,iBAAf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":["css","resetFocusStyles"],"sources":["../../../src/resetFocusStyles/index.ts"],"sourcesContent":["import { css } from '@emotion/react';\n\nconst resetFocusStyles = css`\n &:focus {\n outline: none;\n }\n`;\n\nexport default resetFocusStyles;\n"],"mappings":"AAAA,SAASA,GAAT,QAAoB,gBAApB;AAEA,MAAMC,gBAAgB,GAAGD,GAAI;AAC7B;AACA;AACA;AACA,CAJA;AAMA,eAAeC,gBAAf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":["css","resetUlStyles"],"sources":["../../../src/resetUlStyles/index.ts"],"sourcesContent":["import { css } from '@emotion/react';\n\nconst resetUlStyles = css`\n list-style: none;\n margin: 0;\n padding: 0;\n`;\n\nexport default resetUlStyles;\n"],"mappings":"AAAA,SAASA,GAAT,QAAoB,gBAApB;AAEA,MAAMC,aAAa,GAAGD,GAAI;AAC1B;AACA;AACA;AACA,CAJA;AAMA,eAAeC,aAAf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":["css","sizeStyles","p","size","theme","sizes"],"sources":["../../../src/sizeStyles/index.ts"],"sourcesContent":["import { css } from '@emotion/react';\nimport { SerializedStyles } from '@emotion/serialize';\n\nexport interface WithSize {\n /**\n * The size of the element.\n * @default medium\n */\n size?: 'small' | 'medium' | 'large' | string;\n}\n\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\nconst sizeStyles = (p): SerializedStyles => {\n const size = p.theme.sizes[p.size || 'medium'];\n if (!size) {\n return css`\n font-size: ${p.size};\n `;\n }\n return css`\n font-size: ${size}em;\n `;\n};\n\nexport default sizeStyles;\n"],"mappings":"AAAA,SAASA,GAAT,QAAoB,gBAApB;;AAWA;AACA,MAAMC,UAAU,GAAIC,CAAD,IAAyB;EAC1C,MAAMC,IAAI,GAAGD,CAAC,CAACE,KAAF,CAAQC,KAAR,CAAcH,CAAC,CAACC,IAAF,IAAU,QAAxB,CAAb;;EACA,IAAI,CAACA,IAAL,EAAW;IACT,OAAOH,GAAI;AACf,mBAAmBE,CAAC,CAACC,IAAK;AAC1B,KAFI;EAGD;;EACD,OAAOH,GAAI;AACb,iBAAiBG,IAAK;AACtB,GAFE;AAGD,CAVD;;AAYA,eAAeF,UAAf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":["css","singleTransitionStyles","property","p","theme","transitionDelay","multipleTransitionsStyles","properties","join","transitionStyles","props","length"],"sources":["../../../src/transitionStyles/index.ts"],"sourcesContent":["import { css } from '@emotion/react';\nimport { SerializedStyles } from '@emotion/serialize';\n\nconst singleTransitionStyles = (property: string) => (p) =>\n css`\n transition: ${property} ${p.theme.transitionDelay}ms;\n `;\n\nconst multipleTransitionsStyles = (properties: string[]) => (p) =>\n css`\n transition: all ${p.theme.transitionDelay}ms;\n transition-property: ${properties.join(', ')};\n `;\n\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\nconst transitionStyles =\n (...props: string[]) =>\n (p): SerializedStyles =>\n props.length === 1\n ? singleTransitionStyles(props[0])(p)\n : multipleTransitionsStyles(props)(p);\n\nexport default transitionStyles;\n"],"mappings":"AAAA,SAASA,GAAT,QAAoB,gBAApB;;AAGA,MAAMC,sBAAsB,GAAIC,QAAD,IAAuBC,CAAD,IACnDH,GAAI;AACN,kBAAkBE,QAAS,IAAGC,CAAC,CAACC,KAAF,CAAQC,eAAgB;AACtD,GAHA;;AAKA,MAAMC,yBAAyB,GAAIC,UAAD,IAA2BJ,CAAD,IAC1DH,GAAI;AACN,sBAAsBG,CAAC,CAACC,KAAF,CAAQC,eAAgB;AAC9C,2BAA2BE,UAAU,CAACC,IAAX,CAAgB,IAAhB,CAAsB;AACjD,GAJA,C,CAMA;;;AACA,MAAMC,gBAAgB,GACpB,CAAC,GAAGC,KAAJ,KACCP,CAAD,IACEO,KAAK,CAACC,MAAN,KAAiB,CAAjB,GACIV,sBAAsB,CAACS,KAAK,CAAC,CAAD,CAAN,CAAtB,CAAiCP,CAAjC,CADJ,GAEIG,yBAAyB,CAACI,KAAD,CAAzB,CAAiCP,CAAjC,CALR;;AAOA,eAAeM,gBAAf"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@os-design/styles",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.33",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"repository": "git@gitlab.com:os-team/libs/os-design.git",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -28,18 +28,18 @@
|
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@os-design/media": "^1.0.
|
|
32
|
-
"@os-design/theming": "^1.0.
|
|
31
|
+
"@os-design/media": "^1.0.12",
|
|
32
|
+
"@os-design/theming": "^1.0.31",
|
|
33
33
|
"facepaint": "^1.2.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@emotion/react": ">=11",
|
|
37
37
|
"@emotion/serialize": "*",
|
|
38
|
-
"@os-design/omit-emotion-props": "^1.0.
|
|
38
|
+
"@os-design/omit-emotion-props": "^1.0.4"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@emotion/react": ">=11",
|
|
42
42
|
"@emotion/serialize": "*"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "d68e1f41705b52f8a0c5d2fbf7846839c2176a5d"
|
|
45
45
|
}
|