@chakra-ui/breakpoint-utils
Advanced tools
Comparing version 0.0.0-dev-20220820173639 to 0.0.0-dev-20220820185458
@@ -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, |
@@ -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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15260
396