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

@heathmont/moon-core-tw

Package Overview
Dependencies
Maintainers
101
Versions
146
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@heathmont/moon-core-tw - npm Package Compare versions

Comparing version 9.1.0 to 9.1.1

lib/avatar/Avatar.d.ts

4

lib/accordion/Accordion.js

@@ -26,4 +26,4 @@ "use strict";

const react_1 = __importStar(require("react"));
const moon_icons_tw_1 = require("@heathmont/moon-icons-tw");
const classnames_1 = __importDefault(require("../private/utils/classnames"));
const ControlsChevronRight_1 = __importDefault(require("./private/icons/ControlsChevronRight"));
const setFont_1 = __importDefault(require("./private/utils/setFont"));

@@ -45,5 +45,5 @@ const setMargin_1 = __importDefault(require("./private/utils/setMargin"));

withButton && (react_1.default.createElement("button", { type: "button", disabled: disableOpen, className: classnames_1.default('align-middle text-[0.5rem] leading-none no-underline text-trunks border-transparent bg-gohan', disableOpen ? 'cursor-not-allowed' : 'cursor-pointer') },
react_1.default.createElement(ControlsChevronRight_1.default, { className: classnames_1.default('text-trunks transition-transform transition-200', setOpenIcon_1.default(isOpen)), fontSize: "1.5rem" })))),
react_1.default.createElement(moon_icons_tw_1.ControlsChevronRight, { className: classnames_1.default('text-trunks transition-transform transition-200', setOpenIcon_1.default(isOpen)), fontSize: "1.5rem" })))),
react_1.default.createElement("div", { className: classnames_1.default('overflow-hidden w-full', isOpen ? 'h-full' : 'h-0', isOpen && setMargin_1.default(size)) }, children)));
};
exports.default = Accordion;

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

declare const setPadding: (isContentInside?: boolean | undefined, size?: "sm" | "md" | "lg" | "xl" | undefined) => "" | "p-4" | "p-3" | "py-1 ps-3 pe-1" | "py-2 ps-3 pe-2";
declare const setPadding: (isContentInside?: boolean | undefined, size?: "sm" | "md" | "lg" | "xl" | undefined) => "p-4" | "p-3" | "py-1 ps-3 pe-1" | "py-2 ps-3 pe-2" | "";
export default setPadding;
//# sourceMappingURL=setPadding.d.ts.map

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

