Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@kaze-style/core

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kaze-style/core - npm Package Compare versions

Comparing version 0.9.0-2 to 0.9.0-3

dist/cjs/utils/cssRuleObjectsUniquify.js

2

dist/cjs/createGlobalStyle.js

@@ -1,1 +0,1 @@

"use strict";var o=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var b=(s,e)=>{for(var t in e)o(s,t,{get:e[t],enumerable:!0})},m=(s,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of a(e))!p.call(s,l)&&l!==t&&o(s,l,{get:()=>e[l],enumerable:!(r=y(e,l))||r.enumerable});return s};var n=s=>m(o({},"__esModule",{value:!0}),s);var R={};b(R,{createGlobalStyle:()=>O});module.exports=n(R);var c=require("./utils/compileObjectCss");const O=s=>{const e=[];for(const t in s){const r=s[t];(0,c.compileObjectCss)({style:r||{},selector:t}).forEach(u=>{e.push({rule:u,order:"global"})})}return{cssRuleObjects:Array.from(new Set(e))}};0&&(module.exports={createGlobalStyle});
"use strict";var o=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var b=Object.prototype.hasOwnProperty;var m=(s,e)=>{for(var t in e)o(s,t,{get:e[t],enumerable:!0})},n=(s,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of a(e))!b.call(s,l)&&l!==t&&o(s,l,{get:()=>e[l],enumerable:!(r=y(e,l))||r.enumerable});return s};var O=s=>n(o({},"__esModule",{value:!0}),s);var j={};m(j,{createGlobalStyle:()=>i});module.exports=O(j);var c=require("./utils/compileObjectCss"),u=require("./utils/cssRuleObjectsUniquify");const i=s=>{const e=[];for(const t in s){const r=s[t],l=(0,c.compileObjectCss)({style:r||{},selector:t});e.push(...l.map(p=>({rule:p,order:"global"})))}return{cssRuleObjects:(0,u.cssRuleObjectsUniquify)(e)}};0&&(module.exports={createGlobalStyle});

@@ -1,1 +0,1 @@

"use strict";var a=Object.defineProperty;var O=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var j=Object.prototype.hasOwnProperty;var m=(t,s)=>{for(var l in s)a(t,l,{get:s[l],enumerable:!0})},p=(t,s,l,c)=>{if(s&&typeof s=="object"||typeof s=="function")for(let e of b(s))!j.call(t,e)&&e!==l&&a(t,e,{get:()=>s[e],enumerable:!(c=O(s,e))||c.enumerable});return t};var y=t=>p(a({},"__esModule",{value:!0}),t);var K={};m(K,{createStyle:()=>C});module.exports=y(K);var o=require("./ClassName"),n=require("./resolveStyle");const C=t=>{const s={},l={},c=[];for(const e in t){const{classNameObject:r,cssRuleObjects:u}=(0,n.resolveStyle)({style:t[e]});c.push(...u),s[e]=new o.ClassName(r),l[e]=r}return{classes:s,classesObject:l,cssRuleObjects:Array.from(new Map(c.map(e=>[e.rule,e])).values())}};0&&(module.exports={createStyle});
"use strict";var a=Object.defineProperty;var j=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var y=(e,s)=>{for(var l in s)a(e,l,{get:s[l],enumerable:!0})},i=(e,s,l,c)=>{if(s&&typeof s=="object"||typeof s=="function")for(let t of u(s))!m.call(e,t)&&t!==l&&a(e,t,{get:()=>s[t],enumerable:!(c=j(s,t))||c.enumerable});return e};var p=e=>i(a({},"__esModule",{value:!0}),e);var K={};y(K,{createStyle:()=>C});module.exports=p(K);var o=require("./ClassName"),n=require("./resolveStyle"),O=require("./utils/cssRuleObjectsUniquify");const C=e=>{const s={},l={},c=[];for(const t in e){const{classNameObject:r,cssRuleObjects:b}=(0,n.resolveStyle)({style:e[t]});c.push(...b),s[t]=new o.ClassName(r),l[t]=r}return{classes:s,classesObject:l,cssRuleObjects:(0,O.cssRuleObjectsUniquify)(c)}};0&&(module.exports={createStyle});

@@ -1,1 +0,1 @@

