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

@vtex/admin-ui-system

Package Overview
Dependencies
Maintainers
69
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vtex/admin-ui-system - npm Package Compare versions

Comparing version 0.15.2-experimental.0 to 0.16.0

159

CHANGELOG.md

@@ -6,10 +6,8 @@ # Change Log

## [0.15.2-experimental.0](https://github.com/vtex/onda/compare/@vtex/admin-ui-system@0.15.1...@vtex/admin-ui-system@0.15.2-experimental.0) (2021-04-28)
# [0.16.0](https://github.com/vtex/onda/compare/@vtex/admin-ui-system@0.15.1...@vtex/admin-ui-system@0.16.0) (2021-07-28)
**Note:** Version bump only for package @vtex/admin-ui-system
### Features
- **onda-packages:** add onda packages ([b619064](https://github.com/vtex/onda/commit/b619064d04d190d5615a2832dbcb86d96efd16ee))
## [0.15.1](https://github.com/vtex/onda/compare/@vtex/admin-ui-system@0.15.0...@vtex/admin-ui-system@0.15.1) (2021-04-08)

@@ -19,179 +17,99 @@

# [0.15.0](https://github.com/vtex/onda/compare/@vtex/admin-ui-system@0.14.0...@vtex/admin-ui-system@0.15.0) (2021-03-10)
### Features
* **system:** add useMediaQuery hook ([78934f5](https://github.com/vtex/onda/commit/78934f58ad736946a03de7d27b6e4b0d32273231))
- **system:** add useMediaQuery hook ([78934f5](https://github.com/vtex/onda/commit/78934f58ad736946a03de7d27b6e4b0d32273231))
# [0.14.0](https://github.com/vtex/onda/compare/@vtex/admin-ui-system@0.13.1...@vtex/admin-ui-system@0.14.0) (2021-02-25)
### Features
* **theme:** move global styles from core to theme ([416c04b](https://github.com/vtex/onda/commit/416c04bd46e98cb65e428ac017577ac2ec6702ae))
- **theme:** move global styles from core to theme ([416c04b](https://github.com/vtex/onda/commit/416c04bd46e98cb65e428ac017577ac2ec6702ae))
## [0.13.1](https://github.com/vtex/onda/compare/@vtex/admin-ui-system@0.13.0...@vtex/admin-ui-system@0.13.1) (2021-02-11)
### Bug Fixes
* **admin:** emotion deps on all /admin packages ([3562180](https://github.com/vtex/onda/commit/35621800491ffc5132235e83edcf6c086d0b3ce4))
- **admin:** emotion deps on all /admin packages ([3562180](https://github.com/vtex/onda/commit/35621800491ffc5132235e83edcf6c086d0b3ce4))
# [0.13.0](https://github.com/vtex/onda/compare/@vtex/admin-ui-system@0.12.0...@vtex/admin-ui-system@0.13.0) (2021-02-02)
### Features
* **jsxs:** create package to standarize component creation ([8af7695](https://github.com/vtex/onda/commit/8af7695c761d60f9cedb9f18086e414cd7ceb25e))
- **jsxs:** create package to standarize component creation ([8af7695](https://github.com/vtex/onda/commit/8af7695c761d60f9cedb9f18086e414cd7ceb25e))
# [0.12.0](https://github.com/vtex/onda/compare/@vtex/admin-ui-system@0.11.0...@vtex/admin-ui-system@0.12.0) (2021-02-01)
### Features
* **tabs:** add tabs draft component ([f8e7403](https://github.com/vtex/onda/commit/f8e7403a14f903374ef136d1c5271fdf138ebd3a))
- **tabs:** add tabs draft component ([f8e7403](https://github.com/vtex/onda/commit/f8e7403a14f903374ef136d1c5271fdf138ebd3a))
# [0.11.0](https://github.com/vtex/onda/compare/@vtex/admin-ui-system@0.10.1...@vtex/admin-ui-system@0.11.0) (2021-02-01)
### Features
* **admin-styles:** add package to parse styles from theme ([45e918b](https://github.com/vtex/onda/commit/45e918ba9f68cc83514bab0b4dcb5f23139acce6))
- **admin-styles:** add package to parse styles from theme ([45e918b](https://github.com/vtex/onda/commit/45e918ba9f68cc83514bab0b4dcb5f23139acce6))
## [0.10.1](https://github.com/vtex/onda/compare/@vtex/admin-ui-system@0.10.0...@vtex/admin-ui-system@0.10.1) (2021-01-26)
### Bug Fixes
* **create-system:** remove redudant appKey prefix ([8d41399](https://github.com/vtex/onda/commit/8d41399c6bb7fec5b887f9ea649421d03d52eda7))
- **create-system:** remove redudant appKey prefix ([8d41399](https://github.com/vtex/onda/commit/8d41399c6bb7fec5b887f9ea649421d03d52eda7))
# [0.10.0](https://github.com/vtex/onda/compare/@vtex/admin-ui-system@0.9.0...@vtex/admin-ui-system@0.10.0) (2021-01-26)
### Features
* **alert:** update alert according to the design specifications ([3b44b3d](https://github.com/vtex/onda/commit/3b44b3d619cb339c1919586dffd23a99aaca2dd3))
- **alert:** update alert according to the design specifications ([3b44b3d](https://github.com/vtex/onda/commit/3b44b3d619cb339c1919586dffd23a99aaca2dd3))
# [0.9.0](https://github.com/vtex/onda/compare/@vtex/admin-ui-system@0.8.0...@vtex/admin-ui-system@0.9.0) (2021-01-21)
### Bug Fixes
* **emotion:** remove emotion-instance ([ded87a3](https://github.com/vtex/onda/commit/ded87a3ee813103737ab29c6fc028554857f863c))
* **emotion:** use css function from emotion-instance instead of emotion package ([5af42f7](https://github.com/vtex/onda/commit/5af42f7cfdfb45361a7774240ea82e39fd0a60ae))
- **emotion:** remove emotion-instance ([ded87a3](https://github.com/vtex/onda/commit/ded87a3ee813103737ab29c6fc028554857f863c))
- **emotion:** use css function from emotion-instance instead of emotion package ([5af42f7](https://github.com/vtex/onda/commit/5af42f7cfdfb45361a7774240ea82e39fd0a60ae))
### Features
* **admin-core:** add admin-core package ([6f5b56b](https://github.com/vtex/onda/commit/6f5b56bd92b2fcd9af93160ece3c44e7260a887d))
* **admin-system:** create a unique emotion instance along with the createSystem function ([074e0fc](https://github.com/vtex/onda/commit/074e0fca868c127d55e2e1d9694668f3af7b87e9))
* **emotion:** add emotion CacheProvider ([f970270](https://github.com/vtex/onda/commit/f970270d14865baad8971e11533e2d340363e2d0))
- **admin-core:** add admin-core package ([6f5b56b](https://github.com/vtex/onda/commit/6f5b56bd92b2fcd9af93160ece3c44e7260a887d))
- **admin-system:** create a unique emotion instance along with the createSystem function ([074e0fc](https://github.com/vtex/onda/commit/074e0fca868c127d55e2e1d9694668f3af7b87e9))
- **emotion:** add emotion CacheProvider ([f970270](https://github.com/vtex/onda/commit/f970270d14865baad8971e11533e2d340363e2d0))
## [0.8.1-experimental.4](https://github.com/vtex/onda/compare/@vtex/admin-ui-system@0.8.1-experimental.3...@vtex/admin-ui-system@0.8.1-experimental.4) (2021-01-21)
### Features
* **admin-core:** add admin-core package ([325dbae](https://github.com/vtex/onda/commit/325dbae14c2d43a3517a74899dc5d44bbb92ddf9))
- **admin-core:** add admin-core package ([325dbae](https://github.com/vtex/onda/commit/325dbae14c2d43a3517a74899dc5d44bbb92ddf9))
## [0.8.1-experimental.3](https://github.com/vtex/onda/compare/@vtex/admin-ui-system@0.8.1-experimental.2...@vtex/admin-ui-system@0.8.1-experimental.3) (2021-01-19)
### Features
* **admin-system:** create a unique emotion instance along with the createSystem function ([f9dfb6c](https://github.com/vtex/onda/commit/f9dfb6cd04df69d10f271c42d01d605b16732fbf))
- **admin-system:** create a unique emotion instance along with the createSystem function ([f9dfb6c](https://github.com/vtex/onda/commit/f9dfb6cd04df69d10f271c42d01d605b16732fbf))
## [0.8.1-experimental.2](https://github.com/vtex/onda/compare/@vtex/admin-ui-system@0.8.1-experimental.1...@vtex/admin-ui-system@0.8.1-experimental.2) (2021-01-15)
### Bug Fixes
* **emotion:** remove emotion-instance ([e5da155](https://github.com/vtex/onda/commit/e5da155c095563d929fd3cf0a2c06dd28d71a2a7))
- **emotion:** remove emotion-instance ([e5da155](https://github.com/vtex/onda/commit/e5da155c095563d929fd3cf0a2c06dd28d71a2a7))
## [0.8.1-experimental.1](https://github.com/vtex/onda/compare/@vtex/admin-ui-system@0.8.1-experimental.0...@vtex/admin-ui-system@0.8.1-experimental.1) (2021-01-15)
### Bug Fixes
* **emotion:** use css function from emotion-instance instead of emotion package ([6768b57](https://github.com/vtex/onda/commit/6768b5732882f295ae5cc83e5bf81fde33354484))
- **emotion:** use css function from emotion-instance instead of emotion package ([6768b57](https://github.com/vtex/onda/commit/6768b5732882f295ae5cc83e5bf81fde33354484))
## [0.8.1-experimental.0](https://github.com/vtex/onda/compare/@vtex/admin-ui-system@0.8.0...@vtex/admin-ui-system@0.8.1-experimental.0) (2021-01-14)
### Features
* **emotion:** add emotion CacheProvider ([1352986](https://github.com/vtex/onda/commit/1352986399e595cc13520d7710d7d3546223a12d))
- **emotion:** add emotion CacheProvider ([1352986](https://github.com/vtex/onda/commit/1352986399e595cc13520d7710d7d3546223a12d))
# [0.8.0](https://github.com/vtex/onda/compare/@vtex/admin-ui-system@0.7.0...@vtex/admin-ui-system@0.8.0) (2021-01-12)
### Features
* **admin-ui-system:** add color types ([42a73e3](https://github.com/vtex/onda/commit/42a73e34d9b097b3e29681c7abe03ef0b6dda02b))
- **admin-ui-system:** add color types ([42a73e3](https://github.com/vtex/onda/commit/42a73e34d9b097b3e29681c7abe03ef0b6dda02b))
# [0.7.0](https://github.com/vtex/onda/compare/@vtex/admin-ui-system@0.7.0-experimental.3...@vtex/admin-ui-system@0.7.0) (2021-01-11)

@@ -201,6 +119,2 @@

# [0.7.0-experimental.3](https://github.com/vtex/onda/compare/@vtex/admin-ui-system@0.6.3-experimental.0...@vtex/admin-ui-system@0.7.0-experimental.3) (2021-01-08)

@@ -210,45 +124,26 @@

## [0.6.3-experimental.0](https://github.com/vtex/onda/compare/@vtex/admin-ui-system@0.6.2...@vtex/admin-ui-system@0.6.3-experimental.0) (2021-01-07)
### Features
* **system-styles:** add logic to recognize default values from styles properties ([90cbe02](https://github.com/vtex/onda/commit/90cbe02a2a2fa172e81d26e04c232c0ee08aa55d))
- **system-styles:** add logic to recognize default values from styles properties ([90cbe02](https://github.com/vtex/onda/commit/90cbe02a2a2fa172e81d26e04c232c0ee08aa55d))
## [0.6.2](https://github.com/vtex/onda/compare/@vtex/admin-ui-system@0.6.1...@vtex/admin-ui-system@0.6.2) (2021-01-04)
## [0.6.2](https://github.com/vtex/onda/compare/@vtex/admin-ui-system@0.6.1...@vtex/admin-ui-system@0.6.2) (2021-01-04)
# [0.7.0-experimental.1](https://github.com/vtex/onda/compare/@vtex/admin-ui-system@0.6.0...@vtex/admin-ui-system@0.7.0-experimental.1) (2020-12-29)
### Features
* **system-styles:** add logic to recognize default values from styles properties ([8bc862f](https://github.com/vtex/onda/commit/8bc862f689bf1d113849cbac4128763a04894cb4))
- **system-styles:** add logic to recognize default values from styles properties ([8bc862f](https://github.com/vtex/onda/commit/8bc862f689bf1d113849cbac4128763a04894cb4))
# [0.7.0-experimental.0](https://github.com/vtex/onda/compare/@vtex/admin-ui-system@0.6.0...@vtex/admin-ui-system@0.7.0-experimental.0) (2020-12-28)
### Features
* **system-styles:** add logic to recognize default values from styles properties ([9394420](https://github.com/vtex/onda/commit/9394420ff73a18aa36b03cd162520e5422f422d1))
- **system-styles:** add logic to recognize default values from styles properties ([9394420](https://github.com/vtex/onda/commit/9394420ff73a18aa36b03cd162520e5422f422d1))
# [0.6.0](https://github.com/vtex/onda/compare/@vtex/admin-ui-system@0.5.1...@vtex/admin-ui-system@0.6.0) (2020-12-28)
# [0.6.0](https://github.com/vtex/onda/compare/@vtex/admin-ui-system@0.5.1...@vtex/admin-ui-system@0.6.0) (2020-12-28)
## [0.5.2-experimental.0](https://github.com/vtex/onda/compare/@vtex/admin-ui-system@0.5.1...@vtex/admin-ui-system@0.5.2-experimental.0) (2020-12-23)
### Bug Fixes

@@ -255,0 +150,0 @@

@@ -147,3 +147,2 @@ 'use strict';

/* eslint-disable @typescript-eslint/no-explicit-any */
/**

@@ -150,0 +149,0 @@ * Whether an Record<string, unknown> is empty

@@ -142,3 +142,2 @@ import React, { useContext, createContext, useState, useEffect } from 'react';

/* eslint-disable @typescript-eslint/no-explicit-any */
/**

@@ -145,0 +144,0 @@ * Whether an Record<string, unknown> is empty

2

dist/color.d.ts

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

import { Colors, Theme } from '@vtex/admin-styles';
import type { Colors, Theme } from '@vtex/admin-styles';
/**

@@ -3,0 +3,0 @@ * Get color from theme.colors

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

import { ReactNode } from 'react';
import { Theme } from '@vtex/admin-styles';
import type { ReactNode } from 'react';
import type { Theme } from '@vtex/admin-styles';
export interface ContextValue {

@@ -4,0 +4,0 @@ EMOTION_VERSION: string;

import React from 'react';
import { Emotion } from '@emotion/css/create-instance';
import { StyleProp, Theme } from '@vtex/admin-styles';
import type { Emotion } from '@emotion/css/create-instance';
import type { StyleProp, Theme } from '@vtex/admin-styles';
export declare function createSystem<T extends Theme>(theme: T, appKey: string): CreateSystemReturn;

@@ -5,0 +5,0 @@ export declare function createEmotionInstance(appKey: string): Emotion;

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

import { ResponsiveValue } from '@vtex/admin-styles';
import type { ResponsiveValue } from '@vtex/admin-styles';
export declare function useResponsiveValue<T>(value: ResponsiveValue<T>): T;

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

import { Theme } from '@vtex/admin-styles';
import type { Theme } from '@vtex/admin-styles';
export declare function useTheme(): Theme;

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

import { Theme } from '@vtex/admin-styles';
import type { Theme } from '@vtex/admin-styles';
declare type DefaultOptions = {

@@ -3,0 +3,0 @@ defaultIndex?: number;

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

import { ForwardRefRenderFunction } from 'react';
import type { ForwardRefRenderFunction } from 'react';
import pick from 'lodash.pick';

@@ -3,0 +3,0 @@ import omit from 'lodash.omit';

{
"name": "@vtex/admin-ui-system",
"version": "0.15.2-experimental.0",
"version": "0.16.0",
"main": "dist/index.js",

@@ -19,3 +19,3 @@ "module": "dist/admin-ui-system.esm.js",

"repository": {
"directory": "styleguides/admin/admin-ui-system",
"directory": "packages/system",
"type": "git",

@@ -30,2 +30,3 @@ "url": "git+https://github.com/vtex/onda.git"

"build": "tsdx build --tsconfig tsconfig.json",
"build:fast": "tsdx build --tsconfig tsconfig.json --transpileOnly --format esm,cjs",
"test": "tsdx test"

@@ -47,4 +48,4 @@ },

"dependencies": {
"@vtex/admin-jsxs": "^0.1.2-experimental.0",
"@vtex/admin-styles": "^0.3.0",
"@vtex/admin-jsxs": "^0.1.2",
"@vtex/admin-styles": "^0.3.1",
"csstype": "^3.0.5",

@@ -59,3 +60,3 @@ "deepmerge": "^4.2.2",

},
"gitHead": "e6ee6f4f64f1ce93206f374af913e079e014093b"
"gitHead": "00f24b5dd7fb9323a27127d4236d3dedb4527878"
}
import * as polished from 'polished'
import { Colors, Theme, get } from '@vtex/admin-styles'
import type { Colors, Theme } from '@vtex/admin-styles'
import { get } from '@vtex/admin-styles'

@@ -80,4 +81,6 @@ /**

*/
export const mix = (a: Colors, b: Colors, n = 0.5) => (t: Theme) =>
polished.mix(n, getColor(t, a), getColor(t, b))
export const mix =
(a: Colors, b: Colors, n = 0.5) =>
(t: Theme) =>
polished.mix(n, getColor(t, a), getColor(t, b))

@@ -84,0 +87,0 @@ /**

export * from './useTheme'
export * from './useResponsiveValue'
export * from './useMediaQuery'
export * from './useMediaQuery'

@@ -0,3 +1,4 @@

import type { ResponsiveValue } from '@vtex/admin-styles'
import { useResponsiveValue as useValue } from '../match-media'
import { ResponsiveValue } from '@vtex/admin-styles'

@@ -4,0 +5,0 @@ export function useResponsiveValue<T>(value: ResponsiveValue<T>): T {

import invariant from 'tiny-invariant'
import type { Theme } from '@vtex/admin-styles'
import { useThemeContext } from '../core'
import { isObjectEmpty } from '../util'
import { Theme } from '@vtex/admin-styles'

@@ -11,7 +11,7 @@ export function useTheme(): Theme {

invariant(
!isObjectEmpty((theme as unknown) as Record<string, unknown>) && theme,
!isObjectEmpty(theme as unknown as Record<string, unknown>) && theme,
'💥 Make sure that you are under the ThemeProvider'
)
return (theme as unknown) as Theme
return theme as unknown as Theme
}
import { useState, useEffect } from 'react'
import { Theme, defaultBreakpoints } from '@vtex/admin-styles'
import type { Theme } from '@vtex/admin-styles'
import { defaultBreakpoints } from '@vtex/admin-styles'

@@ -4,0 +5,0 @@ import { useTheme } from './hooks'

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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