@preply/ds-web-lib
Advanced tools
Comparing version 0.80.3 to 0.81.0
@@ -5,4 +5,5 @@ import { Dataset, Responsive, SpinnerSize } from '@preply/ds-core'; | ||
size?: Responsive<SpinnerSize>; | ||
inverted?: boolean; | ||
dataset?: Dataset; | ||
} | ||
export declare const Loader: FC<Props>; |
@@ -1,2 +0,2 @@ | ||
import { useStyleExtract, moduleClassNames, useVisualModeClassNames, getDatasetProps } from '@preply/ds-web-core'; | ||
import { useStyleExtract, moduleClassNames, booleanClassNames, useVisualModeClassNames, getDatasetProps } from '@preply/ds-web-core'; | ||
import React__default from 'react'; | ||
@@ -7,5 +7,7 @@ import { Spinner } from '../private/Spinner/Spinner.js'; | ||
const LOADER = 'Loader'; | ||
const Loader = ({ size, dataset }) => { | ||
const Loader = ({ size, inverted = false, dataset }) => { | ||
useStyleExtract(styles); | ||
const classNames = moduleClassNames(styles, LOADER, []); | ||
const classNames = moduleClassNames(styles, LOADER, [ | ||
booleanClassNames('inverted', 'normal', inverted), | ||
]); | ||
const props = { | ||
@@ -20,2 +22,2 @@ className: useVisualModeClassNames(classNames).join(' '), | ||
export { Loader }; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTG9hZGVyLmpzIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9Mb2FkZXIvTG9hZGVyLnRzeCJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBEYXRhc2V0LCBSZXNwb25zaXZlLCBTcGlubmVyU2l6ZSB9IGZyb20gJ0BwcmVwbHkvZHMtY29yZSc7XG5pbXBvcnQge1xuICAgIGdldERhdGFzZXRQcm9wcyxcbiAgICBtb2R1bGVDbGFzc05hbWVzLFxuICAgIHVzZVN0eWxlRXh0cmFjdCxcbiAgICB1c2VWaXN1YWxNb2RlQ2xhc3NOYW1lcyxcbn0gZnJvbSAnQHByZXBseS9kcy13ZWItY29yZSc7XG5pbXBvcnQgUm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UssRUFBRSxPQUFPLEVBQUU7SUFDakUsZUFBZSxDQUFDLE1BQU0sQ0FBQyxDQUFDO0lBRXhCLE1BQU0sVUFBVSxHQUFHLGdCQUFnQixDQUFDLE1BQU0sRUFBRSxNQUFNLEVBQUU7UUFDaEQsaUJBQWlCLENBQUMsVUFBVSxFQUFFLFFBQVEsRUFBRSxRQUFRLENBQUM7S0FDcEQsQ0FBQyxDQUFDO0lBRUgsTUFBTSxLQUFLLEdBQUc7UUFDVixTQUFTLEVBQUUsdUJBQXVCLENBQUMsVUFBVSxDQUFDLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQztRQUN4RCxHQUFHLGVBQWUsQ0FBQyxPQUFPLEVBQUUsRUFBRSxpQkFBaUIsRUFBRSxNQUFNLEVBQUUsQ0FBQztLQUM3RCxDQUFDO0lBRUYsUUFDSUEsdURBQVUsS0FBSztRQUNYQSw2QkFBQyxPQUFPLElBQUMsSUFBSSxFQUFFLElBQUksR0FBSSxDQUNwQixFQUNUO0FBQ047Ozs7In0= |
import styleInject from '../../../external/style-inject/dist/style-inject.es.js'; | ||
var css_248z = "._3Dx6Vr{color:var(--d288ed);display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}"; | ||
var styles = {__id:"/home/jenkins/workspace/design-system_main/packages/web-lib/src/components/Loader/style/index.module.less",__css:css_248z,"Loader":"_3Dx6Vr"}; | ||
var css_248z = "._3Dx6Vr{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}._2Ar8LM{color:var(--19bcb6)}._1JTP91{color:var(--38413d)}"; | ||
var styles = {__id:"/home/jenkins/workspace/design-system_main/packages/web-lib/src/components/Loader/style/index.module.less",__css:css_248z,"Loader":"_3Dx6Vr","Loader--normal":"_2Ar8LM","Loader--inverted":"_1JTP91"}; | ||
var stylesheet=css_248z; | ||
@@ -6,0 +6,0 @@ styleInject(css_248z); |
{ | ||
"name": "@preply/ds-web-lib", | ||
"version": "0.80.3", | ||
"version": "0.81.0", | ||
"publishConfig": { | ||
@@ -22,12 +22,12 @@ "access": "public" | ||
"dependencies": { | ||
"@preply/ds-core": "0.80.3", | ||
"@preply/ds-media-icons": "0.80.3", | ||
"@preply/ds-web-core": "0.80.3", | ||
"@preply/ds-web-root": "0.80.3" | ||
"@preply/ds-core": "0.81.0", | ||
"@preply/ds-media-icons": "0.81.0", | ||
"@preply/ds-web-core": "0.81.0", | ||
"@preply/ds-web-root": "0.81.0" | ||
}, | ||
"peerDependencies": { | ||
"@preply/ds-core": "0.80.3", | ||
"@preply/ds-media-icons": "0.80.3", | ||
"@preply/ds-web-core": "0.80.3", | ||
"@preply/ds-web-root": "0.80.3", | ||
"@preply/ds-core": "0.81.0", | ||
"@preply/ds-media-icons": "0.81.0", | ||
"@preply/ds-web-core": "0.81.0", | ||
"@preply/ds-web-root": "0.81.0", | ||
"react": "^16.8.3", | ||
@@ -37,4 +37,4 @@ "react-dom": "^16.8.3" | ||
"devDependencies": { | ||
"@preply/ds-docs-toolkit": "0.80.3", | ||
"@preply/ds-theme-base-ui": "0.80.3", | ||
"@preply/ds-docs-toolkit": "0.81.0", | ||
"@preply/ds-theme-base-ui": "0.81.0", | ||
"@storybook/addon-docs": "6.4.18", | ||
@@ -45,3 +45,3 @@ "@storybook/react": "6.4.18", | ||
}, | ||
"gitHead": "38ee46a2677d56ab471024136df515a642de1727" | ||
"gitHead": "0d77d8fb87287190f173ae9ccaaecfec310f30ba" | ||
} |
Sorry, the diff of this file is not supported yet
514832
3756
+ Added@preply/ds-core@0.81.0(transitive)
+ Added@preply/ds-core-types@0.81.0(transitive)
+ Added@preply/ds-media-icons@0.81.0(transitive)
+ Added@preply/ds-theme-base-ui@0.81.0(transitive)
+ Added@preply/ds-theme-bold-ui@0.81.0(transitive)
+ Added@preply/ds-theme-preply-ui@0.81.0(transitive)
+ Added@preply/ds-theme-tokyo-ui@0.81.0(transitive)
+ Added@preply/ds-web-core@0.81.0(transitive)
+ Added@preply/ds-web-root@0.81.0(transitive)
- Removed@preply/ds-core@0.80.3(transitive)
- Removed@preply/ds-core-types@0.80.3(transitive)
- Removed@preply/ds-media-icons@0.80.3(transitive)
- Removed@preply/ds-theme-base-ui@0.80.3(transitive)
- Removed@preply/ds-theme-bold-ui@0.80.3(transitive)
- Removed@preply/ds-theme-preply-ui@0.80.3(transitive)
- Removed@preply/ds-theme-tokyo-ui@0.80.3(transitive)
- Removed@preply/ds-web-core@0.80.3(transitive)
- Removed@preply/ds-web-root@0.80.3(transitive)
Updated@preply/ds-core@0.81.0
Updated@preply/ds-web-core@0.81.0
Updated@preply/ds-web-root@0.81.0