@alfadocs/ui-kit-debug 0.10.0 → 0.12.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/_chunks/_commonjsHelpers-C6fGbg64.js +7 -0
- package/dist/_chunks/_commonjsHelpers-C6fGbg64.js.map +1 -0
- package/dist/_chunks/{ai-prompt-input-bAJwYu84.js → ai-prompt-input-noh-N3cf.js} +2 -2
- package/dist/_chunks/{ai-prompt-input-bAJwYu84.js.map → ai-prompt-input-noh-N3cf.js.map} +1 -1
- package/dist/_chunks/{contact-card-VJIUqKB2.js → contact-card-DTQUMetD.js} +22 -38
- package/dist/_chunks/contact-card-DTQUMetD.js.map +1 -0
- package/dist/_chunks/external-link-C6F25E6k.js +16 -0
- package/dist/_chunks/external-link-C6F25E6k.js.map +1 -0
- package/dist/_chunks/{file-upload-DIecAfC-.js → file-upload-nMh-1jDD.js} +2 -2
- package/dist/_chunks/{file-upload-DIecAfC-.js.map → file-upload-nMh-1jDD.js.map} +1 -1
- package/dist/_chunks/{index-CeY1nNvd.js → index-CFoBa86t.js} +61 -63
- package/dist/_chunks/{index-CeY1nNvd.js.map → index-CFoBa86t.js.map} +1 -1
- package/dist/_chunks/{link-BGpwaFik.js → link-DmM5IevO.js} +16 -26
- package/dist/_chunks/link-DmM5IevO.js.map +1 -0
- package/dist/_chunks/map-pin-B8STOPMJ.js +21 -0
- package/dist/_chunks/map-pin-B8STOPMJ.js.map +1 -0
- package/dist/_chunks/map-view-Dd48BxVB.js +1941 -0
- package/dist/_chunks/map-view-Dd48BxVB.js.map +1 -0
- package/dist/_chunks/{pdf-viewer-CNETPubN.js → pdf-viewer-CnEJvmXC.js} +407 -382
- package/dist/_chunks/pdf-viewer-CnEJvmXC.js.map +1 -0
- package/dist/_chunks/whatsapp-button-Bj5FIhpC.js +175 -0
- package/dist/_chunks/whatsapp-button-Bj5FIhpC.js.map +1 -0
- package/dist/agent-catalog.json +53 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/contact-card/index.js +1 -1
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/map-view/index.d.ts +3 -0
- package/dist/components/map-view/index.d.ts.map +1 -0
- package/dist/components/map-view/index.js +5 -0
- package/dist/components/map-view/index.js.map +1 -0
- package/dist/components/map-view/map-view.agent.d.ts +4 -0
- package/dist/components/map-view/map-view.agent.d.ts.map +1 -0
- package/dist/components/map-view/map-view.d.ts +78 -0
- package/dist/components/map-view/map-view.d.ts.map +1 -0
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/pdf-viewer/pdf-viewer.d.ts +62 -0
- package/dist/components/pdf-viewer/pdf-viewer.d.ts.map +1 -1
- package/dist/components/whatsapp-button/index.d.ts +3 -0
- package/dist/components/whatsapp-button/index.d.ts.map +1 -0
- package/dist/components/whatsapp-button/index.js +5 -0
- package/dist/components/whatsapp-button/index.js.map +1 -0
- package/dist/components/whatsapp-button/whatsapp-button.d.ts +32 -0
- package/dist/components/whatsapp-button/whatsapp-button.d.ts.map +1 -0
- package/dist/i18n/config.js +47 -5
- package/dist/i18n/config.js.map +1 -1
- package/dist/i18n/resources.d.ts +42 -0
- package/dist/i18n/resources.d.ts.map +1 -1
- package/dist/index.js +348 -344
- package/dist/index.js.map +1 -1
- package/dist/locales/de.json +15 -1
- package/dist/locales/en.json +15 -1
- package/dist/locales/it.json +15 -1
- package/dist/tokens/google-maps-theme.d.ts +15 -0
- package/dist/tokens/google-maps-theme.d.ts.map +1 -0
- package/dist/tokens.css +1 -1
- package/package.json +15 -1
- package/dist/_chunks/contact-card-VJIUqKB2.js.map +0 -1
- package/dist/_chunks/link-BGpwaFik.js.map +0 -1
- package/dist/_chunks/pdf-viewer-CNETPubN.js.map +0 -1
|
@@ -1,19 +1,9 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as y, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as k } from "react";
|
|
3
3
|
import { c as w } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as N } from "react-i18next";
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
* @license lucide-react v1.8.0 - ISC
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the ISC license.
|
|
10
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/
|
|
12
|
-
const _ = [
|
|
13
|
-
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
14
|
-
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
15
|
-
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
16
|
-
], j = L("external-link", _), T = w(
|
|
5
|
+
import { E as L } from "./external-link-C6F25E6k.js";
|
|
6
|
+
const j = w(
|
|
17
7
|
[
|
|
18
8
|
"ds:underline-offset-4",
|
|
19
9
|
"ds:rounded-[var(--radius-xs)]",
|
|
@@ -55,24 +45,24 @@ const _ = [
|
|
|
55
45
|
hasIcon: "no"
|
|
56
46
|
}
|
|
57
47
|
}
|
|
58
|
-
),
|
|
48
|
+
), T = k(
|
|
59
49
|
({
|
|
60
50
|
href: l,
|
|
61
51
|
external: e = !1,
|
|
62
52
|
disabled: s = !1,
|
|
63
53
|
startIcon: i,
|
|
64
54
|
endIcon: a,
|
|
65
|
-
intent:
|
|
55
|
+
intent: r,
|
|
66
56
|
weight: c,
|
|
67
57
|
className: f,
|
|
68
58
|
children: u,
|
|
69
59
|
target: m,
|
|
70
|
-
rel:
|
|
60
|
+
rel: t,
|
|
71
61
|
onClick: o,
|
|
72
62
|
...v
|
|
73
63
|
}, h) => {
|
|
74
|
-
const { t: p } = N(), g = e ? "_blank" : m, x = e ? [
|
|
75
|
-
return /* @__PURE__ */
|
|
64
|
+
const { t: p } = N(), g = e ? "_blank" : m, x = e ? [t, "noopener", "noreferrer"].filter(Boolean).join(" ") : t, b = p("link.opensInNewTab", "Opens in a new tab");
|
|
65
|
+
return /* @__PURE__ */ y(
|
|
76
66
|
"a",
|
|
77
67
|
{
|
|
78
68
|
ref: h,
|
|
@@ -89,9 +79,9 @@ const _ = [
|
|
|
89
79
|
o == null || o(d);
|
|
90
80
|
},
|
|
91
81
|
"data-component": "link",
|
|
92
|
-
"data-intent":
|
|
93
|
-
className:
|
|
94
|
-
intent:
|
|
82
|
+
"data-intent": r ?? "default",
|
|
83
|
+
className: j({
|
|
84
|
+
intent: r,
|
|
95
85
|
weight: c,
|
|
96
86
|
hasIcon: !!(i || a || e) ? "yes" : "no",
|
|
97
87
|
className: f
|
|
@@ -111,8 +101,8 @@ const _ = [
|
|
|
111
101
|
"span",
|
|
112
102
|
{
|
|
113
103
|
className: "ds:inline-flex ds:items-center",
|
|
114
|
-
"aria-label":
|
|
115
|
-
children: /* @__PURE__ */ n(
|
|
104
|
+
"aria-label": b,
|
|
105
|
+
children: /* @__PURE__ */ n(L, { "aria-hidden": "true", className: "ds:size-[1em]" })
|
|
116
106
|
}
|
|
117
107
|
) : a ? /* @__PURE__ */ n(
|
|
118
108
|
"span",
|
|
@@ -127,8 +117,8 @@ const _ = [
|
|
|
127
117
|
);
|
|
128
118
|
}
|
|
129
119
|
);
|
|
130
|
-
|
|
120
|
+
T.displayName = "Link";
|
|
131
121
|
export {
|
|
132
|
-
|
|
122
|
+
T as L
|
|
133
123
|
};
|
|
134
|
-
//# sourceMappingURL=link-
|
|
124
|
+
//# sourceMappingURL=link-DmM5IevO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link-DmM5IevO.js","sources":["../../src/components/link/link.tsx"],"sourcesContent":["import { forwardRef, type AnchorHTMLAttributes, type ReactNode } from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { useTranslation } from 'react-i18next';\nimport { ExternalLink } from 'lucide-react';\n\n/* ------------------------------------------------------------------ */\n/* CVA */\n/* ------------------------------------------------------------------ */\n\n/**\n * Link is the semantic anchor primitive for inline navigation —\n * privacy / terms in form copy, external \"remote support\" links in\n * sidebars, in-paragraph references inside info-tip body copy.\n *\n * For action affordances that *look* like a link but trigger UI rather\n * than navigation, use `<Button intent=\"link\">` instead — the semantic\n * boundary matters for screen readers and keyboard users.\n */\nconst linkVariants = cva(\n [\n 'ds:underline-offset-4',\n 'ds:rounded-[var(--radius-xs)]',\n 'ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none',\n 'ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid',\n 'ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]',\n 'ds:forced-colors:focus-visible:outline-[CanvasText]',\n 'ds:aria-disabled:cursor-not-allowed ds:aria-disabled:opacity-50 ds:aria-disabled:no-underline',\n ].join(' '),\n {\n variants: {\n intent: {\n // `--primary` already maps to `magenta-700` in light-accent and\n // `magenta-500` in dark (see tokens/index.css), so the accent\n // contrast trade-off in §11 of CLAUDE.md is handled at the\n // token layer, not here.\n default:\n 'ds:text-primary ds:underline ds:hover:text-primary-hover ds:active:opacity-80',\n subtle:\n 'ds:text-muted-foreground ds:no-underline ds:hover:text-foreground ds:hover:underline ds:active:opacity-80',\n inverted:\n 'ds:text-primary-foreground ds:underline ds:hover:opacity-90 ds:active:opacity-80',\n },\n weight: {\n normal: 'ds:font-normal',\n strong: 'ds:font-semibold',\n },\n // When the link carries an icon, the anchor itself becomes a flex\n // container so glyphs centre on the text optical centre — the\n // previous `vertical-align: -0.125em` heuristic over-corrected when\n // the link was the only thing on its line (e.g. each <li> of a\n // vertical sidebar nav). Text-only links remain plain `inline` so\n // they wrap naturally inside a paragraph.\n hasIcon: {\n no: 'ds:inline',\n yes: 'ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]',\n },\n },\n defaultVariants: {\n intent: 'default',\n weight: 'normal',\n hasIcon: 'no',\n },\n },\n);\n\n/* ------------------------------------------------------------------ */\n/* Public types */\n/* ------------------------------------------------------------------ */\n\nexport interface LinkProps\n extends\n Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>,\n VariantProps<typeof linkVariants> {\n /** Anchor target. Required — the whole point of the component. */\n href: string;\n /**\n * Flag the link as opening in a new browsing context. Automatically\n * adds `target=\"_blank\"` + `rel=\"noopener noreferrer\"` and renders a\n * trailing `ExternalLink` icon with an i18n'd aria-label.\n */\n external?: boolean;\n /**\n * Render the link in a non-interactive disabled state. Strips `href`,\n * adds `aria-disabled` + `role=\"link\"`, suppresses the underline.\n * Prefer hiding the link entirely when possible — disabled links are\n * a usability anti-pattern outside of state-machine flows.\n */\n disabled?: boolean;\n /** Optional leading icon (inline-start). */\n startIcon?: ReactNode;\n /** Optional trailing icon (inline-end). Ignored when `external`. */\n endIcon?: ReactNode;\n}\n\n/* ------------------------------------------------------------------ */\n/* Component */\n/* ------------------------------------------------------------------ */\n\nexport const Link = forwardRef<HTMLAnchorElement, LinkProps>(\n (\n {\n href,\n external = false,\n disabled = false,\n startIcon,\n endIcon,\n intent,\n weight,\n className,\n children,\n target,\n rel,\n onClick,\n ...rest\n },\n ref,\n ) => {\n const { t } = useTranslation();\n\n const effectiveTarget = external ? '_blank' : target;\n const effectiveRel = external\n ? [rel, 'noopener', 'noreferrer'].filter(Boolean).join(' ')\n : rel;\n\n const externalLabel = t('link.opensInNewTab', 'Opens in a new tab');\n\n const handleClick: AnchorHTMLAttributes<HTMLAnchorElement>['onClick'] = (\n event,\n ) => {\n if (disabled) {\n event.preventDefault();\n return;\n }\n onClick?.(event);\n };\n\n const hasIcon = Boolean(startIcon || endIcon || external);\n\n return (\n <a\n ref={ref}\n // When disabled, drop href so the link is not actionable; pair\n // with aria-disabled + role=\"link\" so AT still announces the\n // role (the implicit role disappears once href is removed).\n href={disabled ? undefined : href}\n role={disabled ? 'link' : undefined}\n aria-disabled={disabled || undefined}\n target={effectiveTarget}\n rel={effectiveRel || undefined}\n onClick={handleClick}\n data-component=\"link\"\n data-intent={intent ?? 'default'}\n className={linkVariants({\n intent,\n weight,\n hasIcon: hasIcon ? 'yes' : 'no',\n className,\n })}\n {...rest}\n >\n {startIcon ? (\n <span\n aria-hidden=\"true\"\n className=\"ds:inline-flex ds:items-center ds:[&_svg]:size-[1em]\"\n >\n {startIcon}\n </span>\n ) : null}\n {children}\n {external ? (\n <span\n className=\"ds:inline-flex ds:items-center\"\n aria-label={externalLabel}\n >\n <ExternalLink aria-hidden=\"true\" className=\"ds:size-[1em]\" />\n </span>\n ) : endIcon ? (\n <span\n aria-hidden=\"true\"\n className=\"ds:inline-flex ds:items-center ds:[&_svg]:size-[1em]\"\n >\n {endIcon}\n </span>\n ) : null}\n </a>\n );\n },\n);\n\nLink.displayName = 'Link';\n"],"names":["linkVariants","cva","Link","forwardRef","href","external","disabled","startIcon","endIcon","intent","weight","className","children","target","rel","onClick","rest","ref","t","useTranslation","effectiveTarget","effectiveRel","externalLabel","jsxs","event","jsx","ExternalLink"],"mappings":";;;;;AAkBA,MAAMA,IAAeC;AAAA,EACnB;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA,EACA,KAAK,GAAG;AAAA,EACV;AAAA,IACE,UAAU;AAAA,MACR,QAAQ;AAAA;AAAA;AAAA;AAAA;AAAA,QAKN,SACE;AAAA,QACF,QACE;AAAA,QACF,UACE;AAAA,MAAA;AAAA,MAEJ,QAAQ;AAAA,QACN,QAAQ;AAAA,QACR,QAAQ;AAAA,MAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAQV,SAAS;AAAA,QACP,IAAI;AAAA,QACJ,KAAK;AAAA,MAAA;AAAA,IACP;AAAA,IAEF,iBAAiB;AAAA,MACf,QAAQ;AAAA,MACR,QAAQ;AAAA,MACR,SAAS;AAAA,IAAA;AAAA,EACX;AAEJ,GAmCaC,IAAOC;AAAA,EAClB,C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;AAAA,YAAA;AAAA,cACC,WAAU;AAAA,cACV,cAAYH;AAAA,cAEZ,UAAA,gBAAAG,EAACC,GAAA,EAAa,eAAY,QAAO,WAAU,gBAAA,CAAgB;AAAA,YAAA;AAAA,UAAA,IAE3DlB,IACF,gBAAAiB;AAAA,YAAC;AAAA,YAAA;AAAA,cACC,eAAY;AAAA,cACZ,WAAU;AAAA,cAET,UAAAjB;AAAA,YAAA;AAAA,UAAA,IAED;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAGV;AACF;AAEAN,EAAK,cAAc;"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { c } from "./createLucideIcon-CrFbzy84.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v1.8.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const a = [
|
|
9
|
+
[
|
|
10
|
+
"path",
|
|
11
|
+
{
|
|
12
|
+
d: "M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",
|
|
13
|
+
key: "1r0f0z"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
["circle", { cx: "12", cy: "10", r: "3", key: "ilqhr7" }]
|
|
17
|
+
], o = c("map-pin", a);
|
|
18
|
+
export {
|
|
19
|
+
o as M
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=map-pin-B8STOPMJ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"map-pin-B8STOPMJ.js","sources":["../../node_modules/lucide-react/dist/esm/icons/map-pin.js"],"sourcesContent":["/**\n * @license lucide-react v1.8.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\n \"path\",\n {\n d: \"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0\",\n key: \"1r0f0z\"\n }\n ],\n [\"circle\", { cx: \"12\", cy: \"10\", r: \"3\", key: \"ilqhr7\" }]\n];\nconst MapPin = createLucideIcon(\"map-pin\", __iconNode);\n\nexport { __iconNode, MapPin as default };\n//# sourceMappingURL=map-pin.js.map\n"],"names":["__iconNode","MapPin","createLucideIcon"],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,MAAMA,IAAa;AAAA,EACjB;AAAA,IACE;AAAA,IACA;AAAA,MACE,GAAG;AAAA,MACH,KAAK;AAAA,IACX;AAAA,EACA;AAAA,EACE,CAAC,UAAU,EAAE,IAAI,MAAM,IAAI,MAAM,GAAG,KAAK,KAAK,SAAQ,CAAE;AAC1D,GACMC,IAASC,EAAiB,WAAWF,CAAU;","x_google_ignoreList":[0]}
|