@grupor5/raya 0.2.21 → 0.2.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,32 @@
1
+ import React__default from 'react';
2
+
3
+ interface LogoProps extends React__default.ImgHTMLAttributes<HTMLImageElement> {
4
+ /** Size of the logo */
5
+ size?: number | string;
6
+ /** Color variant */
7
+ variant?: 'default' | 'white' | 'dark';
8
+ /** Whether to show only the wordmark without tagline */
9
+ wordmarkOnly?: boolean;
10
+ className?: string;
11
+ }
12
+ /**
13
+ * Logo component for Manta Seguros brand
14
+ *
15
+ * @example
16
+ * ```tsx
17
+ * // Default logo
18
+ * <Logo />
19
+ *
20
+ * // White variant for dark backgrounds
21
+ * <Logo variant="white" />
22
+ *
23
+ * // Custom size
24
+ * <Logo size={200} />
25
+ *
26
+ * // Wordmark only (Note: depends on original image design)
27
+ * <Logo wordmarkOnly />
28
+ * ```
29
+ */
30
+ declare const Logo: React__default.ForwardRefExoticComponent<LogoProps & React__default.RefAttributes<HTMLImageElement>>;
31
+
32
+ export { Logo, type LogoProps };
@@ -0,0 +1,32 @@
1
+ import React__default from 'react';
2
+
3
+ interface LogoProps extends React__default.ImgHTMLAttributes<HTMLImageElement> {
4
+ /** Size of the logo */
5
+ size?: number | string;
6
+ /** Color variant */
7
+ variant?: 'default' | 'white' | 'dark';
8
+ /** Whether to show only the wordmark without tagline */
9
+ wordmarkOnly?: boolean;
10
+ className?: string;
11
+ }
12
+ /**
13
+ * Logo component for Manta Seguros brand
14
+ *
15
+ * @example
16
+ * ```tsx
17
+ * // Default logo
18
+ * <Logo />
19
+ *
20
+ * // White variant for dark backgrounds
21
+ * <Logo variant="white" />
22
+ *
23
+ * // Custom size
24
+ * <Logo size={200} />
25
+ *
26
+ * // Wordmark only (Note: depends on original image design)
27
+ * <Logo wordmarkOnly />
28
+ * ```
29
+ */
30
+ declare const Logo: React__default.ForwardRefExoticComponent<LogoProps & React__default.RefAttributes<HTMLImageElement>>;
31
+
32
+ export { Logo, type LogoProps };
@@ -0,0 +1,90 @@
1
+ 'use strict';
2
+
3
+ var react = require('react');
4
+ var clsx = require('clsx');
5
+ var tailwindMerge = require('tailwind-merge');
6
+ var jsxRuntime = require('react/jsx-runtime');
7
+
8
+ var __defProp = Object.defineProperty;
9
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
10
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
11
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
+ var __spreadValues = (a, b) => {
14
+ for (var prop in b || (b = {}))
15
+ if (__hasOwnProp.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ if (__getOwnPropSymbols)
18
+ for (var prop of __getOwnPropSymbols(b)) {
19
+ if (__propIsEnum.call(b, prop))
20
+ __defNormalProp(a, prop, b[prop]);
21
+ }
22
+ return a;
23
+ };
24
+ var __objRest = (source, exclude) => {
25
+ var target = {};
26
+ for (var prop in source)
27
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
28
+ target[prop] = source[prop];
29
+ if (source != null && __getOwnPropSymbols)
30
+ for (var prop of __getOwnPropSymbols(source)) {
31
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
32
+ target[prop] = source[prop];
33
+ }
34
+ return target;
35
+ };
36
+ function cn(...inputs) {
37
+ return tailwindMerge.twMerge(clsx.clsx(inputs));
38
+ }
39
+
40
+ // src/atoms/logo/logo.png
41
+ var logo_default = "../../logo-N622EUTF.png";
42
+ var Logo = react.forwardRef((_a, ref) => {
43
+ var _b = _a, {
44
+ size = 120,
45
+ variant = "default",
46
+ wordmarkOnly = false,
47
+ className,
48
+ alt = "Manta Seguros Logo",
49
+ src
50
+ } = _b, props = __objRest(_b, [
51
+ "size",
52
+ "variant",
53
+ "wordmarkOnly",
54
+ "className",
55
+ "alt",
56
+ "src"
57
+ ]);
58
+ const getVariantFilter = () => {
59
+ switch (variant) {
60
+ case "white":
61
+ return "brightness(0) invert(1)";
62
+ // Convert to white
63
+ case "dark":
64
+ return "brightness(0) saturate(100%)";
65
+ // Convert to black
66
+ default:
67
+ return "none";
68
+ }
69
+ };
70
+ const logoStyles = __spreadValues({
71
+ width: typeof size === "number" ? `${size}px` : size,
72
+ height: "auto",
73
+ filter: getVariantFilter(),
74
+ maxWidth: "100%"
75
+ }, props.style);
76
+ const logoSrc = src || logo_default;
77
+ return /* @__PURE__ */ jsxRuntime.jsx(
78
+ "img",
79
+ __spreadValues({
80
+ ref,
81
+ src: logoSrc,
82
+ alt,
83
+ className: cn("logo", className),
84
+ style: logoStyles
85
+ }, props)
86
+ );
87
+ });
88
+ Logo.displayName = "Logo";
89
+
90
+ exports.Logo = Logo;
@@ -0,0 +1,88 @@
1
+ import { forwardRef } from 'react';
2
+ import { clsx } from 'clsx';
3
+ import { twMerge } from 'tailwind-merge';
4
+ import { jsx } from 'react/jsx-runtime';
5
+
6
+ var __defProp = Object.defineProperty;
7
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
10
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
11
+ var __spreadValues = (a, b) => {
12
+ for (var prop in b || (b = {}))
13
+ if (__hasOwnProp.call(b, prop))
14
+ __defNormalProp(a, prop, b[prop]);
15
+ if (__getOwnPropSymbols)
16
+ for (var prop of __getOwnPropSymbols(b)) {
17
+ if (__propIsEnum.call(b, prop))
18
+ __defNormalProp(a, prop, b[prop]);
19
+ }
20
+ return a;
21
+ };
22
+ var __objRest = (source, exclude) => {
23
+ var target = {};
24
+ for (var prop in source)
25
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
26
+ target[prop] = source[prop];
27
+ if (source != null && __getOwnPropSymbols)
28
+ for (var prop of __getOwnPropSymbols(source)) {
29
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
30
+ target[prop] = source[prop];
31
+ }
32
+ return target;
33
+ };
34
+ function cn(...inputs) {
35
+ return twMerge(clsx(inputs));
36
+ }
37
+
38
+ // src/atoms/logo/logo.png
39
+ var logo_default = "../../logo-N622EUTF.png";
40
+ var Logo = forwardRef((_a, ref) => {
41
+ var _b = _a, {
42
+ size = 120,
43
+ variant = "default",
44
+ wordmarkOnly = false,
45
+ className,
46
+ alt = "Manta Seguros Logo",
47
+ src
48
+ } = _b, props = __objRest(_b, [
49
+ "size",
50
+ "variant",
51
+ "wordmarkOnly",
52
+ "className",
53
+ "alt",
54
+ "src"
55
+ ]);
56
+ const getVariantFilter = () => {
57
+ switch (variant) {
58
+ case "white":
59
+ return "brightness(0) invert(1)";
60
+ // Convert to white
61
+ case "dark":
62
+ return "brightness(0) saturate(100%)";
63
+ // Convert to black
64
+ default:
65
+ return "none";
66
+ }
67
+ };
68
+ const logoStyles = __spreadValues({
69
+ width: typeof size === "number" ? `${size}px` : size,
70
+ height: "auto",
71
+ filter: getVariantFilter(),
72
+ maxWidth: "100%"
73
+ }, props.style);
74
+ const logoSrc = src || logo_default;
75
+ return /* @__PURE__ */ jsx(
76
+ "img",
77
+ __spreadValues({
78
+ ref,
79
+ src: logoSrc,
80
+ alt,
81
+ className: cn("logo", className),
82
+ style: logoStyles
83
+ }, props)
84
+ );
85
+ });
86
+ Logo.displayName = "Logo";
87
+
88
+ export { Logo };
package/dist/index.d.mts CHANGED
@@ -14,11 +14,13 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
14
14
  import { ReactNode } from 'react';
15
15
  export { classNames } from './utils/classNames.mjs';
16
16
  export { cn } from './utils/cn.mjs';
17
+ export { Avatar, AvatarSkeleton } from './atoms/avatar/index.mjs';
17
18
  export { Badge, BadgeProps, badgeVariants } from './atoms/badge/index.mjs';
18
19
  export { Button, ButtonProps } from './atoms/button/index.mjs';
19
20
  export { Checkbox } from './atoms/checkbox/index.mjs';
20
21
  export { Input } from './atoms/input/index.mjs';
21
22
  export { Label } from './atoms/label/index.mjs';
23
+ export { Logo, LogoProps } from './atoms/logo/index.mjs';
22
24
  export { RadioGroup, RadioGroupItem } from './atoms/radio/index.mjs';
23
25
  export { Switch } from './atoms/switch/index.mjs';
24
26
  export { Tag, TagProps } from './atoms/tag/index.mjs';
package/dist/index.d.ts CHANGED
@@ -14,11 +14,13 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
14
14
  import { ReactNode } from 'react';
15
15
  export { classNames } from './utils/classNames.js';
16
16
  export { cn } from './utils/cn.js';
17
+ export { Avatar, AvatarSkeleton } from './atoms/avatar/index.js';
17
18
  export { Badge, BadgeProps, badgeVariants } from './atoms/badge/index.js';
18
19
  export { Button, ButtonProps } from './atoms/button/index.js';
19
20
  export { Checkbox } from './atoms/checkbox/index.js';
20
21
  export { Input } from './atoms/input/index.js';
21
22
  export { Label } from './atoms/label/index.js';
23
+ export { Logo, LogoProps } from './atoms/logo/index.js';
22
24
  export { RadioGroup, RadioGroupItem } from './atoms/radio/index.js';
23
25
  export { Switch } from './atoms/switch/index.js';
24
26
  export { Tag, TagProps } from './atoms/tag/index.js';