Socket
Socket
Sign inDemoInstall

@highlight-ui/button

Package Overview
Dependencies
Maintainers
10
Versions
161
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@highlight-ui/button - npm Package Compare versions

Comparing version 12.1.2 to 12.1.3

27

dist/cjs/index.js

@@ -12,4 +12,3 @@ 'use strict';

var layout = require('@highlight-ui/layout');
var colors = require('@highlight-ui/tokens/dist/colors');
var colors$1 = require('@highlight-ui/tokens/dist/typography/colors');
var tokens = require('@highlight-ui/tokens');
function _interopDefaultLegacy(e) {

@@ -57,13 +56,13 @@ return e && typeof e === 'object' && 'default' in e ? e : {

var styles = {
"button": "BaseButton-module__cqxEoQOz__v12-1-2",
"label": "BaseButton-module__368a8XpF__v12-1-2",
"labelIcon": "BaseButton-module__ll4hx5mI__v12-1-2",
"labelIconContainer": "BaseButton-module__4CF-mqal__v12-1-2",
"loading": "BaseButton-module__AxaPQljF__v12-1-2",
"withIcon": "BaseButton-module__PAb94WZR__v12-1-2",
"iconButton": "BaseButton-module__w2FxOhsI__v12-1-2",
"hiddenButtonLabel": "BaseButton-module__d-kHuHzf__v12-1-2",
"loadingIcon": "BaseButton-module__SpYNEHQq__v12-1-2",
"block": "BaseButton-module__YKg1L4V-__v12-1-2",
"sr-only": "BaseButton-module__uHzk6SXO__v12-1-2"
"button": "BaseButton-module__cqxEoQOz__v12-1-3",
"label": "BaseButton-module__368a8XpF__v12-1-3",
"labelIcon": "BaseButton-module__ll4hx5mI__v12-1-3",
"labelIconContainer": "BaseButton-module__4CF-mqal__v12-1-3",
"loading": "BaseButton-module__AxaPQljF__v12-1-3",
"withIcon": "BaseButton-module__PAb94WZR__v12-1-3",
"iconButton": "BaseButton-module__w2FxOhsI__v12-1-3",
"hiddenButtonLabel": "BaseButton-module__d-kHuHzf__v12-1-3",
"loadingIcon": "BaseButton-module__SpYNEHQq__v12-1-3",
"block": "BaseButton-module__YKg1L4V-__v12-1-3",
"sr-only": "BaseButton-module__uHzk6SXO__v12-1-3"
};

@@ -101,3 +100,3 @@ var BaseButton = React__default["default"].forwardRef(function (_a, ref) {

if (state) {
return __assign(__assign({}, buttonStyles), (_b = {}, _b["--" + key + "-background-color"] = state.backgroundColor ? colors.colorTokens[state.backgroundColor] : 'none', _b["--" + key + "-label-color"] = __assign(__assign({}, colors$1.typographyColorTokens), colors.colorTokens)[state.color], _b));
return __assign(__assign({}, buttonStyles), (_b = {}, _b["--" + key + "-background-color"] = state.backgroundColor ? tokens.colorTokens[state.backgroundColor] : 'none', _b["--" + key + "-label-color"] = __assign(__assign({}, tokens.typographyColorTokens), tokens.colorTokens)[state.color], _b));
}

@@ -104,0 +103,0 @@ return buttonStyles;

@@ -7,4 +7,3 @@ import React from 'react';

import { Inline } from '@highlight-ui/layout';
import { colorTokens } from '@highlight-ui/tokens/dist/colors';
import { typographyColorTokens } from '@highlight-ui/tokens/dist/typography/colors';
import { colorTokens, typographyColorTokens } from '@highlight-ui/tokens';

@@ -45,13 +44,13 @@ /******************************************************************************

var styles = {
"button": "BaseButton-module__cqxEoQOz__v12-1-2",
"label": "BaseButton-module__368a8XpF__v12-1-2",
"labelIcon": "BaseButton-module__ll4hx5mI__v12-1-2",
"labelIconContainer": "BaseButton-module__4CF-mqal__v12-1-2",
"loading": "BaseButton-module__AxaPQljF__v12-1-2",
"withIcon": "BaseButton-module__PAb94WZR__v12-1-2",
"iconButton": "BaseButton-module__w2FxOhsI__v12-1-2",
"hiddenButtonLabel": "BaseButton-module__d-kHuHzf__v12-1-2",
"loadingIcon": "BaseButton-module__SpYNEHQq__v12-1-2",
"block": "BaseButton-module__YKg1L4V-__v12-1-2",
"sr-only": "BaseButton-module__uHzk6SXO__v12-1-2"
"button": "BaseButton-module__cqxEoQOz__v12-1-3",
"label": "BaseButton-module__368a8XpF__v12-1-3",
"labelIcon": "BaseButton-module__ll4hx5mI__v12-1-3",
"labelIconContainer": "BaseButton-module__4CF-mqal__v12-1-3",
"loading": "BaseButton-module__AxaPQljF__v12-1-3",
"withIcon": "BaseButton-module__PAb94WZR__v12-1-3",
"iconButton": "BaseButton-module__w2FxOhsI__v12-1-3",
"hiddenButtonLabel": "BaseButton-module__d-kHuHzf__v12-1-3",
"loadingIcon": "BaseButton-module__SpYNEHQq__v12-1-3",
"block": "BaseButton-module__YKg1L4V-__v12-1-3",
"sr-only": "BaseButton-module__uHzk6SXO__v12-1-3"
};

@@ -58,0 +57,0 @@ var BaseButton = /*#__PURE__*/React.forwardRef(function (_a, ref) {

{
"name": "@highlight-ui/button",
"version": "12.1.2",
"version": "12.1.3",
"description": "The button",

@@ -33,6 +33,6 @@ "author": "Personio GmbH & Co. KG",

"dependencies": {
"@highlight-ui/icon": "^5.2.1",
"@highlight-ui/layout": "^0.4.7",
"@highlight-ui/typography": "^6.2.2",
"@highlight-ui/utils-commons": "^2.4.1"
"@highlight-ui/icon": "^5.2.2",
"@highlight-ui/layout": "^0.4.8",
"@highlight-ui/typography": "^6.2.3",
"@highlight-ui/utils-commons": "^2.4.2"
},

@@ -44,5 +44,5 @@ "devDependencies": {

"@highlight-ui/configs-scripts": "^3.2.3",
"@highlight-ui/theme": "^9.3.10",
"@highlight-ui/tokens": "^4.2.0",
"@highlight-ui/utils-dev": "^1.1.12",
"@highlight-ui/theme": "^9.3.11",
"@highlight-ui/tokens": "^4.2.1",
"@highlight-ui/utils-dev": "^1.1.13",
"@testing-library/dom": "8.19.0",

@@ -63,3 +63,3 @@ "@testing-library/react": "12.1.5",

},
"gitHead": "6c64bc0662af8b56c00c1ea7c68096dc74f4bd0b"
"gitHead": "5c708521e181e6d7374660c727fe75453fdeabf9"
}

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