"use strict";var m=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var u=(s,e)=>{for(var r in e)m(s,r,{get:e[r],enumerable:!0})},i=(s,e,r,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of f(e))!p.call(s,o)&&o!==r&&m(s,o,{get:()=>e[o],enumerable:!(t=y(e,o))||t.enumerable});return s};var R=s=>i(m({},"__esModule",{value:!0}),s);var k={};u(k,{compileKeyFrameCss:()=>C});module.exports=R(k);var c=require("../hash"),n=require("./compileObjectCss");const C=s=>{const e=[];for(const a in s){const l=s[a];e.push(`${(0,n.compileObjectCss)({selector:a,style:l||{}})}`)}const r=e.join(""),t=`_${(0,c.hash)(r)}`;return{keyframesRule:`@keyframes ${t} {${r}}`,keyframeName:t}};0&&(module.exports={compileKeyFrameCss});
"use strict";var m=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var i=(s,e)=>{for(var o in e)m(s,o,{get:e[o],enumerable:!0})},u=(s,e,o,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of f(e))!p.call(s,r)&&r!==o&&m(s,r,{get:()=>e[r],enumerable:!(t=y(e,r))||t.enumerable});return s};var R=s=>u(m({},"__esModule",{value:!0}),s);var k={};i(k,{compileKeyFrameCss:()=>C});module.exports=R(k);var a=require("../hash"),c=require("./compileObjectCss");const C=s=>{const e=[];for(const n in s){const l=s[n];e.push(`${(0,c.compileObjectCss)({selector:n,style:l||{}}).join("")}`)}const o=e.join(""),t=`_${(0,a.hash)(o)}`;return{keyframesRule:`@keyframes ${t}{${o}}`,keyframeName:t}};0&&(module.exports={compileKeyFrameCss});

@@ -1,1 +0,1 @@

import{compileObjectCss as o}from"./utils/compileObjectCss.js";var y=e=>{let s=[];for(let t in e){let l=e[t];o({style:l||{},selector:t}).forEach(r=>{s.push({rule:r,order:"global"})})}return{cssRuleObjects:Array.from(new Set(s))}};export{y as createGlobalStyle};
import{compileObjectCss as c}from"./utils/compileObjectCss.js";import{cssRuleObjectsUniquify as u}from"./utils/cssRuleObjectsUniquify.js";var a=e=>{let s=[];for(let t in e){let l=e[t],r=c({style:l||{},selector:t});s.push(...r.map(o=>({rule:o,order:"global"})))}return{cssRuleObjects:u(s)}};export{a as createGlobalStyle};

@@ -1,1 +0,1 @@

import{ClassName as o}from"./ClassName.js";import{resolveStyle as n}from"./resolveStyle.js";var b=e=>{let t={},l={},c=[];for(let s in e){let{classNameObject:a,cssRuleObjects:r}=n({style:e[s]});c.push(...r),t[s]=new o(a),l[s]=a}return{classes:t,classesObject:l,cssRuleObjects:Array.from(new Map(c.map(s=>[s.rule,s])).values())}};export{b as createStyle};
import{ClassName as o}from"./ClassName.js";import{resolveStyle as n}from"./resolveStyle.js";import{cssRuleObjectsUniquify as O}from"./utils/cssRuleObjectsUniquify.js";var m=e=>{let t={},l={},c=[];for(let s in e){let{classNameObject:a,cssRuleObjects:r}=n({style:e[s]});c.push(...r),t[s]=new o(a),l[s]=a}return{classes:t,classesObject:l,cssRuleObjects:O(c)}};export{m as createStyle};

@@ -1,1 +0,1 @@

import{hash as a}from"../hash.js";import{compileObjectCss as c}from"./compileObjectCss.js";var f=e=>{let s=[];for(let t in e){let m=e[t];s.push(`${c({selector:t,style:m||{}})}`)}let r=s.join(""),o=`_${a(r)}`;return{keyframesRule:`@keyframes ${o} {${r}}`,keyframeName:o}};export{f as compileKeyFrameCss};
import{hash as n}from"../hash.js";import{compileObjectCss as a}from"./compileObjectCss.js";var f=e=>{let s=[];for(let t in e){let m=e[t];s.push(`${a({selector:t,style:m||{}}).join("")}`)}let o=s.join(""),r=`_${n(o)}`;return{keyframesRule:`@keyframes ${r}{${o}}`,keyframeName:r}};export{f as compileKeyFrameCss};
{
"name": "@kaze-style/core",
"version": "0.9.0-2",
"version": "0.9.0-3",
"license": "MIT",

@@ -5,0 +5,0 @@ "author": "Taishi Naritomi",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc