@mediquo/medicore 0.3.1 → 0.4.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/dist/components/auth-panel/auth-panel.d.ts +10 -1
- package/dist/components/auth-panel/auth-panel.js +10 -0
- package/dist/components/auth-panel/auth-panel.js.map +1 -1
- package/dist/components/brand-bubbles/brand-bubbles.d.ts +16 -0
- package/dist/components/brand-bubbles/brand-bubbles.js +148 -0
- package/dist/components/brand-bubbles/brand-bubbles.js.map +1 -0
- package/dist/components/brand-bubbles/index.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/styles/tokens.css +25 -0
- package/package.json +1 -1
|
@@ -5,6 +5,12 @@ export interface AuthPanelProps extends Omit<ComponentProps<"div">, "children">
|
|
|
5
5
|
* (`scrim-brand`) always goes on top so the white headline reads over any image.
|
|
6
6
|
*/
|
|
7
7
|
imageSrc?: string;
|
|
8
|
+
/**
|
|
9
|
+
* A full-bleed decoration drawn with tokens instead of (or over) the photo: the
|
|
10
|
+
* `BrandBubbles`. It sits above the veil and under the headline, hidden from
|
|
11
|
+
* assistive technology.
|
|
12
|
+
*/
|
|
13
|
+
decoration?: ReactNode;
|
|
8
14
|
/**
|
|
9
15
|
* Optional context for the step: "Escribe tus datos exactamente como figuran en tu
|
|
10
16
|
* documento oficial." Don't repeat the form's title here. It is a `<p>`, not a
|
|
@@ -16,5 +22,8 @@ export interface AuthPanelProps extends Omit<ComponentProps<"div">, "children">
|
|
|
16
22
|
* Left panel of the access screens on desktop (≥1024px), 560px wide and full height.
|
|
17
23
|
* It doesn't exist on mobile: the form takes the whole screen, so hide it below
|
|
18
24
|
* `lg` in the layout (`className="hidden lg:flex"`).
|
|
25
|
+
*
|
|
26
|
+
* Without a photo, give it a `decoration` (`BrandBubbles`): a flat brand-dark block
|
|
27
|
+
* next to a form reads as unfinished.
|
|
19
28
|
*/
|
|
20
|
-
export declare function AuthPanel({ imageSrc, headline, className, ...props }: AuthPanelProps): React.JSX.Element;
|
|
29
|
+
export declare function AuthPanel({ imageSrc, decoration, headline, className, ...props }: AuthPanelProps): React.JSX.Element;
|
|
@@ -2,6 +2,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { cn } from "../../lib/cn.js";
|
|
3
3
|
function AuthPanel({
|
|
4
4
|
imageSrc,
|
|
5
|
+
decoration,
|
|
5
6
|
headline,
|
|
6
7
|
className,
|
|
7
8
|
...props
|
|
@@ -25,6 +26,15 @@ function AuthPanel({
|
|
|
25
26
|
}
|
|
26
27
|
),
|
|
27
28
|
/* @__PURE__ */ jsx("div", { "aria-hidden": true, className: "absolute inset-0 bg-scrim-brand" }),
|
|
29
|
+
decoration && /* @__PURE__ */ jsx(
|
|
30
|
+
"div",
|
|
31
|
+
{
|
|
32
|
+
"aria-hidden": true,
|
|
33
|
+
"data-slot": "auth-panel-decoration",
|
|
34
|
+
className: "pointer-events-none absolute inset-0 overflow-hidden",
|
|
35
|
+
children: decoration
|
|
36
|
+
}
|
|
37
|
+
),
|
|
28
38
|
headline && /* @__PURE__ */ jsx("p", { className: "relative text-heading-h2 text-text-inverse", children: headline })
|
|
29
39
|
]
|
|
30
40
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-panel.js","sources":["../../../src/components/auth-panel/auth-panel.tsx"],"sourcesContent":["import type { ComponentProps, ReactNode } from \"react\";\n\nimport { cn } from \"../../lib/cn\";\n\nexport interface AuthPanelProps\n extends Omit<ComponentProps<\"div\">, \"children\"> {\n /**\n * The photo, full-bleed. It is decorative: it renders with `alt=\"\"`. The brand veil\n * (`scrim-brand`) always goes on top so the white headline reads over any image.\n */\n imageSrc?: string;\n /**\n * Optional context for the step: \"Escribe tus datos exactamente como figuran en tu\n * documento oficial.\" Don't repeat the form's title here. It is a `<p>`, not a\n * heading.\n */\n headline?: ReactNode;\n}\n\n/**\n * Left panel of the access screens on desktop (≥1024px), 560px wide and full height.\n * It doesn't exist on mobile: the form takes the whole screen, so hide it below\n * `lg` in the layout (`className=\"hidden lg:flex\"`).\n */\nexport function AuthPanel({\n imageSrc,\n headline,\n className,\n ...props\n}: AuthPanelProps): React.JSX.Element {\n return (\n <div\n data-slot=\"auth-panel\"\n className={cn(\n \"relative flex w-140 shrink-0 flex-col justify-center overflow-hidden bg-brand-dark px-16\",\n className,\n )}\n {...props}\n >\n {imageSrc && (\n <img\n src={imageSrc}\n alt=\"\"\n className=\"absolute inset-0 size-full object-cover\"\n />\n )}\n <div aria-hidden className=\"absolute inset-0 bg-scrim-brand\" />\n {headline && (\n <p className=\"relative text-heading-h2 text-text-inverse\">{headline}</p>\n )}\n </div>\n );\n}\n"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"auth-panel.js","sources":["../../../src/components/auth-panel/auth-panel.tsx"],"sourcesContent":["import type { ComponentProps, ReactNode } from \"react\";\n\nimport { cn } from \"../../lib/cn\";\n\nexport interface AuthPanelProps\n extends Omit<ComponentProps<\"div\">, \"children\"> {\n /**\n * The photo, full-bleed. It is decorative: it renders with `alt=\"\"`. The brand veil\n * (`scrim-brand`) always goes on top so the white headline reads over any image.\n */\n imageSrc?: string;\n /**\n * A full-bleed decoration drawn with tokens instead of (or over) the photo: the\n * `BrandBubbles`. It sits above the veil and under the headline, hidden from\n * assistive technology.\n */\n decoration?: ReactNode;\n /**\n * Optional context for the step: \"Escribe tus datos exactamente como figuran en tu\n * documento oficial.\" Don't repeat the form's title here. It is a `<p>`, not a\n * heading.\n */\n headline?: ReactNode;\n}\n\n/**\n * Left panel of the access screens on desktop (≥1024px), 560px wide and full height.\n * It doesn't exist on mobile: the form takes the whole screen, so hide it below\n * `lg` in the layout (`className=\"hidden lg:flex\"`).\n *\n * Without a photo, give it a `decoration` (`BrandBubbles`): a flat brand-dark block\n * next to a form reads as unfinished.\n */\nexport function AuthPanel({\n imageSrc,\n decoration,\n headline,\n className,\n ...props\n}: AuthPanelProps): React.JSX.Element {\n return (\n <div\n data-slot=\"auth-panel\"\n className={cn(\n \"relative flex w-140 shrink-0 flex-col justify-center overflow-hidden bg-brand-dark px-16\",\n className,\n )}\n {...props}\n >\n {imageSrc && (\n <img\n src={imageSrc}\n alt=\"\"\n className=\"absolute inset-0 size-full object-cover\"\n />\n )}\n <div aria-hidden className=\"absolute inset-0 bg-scrim-brand\" />\n {decoration && (\n <div\n aria-hidden\n data-slot=\"auth-panel-decoration\"\n className=\"pointer-events-none absolute inset-0 overflow-hidden\"\n >\n {decoration}\n </div>\n )}\n {headline && (\n <p className=\"relative text-heading-h2 text-text-inverse\">{headline}</p>\n )}\n </div>\n );\n}\n"],"names":[],"mappings":";;AAiCO,SAAS,UAAU;AAAA,EACxB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAsC;AACpC,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAW;AAAA,QACT;AAAA,QACA;AAAA,MAAA;AAAA,MAED,GAAG;AAAA,MAEH,UAAA;AAAA,QAAA,YACC;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,KAAK;AAAA,YACL,KAAI;AAAA,YACJ,WAAU;AAAA,UAAA;AAAA,QAAA;AAAA,QAGd,oBAAC,OAAA,EAAI,eAAW,MAAC,WAAU,mCAAkC;AAAA,QAC5D,cACC;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,eAAW;AAAA,YACX,aAAU;AAAA,YACV,WAAU;AAAA,YAET,UAAA;AAAA,UAAA;AAAA,QAAA;AAAA,QAGJ,YACC,oBAAC,KAAA,EAAE,WAAU,8CAA8C,UAAA,SAAA,CAAS;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAI5E;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type ComponentProps } from "react";
|
|
2
|
+
export interface BrandBubblesProps extends Omit<ComponentProps<"svg">, "children"> {
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* mediQuo's brand backdrop on a dark brand surface: soft translucent bubbles, a
|
|
6
|
+
* small constellation and the cross, drifting slowly. The same language as the
|
|
7
|
+
* portal's home hero, for the `AuthPanel` and any other full-bleed brand surface.
|
|
8
|
+
*
|
|
9
|
+
* - Decorative: `aria-hidden`, no pointer events, never carries meaning.
|
|
10
|
+
* - Fills its parent (`absolute inset-0`, `slice`), so the parent is `relative`
|
|
11
|
+
* and clips overflow.
|
|
12
|
+
* - Coloured with tokens (`text-inverse`, `brand`), so it follows a clinic's brand.
|
|
13
|
+
* - Motion only under `prefers-reduced-motion: no-preference`; otherwise it is a
|
|
14
|
+
* still composition. Nothing moves fast or far: 14–22s cycles, a few pixels.
|
|
15
|
+
*/
|
|
16
|
+
export declare function BrandBubbles({ className, ...props }: BrandBubblesProps): React.JSX.Element;
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useId } from "react";
|
|
3
|
+
import { cn } from "../../lib/cn.js";
|
|
4
|
+
const drift = "motion-safe:animate-drift";
|
|
5
|
+
const breathe = "motion-safe:animate-breathe origin-center [transform-box:fill-box]";
|
|
6
|
+
function BrandBubbles({
|
|
7
|
+
className,
|
|
8
|
+
...props
|
|
9
|
+
}) {
|
|
10
|
+
const glowId = useId();
|
|
11
|
+
return /* @__PURE__ */ jsxs(
|
|
12
|
+
"svg",
|
|
13
|
+
{
|
|
14
|
+
viewBox: "0 0 560 1024",
|
|
15
|
+
preserveAspectRatio: "xMidYMid slice",
|
|
16
|
+
"aria-hidden": "true",
|
|
17
|
+
focusable: "false",
|
|
18
|
+
"data-slot": "brand-bubbles",
|
|
19
|
+
className: cn(
|
|
20
|
+
"pointer-events-none absolute inset-0 size-full select-none",
|
|
21
|
+
className
|
|
22
|
+
),
|
|
23
|
+
...props,
|
|
24
|
+
children: [
|
|
25
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("filter", { id: glowId, x: "-50%", y: "-50%", width: "200%", height: "200%", children: /* @__PURE__ */ jsx("feGaussianBlur", { stdDeviation: "70" }) }) }),
|
|
26
|
+
/* @__PURE__ */ jsxs("g", { filter: `url(#${glowId})`, children: [
|
|
27
|
+
/* @__PURE__ */ jsx(
|
|
28
|
+
"circle",
|
|
29
|
+
{
|
|
30
|
+
cx: "440",
|
|
31
|
+
cy: "180",
|
|
32
|
+
r: "220",
|
|
33
|
+
className: cn(
|
|
34
|
+
"fill-brand opacity-50",
|
|
35
|
+
breathe,
|
|
36
|
+
"[animation-duration:22s]"
|
|
37
|
+
)
|
|
38
|
+
}
|
|
39
|
+
),
|
|
40
|
+
/* @__PURE__ */ jsx(
|
|
41
|
+
"circle",
|
|
42
|
+
{
|
|
43
|
+
cx: "90",
|
|
44
|
+
cy: "880",
|
|
45
|
+
r: "190",
|
|
46
|
+
className: cn(
|
|
47
|
+
"fill-brand opacity-40",
|
|
48
|
+
breathe,
|
|
49
|
+
"[animation-duration:18s] [animation-delay:-7s]"
|
|
50
|
+
)
|
|
51
|
+
}
|
|
52
|
+
)
|
|
53
|
+
] }),
|
|
54
|
+
/* @__PURE__ */ jsxs("g", { className: cn(drift, "[animation-duration:16s]"), children: [
|
|
55
|
+
/* @__PURE__ */ jsx(
|
|
56
|
+
"circle",
|
|
57
|
+
{
|
|
58
|
+
cx: "430",
|
|
59
|
+
cy: "150",
|
|
60
|
+
r: "92",
|
|
61
|
+
className: "fill-text-inverse opacity-5"
|
|
62
|
+
}
|
|
63
|
+
),
|
|
64
|
+
/* @__PURE__ */ jsx(
|
|
65
|
+
"circle",
|
|
66
|
+
{
|
|
67
|
+
cx: "470",
|
|
68
|
+
cy: "760",
|
|
69
|
+
r: "140",
|
|
70
|
+
className: "fill-text-inverse opacity-5"
|
|
71
|
+
}
|
|
72
|
+
),
|
|
73
|
+
/* @__PURE__ */ jsx(
|
|
74
|
+
"circle",
|
|
75
|
+
{
|
|
76
|
+
cx: "300",
|
|
77
|
+
cy: "520",
|
|
78
|
+
r: "42",
|
|
79
|
+
className: "fill-text-inverse opacity-10"
|
|
80
|
+
}
|
|
81
|
+
)
|
|
82
|
+
] }),
|
|
83
|
+
/* @__PURE__ */ jsxs(
|
|
84
|
+
"g",
|
|
85
|
+
{
|
|
86
|
+
className: cn(drift, "[animation-duration:20s] [animation-delay:-9s]"),
|
|
87
|
+
children: [
|
|
88
|
+
/* @__PURE__ */ jsx(
|
|
89
|
+
"circle",
|
|
90
|
+
{
|
|
91
|
+
cx: "120",
|
|
92
|
+
cy: "330",
|
|
93
|
+
r: "62",
|
|
94
|
+
className: "fill-text-inverse opacity-5"
|
|
95
|
+
}
|
|
96
|
+
),
|
|
97
|
+
/* @__PURE__ */ jsx(
|
|
98
|
+
"circle",
|
|
99
|
+
{
|
|
100
|
+
cx: "180",
|
|
101
|
+
cy: "700",
|
|
102
|
+
r: "24",
|
|
103
|
+
className: "fill-text-inverse opacity-10"
|
|
104
|
+
}
|
|
105
|
+
),
|
|
106
|
+
/* @__PURE__ */ jsx(
|
|
107
|
+
"circle",
|
|
108
|
+
{
|
|
109
|
+
cx: "380",
|
|
110
|
+
cy: "420",
|
|
111
|
+
r: "14",
|
|
112
|
+
className: "fill-text-inverse opacity-15"
|
|
113
|
+
}
|
|
114
|
+
)
|
|
115
|
+
]
|
|
116
|
+
}
|
|
117
|
+
),
|
|
118
|
+
/* @__PURE__ */ jsxs(
|
|
119
|
+
"g",
|
|
120
|
+
{
|
|
121
|
+
className: cn(drift, "[animation-duration:14s] [animation-delay:-3s]"),
|
|
122
|
+
children: [
|
|
123
|
+
/* @__PURE__ */ jsxs("g", { className: "stroke-text-inverse opacity-10", strokeWidth: "1", children: [
|
|
124
|
+
/* @__PURE__ */ jsx("path", { d: "M120 330 L300 520" }),
|
|
125
|
+
/* @__PURE__ */ jsx("path", { d: "M300 520 L380 420" }),
|
|
126
|
+
/* @__PURE__ */ jsx("path", { d: "M300 520 L180 700" })
|
|
127
|
+
] }),
|
|
128
|
+
/* @__PURE__ */ jsxs("g", { className: "fill-text-inverse opacity-25", children: [
|
|
129
|
+
/* @__PURE__ */ jsx("circle", { cx: "120", cy: "330", r: "5" }),
|
|
130
|
+
/* @__PURE__ */ jsx("circle", { cx: "300", cy: "520", r: "5" }),
|
|
131
|
+
/* @__PURE__ */ jsx("circle", { cx: "380", cy: "420", r: "5" }),
|
|
132
|
+
/* @__PURE__ */ jsx("circle", { cx: "180", cy: "700", r: "5" })
|
|
133
|
+
] }),
|
|
134
|
+
/* @__PURE__ */ jsxs("g", { className: "fill-text-inverse opacity-25", children: [
|
|
135
|
+
/* @__PURE__ */ jsx("rect", { x: "412", y: "258", width: "36", height: "10", rx: "5" }),
|
|
136
|
+
/* @__PURE__ */ jsx("rect", { x: "425", y: "245", width: "10", height: "36", rx: "5" })
|
|
137
|
+
] })
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
)
|
|
141
|
+
]
|
|
142
|
+
}
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
export {
|
|
146
|
+
BrandBubbles
|
|
147
|
+
};
|
|
148
|
+
//# sourceMappingURL=brand-bubbles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brand-bubbles.js","sources":["../../../src/components/brand-bubbles/brand-bubbles.tsx"],"sourcesContent":["import { type ComponentProps, useId } from \"react\";\n\nimport { cn } from \"../../lib/cn\";\n\nexport interface BrandBubblesProps\n extends Omit<ComponentProps<\"svg\">, \"children\"> {}\n\nconst drift = \"motion-safe:animate-drift\";\nconst breathe =\n \"motion-safe:animate-breathe origin-center [transform-box:fill-box]\";\n\n/**\n * mediQuo's brand backdrop on a dark brand surface: soft translucent bubbles, a\n * small constellation and the cross, drifting slowly. The same language as the\n * portal's home hero, for the `AuthPanel` and any other full-bleed brand surface.\n *\n * - Decorative: `aria-hidden`, no pointer events, never carries meaning.\n * - Fills its parent (`absolute inset-0`, `slice`), so the parent is `relative`\n * and clips overflow.\n * - Coloured with tokens (`text-inverse`, `brand`), so it follows a clinic's brand.\n * - Motion only under `prefers-reduced-motion: no-preference`; otherwise it is a\n * still composition. Nothing moves fast or far: 14–22s cycles, a few pixels.\n */\nexport function BrandBubbles({\n className,\n ...props\n}: BrandBubblesProps): React.JSX.Element {\n const glowId = useId();\n\n return (\n <svg\n viewBox=\"0 0 560 1024\"\n preserveAspectRatio=\"xMidYMid slice\"\n aria-hidden=\"true\"\n focusable=\"false\"\n data-slot=\"brand-bubbles\"\n className={cn(\n \"pointer-events-none absolute inset-0 size-full select-none\",\n className,\n )}\n {...props}\n >\n <defs>\n <filter id={glowId} x=\"-50%\" y=\"-50%\" width=\"200%\" height=\"200%\">\n <feGaussianBlur stdDeviation=\"70\" />\n </filter>\n </defs>\n\n <g filter={`url(#${glowId})`}>\n <circle\n cx=\"440\"\n cy=\"180\"\n r=\"220\"\n className={cn(\n \"fill-brand opacity-50\",\n breathe,\n \"[animation-duration:22s]\",\n )}\n />\n <circle\n cx=\"90\"\n cy=\"880\"\n r=\"190\"\n className={cn(\n \"fill-brand opacity-40\",\n breathe,\n \"[animation-duration:18s] [animation-delay:-7s]\",\n )}\n />\n </g>\n\n <g className={cn(drift, \"[animation-duration:16s]\")}>\n <circle\n cx=\"430\"\n cy=\"150\"\n r=\"92\"\n className=\"fill-text-inverse opacity-5\"\n />\n <circle\n cx=\"470\"\n cy=\"760\"\n r=\"140\"\n className=\"fill-text-inverse opacity-5\"\n />\n <circle\n cx=\"300\"\n cy=\"520\"\n r=\"42\"\n className=\"fill-text-inverse opacity-10\"\n />\n </g>\n\n <g\n className={cn(drift, \"[animation-duration:20s] [animation-delay:-9s]\")}\n >\n <circle\n cx=\"120\"\n cy=\"330\"\n r=\"62\"\n className=\"fill-text-inverse opacity-5\"\n />\n <circle\n cx=\"180\"\n cy=\"700\"\n r=\"24\"\n className=\"fill-text-inverse opacity-10\"\n />\n <circle\n cx=\"380\"\n cy=\"420\"\n r=\"14\"\n className=\"fill-text-inverse opacity-15\"\n />\n </g>\n\n <g\n className={cn(drift, \"[animation-duration:14s] [animation-delay:-3s]\")}\n >\n <g className=\"stroke-text-inverse opacity-10\" strokeWidth=\"1\">\n <path d=\"M120 330 L300 520\" />\n <path d=\"M300 520 L380 420\" />\n <path d=\"M300 520 L180 700\" />\n </g>\n <g className=\"fill-text-inverse opacity-25\">\n <circle cx=\"120\" cy=\"330\" r=\"5\" />\n <circle cx=\"300\" cy=\"520\" r=\"5\" />\n <circle cx=\"380\" cy=\"420\" r=\"5\" />\n <circle cx=\"180\" cy=\"700\" r=\"5\" />\n </g>\n <g className=\"fill-text-inverse opacity-25\">\n <rect x=\"412\" y=\"258\" width=\"36\" height=\"10\" rx=\"5\" />\n <rect x=\"425\" y=\"245\" width=\"10\" height=\"36\" rx=\"5\" />\n </g>\n </g>\n </svg>\n );\n}\n"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BrandBubbles, type BrandBubblesProps } from "./brand-bubbles";
|
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export * from "./components/avatar";
|
|
|
9
9
|
export * from "./components/badge";
|
|
10
10
|
export * from "./components/banner";
|
|
11
11
|
export * from "./components/bottom-bar";
|
|
12
|
+
export * from "./components/brand-bubbles";
|
|
12
13
|
export * from "./components/brand-mark";
|
|
13
14
|
export * from "./components/breadcrumb";
|
|
14
15
|
export * from "./components/button";
|
package/dist/index.js
CHANGED
|
@@ -11,6 +11,7 @@ import { Avatar, avatarStatusVariants, avatarVariants } from "./components/avata
|
|
|
11
11
|
import { Badge, badgeVariants } from "./components/badge/badge.js";
|
|
12
12
|
import { Banner } from "./components/banner/banner.js";
|
|
13
13
|
import { BottomBar, BottomBarItem, bottomBarItemVariants } from "./components/bottom-bar/bottom-bar.js";
|
|
14
|
+
import { BrandBubbles } from "./components/brand-bubbles/brand-bubbles.js";
|
|
14
15
|
import { BrandMark } from "./components/brand-mark/brand-mark.js";
|
|
15
16
|
import { Breadcrumb, BreadcrumbItem, BreadcrumbPage } from "./components/breadcrumb/breadcrumb.js";
|
|
16
17
|
import { Button, buttonVariants } from "./components/button/button.js";
|
|
@@ -107,6 +108,7 @@ export {
|
|
|
107
108
|
Banner,
|
|
108
109
|
BottomBar,
|
|
109
110
|
BottomBarItem,
|
|
111
|
+
BrandBubbles,
|
|
110
112
|
BrandMark,
|
|
111
113
|
Breadcrumb,
|
|
112
114
|
BreadcrumbItem,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/styles/tokens.css
CHANGED
|
@@ -50,6 +50,31 @@
|
|
|
50
50
|
--shadow-lg: 0 8px 16px -2px rgb(10 10 34 / 0.08);
|
|
51
51
|
--shadow-xl: 0 16px 32px -4px rgb(10 10 34 / 0.12);
|
|
52
52
|
|
|
53
|
+
/*
|
|
54
|
+
* Motion for brand backdrops (BrandBubbles): a slow drift of a few pixels and a
|
|
55
|
+
* slow breathe of a few percent. Always behind `motion-safe:`.
|
|
56
|
+
*/
|
|
57
|
+
--animate-drift: drift 16s ease-in-out infinite alternate;
|
|
58
|
+
--animate-breathe: breathe 20s ease-in-out infinite alternate;
|
|
59
|
+
|
|
60
|
+
@keyframes drift {
|
|
61
|
+
from {
|
|
62
|
+
transform: translate3d(0, 0, 0);
|
|
63
|
+
}
|
|
64
|
+
to {
|
|
65
|
+
transform: translate3d(0, -18px, 0);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@keyframes breathe {
|
|
70
|
+
from {
|
|
71
|
+
transform: scale(1);
|
|
72
|
+
}
|
|
73
|
+
to {
|
|
74
|
+
transform: scale(1.08);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
53
78
|
/* Sizing (Figma "Sizing" collection) → size-icon-md, h-control-sm, size-avatar-lg… */
|
|
54
79
|
--spacing-icon-xs: 12px;
|
|
55
80
|
--spacing-icon-sm: 16px;
|