const react_1 = __importDefault(require("react"));
const moon_icons_tw_1 = require("@heathmont/moon-icons-tw");
const Loader_1 = __importDefault(require("../../../loader/Loader"));
const GenericCheckAlternative_1 = __importDefault(require("../../../private/icons/GenericCheckAlternative"));
const AnimationContent = ({ children, iconLeft, iconRight, iconOnly, animation, }) => (react_1.default.createElement("div", { className: "relative h-full pointer-events-none" },
react_1.default.createElement("div", { className: "flex absolute top-1/2 left-1/2 translate-y-[-50%] translate-x-[-50%] content-center justify-center" },
animation === 'progress' && react_1.default.createElement(Loader_1.default, { color: "currentColor", size: "xs" }),
animation === 'success' && react_1.default.createElement(GenericCheckAlternative_1.default, { fontSize: "1.5rem" })),
animation === 'success' && react_1.default.createElement(moon_icons_tw_1.GenericCheckAlternative, { fontSize: "1.5rem" })),
react_1.default.createElement("div", { className: "opacity-0" },

@@ -15,0 +15,0 @@ iconLeft,

@@ -37,3 +37,3 @@ "use strict";

const react_1 = __importStar(require("react"));
const GenericCheckAlternative_1 = __importDefault(require("../private/icons/GenericCheckAlternative"));
const moon_icons_tw_1 = require("@heathmont/moon-icons-tw");
const classnames_1 = __importDefault(require("../private/utils/classnames"));

@@ -46,3 +46,3 @@ const inlineSvg_1 = __importDefault(require("../private/utils/inlineSvg/inlineSvg"));

//TODO: Investigate how to pass icon color from the theme
const markIcon = inlineSvg_1.default(react_1.default.createElement(GenericCheckAlternative_1.default, { style: { color: '#ffffff' } }));
const markIcon = inlineSvg_1.default(react_1.default.createElement(moon_icons_tw_1.GenericCheckAlternative, { style: { color: '#ffffff' } }));
return (react_1.default.createElement("div", { className: "inline-block", onMouseEnter: () => setIsHover(true), onMouseLeave: () => setIsHover(false) },

@@ -49,0 +49,0 @@ react_1.default.createElement("label", { htmlFor: id, className: classnames_1.default('flex items-center text-moon-14 text-bulma cursor-pointer ', disabled && 'opacity-30 cursor-not-allowed select-none', readOnly && 'cursor-not-allowed select-none') },

import React, { useState } from 'react';
import { ControlsChevronRight } from '@heathmont/moon-icons-tw';
import classNames from '../private/utils/classnames';
import ControlsChevronRight from './private/icons/ControlsChevronRight';
import setFont from './private/utils/setFont';

@@ -5,0 +5,0 @@ import setMargin from './private/utils/setMargin';

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

declare const setPadding: (isContentInside?: boolean | undefined, size?: "sm" | "md" | "lg" | "xl" | undefined) => "" | "p-4" | "p-3" | "py-1 ps-3 pe-1" | "py-2 ps-3 pe-2";
declare const setPadding: (isContentInside?: boolean | undefined, size?: "sm" | "md" | "lg" | "xl" | undefined) => "p-4" | "p-3" | "py-1 ps-3 pe-1" | "py-2 ps-3 pe-2" | "";
export default setPadding;
//# sourceMappingURL=setPadding.d.ts.map
import React from 'react';
import { GenericCheckAlternative } from '@heathmont/moon-icons-tw';
import Loader from '../../../loader/Loader';
import GenericCheckAlternative from '../../../private/icons/GenericCheckAlternative';
const AnimationContent = ({ children, iconLeft, iconRight, iconOnly, animation, }) => (React.createElement("div", { className: "relative h-full pointer-events-none" },

@@ -5,0 +5,0 @@ React.createElement("div", { className: "flex absolute top-1/2 left-1/2 translate-y-[-50%] translate-x-[-50%] content-center justify-center" },

@@ -13,3 +13,3 @@ var __rest = (this && this.__rest) || function (s, e) {

import React, { forwardRef, useState } from 'react';
import GenericCheckAlternative from '../private/icons/GenericCheckAlternative';
import { GenericCheckAlternative } from '@heathmont/moon-icons-tw';
import classNames from '../private/utils/classnames';

@@ -16,0 +16,0 @@ import inlineSvg from '../private/utils/inlineSvg/inlineSvg';

@@ -6,2 +6,4 @@ /**

export * from './accordion/Accordion';
export { default as Avatar } from './avatar/Avatar';
export * from './avatar/Avatar';
export { default as Button } from './button/Button';

@@ -8,0 +10,0 @@ export * from './button/Button';

@@ -6,2 +6,4 @@ /**

export * from './accordion/Accordion';
export { default as Avatar } from './avatar/Avatar';
export * from './avatar/Avatar';
export { default as Button } from './button/Button';

@@ -8,0 +10,0 @@ export * from './button/Button';

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

declare const setDivBorder: (size?: "sm" | "md" | "lg" | "2xs" | "xs" | undefined) => "border-2 border-solid" | "border-4 border-solid";
declare const setDivBorder: (size?: "sm" | "md" | "lg" | "xs" | "2xs" | undefined) => "border-2 border-solid" | "border-4 border-solid";
export default setDivBorder;
//# sourceMappingURL=setDivBorder.d.ts.map

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

declare const setSize: (size?: "sm" | "md" | "lg" | "2xs" | "xs" | undefined) => "w-4 h-4" | "w-6 h-6" | "w-8 h-8" | "w-12 h-12" | "w-10 h-10";
declare const setSize: (size?: "sm" | "md" | "lg" | "xs" | "2xs" | undefined) => "w-4 h-4" | "w-6 h-6" | "w-8 h-8" | "w-12 h-12" | "w-10 h-10";
export default setSize;
//# sourceMappingURL=setSize.d.ts.map

@@ -6,2 +6,4 @@ /**

export * from './accordion/Accordion';
export { default as Avatar } from './avatar/Avatar';
export * from './avatar/Avatar';
export { default as Button } from './button/Button';

@@ -8,0 +10,0 @@ export * from './button/Button';

@@ -19,6 +19,9 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.TextInputGroup = exports.TextInput = exports.Loader = exports.setPadding = exports.setFontSize = exports.Label = exports.Chip = exports.Checkbox = exports.Button = exports.Accordion = void 0;
exports.TextInputGroup = exports.TextInput = exports.Loader = exports.setPadding = exports.setFontSize = exports.Label = exports.Chip = exports.Checkbox = exports.Button = exports.Avatar = exports.Accordion = void 0;
var Accordion_1 = require("./accordion/Accordion");
Object.defineProperty(exports, "Accordion", { enumerable: true, get: function () { return __importDefault(Accordion_1).default; } });
__exportStar(require("./accordion/Accordion"), exports);
var Avatar_1 = require("./avatar/Avatar");
Object.defineProperty(exports, "Avatar", { enumerable: true, get: function () { return __importDefault(Avatar_1).default; } });
__exportStar(require("./avatar/Avatar"), exports);
var Button_1 = require("./button/Button");

@@ -25,0 +28,0 @@ Object.defineProperty(exports, "Button", { enumerable: true, get: function () { return __importDefault(Button_1).default; } });

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

declare const setDivBorder: (size?: "sm" | "md" | "lg" | "2xs" | "xs" | undefined) => "border-2 border-solid" | "border-4 border-solid";
declare const setDivBorder: (size?: "sm" | "md" | "lg" | "xs" | "2xs" | undefined) => "border-2 border-solid" | "border-4 border-solid";
export default setDivBorder;
//# sourceMappingURL=setDivBorder.d.ts.map

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

declare const setSize: (size?: "sm" | "md" | "lg" | "2xs" | "xs" | undefined) => "w-4 h-4" | "w-6 h-6" | "w-8 h-8" | "w-12 h-12" | "w-10 h-10";
declare const setSize: (size?: "sm" | "md" | "lg" | "xs" | "2xs" | undefined) => "w-4 h-4" | "w-6 h-6" | "w-8 h-8" | "w-12 h-12" | "w-10 h-10";
export default setSize;
//# sourceMappingURL=setSize.d.ts.map
{
"name": "@heathmont/moon-core-tw",
"sideEffects": false,
"version": "9.1.0",
"version": "9.1.1",
"files": [

@@ -14,3 +14,5 @@ "lib"

"license": "MIT",
"dependencies": {},
"dependencies": {
"@heathmont/moon-icons-tw": "^9.1.1"
},
"peerDependencies": {

@@ -17,0 +19,0 @@ "react": ">= 17.0.2",

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