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

@uxf/ui

Package Overview
Dependencies
Maintainers
1
Versions
294
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uxf/ui - npm Package Compare versions

Comparing version 1.0.0-beta.7 to 1.0.0-beta.8

6

button/button.js

@@ -7,8 +7,6 @@ "use strict";

var react_1 = __importDefault(require("react"));
var theme_1 = require("@uxf/ui/theme");
var cx_1 = require("@uxf/core/utils/cx");
function Button(props) {
var _a, _b, _c;
var theme = (0, theme_1.useTheme)().Button;
var className = (0, cx_1.cx)("button", "button--color-".concat((_a = props.color) !== null && _a !== void 0 ? _a : theme.defaults.color), "button--size-".concat((_b = props.size) !== null && _b !== void 0 ? _b : theme.defaults.size), "button--variant-".concat((_c = props.variant) !== null && _c !== void 0 ? _c : theme.defaults.variant), props.disabled && "button--disabled", props.loading && "button--loading");
var className = (0, cx_1.cx)("button", "button--color-".concat((_a = props.color) !== null && _a !== void 0 ? _a : "default"), "button--size-".concat((_b = props.size) !== null && _b !== void 0 ? _b : "default"), "button--variant-".concat((_c = props.variant) !== null && _c !== void 0 ? _c : "default"), props.disabled && "button--disabled", props.loading && "button--loading");
return (react_1.default.createElement("button", { type: "button", className: className },

@@ -20,2 +18,2 @@ props.startAdornment,

exports.default = Button;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2J1dHRvbi9idXR0b24udHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsZ0RBQXlDO0FBQ3pDLHVDQUF5QztBQUV6Qyx5Q0FBd0M7QUFheEMsU0FBUyxNQUFNLENBQUMsS0FBa0I7O0lBQ2hDLElBQU0sS0FBSyxHQUFHLElBQUEsZ0JBQVEsR0FBRSxDQUFDLE1BQU0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BQUEsS0FBSyxDQUFDLElBQUksbUNBQUksU0FBUyxDQUFFLEVBQ3pDLDBCQUFtQixNQUFBLEtBQUssQ0FBQyxPQUFPLG1DQUFJLFNBQVMsQ0FBRSxFQUMvQyxLQUFLLENBQUMsUUFBUSxJQUFJLGtCQUFrQixFQUNwQyxLQUFLLENBQUMsT0FBTyxJQUFJLGlCQUFpQixDQUNuQyxDQUFDO0lBRUYsT0FBTyxDQUNMLDBDQUFRLElBQUksRUFBQyxRQUFRLEVBQUMsU0FBUyxFQUFFLFNBQVM7UUFDdkMsS0FBSyxDQUFDLGNBQWM7UUFDcEIsS0FBSyxDQUFDLFFBQVE7UUFDZCxLQUFLLENBQUMsWUFBWSxDQUNaLENBQ1YsQ0FBQztBQUNKLENBQUM7QUFFRCxrQkFBZSxNQUFNLENBQUMifQ==
export interface ButtonVariants {
outlined: true;
contained: true;
default: true;
}

@@ -8,3 +8,3 @@ export interface ButtonSizes {

sm: true;
md: true;
default: true;
lg: true;

@@ -14,4 +14,4 @@ xl: true;

export interface ButtonColors {
primary: true;
default: true;
secondary: true;
}
{
"name": "@uxf/ui",
"version": "1.0.0-beta.7",
"version": "1.0.0-beta.8",
"description": "UXF UI components",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -30,5 +30,5 @@ "use strict";

Button: {
sizes: ["xs", "sm", "md", "lg", "xl"],
colors: ["primary", "secondary"],
variants: ["outlined", "contained"],
sizes: ["xs", "sm", "default", "lg", "xl"],
colors: ["default", "secondary"],
variants: ["outlined", "default"],
},

@@ -47,2 +47,2 @@ };

exports.StorybookContextProvider = StorybookContextProvider;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Rvcnlib29rLWNvbmZpZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zdG9yeWJvb2svc3Rvcnlib29rLWNvbmZpZy50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7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FBcUQ7QUFFeEMsUUFBQSxhQUFhLEdBQW9CO0lBQzVDLE1BQU0sRUFBRTtRQUNOLEtBQUssRUFBRSxDQUFDLElBQUksRUFBRSxJQUFJLEVBQUUsU0FBUyxFQUFFLElBQUksRUFBRSxJQUFJLENBQUM7UUFDMUMsTUFBTSxFQUFFLENBQUMsU0FBUyxFQUFFLFdBQVcsQ0FBQztRQUNoQyxRQUFRLEVBQUUsQ0FBQyxVQUFVLEVBQUUsU0FBUyxDQUFDO0tBQ2xDO0NBQ0YsQ0FBQztBQVVGLFVBQVU7QUFDVixJQUFNLE9BQU8sR0FBRyxlQUFLLENBQUMsYUFBYSxDQUFDLHFCQUFhLENBQUMsQ0FBQztBQUVuRCxXQUFXO0FBQ1gsU0FBZ0Isa0JBQWtCLENBQUMsR0FBMEI7SUFDM0QsT0FBTyxJQUFBLGtCQUFVLEVBQUMsT0FBTyxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUM7QUFDbEMsQ0FBQztBQUZELGdEQUVDO0FBUUQsU0FBZ0Isd0JBQXdCLENBQUMsS0FBb0M7SUFDM0UsT0FBTyxDQUNMLDhCQUFDLE9BQU8sQ0FBQyxRQUFRLElBQUMsS0FBSyxFQUFFLEtBQUssQ0FBQyxNQUFNLElBQUcsS0FBSyxDQUFDLFFBQVEsQ0FBb0IsQ0FDM0UsQ0FBQztBQUNKLENBQUM7QUFKRCw0REFJQyJ9

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