1.0.0 • Published 1 year ago

@ptkhanh94npm/dolore-ipsum-quisquam v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@ptkhanh94npm/dolore-ipsum-quisquam

Manipulate classNames based on css/scss modules using tagged template strings or simple build directly classNames attribute easily

Use: mySCSSFile.scss

.tracer {
    color: blue;
}
.tracer__nano {
    color: silver;
}

.bastion {
    content: 'robot';
}
.bastion__turret {
    background-color: orange;
}

.hanzo {
    content: '-> -> ->';

    &__arrow-hold {
        content: '------ --- -- ->';
    }
}

.genji {
    color: green;

    &__ultimate {
        display: none;
    }
}

myJavascriptFile.js

import oc, { cn, jn } from '@ptkhanh94npm/dolore-ipsum-quisquam';

import styles from './mySCSSFile.scss';

<div className={oc(styles)`tracer tracer__nano`} />
<div className={oc(styles)`bastion ${turret && 'bastion__turret'}`} />

const s76 = oc(styles);
<div className={s76`hanzo ${hasTank && 'hanzo__arrow-hold'}`} />
<div className={s76`genji ${hasTank && 'genji__ultimate'}`} />

/* for classnames */
<div className={cn`bastion ${turret && 'bastion__turret'}`} />

/* for joined */
<div className={jn('bastion', turret && 'bastion__turret')} />
testeruser-streamsreducerwatcherkeyschemeeventEmitterprocessmergestreamsinstallereslint-pluginduplextoolsjson-schemapropertyprotocol-buffersparenttoolkitnamecallgraphqlharmonylesskoreanutilflagwatchFileeventsansiviewcheck@@toStringTagcss lessnodeArray.prototype.includesreadpoint-freehookformlimitobjgetterRegExp#flagsECMAScript 3String.prototype.matchAllsanitizejsxparentsstylinga11yimmerArray.prototype.filternameswarningdeepnodejscurlpipeECMAScript 2021groupByexecpositiveartregexmatcheventDispatcherbundlingoncebyteOffset0flatES2022persistenthashvalidwritableconfigurabledeep-cloneextendreact-hookspasswordimportES2017globjestcontainsloggerregular expressions256typanionwatchguidgetOwnPropertyDescriptorwordbreakES3definefantasy-landisbreaklimitedreact-testing-libraryassertobjectvalidationbindECMAScript 5Array.prototype.flattenclientrfc4122groupvestwaapijavascriptbufferes2016picomatchsequenceregular expressionfind-upunicodezeroextraequalfunctionspath3dclonepackage managerajvcallbindpreprocessorcommandi18nlesscssramdafastcss variablestdlibdirectorystringavaRxJSframeworktypedurlgetPrototypeOfclassnamesoutputES5browserslistnumberprototypegdprcolorspinnerchromiumreducefetchURLsymbolsdebuggerhigher-orderoffsetstreams2settingsfigletStreamsfastclonequoteArray.prototype.flatMapECMAScript 2017promisesomitPromisetypesaferecursivearrayspostcssmapnegative zerodom-testing-libraryfast-deep-copyObject.keysstatelessvariables in cssprefixJSON-Schemajoislotenumerablecurriedmime-dbmake dirECMAScript 2022setsharedgradients css3logdependenciesproprm -rfescapemixinschrometypeerrortacitUint8Arrayconsoleeslintplugintses-shim APIfindLastIndexshellless.jsES2023Setconnectcolumns$.extendBigInt64Arrayyupcss-in-jsjson-schema-validatorasciiFloat64Arraygetpackage.jsontypescriptcolourObject.ispushES2019utilitydeleteprivatelanguageterminalIteratores7babel-corewhatwgjsbannertypesemojiUint8ClampedArraycirculartranspileObservableserializeES8typedarraysserializermruinterruptslastcoerciblesidevarObject.getPrototypeOfmonorepoefficientvariablesHyBicoreperformanceeverypopmotiondataview
1.0.0

1 year ago