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

@highlight-ui/dialog

Package Overview
Dependencies
Maintainers
4
Versions
194
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@highlight-ui/dialog - npm Package Compare versions

Comparing version 1.0.13 to 2.0.0

21

dist/cjs/index.js

@@ -9,5 +9,5 @@ 'use strict';

var utilsCommons = require('@highlight-ui/utils-commons');
var Typography = require('@highlight-ui/typography');
var Button = require('@highlight-ui/button');
var Icon = require('@highlight-ui/icon');
var typography = require('@highlight-ui/typography');
var button = require('@highlight-ui/button');
var icon = require('@highlight-ui/icon');
var utilsPortalManager = require('@highlight-ui/utils-portal-manager');

@@ -21,5 +21,2 @@ var noop = require('lodash/noop');

var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
var Typography__default = /*#__PURE__*/_interopDefaultLegacy(Typography);
var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
var Icon__default = /*#__PURE__*/_interopDefaultLegacy(Icon);
var noop__default = /*#__PURE__*/_interopDefaultLegacy(noop);

@@ -54,3 +51,3 @@ var invoke__default = /*#__PURE__*/_interopDefaultLegacy(invoke);

var styles$1 = {"dialog":"Dialog-module__2icvnh15__v1-0-13","size-small":"Dialog-module__3spVEVua__v1-0-13","size-medium":"Dialog-module__-zWxw4HX__v1-0-13","size-large":"Dialog-module__3wZ2NPV0__v1-0-13","header":"Dialog-module__2wAUH40a__v1-0-13","headerShadowed":"Dialog-module__xODFOi1M__v1-0-13","headerTitle":"Dialog-module__1lxoaZF6__v1-0-13","closeButton":"Dialog-module__2l9SSdo___v1-0-13","body":"Dialog-module__1bPY4avA__v1-0-13","footer":"Dialog-module__3o8NTS6m__v1-0-13","footerShadowed":"Dialog-module__1s03rY8s__v1-0-13","footerAction":"Dialog-module__2YsxojU___v1-0-13"};
var styles$1 = {"dialog":"Dialog-module__2icvnh15__v2-0-0","size-small":"Dialog-module__3spVEVua__v2-0-0","size-medium":"Dialog-module__-zWxw4HX__v2-0-0","size-large":"Dialog-module__3wZ2NPV0__v2-0-0","header":"Dialog-module__2wAUH40a__v2-0-0","headerShadowed":"Dialog-module__xODFOi1M__v2-0-0","headerTitle":"Dialog-module__1lxoaZF6__v2-0-0","closeButton":"Dialog-module__2l9SSdo___v2-0-0","body":"Dialog-module__1bPY4avA__v2-0-0","footer":"Dialog-module__3o8NTS6m__v2-0-0","footerShadowed":"Dialog-module__1s03rY8s__v2-0-0","footerAction":"Dialog-module__2YsxojU___v2-0-0"};

@@ -318,3 +315,3 @@ function useEventListener(t,r,i,o){void 0===i&&(i=global),void 0===o&&(o={});var c=React.useRef(),u=o.capture,a=o.passive,v=o.once;React.useEffect(function(){c.current=r;},[r]),React.useEffect(function(){if(i&&i.addEventListener){var e=function(e){return c.current(e)},n={capture:u,passive:a,once:v};return i.addEventListener(t,e,n),function(){i.removeEventListener(t,e,n);}}},[t,i,u,a,v]);}

var styles = {"modal":"Modal-module__i5Pbh60m__v1-0-13","modalBackdrop":"Modal-module__ZVIwEMrU__v1-0-13","modalContent":"Modal-module__3UHa_kcB__v1-0-13","scrollLocked":"Modal-module__1T2Qjbem__v1-0-13"};
var styles = {"modal":"Modal-module__i5Pbh60m__v2-0-0","modalBackdrop":"Modal-module__ZVIwEMrU__v2-0-0","modalContent":"Modal-module__3UHa_kcB__v2-0-0","scrollLocked":"Modal-module__1T2Qjbem__v2-0-0"};

@@ -371,5 +368,5 @@ var Modal = function (_a) {

_b)) },
React__default['default'].createElement(Typography__default['default'], { component: "span", variant: "heading-3", className: styles$1.headerTitle }, title),
React__default['default'].createElement(typography.Typography, { component: "span", variant: "heading-3", className: styles$1.headerTitle }, title),
React__default['default'].createElement("button", { type: "button", title: "close", onClick: onRequestToClose, className: styles$1.closeButton },
React__default['default'].createElement(Icon__default['default'], { name: "times", type: "solid" }))),
React__default['default'].createElement(icon.Icon, { name: "times", type: "solid" }))),
React__default['default'].createElement("div", { ref: setElement, className: styles$1.body }, children),

