Socket
Socket
Sign inDemoInstall

orion-kit

Package Overview
Dependencies
6
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 1.2.0

dist/assets/components/TextField/index.css

66

dist/components/Avatar/index.js
import "../../assets/components/Avatar/index.css";
import { jsxs as x, jsx as n } from "react/jsx-runtime";
import { c as g } from "../../index-rhGCKkpR.js";
const v = "_avatar_1c5e0_1", F = "_xsmall_1c5e0_10", p = "_small_1c5e0_18", q = "_medium_1c5e0_26", f = "_large_1c5e0_34", h = "_xlarge_1c5e0_42", I = "_rounded_1c5e0_50", j = "_square_1c5e0_56", a = {
avatar: v,
xsmall: F,
small: p,
medium: q,
large: f,
xlarge: h,
rounded: I,
square: j
import { jsxs as u, jsx as e } from "react/jsx-runtime";
import { c as x } from "../../index-rhGCKkpR.js";
const h = "_avatar_nygsh_1", y = "_xsmall_nygsh_10", v = "_small_nygsh_18", F = "_medium_nygsh_26", p = "_large_nygsh_34", q = "_xlarge_nygsh_42", f = "_rounded_nygsh_50", I = "_square_nygsh_56", s = {
avatar: h,
xsmall: y,
small: v,
medium: F,
large: p,
xlarge: q,
rounded: f,
square: I
}, w = ({
backgroundColor: c = "#339AF0",
className: o,
fontColor: m = "#FFFFFF",
backgroundColor: o = "#339AF0",
className: m,
fontColor: _ = "#FFFFFF",
image: t,
name: r,
size: l = "md",
type: e = "rounded",
withTitle: _ = !0,
doubleInitials: d = !1,
type: n = "rounded",
withTitle: d = !0,
doubleInitials: c = !1,
...i
}) => {
const u = (() => {
const s = r.split(" ");
return d ? (s[0] ? s[0][0] : "") + (s.length > 1 ? s[s.length - 1][0] : "") : s[0] ? s[0][0] : "";
const g = (() => {
const a = r.split(" ");
return c ? (a[0] ? a[0][0] : "") + (a.length > 1 ? a[a.length - 1][0] : "") : a[0] ? a[0][0] : "";
})();
return /* @__PURE__ */ x(
return /* @__PURE__ */ u(
"div",
{
className: g(o, a.avatar, {
[a.xsmall]: l === "xs",
[a.small]: l === "sm",
[a.medium]: l === "md",
[a.large]: l === "lg",
[a.xlarge]: l === "xl",
[a.rounded]: e === "rounded",
[a.square]: e === "square"
className: x(m, s.avatar, {
[s.xsmall]: l === "xs",
[s.small]: l === "sm",
[s.medium]: l === "md",
[s.large]: l === "lg",
[s.xlarge]: l === "xl",
[s.rounded]: n === "rounded",
[s.square]: n === "square"
}),
title: _ ? r : void 0,
title: d ? r : void 0,
style: {
backgroundColor: c
backgroundColor: o
},
...i,
children: [
t && /* @__PURE__ */ n("img", { src: t, alt: r }),
!t && /* @__PURE__ */ n("span", { style: { color: m }, children: u })
t && /* @__PURE__ */ e("img", { src: t, alt: r }),
!t && /* @__PURE__ */ e("span", { style: { color: _ }, children: g })
]

@@ -50,0 +50,0 @@ }

import "../../assets/components/Button/index.css";
import { jsxs as p, jsx as u } from "react/jsx-runtime";
import { jsxs as g, jsx as a } from "react/jsx-runtime";
import { useRef as f } from "react";
import x from "../../hooks/useRipple.js";
import { c as y } from "../../index-rhGCKkpR.js";
const b = "_button_uiwgs_1", R = "_icon_uiwgs_21", N = "_label_uiwgs_34", j = "_primary_uiwgs_37", k = "_solid_uiwgs_37", v = "_outlined_uiwgs_44", B = "_text_uiwgs_53", C = "_secondary_uiwgs_62", h = "_success_uiwgs_87", q = "_error_uiwgs_112", A = "_warning_uiwgs_137", D = "_small_uiwgs_162", E = "_medium_uiwgs_171", F = "_large_uiwgs_180", G = "_xlarge_uiwgs_189", H = "_radius_uiwgs_198", I = "_pill_uiwgs_201", J = "_raised_uiwgs_204", K = "_row_uiwgs_207", L = "_rowReverse_uiwgs_210", s = {
button: b,
icon: R,
label: N,
primary: j,
solid: k,
outlined: v,
text: B,
secondary: C,
success: h,
import w from "../../hooks/useRipple.js";
import { c as x } from "../../index-rhGCKkpR.js";
const y = "_button_9h5hc_1", b = "_icon_9h5hc_21", R = "_label_9h5hc_34", N = "_primary_9h5hc_37", j = "_solid_9h5hc_37", k = "_outlined_9h5hc_44", v = "_text_9h5hc_53", B = "_secondary_9h5hc_62", C = "_success_9h5hc_87", q = "_error_9h5hc_112", A = "_warning_9h5hc_137", D = "_small_9h5hc_162", E = "_medium_9h5hc_171", F = "_large_9h5hc_180", G = "_xlarge_9h5hc_189", H = "_radius_9h5hc_198", I = "_pill_9h5hc_201", J = "_raised_9h5hc_204", K = "_row_9h5hc_207", L = "_rowReverse_9h5hc_210", s = {
button: y,
icon: b,
label: R,
primary: N,
solid: j,
outlined: k,
text: v,
secondary: B,
success: C,
error: q,

@@ -28,23 +28,23 @@ warning: A,

}, U = ({
className: c,
children: a,
className: i,
children: h,
shape: e = "solid",
variant: r = "primary",
size: o = "medium",
radius: l = "default",
raised: g = !1,
disabled: i = !1,
radius: c = "default",
raised: m = !1,
disabled: l = !1,
icon: t,
iconPosition: _ = "left",
onClick: m,
...d
onClick: d,
...u
}) => {
const n = f(null), w = x(n);
return /* @__PURE__ */ p(
const n = f(null), p = w(n);
return /* @__PURE__ */ g(
"button",
{
ref: n,
onClick: i ? void 0 : m,
disabled: i,
className: y(c, s.button, {
onClick: l ? void 0 : d,
disabled: l,
className: x(i, s.button, {
[s.primary]: r === "primary",

@@ -62,13 +62,13 @@ [s.secondary]: r === "secondary",

[s.xlarge]: o === "x-large",
[s.radius]: l === "default",
[s.pill]: l === "pill",
[s.raised]: g === !0 && e === "solid",
[s.radius]: c === "default",
[s.pill]: c === "pill",
[s.raised]: m === !0 && e === "solid",
[s.row]: _ === "left",
[s.rowReverse]: _ === "right"
}),
...d,
...u,
children: [
w,
t && /* @__PURE__ */ u("span", { className: s.icon, children: t }),
/* @__PURE__ */ u("span", { className: s.label, children: a })
p,
t && /* @__PURE__ */ a("span", { className: s.icon, children: t }),
/* @__PURE__ */ a("span", { className: s.label, children: h })
]

@@ -75,0 +75,0 @@ }

export { Avatar } from './components/Avatar';
export { Button } from './components/Button';
export { Input } from './components/Input';
export { TextField } from './components/TextField';
import "./assets/main.css";
import { Avatar as p } from "./components/Avatar/index.js";
import { Button as e } from "./components/Button/index.js";
import { Input as x } from "./components/Input/index.js";
import { Avatar as e } from "./components/Avatar/index.js";
import { Button as p } from "./components/Button/index.js";
import { TextField as f } from "./components/TextField/index.js";
export {
p as Avatar,
e as Button,
x as Input
e as Avatar,
p as Button,
f as TextField
};
{
"name": "orion-kit",
"version": "1.1.0",
"version": "1.2.0",
"author": "Claudanilo Xavier <claudaniloxavier@gmail.com>",

@@ -43,10 +43,10 @@ "type": "module",

"@semantic-release/npm": "^11.0.1",
"@storybook/addon-a11y": "^7.5.3",
"@storybook/addon-essentials": "^7.5.3",
"@storybook/addon-interactions": "^7.5.3",
"@storybook/addon-links": "^7.5.3",
"@storybook/addon-onboarding": "^1.0.8",
"@storybook/blocks": "^7.5.3",
"@storybook/react": "^7.5.3",
"@storybook/react-vite": "^7.5.3",
"@storybook/addon-a11y": "^7.6.3",
"@storybook/addon-essentials": "^7.6.3",
"@storybook/addon-interactions": "^7.6.3",
"@storybook/addon-links": "^7.6.3",
"@storybook/addon-onboarding": "^1.0.9",
"@storybook/blocks": "^7.6.3",
"@storybook/react": "^7.6.3",
"@storybook/react-vite": "^7.6.3",
"@storybook/testing-library": "^0.2.2",

@@ -69,3 +69,3 @@ "@types/node": "^20.9.2",

"semantic-release": "^22.0.8",
"storybook": "^7.5.3",
"storybook": "^7.6.3",
"typescript": "^5.2.2",

@@ -72,0 +72,0 @@ "vite": "^5.0.0",

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc