Socket
Socket
Sign inDemoInstall

@chakra-ui/breakpoint-utils

Package Overview
Dependencies
Maintainers
3
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chakra-ui/breakpoint-utils - npm Package Compare versions

Comparing version 0.0.0-dev-20220820173639 to 0.0.0-dev-20220820185458

11

dist/index.cjs.js

@@ -25,2 +25,3 @@ "use strict";

arrayToObjectNotation: () => arrayToObjectNotation,
breakpoints: () => breakpoints,
isCustomBreakpoint: () => isCustomBreakpoint,

@@ -41,3 +42,10 @@ isResponsiveObjectLike: () => isResponsiveObjectLike,

// src/responsive.ts
var breakpoints = Object.freeze(["base", "sm", "md", "lg", "xl", "2xl"]);
var breakpoints = Object.freeze([
"base",
"sm",
"md",
"lg",
"xl",
"2xl"
]);
function mapResponsive(prop, mapper) {

@@ -183,2 +191,3 @@ if (Array.isArray(prop)) {

arrayToObjectNotation,
breakpoints,
isCustomBreakpoint,

@@ -185,0 +194,0 @@ isResponsiveObjectLike,

3

dist/index.d.ts

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

declare const breakpoints: readonly string[];
declare function mapResponsive(prop: any, mapper: (val: any) => any): any;

@@ -47,2 +48,2 @@ declare function objectToArrayNotation(obj: Record<string, any>, bps?: readonly string[]): any[];

export { analyzeBreakpoints, arrayToObjectNotation, isCustomBreakpoint, isResponsiveObjectLike, mapResponsive, objectToArrayNotation, toMediaQueryString };
export { analyzeBreakpoints, arrayToObjectNotation, breakpoints, isCustomBreakpoint, isResponsiveObjectLike, mapResponsive, objectToArrayNotation, toMediaQueryString };

@@ -8,3 +8,10 @@ // ../shared-utils/dist/index.esm.js

// src/responsive.ts
var breakpoints = Object.freeze(["base", "sm", "md", "lg", "xl", "2xl"]);
var breakpoints = Object.freeze([
"base",
"sm",
"md",
"lg",
"xl",
"2xl"
]);
function mapResponsive(prop, mapper) {

@@ -149,2 +156,3 @@ if (Array.isArray(prop)) {

arrayToObjectNotation,
breakpoints,
isCustomBreakpoint,

@@ -151,0 +159,0 @@ isResponsiveObjectLike,

{
"name": "@chakra-ui/breakpoint-utils",
"version": "0.0.0-dev-20220820173639",
"version": "0.0.0-dev-20220820185458",
"description": "",

@@ -32,3 +32,3 @@ "keywords": [

"devDependencies": {
"@chakra-ui/shared-utils": "0.0.0-dev-20220820173639"
"@chakra-ui/shared-utils": "0.0.0-dev-20220820185458"
},

@@ -35,0 +35,0 @@ "scripts": {

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