@@ -379,4 +376,4 @@ React__default['default'].createElement("footer", { className: classnames__default['default'](styles$1.footer, (_c = {},

_c)) },
React__default['default'].createElement(Button__default['default'], __assign({ ref: setCancelButtonElement, className: styles$1.footerAction, onClick: cancelButton.onClick, loading: cancelButton.loading, disabled: cancelButton.disabled }, utilsCommons.parseMetadata(cancelButton.metadata)), cancelButton.label),
React__default['default'].createElement(Button__default['default'], __assign({ className: classnames__default['default'](styles$1.footerAction, {
React__default['default'].createElement(button.Button, __assign({ ref: setCancelButtonElement, className: styles$1.footerAction, onClick: cancelButton.onClick, loading: cancelButton.loading, disabled: cancelButton.disabled }, utilsCommons.parseMetadata(cancelButton.metadata)), cancelButton.label),
React__default['default'].createElement(button.Button, __assign({ className: classnames__default['default'](styles$1.footerAction, {
'dialog-danger': variant === 'destructive',

@@ -383,0 +380,0 @@ 'dialog-primary': variant !== 'destructive',

@@ -5,5 +5,5 @@ import React, { useRef, useEffect, useCallback, useState } from 'react';

import { parseMetadata } from '@highlight-ui/utils-commons';
import Typography from '@highlight-ui/typography';
import Button from '@highlight-ui/button';
import Icon from '@highlight-ui/icon';
import { Typography } from '@highlight-ui/typography';
import { Button } from '@highlight-ui/button';
import { Icon } from '@highlight-ui/icon';
import { GroupedPortal } from '@highlight-ui/utils-portal-manager';

@@ -39,3 +39,3 @@ import noop from 'lodash/noop';

var styles$1 = {"dialog":"Dialog-module__2icvnh15__v1-0-13","size-small":"Dialog-module__3spVEVua__v1-0-13","size-medium":"Dialog-module__-zWxw4HX__v1-0-13","size-large":"Dialog-module__3wZ2NPV0__v1-0-13","header":"Dialog-module__2wAUH40a__v1-0-13","headerShadowed":"Dialog-module__xODFOi1M__v1-0-13","headerTitle":"Dialog-module__1lxoaZF6__v1-0-13","closeButton":"Dialog-module__2l9SSdo___v1-0-13","body":"Dialog-module__1bPY4avA__v1-0-13","footer":"Dialog-module__3o8NTS6m__v1-0-13","footerShadowed":"Dialog-module__1s03rY8s__v1-0-13","footerAction":"Dialog-module__2YsxojU___v1-0-13"};
var styles$1 = {"dialog":"Dialog-module__2icvnh15__v2-0-0","size-small":"Dialog-module__3spVEVua__v2-0-0","size-medium":"Dialog-module__-zWxw4HX__v2-0-0","size-large":"Dialog-module__3wZ2NPV0__v2-0-0","header":"Dialog-module__2wAUH40a__v2-0-0","headerShadowed":"Dialog-module__xODFOi1M__v2-0-0","headerTitle":"Dialog-module__1lxoaZF6__v2-0-0","closeButton":"Dialog-module__2l9SSdo___v2-0-0","body":"Dialog-module__1bPY4avA__v2-0-0","footer":"Dialog-module__3o8NTS6m__v2-0-0","footerShadowed":"Dialog-module__1s03rY8s__v2-0-0","footerAction":"Dialog-module__2YsxojU___v2-0-0"};

@@ -303,3 +303,3 @@ function useEventListener(t,r,i,o){void 0===i&&(i=global),void 0===o&&(o={});var c=useRef(),u=o.capture,a=o.passive,v=o.once;useEffect(function(){c.current=r;},[r]),useEffect(function(){if(i&&i.addEventListener){var e=function(e){return c.current(e)},n={capture:u,passive:a,once:v};return i.addEventListener(t,e,n),function(){i.removeEventListener(t,e,n);}}},[t,i,u,a,v]);}

var styles = {"modal":"Modal-module__i5Pbh60m__v1-0-13","modalBackdrop":"Modal-module__ZVIwEMrU__v1-0-13","modalContent":"Modal-module__3UHa_kcB__v1-0-13","scrollLocked":"Modal-module__1T2Qjbem__v1-0-13"};
var styles = {"modal":"Modal-module__i5Pbh60m__v2-0-0","modalBackdrop":"Modal-module__ZVIwEMrU__v2-0-0","modalContent":"Modal-module__3UHa_kcB__v2-0-0","scrollLocked":"Modal-module__1T2Qjbem__v2-0-0"};

@@ -306,0 +306,0 @@ var Modal = function (_a) {

{
"name": "@highlight-ui/dialog",
"version": "1.0.13",
"version": "2.0.0",
"author": "PPU",

@@ -49,8 +49,8 @@ "main": "dist/cjs/index.js",

"@charlietango/use-focus-trap": "^1.3.0",
"@highlight-ui/button": "^3.1.10",
"@highlight-ui/icon": "^2.1.9",
"@highlight-ui/typography": "^2.1.7",
"@highlight-ui/button": "^4.0.0",
"@highlight-ui/icon": "^3.0.0",
"@highlight-ui/typography": "^3.0.0",
"@highlight-ui/utils-commons": "^1.2.2",
"@highlight-ui/utils-hooks": "^1.2.3",
"@highlight-ui/utils-portal-manager": "^2.1.9",
"@highlight-ui/utils-portal-manager": "^2.1.10",
"@use-it/event-listener": "^0.1.6"

@@ -63,3 +63,3 @@ },

},
"gitHead": "b23625e1ee38082febededafbfdadea9ff4ebb6d"
"gitHead": "5fceeca8c701b19aacbed68f0b22f63738bd3113"
}

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