@ingamigo/ui 1.2.1 → 1.2.2

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,9 @@
1
+ import type { HTMLAttributes } from "react";
2
+ export interface LogoProps extends HTMLAttributes<HTMLDivElement> {
3
+ service?: string;
4
+ animate?: boolean;
5
+ size?: "small" | "medium" | "large";
6
+ }
7
+ declare const Logo: ({ service, animate, size, ...props }: LogoProps) => import("react").JSX.Element;
8
+ export default Logo;
9
+ //# sourceMappingURL=logo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logo.d.ts","sourceRoot":"","sources":["../../../src/components/logo/logo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAoB5C,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC/D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;CACrC;AA+BD,QAAA,MAAM,IAAI,GAAI,sCAKX,SAAS,gCA4FX,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,77 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useEffect, useState } from "react";
3
+ import { StyledBrandAccent, StyledBrandText, StyledDivider, StyledDrumContainer, StyledDrumTrack, StyledLogoContainer, StyledPrefixText, StyledPrefixWrapper, StyledSvgIcon, } from "./logo.styles";
4
+ const ALL_SERVICES = ["Услуги", "Облако", "VPN", "Инфраструктура", "Аналитика"];
5
+ const DRUM_ROUNDS = 2;
6
+ const DRUM_DURATION = 1800;
7
+ const shuffle = (source) => {
8
+ const copy = [...source];
9
+ for (let i = copy.length - 1; i > 0; i -= 1) {
10
+ const j = Math.floor(Math.random() * (i + 1));
11
+ [copy[i], copy[j]] = [copy[j], copy[i]];
12
+ }
13
+ return copy;
14
+ };
15
+ const buildDrumList = (target) => {
16
+ const pool = ALL_SERVICES.filter((item) => item !== target);
17
+ if (pool.length === 0)
18
+ return [target];
19
+ const list = [];
20
+ let previous = null;
21
+ for (let round = 0; round < DRUM_ROUNDS; round += 1) {
22
+ const batch = shuffle(pool);
23
+ if (previous !== null && batch[0] === previous) {
24
+ [batch[0], batch[batch.length - 1]] = [batch[batch.length - 1], batch[0]];
25
+ }
26
+ list.push(...batch);
27
+ previous = batch[batch.length - 1];
28
+ }
29
+ list.push(target);
30
+ return list;
31
+ };
32
+ const Logo = ({ service = "", animate = false, size = "medium", ...props }) => {
33
+ const [prevService, setPrevService] = useState(service);
34
+ const [prevAnimate, setPrevAnimate] = useState(animate);
35
+ const [items, setItems] = useState(() => (service ? [service] : []));
36
+ const [offset, setOffset] = useState(0);
37
+ const [isScrolling, setIsScrolling] = useState(false);
38
+ const [triggerAnimation, setTriggerAnimation] = useState(false);
39
+ if (service !== prevService || animate !== prevAnimate) {
40
+ setPrevService(service);
41
+ setPrevAnimate(animate);
42
+ if (!animate || !service) {
43
+ setItems(service ? [service] : []);
44
+ setOffset(0);
45
+ setIsScrolling(false);
46
+ setTriggerAnimation(false);
47
+ }
48
+ else {
49
+ const list = buildDrumList(service);
50
+ setItems(list);
51
+ setOffset(0);
52
+ setIsScrolling(false);
53
+ setTriggerAnimation(true);
54
+ }
55
+ }
56
+ useEffect(() => {
57
+ if (!triggerAnimation) {
58
+ return;
59
+ }
60
+ let raf1 = 0;
61
+ let raf2 = 0;
62
+ raf1 = requestAnimationFrame(() => {
63
+ raf2 = requestAnimationFrame(() => {
64
+ setIsScrolling(true);
65
+ setOffset(items.length - 1);
66
+ setTriggerAnimation(false);
67
+ });
68
+ });
69
+ return () => {
70
+ cancelAnimationFrame(raf1);
71
+ cancelAnimationFrame(raf2);
72
+ };
73
+ }, [triggerAnimation, items.length]);
74
+ return (_jsxs(StyledLogoContainer, { size: size, ...props, children: [_jsxs(StyledSvgIcon, { size: size, viewBox: "0 0 480 481", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { className: "green-part", d: "M10.5688 180.779C10.5688 148.829 36.4688 122.929 68.418 122.929V122.929C84.3926 122.929 97.3426 135.879 97.3426 151.854V480.593H60.5689C32.9546 480.593 10.5688 458.207 10.5688 430.593V180.779Z" }), _jsx("path", { className: "green-part", d: "M55.1756 211.45C34.6709 186.556 38.229 149.753 63.1229 129.248V129.248C71.0889 122.687 82.8658 123.825 89.4273 131.791L287.986 372.853L267.082 390.072C245.767 407.629 214.256 404.582 196.699 383.267L55.1756 211.45Z" }), _jsx("circle", { className: "green-part", cx: "53.9553", cy: "53.9553", r: "53.9553" }), _jsx("path", { className: "blue-part", d: "M469.323 180.779C469.323 148.829 443.423 122.929 411.474 122.929V122.929C395.499 122.929 382.549 135.879 382.549 151.854V480.593H419.323C446.937 480.593 469.323 458.207 469.323 430.593V180.779Z" }), _jsx("path", { className: "blue-part", d: "M429.17 206.041C447.214 184.134 444.083 151.748 422.177 133.703V133.703C411.223 124.681 395.03 126.247 386.008 137.2L209.097 351.981C195.564 368.411 197.912 392.701 214.342 406.234V406.234C230.772 419.767 255.062 417.418 268.595 400.988L429.17 206.041Z" }), _jsx("circle", { className: "blue-part", cx: "53.9553", cy: "53.9553", r: "53.9553", transform: "matrix(-1 0 0 1 479.891 0)" })] }), _jsx(StyledBrandText, { size: size, children: _jsx(StyledBrandAccent, { children: "ingAmigo" }) }), items.length > 0 && (_jsxs(StyledPrefixWrapper, { children: [_jsx(StyledDivider, { size: size, children: "|" }), _jsx(StyledDrumContainer, { size: size, children: _jsx(StyledDrumTrack, { size: size, offset: offset, isScrolling: isScrolling, duration: DRUM_DURATION, children: items.map((item, index) => (_jsx(StyledPrefixText, { size: size, children: item }, `${item}-${index}`))) }) })] }))] }));
75
+ };
76
+ export default Logo;
77
+ //# sourceMappingURL=logo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logo.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IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,aAAa,YAEtB,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAC1B,KAAC,gBAAgB,IAA0B,IAAI,EAAE,IAAI,YAClD,IAAI,IADgB,GAAG,IAAI,IAAI,KAAK,EAAE,CAEtB,CACpB,CAAC,GACc,GACE,IACF,CACvB,IACmB,CACvB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,56 @@
1
+ type LogoSize = "small" | "medium" | "large";
2
+ export declare const StyledLogoContainer: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme;
4
+ as?: React.ElementType;
5
+ } & {
6
+ size: LogoSize;
7
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
8
+ export declare const StyledSvgIcon: import("@emotion/styled").StyledComponent<{
9
+ theme?: import("@emotion/react").Theme;
10
+ as?: React.ElementType;
11
+ } & {
12
+ size: LogoSize;
13
+ }, import("react").SVGProps<SVGSVGElement>, {}>;
14
+ export declare const StyledBrandText: import("@emotion/styled").StyledComponent<{
15
+ theme?: import("@emotion/react").Theme;
16
+ as?: React.ElementType;
17
+ } & {
18
+ size: LogoSize;
19
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
20
+ export declare const StyledBrandAccent: import("@emotion/styled").StyledComponent<{
21
+ theme?: import("@emotion/react").Theme;
22
+ as?: React.ElementType;
23
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
24
+ export declare const StyledPrefixWrapper: import("@emotion/styled").StyledComponent<{
25
+ theme?: import("@emotion/react").Theme;
26
+ as?: React.ElementType;
27
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
28
+ export declare const StyledDivider: import("@emotion/styled").StyledComponent<{
29
+ theme?: import("@emotion/react").Theme;
30
+ as?: React.ElementType;
31
+ } & {
32
+ size: LogoSize;
33
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
34
+ export declare const StyledDrumContainer: import("@emotion/styled").StyledComponent<{
35
+ theme?: import("@emotion/react").Theme;
36
+ as?: React.ElementType;
37
+ } & {
38
+ size: LogoSize;
39
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
40
+ export declare const StyledDrumTrack: import("@emotion/styled").StyledComponent<{
41
+ theme?: import("@emotion/react").Theme;
42
+ as?: React.ElementType;
43
+ } & {
44
+ size: LogoSize;
45
+ offset: number;
46
+ isScrolling: boolean;
47
+ duration: number;
48
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
49
+ export declare const StyledPrefixText: import("@emotion/styled").StyledComponent<{
50
+ theme?: import("@emotion/react").Theme;
51
+ as?: React.ElementType;
52
+ } & {
53
+ size: LogoSize;
54
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
55
+ export {};
56
+ //# sourceMappingURL=logo.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logo.styles.d.ts","sourceRoot":"","sources":["../../../src/components/logo/logo.styles.ts"],"names":[],"mappings":"AAEA,KAAK,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAc7C,eAAO,MAAM,mBAAmB;;;;UAErB,QAAQ;yGAKlB,CAAC;AAGF,eAAO,MAAM,aAAa;;;;UAAsB,QAAQ;+CAuBvD,CAAC;AAEF,eAAO,MAAM,eAAe;;;;UAAuB,QAAQ;2GAiB1D,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;2GAE7B,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;yGAG/B,CAAC;AAEF,eAAO,MAAM,aAAa;;;;UAAuB,QAAQ;2GAgBxD,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;UAAsB,QAAQ;yGAK7D,CAAC;AAEF,eAAO,MAAM,eAAe;;;;UAMjB,QAAQ;YAAU,MAAM;iBAAe,OAAO;cAAY,MAAM;yGAS1E,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;UAAuB,QAAQ;2GAmB3D,CAAC"}
@@ -0,0 +1,127 @@
1
+ import styled from "@emotion/styled";
2
+ const sizeHeight = (size) => {
3
+ switch (size) {
4
+ case "small":
5
+ return 24;
6
+ case "large":
7
+ return 48;
8
+ case "medium":
9
+ default:
10
+ return 32;
11
+ }
12
+ };
13
+ export const StyledLogoContainer = styled("div", {
14
+ shouldForwardProp: (prop) => prop !== "size",
15
+ }) `
16
+ display: inline-flex;
17
+ align-items: center;
18
+ font-family: ${({ theme }) => theme.typography.fontFamily};
19
+ user-select: none;
20
+ `;
21
+ export const StyledSvgIcon = styled.svg `
22
+ flex-shrink: 0;
23
+
24
+ margin-right: ${({ theme }) => theme.spacing[3]};
25
+
26
+ .green-part {
27
+ fill: #00ff22;
28
+ }
29
+ .blue-part {
30
+ fill: #006fff;
31
+ }
32
+
33
+ ${({ size }) => {
34
+ switch (size) {
35
+ case "small":
36
+ return { width: "24px", height: "24px" };
37
+ case "large":
38
+ return { width: "56px", height: "56px" };
39
+ case "medium":
40
+ default:
41
+ return { width: "40px", height: "40px" };
42
+ }
43
+ }}
44
+ `;
45
+ export const StyledBrandText = styled.span `
46
+ color: ${({ theme }) => theme.text.primary};
47
+ font-weight: ${({ theme }) => theme.semanticTypography.fontWeight.label};
48
+ letter-spacing: -0.5px;
49
+ line-height: 1;
50
+
51
+ ${({ theme, size }) => {
52
+ switch (size) {
53
+ case "small":
54
+ return { fontSize: theme.semanticTypography.fontSize.bodyLg };
55
+ case "large":
56
+ return { fontSize: theme.semanticTypography.fontSize.heading1 };
57
+ case "medium":
58
+ default:
59
+ return { fontSize: theme.semanticTypography.fontSize.heading3 };
60
+ }
61
+ }}
62
+ `;
63
+ export const StyledBrandAccent = styled.span `
64
+ font-weight: 700;
65
+ `;
66
+ export const StyledPrefixWrapper = styled.div `
67
+ display: flex;
68
+ align-items: center;
69
+ `;
70
+ export const StyledDivider = styled.span `
71
+ font-weight: 300;
72
+ line-height: 2;
73
+ margin: 0 ${({ theme }) => theme.spacing[3]};
74
+
75
+ ${({ theme, size }) => {
76
+ switch (size) {
77
+ case "small":
78
+ return { fontSize: theme.semanticTypography.fontSize.bodyLg };
79
+ case "large":
80
+ return { fontSize: theme.semanticTypography.fontSize.heading1 };
81
+ case "medium":
82
+ default:
83
+ return { fontSize: theme.semanticTypography.fontSize.heading3 };
84
+ }
85
+ }}
86
+ `;
87
+ export const StyledDrumContainer = styled.div `
88
+ overflow: hidden;
89
+ position: relative;
90
+ display: flex;
91
+ height: ${({ size }) => sizeHeight(size)}px;
92
+ `;
93
+ export const StyledDrumTrack = styled("div", {
94
+ shouldForwardProp: (prop) => prop !== "size" &&
95
+ prop !== "offset" &&
96
+ prop !== "isScrolling" &&
97
+ prop !== "duration",
98
+ }) `
99
+ display: flex;
100
+ flex-direction: column;
101
+ will-change: transform;
102
+ transform: translateY(${({ size, offset }) => -offset * sizeHeight(size)}px);
103
+ transition: ${({ isScrolling, duration }) => isScrolling
104
+ ? `transform ${duration}ms cubic-bezier(0.16, 1, 0.3, 1)`
105
+ : "none"};
106
+ `;
107
+ export const StyledPrefixText = styled.span `
108
+ display: block;
109
+ white-space: nowrap;
110
+ color: ${({ theme }) => theme.text.primary};
111
+ font-weight: 200;
112
+ height: ${({ size }) => sizeHeight(size)}px;
113
+ line-height: ${({ size }) => sizeHeight(size)}px;
114
+
115
+ ${({ theme, size }) => {
116
+ switch (size) {
117
+ case "small":
118
+ return { fontSize: theme.semanticTypography.fontSize.bodyLg };
119
+ case "large":
120
+ return { fontSize: theme.semanticTypography.fontSize.heading1 };
121
+ case "medium":
122
+ default:
123
+ return { fontSize: theme.semanticTypography.fontSize.heading1 };
124
+ }
125
+ }}
126
+ `;
127
+ //# sourceMappingURL=logo.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logo.styles.js","sourceRoot":"","sources":["../../../src/components/logo/logo.styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAIrC,MAAM,UAAU,GAAG,CAAC,IAAc,EAAU,EAAE;IAC5C,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,OAAO;YACV,OAAO,EAAE,CAAC;QACZ,KAAK,OAAO;YACV,OAAO,EAAE,CAAC;QACZ,KAAK,QAAQ,CAAC;QACd;YACE,OAAO,EAAE,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,KAAK,EAAE;IAC/C,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,MAAM;CAC7C,CAAC,CAAoB;;;iBAGL,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,UAAU;;CAE1D,CAAC;AAGF,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAoB;;;kBAGzC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;;;;;;;;;IAS7C,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;IACb,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,OAAO;YACV,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;QAC3C,KAAK,OAAO;YACV,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;QAC3C,KAAK,QAAQ,CAAC;QACd;YACE,OAAO,EAAE,KAAK,EAAE,MAAM,EA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AAE,IAAI,EAAE,EAAE,EAAE;IACpB,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,OAAO;YACV,OAAO,EAAE,QAAQ,EAAE,KAAK,CAAC,kBAAkB,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;QAChE,KAAK,OAAO;YACV,OAAO,EAAE,QAAQ,EAAE,KAAK,CAAC,kBAAkB,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC;QAClE,KAAK,QAAQ,CAAC;QACd;YACE,OAAO,EAAE,QAAQ,EAAE,KAAK,CAAC,kBAAkB,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC;IACpE,CAAC;AACH,CAAC;CACF,CAAC"}
package/dist/index.d.ts CHANGED
@@ -5,6 +5,7 @@ export { default as Button } from "./components/button/button";
5
5
  export { default as Input } from "./components/input/input";
6
6
  export { default as Typography } from "./components/typography/typography";
7
7
  export { default as SegmentedControl } from "./components/segmented-control/segmented-control";
8
+ export { default as Logo } from "./components/logo/logo";
8
9
  export type { ButtonProps } from "./components/button/button";
9
10
  export type { InputProps } from "./components/input/input";
10
11
  export type { TypographyProps, TypographyVariant, } from "./components/typography/typography";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;AAE/F,YAAY,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAC3D,YAAY,EACV,eAAe,EACf,iBAAiB,GAClB,MAAM,oCAAoC,CAAC;AAE5C,YAAY,EACV,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,kDAAkD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;AAC/F,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,wBAAwB,CAAA;AAExD,YAAY,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAC3D,YAAY,EACV,eAAe,EACf,iBAAiB,GAClB,MAAM,oCAAoC,CAAC;AAE5C,YAAY,EACV,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,kDAAkD,CAAC"}
package/dist/index.js CHANGED
@@ -5,4 +5,5 @@ export { default as Button } from "./components/button/button";
5
5
  export { default as Input } from "./components/input/input";
6
6
  export { default as Typography } from "./components/typography/typography";
7
7
  export { default as SegmentedControl } from "./components/segmented-control/segmented-control";
8
+ export { default as Logo } from "./components/logo/logo";
8
9
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAGhC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,kDAAkD,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAGhC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;AAC/F,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,wBAAwB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ingamigo/ui",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "UI component library and design system for IngAmigo",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",