@highlight-ui/button
Advanced tools
Comparing version 12.0.9 to 12.0.10
@@ -12,4 +12,4 @@ 'use strict'; | ||
var layout = require('@highlight-ui/layout'); | ||
var colorTokens = require('@highlight-ui/tokens/dist/colors.json'); | ||
var typographyColorTokens = require('@highlight-ui/tokens/dist/typography/colors.json'); | ||
var colors = require('@highlight-ui/tokens/dist/colors'); | ||
var colors$1 = require('@highlight-ui/tokens/dist/typography/colors'); | ||
function _interopDefaultLegacy(e) { | ||
@@ -22,4 +22,2 @@ return e && typeof e === 'object' && 'default' in e ? e : { | ||
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames); | ||
var colorTokens__default = /*#__PURE__*/_interopDefaultLegacy(colorTokens); | ||
var typographyColorTokens__default = /*#__PURE__*/_interopDefaultLegacy(typographyColorTokens); | ||
@@ -60,13 +58,13 @@ /****************************************************************************** | ||
var styles = { | ||
"button": "BaseButton-module__cqxEoQOz__v12-0-9", | ||
"label": "BaseButton-module__368a8XpF__v12-0-9", | ||
"labelIcon": "BaseButton-module__ll4hx5mI__v12-0-9", | ||
"labelIconContainer": "BaseButton-module__4CF-mqal__v12-0-9", | ||
"loading": "BaseButton-module__AxaPQljF__v12-0-9", | ||
"withIcon": "BaseButton-module__PAb94WZR__v12-0-9", | ||
"iconButton": "BaseButton-module__w2FxOhsI__v12-0-9", | ||
"hiddenButtonLabel": "BaseButton-module__d-kHuHzf__v12-0-9", | ||
"loadingIcon": "BaseButton-module__SpYNEHQq__v12-0-9", | ||
"block": "BaseButton-module__YKg1L4V-__v12-0-9", | ||
"sr-only": "BaseButton-module__uHzk6SXO__v12-0-9" | ||
"button": "BaseButton-module__cqxEoQOz__v12-0-10", | ||
"label": "BaseButton-module__368a8XpF__v12-0-10", | ||
"labelIcon": "BaseButton-module__ll4hx5mI__v12-0-10", | ||
"labelIconContainer": "BaseButton-module__4CF-mqal__v12-0-10", | ||
"loading": "BaseButton-module__AxaPQljF__v12-0-10", | ||
"withIcon": "BaseButton-module__PAb94WZR__v12-0-10", | ||
"iconButton": "BaseButton-module__w2FxOhsI__v12-0-10", | ||
"hiddenButtonLabel": "BaseButton-module__d-kHuHzf__v12-0-10", | ||
"loadingIcon": "BaseButton-module__SpYNEHQq__v12-0-10", | ||
"block": "BaseButton-module__YKg1L4V-__v12-0-10", | ||
"sr-only": "BaseButton-module__uHzk6SXO__v12-0-10" | ||
}; | ||
@@ -104,3 +102,3 @@ var BaseButton = React__default["default"].forwardRef(function (_a, ref) { | ||
if (state) { | ||
return __assign(__assign({}, buttonStyles), (_b = {}, _b["--" + key + "-background-color"] = state.backgroundColor ? colorTokens__default["default"][state.backgroundColor] : 'none', _b["--" + key + "-label-color"] = __assign(__assign({}, typographyColorTokens__default["default"]), colorTokens__default["default"])[state.color], _b)); | ||
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)); | ||
} | ||
@@ -107,0 +105,0 @@ return buttonStyles; |
@@ -7,4 +7,4 @@ import React from 'react'; | ||
import { Inline } from '@highlight-ui/layout'; | ||
import colorTokens from '@highlight-ui/tokens/dist/colors.json'; | ||
import typographyColorTokens from '@highlight-ui/tokens/dist/typography/colors.json'; | ||
import { colorTokens } from '@highlight-ui/tokens/dist/colors'; | ||
import { typographyColorTokens } from '@highlight-ui/tokens/dist/typography/colors'; | ||
@@ -45,13 +45,13 @@ /****************************************************************************** | ||
var styles = { | ||
"button": "BaseButton-module__cqxEoQOz__v12-0-9", | ||
"label": "BaseButton-module__368a8XpF__v12-0-9", | ||
"labelIcon": "BaseButton-module__ll4hx5mI__v12-0-9", | ||
"labelIconContainer": "BaseButton-module__4CF-mqal__v12-0-9", | ||
"loading": "BaseButton-module__AxaPQljF__v12-0-9", | ||
"withIcon": "BaseButton-module__PAb94WZR__v12-0-9", | ||
"iconButton": "BaseButton-module__w2FxOhsI__v12-0-9", | ||
"hiddenButtonLabel": "BaseButton-module__d-kHuHzf__v12-0-9", | ||
"loadingIcon": "BaseButton-module__SpYNEHQq__v12-0-9", | ||
"block": "BaseButton-module__YKg1L4V-__v12-0-9", | ||
"sr-only": "BaseButton-module__uHzk6SXO__v12-0-9" | ||
"button": "BaseButton-module__cqxEoQOz__v12-0-10", | ||
"label": "BaseButton-module__368a8XpF__v12-0-10", | ||
"labelIcon": "BaseButton-module__ll4hx5mI__v12-0-10", | ||
"labelIconContainer": "BaseButton-module__4CF-mqal__v12-0-10", | ||
"loading": "BaseButton-module__AxaPQljF__v12-0-10", | ||
"withIcon": "BaseButton-module__PAb94WZR__v12-0-10", | ||
"iconButton": "BaseButton-module__w2FxOhsI__v12-0-10", | ||
"hiddenButtonLabel": "BaseButton-module__d-kHuHzf__v12-0-10", | ||
"loadingIcon": "BaseButton-module__SpYNEHQq__v12-0-10", | ||
"block": "BaseButton-module__YKg1L4V-__v12-0-10", | ||
"sr-only": "BaseButton-module__uHzk6SXO__v12-0-10" | ||
}; | ||
@@ -58,0 +58,0 @@ var BaseButton = /*#__PURE__*/React.forwardRef(function (_a, ref) { |
{ | ||
"name": "@highlight-ui/button", | ||
"version": "12.0.9", | ||
"version": "12.0.10", | ||
"description": "The button", | ||
@@ -33,6 +33,6 @@ "author": "Personio GmbH & Co. KG", | ||
"dependencies": { | ||
"@highlight-ui/icon": "^5.1.2", | ||
"@highlight-ui/layout": "^0.4.3", | ||
"@highlight-ui/typography": "^6.1.2", | ||
"@highlight-ui/utils-commons": "^2.3.9" | ||
"@highlight-ui/icon": "^5.1.3", | ||
"@highlight-ui/layout": "^0.4.4", | ||
"@highlight-ui/typography": "^6.1.3", | ||
"@highlight-ui/utils-commons": "^2.3.10" | ||
}, | ||
@@ -44,5 +44,5 @@ "devDependencies": { | ||
"@highlight-ui/configs-scripts": "^3.2.3", | ||
"@highlight-ui/theme": "^9.3.7", | ||
"@highlight-ui/tokens": "^3.1.0", | ||
"@highlight-ui/utils-dev": "^1.1.9", | ||
"@highlight-ui/theme": "^9.3.8", | ||
"@highlight-ui/tokens": "^4.0.0", | ||
"@highlight-ui/utils-dev": "^1.1.10", | ||
"@testing-library/dom": "8.19.0", | ||
@@ -63,3 +63,3 @@ "@testing-library/react": "12.1.5", | ||
}, | ||
"gitHead": "e18c6e07be03363b505fcbc9054d4824fc4f150b" | ||
"gitHead": "f5ee8f9c5aba8e81ae72a682b291c2a77775cbdb" | ||
} |
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
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
151550
1649