@code0-tech/pictor 0.13.1 → 0.14.0

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.
package/LICENSE CHANGED
@@ -1,27 +1,7 @@
1
1
  Copyright 2023-2026 Code0 UG (haftungsbeschränkt)
2
2
 
3
- This license applies to all files in this repository EXCEPT the contents of the
4
- directory "src/components/icon/codezero" (and any build artifacts derived from
5
- it), which are governed by the "Excluded Assets" section at the bottom of this
6
- file.
7
-
8
3
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
9
4
 
10
5
  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
11
6
 
12
7
  THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
13
-
14
- ---
15
-
16
- Excluded Assets
17
-
18
- The contents of the directory "src/components/icon/codezero" (and any build
19
- artifacts derived from it, such as the corresponding files in the published
20
- package) are NOT covered by the MIT license above. These files include brand
21
- logos and trademarks that are the property of their respective owners and are
22
- used by Code0 UG (haftungsbeschränkt) under permission.
23
-
24
- No license or right to use, copy, modify, distribute, sublicense, or otherwise
25
- exploit these excluded assets is granted to any third party. All rights are
26
- reserved by their respective owners. Any use of these assets requires the prior
27
- written permission of the respective rights holder.
@@ -1 +1 @@
1
- .toast{padding:1rem;width:100%;overflow:hidden}.toast{border-radius:1rem;font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px}.toast__header{align-items:flex-start;justify-content:space-between;gap:.7rem}.toast__icon{display:flex;align-items:center;justify-content:center}.toast__content{box-sizing:border-box;margin-left:27px}.toast__header-wrapper{align-items:flex-start;gap:.7rem}.toast__header-wrapper>svg{min-width:1rem;min-height:1rem}.toast__dismissible{cursor:pointer;display:flex;align-items:center;justify-content:center}.toast__dismissible{border-radius:1rem}.toast__dismissible svg{min-width:1rem;min-height:1rem}@keyframes toast-duration{0%{width:0%}to{width:100%}}.toast:hover .toast__duration:after{animation-play-state:paused}.toast__duration{position:relative;margin:1rem -1rem -1rem;padding:.35rem 1rem .6rem;gap:.35rem}.toast__duration{border-top:1px solid rgba(191,191,191,.1)}.toast__duration:after{content:"";position:absolute;left:0;bottom:0;width:0%;height:4px;background:#bfbfbf1a;animation-name:toast-duration;animation-duration:var(--toast-duration, 4s);animation-timing-function:linear;animation-fill-mode:forwards}.toast--primary{background:#070514;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box}.toast--secondary{background:#191825;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box}.toast--tertiary{background:#201e2c;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box}.toast--success{background:#0a1814;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box}.toast--warning{background:#201813;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box}.toast--error{background:#1c0516;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box}.toast--info{background:#121e24;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box}
1
+ .toast{padding:1rem;width:100%;overflow:hidden}.toast{border-radius:1rem;font-family:Inter,sans-serif;font-weight:400;letter-spacing:-.5px}.toast__header{align-items:flex-start;justify-content:space-between;gap:.7rem}.toast__icon{display:flex;align-items:center;justify-content:center}.toast__content{box-sizing:border-box;margin-left:27px;margin-top:.35rem}.toast__header-wrapper{align-items:center;gap:.7rem}.toast__header-wrapper>svg{min-width:1rem;min-height:1rem}.toast--primary{background:#070514;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;border:1px solid rgba(191,191,191,.1);color:#070514}.toast--secondary{background:#070514;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;border:1px solid rgba(191,191,191,.1);color:#bfbfbf}.toast--tertiary{background:#070514;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;border:1px solid rgba(191,191,191,.1);color:#fff}.toast--success{background:#070514;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;border:1px solid rgba(191,191,191,.1);color:#29bf12}.toast--warning{background:#070514;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;border:1px solid rgba(191,191,191,.1);color:#ffbe0b}.toast--error{background:#070514;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;border:1px solid rgba(191,191,191,.1);color:#d90429}.toast--info{background:#070514;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;border:1px solid rgba(191,191,191,.1);color:#70ffb2}
@@ -53,7 +53,7 @@ const j = (i) => {
53
53
  let e;
54
54
  t[2] !== i.showCloseButton || t[3] !== i.title ? (e = i.showCloseButton && /* @__PURE__ */ f(d, { align: "center", justify: "space-between", children: [
55
55
  /* @__PURE__ */ n(_, { hierarchy: "primary", size: "xl", children: i.title }),
56
- /* @__PURE__ */ n(u, { asChild: !0, children: /* @__PURE__ */ n(m, { children: /* @__PURE__ */ n(g, { size: 16 }) }) })
56
+ /* @__PURE__ */ n(u, { asChild: !0, children: /* @__PURE__ */ n(m, { variant: "none", color: "tertiary", children: /* @__PURE__ */ n(g, { size: 16 }) }) })
57
57
  ] }), t[2] = i.showCloseButton, t[3] = i.title, t[4] = e) : e = t[4];
58
58
  let a;
59
59
  return t[5] !== i.children || t[6] !== o || t[7] !== e ? (a = /* @__PURE__ */ f(s.Content, { ...o, children: [
@@ -4,10 +4,11 @@ export interface ToastProps extends Omit<Component<HTMLDivElement>, "title" | "i
4
4
  children?: React.ReactNode | React.ReactNode[];
5
5
  id: string | number;
6
6
  title: React.ReactNode;
7
- color?: Color;
8
- dismissible?: boolean;
9
- onClose?: (event: React.MouseEvent<HTMLSpanElement, MouseEvent>) => void;
7
+ color?: Color | (string & {});
8
+ icon?: React.ReactNode;
10
9
  duration?: number;
11
10
  }
12
- export declare function toast(toast: Omit<ToastProps, 'id'>): string | number;
11
+ export declare function toast({ wrapper, ...toast }: Omit<ToastProps, 'id'> & {
12
+ wrapper?: (children: React.ReactNode) => React.ReactNode;
13
+ }): string | number;
13
14
  export declare function Toast(props: ToastProps): React.JSX.Element;
@@ -1,67 +1,86 @@
1
- import { jsxs as r, jsx as o } from "react/jsx-runtime";
2
- import { c as p } from "../../_virtual/compiler-runtime.js";
3
- import { toast as d } from "sonner";
1
+ import { jsxs as N, jsx as o, Fragment as v } from "react/jsx-runtime";
2
+ import { c as z } from "../../_virtual/compiler-runtime.js";
3
+ import { toast as T } from "sonner";
4
4
  import '../../assets/components/toast/Toast.style.css';/* empty css */
5
5
  import "../../utils/contextStore.js";
6
6
  import "react";
7
- import { mergeComponentProps as f } from "../../utils/component.js";
7
+ import { mergeComponentProps as j } from "../../utils/component.js";
8
8
  import "js-md5";
9
- import { IconX as u, IconCircleX as N, IconAlertCircle as y, IconCircleCheck as z, IconInfoCircle as C, IconCircleDot as a } from "@tabler/icons-react";
10
- import { Text as c } from "../text/Text.js";
11
- import { Flex as n } from "../flex/Flex.js";
12
- import { Button as x } from "../button/Button.js";
13
- function E(s) {
14
- return d.custom((e) => /* @__PURE__ */ o(I, { id: e, ...s, children: s.children }), {
15
- duration: s.duration ?? 4e3
9
+ import { IconCircleX as w, IconAlertCircle as F, IconCircleCheck as P, IconInfoCircle as S, IconCircleDot as u } from "@tabler/icons-react";
10
+ import { Text as b } from "../text/Text.js";
11
+ import { Flex as C } from "../flex/Flex.js";
12
+ const k = ["primary", "secondary", "tertiary", "info", "success", "warning", "error"], A = (r) => k.includes(r);
13
+ function U({
14
+ wrapper: r,
15
+ ...e
16
+ }) {
17
+ return T.custom((s) => {
18
+ const t = /* @__PURE__ */ o(D, { id: s, ...e, children: e.children });
19
+ return /* @__PURE__ */ o(v, { children: r ? r(t) : t });
20
+ }, {
21
+ duration: e.duration ?? 4e3
16
22
  });
17
23
  }
18
- function I(s) {
19
- const {
20
- dismissible: e = !1,
21
- color: t = "secondary",
22
- title: i,
23
- onClose: _ = () => {
24
- },
25
- children: l,
26
- duration: m = 4e3,
27
- ...h
28
- } = s;
29
- return /* @__PURE__ */ r("div", { ...f(`toast toast--${t}`, h), children: [
30
- /* @__PURE__ */ r(n, { className: "toast__header", children: [
31
- /* @__PURE__ */ r(n, { className: "toast__header-wrapper", children: [
32
- t && /* @__PURE__ */ o(g, { color: t }),
33
- /* @__PURE__ */ o(c, { size: "md", children: i })
34
- ] }),
35
- e && /* @__PURE__ */ o(x, { variant: "none", paddingSize: "xxs", color: t, className: "toast__dismissible", onClick: () => d.dismiss(s.id), children: /* @__PURE__ */ o(u, { size: 16 }) })
36
- ] }),
37
- l && /* @__PURE__ */ o("div", { className: "toast__content", children: l }),
38
- /* @__PURE__ */ r(n, { className: "toast__duration", style: {
39
- "--toast-duration": `${m}ms`
40
- }, children: [
41
- /* @__PURE__ */ o(c, { hierarchy: "tertiary", children: "This message will close in" }),
42
- " ",
43
- /* @__PURE__ */ o(c, { hierarchy: "primary", children: m / 1e3 }),
44
- " ",
45
- /* @__PURE__ */ o(c, { children: "seconds" })
46
- ] })
47
- ] });
24
+ function D(r) {
25
+ const e = z.c(24);
26
+ let s, t, i, c, n, l;
27
+ if (e[0] !== r) {
28
+ const {
29
+ color: h,
30
+ icon: I,
31
+ title: x,
32
+ children: g,
33
+ duration: R,
34
+ ...y
35
+ } = r;
36
+ i = I, l = x, s = g, t = h === void 0 ? "secondary" : h;
37
+ let p;
38
+ e[7] !== t ? (p = A(t), e[7] = t, e[8] = p) : p = e[8], c = p;
39
+ const $ = c ? {} : {
40
+ style: {
41
+ color: t,
42
+ ...y.style
43
+ }
44
+ };
45
+ n = j(`toast toast--${c ? t : "secondary"}`, {
46
+ ...y,
47
+ ...$
48
+ }), e[0] = r, e[1] = s, e[2] = t, e[3] = i, e[4] = c, e[5] = n, e[6] = l;
49
+ } else
50
+ s = e[1], t = e[2], i = e[3], c = e[4], n = e[5], l = e[6];
51
+ let a;
52
+ e[9] !== t || e[10] !== i || e[11] !== c ? (a = i ?? (c && /* @__PURE__ */ o(E, { color: t })), e[9] = t, e[10] = i, e[11] = c, e[12] = a) : a = e[12];
53
+ let m;
54
+ e[13] !== l ? (m = /* @__PURE__ */ o(b, { size: "md", hierarchy: "primary", children: l }), e[13] = l, e[14] = m) : m = e[14];
55
+ let d;
56
+ e[15] !== a || e[16] !== m ? (d = /* @__PURE__ */ o(C, { className: "toast__header", children: /* @__PURE__ */ N(C, { className: "toast__header-wrapper", children: [
57
+ a,
58
+ m
59
+ ] }) }), e[15] = a, e[16] = m, e[17] = d) : d = e[17];
60
+ let _;
61
+ e[18] !== s ? (_ = s && /* @__PURE__ */ o("div", { className: "toast__content", children: s }), e[18] = s, e[19] = _) : _ = e[19];
62
+ let f;
63
+ return e[20] !== n || e[21] !== d || e[22] !== _ ? (f = /* @__PURE__ */ N("div", { ...n, children: [
64
+ d,
65
+ _
66
+ ] }), e[20] = n, e[21] = d, e[22] = _, e[23] = f) : f = e[23], f;
48
67
  }
49
- const g = (s) => {
50
- const e = p.c(1), {
51
- color: t
52
- } = s;
53
- let i;
54
- return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = {
55
- primary: /* @__PURE__ */ o(a, { className: "toast__icon", size: 16 }),
56
- secondary: /* @__PURE__ */ o(a, { className: "toast__icon", size: 16 }),
57
- tertiary: /* @__PURE__ */ o(a, { className: "toast__icon", size: 16 }),
58
- info: /* @__PURE__ */ o(C, { className: "toast__icon", size: 16 }),
59
- success: /* @__PURE__ */ o(z, { className: "toast__icon", size: 16 }),
60
- warning: /* @__PURE__ */ o(y, { className: "toast__icon", size: 16 }),
61
- error: /* @__PURE__ */ o(N, { className: "toast__icon", size: 16 })
62
- }, e[0] = i) : i = e[0], i[t] ?? null;
68
+ const E = (r) => {
69
+ const e = z.c(1), {
70
+ color: s
71
+ } = r;
72
+ let t;
73
+ return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = {
74
+ primary: /* @__PURE__ */ o(u, { className: "toast__icon", size: 16 }),
75
+ secondary: /* @__PURE__ */ o(u, { className: "toast__icon", size: 16 }),
76
+ tertiary: /* @__PURE__ */ o(u, { className: "toast__icon", size: 16 }),
77
+ info: /* @__PURE__ */ o(S, { className: "toast__icon", size: 16 }),
78
+ success: /* @__PURE__ */ o(P, { className: "toast__icon", size: 16 }),
79
+ warning: /* @__PURE__ */ o(F, { className: "toast__icon", size: 16 }),
80
+ error: /* @__PURE__ */ o(w, { className: "toast__icon", size: 16 })
81
+ }, e[0] = t) : t = e[0], t[s] ?? null;
63
82
  };
64
83
  export {
65
- I as Toast,
66
- E as toast
84
+ D as Toast,
85
+ U as toast
67
86
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code0-tech/pictor",
3
- "version": "0.13.1",
3
+ "version": "0.14.0",
4
4
  "type": "module",
5
5
  "description": "A simple template for a custom React component library",
6
6
  "scripts": {
@@ -1 +0,0 @@
1
- .island{background:#070514;box-shadow:inset 0 1px 1px #bfbfbf1a;border:none;color:#ffffffbf;position:relative;box-sizing:border-box;border-radius:1rem;cursor:pointer;overflow:hidden;max-width:max-content;min-height:max-content}.island *{box-sizing:border-box}.island__icon{--path-offset: 300%;display:inline-flex;padding-left:.7rem}.island__icon svg path{stroke-dasharray:300%;stroke-dashoffset:inherit}.island__message{padding-right:.7rem}.island__content{padding:.7rem;position:relative;width:100%;max-width:100%;height:100%;overflow:hidden}
@@ -1,6 +0,0 @@
1
- import { Component } from '../../utils';
2
- import { default as React } from 'react';
3
- export interface IslandProps extends Component<HTMLDivElement> {
4
- children?: React.ReactNode;
5
- }
6
- export declare const Island: React.FC<IslandProps>;
@@ -1,19 +0,0 @@
1
- import { default as React } from 'react';
2
- export interface IslandNotificationProps {
3
- id?: number;
4
- icon: React.ReactNode;
5
- message: React.ReactNode;
6
- content?: React.ReactNode;
7
- duration?: number;
8
- index?: number;
9
- }
10
- export declare const useIsland: import('zustand').UseBoundStore<import('zustand').StoreApi<{
11
- toasts: IslandNotificationProps[];
12
- addToast: (toast: IslandNotificationProps) => void;
13
- removeToast: (id: number) => void;
14
- }>>;
15
- export declare const addIslandNotification: (toast: IslandNotificationProps) => void;
16
- export declare const addIslandInfoNotification: (toast: Partial<IslandNotificationProps>) => void;
17
- export declare const addIslandSuccessNotification: (toast: Partial<IslandNotificationProps>) => void;
18
- export declare const addIslandWarningNotification: (toast: Partial<IslandNotificationProps>) => void;
19
- export declare const addIslandErrorNotification: (toast: Partial<IslandNotificationProps>) => void;
@@ -1,58 +0,0 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { create as n } from "zustand";
3
- import { IconCircleX as d, IconInfoCircle as r, IconCircleCheck as l, IconAlertCircle as m } from "@tabler/icons-react";
4
- import { Text as s } from "../text/Text.js";
5
- const t = n((o) => ({
6
- toasts: [],
7
- addToast: (a) => {
8
- const i = Date.now();
9
- o((c) => ({
10
- toasts: [...c.toasts, {
11
- id: i,
12
- ...a
13
- }]
14
- }));
15
- },
16
- removeToast: (a) => {
17
- o((i) => ({
18
- toasts: i.toasts.filter((c) => c.id !== a)
19
- }));
20
- }
21
- })), x = (o) => {
22
- t.getState().addToast(o);
23
- }, B = (o) => {
24
- t.getState().addToast({
25
- icon: /* @__PURE__ */ e(r, { color: "#70ffb2", size: 16 }),
26
- ...o,
27
- message: /* @__PURE__ */ e(s, { c: "#70ffb2", children: o.message })
28
- });
29
- }, F = (o) => {
30
- t.getState().addToast({
31
- icon: /* @__PURE__ */ e(l, { color: "#29BF12", size: 16 }),
32
- index: 1,
33
- ...o,
34
- message: /* @__PURE__ */ e(s, { c: "#29BF12", children: o.message })
35
- });
36
- }, S = (o) => {
37
- t.getState().addToast({
38
- icon: /* @__PURE__ */ e(m, { color: "#FFBE0B", size: 16 }),
39
- index: 2,
40
- ...o,
41
- message: /* @__PURE__ */ e(s, { c: "#FFBE0B", children: o.message })
42
- });
43
- }, h = (o) => {
44
- t.getState().addToast({
45
- icon: /* @__PURE__ */ e(d, { color: "#D90429", size: 16 }),
46
- index: 3,
47
- ...o,
48
- message: /* @__PURE__ */ e(s, { c: "#D90429", children: o.message })
49
- });
50
- };
51
- export {
52
- h as addIslandErrorNotification,
53
- B as addIslandInfoNotification,
54
- x as addIslandNotification,
55
- F as addIslandSuccessNotification,
56
- S as addIslandWarningNotification,
57
- t as useIsland
58
- };
@@ -1,71 +0,0 @@
1
- import { jsxs as h, jsx as i } from "react/jsx-runtime";
2
- import "../../utils/contextStore.js";
3
- import { useRef as a, useState as R, useCallback as v, useEffect as D } from "react";
4
- import { mergeComponentProps as k } from "../../utils/component.js";
5
- import "js-md5";
6
- import '../../assets/components/island/Island.style.css';/* empty css */
7
- import { Flex as E } from "../flex/Flex.js";
8
- import { useIsland as g } from "./Island.hook.js";
9
- import { motion as s } from "../../node_modules/framer-motion/dist/es/render/components/motion/proxy.js";
10
- const b = (x) => {
11
- const {
12
- children: T,
13
- ...I
14
- } = x, l = g((t) => t.toasts), m = g((t) => t.removeToast), o = a(null), f = a(0), n = a(4e3), [c, u] = R(!1), p = a(null), e = l.length > 0 ? l.reduce((t, y) => (y.index ?? 0) > (t.index ?? 0) ? y : t) : void 0, r = v(() => {
15
- o.current && (clearTimeout(o.current), o.current = null);
16
- }, []), d = v(() => {
17
- const t = e?.id;
18
- t && (r(), f.current = Date.now(), isFinite(n.current) && (o.current = setTimeout(() => {
19
- m(t);
20
- }, n.current)));
21
- }, [e?.id, m, r]);
22
- D(() => (e?.id ? (n.current = e?.duration ?? 4e3, d()) : (r(), u(!1)), () => r()), [e?.id, e?.duration, d, r]);
23
- const _ = () => {
24
- if (!e?.id) return;
25
- r();
26
- const t = Date.now() - f.current;
27
- n.current = Math.max(0, n.current - t), e?.content && u(!0);
28
- }, M = () => {
29
- u(!1), e?.id && n.current > 0 && d();
30
- };
31
- return /* @__PURE__ */ h(s.div, { layout: !0, onMouseEnter: _, onMouseLeave: M, transition: {
32
- type: "spring",
33
- stiffness: 300,
34
- damping: 20,
35
- mass: 0.8
36
- }, ...k("island", I), children: [
37
- /* @__PURE__ */ h(E, { align: "center", style: {
38
- gap: "0.35rem"
39
- }, ref: p, children: [
40
- e && /* @__PURE__ */ i(s.div, { layout: !0, initial: {
41
- y: 0,
42
- opacity: 1,
43
- strokeDashoffset: "300%"
44
- }, animate: {
45
- y: 0,
46
- opacity: 1,
47
- strokeDashoffset: "0%"
48
- }, transition: {
49
- duration: 0.75,
50
- ease: "easeInOut"
51
- }, className: "island__icon", children: e.icon }, e?.id),
52
- /* @__PURE__ */ i(s.div, { layout: !0, children: T }),
53
- e?.message && /* @__PURE__ */ i(s.div, { layout: !0, className: "island__message", children: e?.message })
54
- ] }, e?.id),
55
- /* @__PURE__ */ i("div", { style: {
56
- maxWidth: `${p.current?.offsetWidth}px`
57
- }, children: c && !!e?.content && /* @__PURE__ */ i(s.div, { initial: {
58
- y: 10,
59
- opacity: 0
60
- }, animate: {
61
- y: c && e?.content ? 0 : 100,
62
- opacity: c && e?.content ? 1 : 0
63
- }, transition: {
64
- duration: 0.25,
65
- ease: "easeInOut"
66
- }, className: "island__content", children: e?.content }) })
67
- ] });
68
- };
69
- export {
70
- b as Island
71
- };