@sovereignsquad/gds-core 3.9.0 → 6.8.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.
Files changed (122) hide show
  1. package/dist/GdsBadge-DqTdnomt.d.mts +417 -0
  2. package/dist/GdsBadge-DqTdnomt.d.ts +417 -0
  3. package/dist/PartnerDiscovery-As_-JKtb.d.ts +732 -0
  4. package/dist/PartnerDiscovery-Bwxixtka.d.mts +732 -0
  5. package/dist/QuickStartCard-CB7r-85z.d.ts +17500 -0
  6. package/dist/QuickStartCard-xIP1gbCL.d.mts +17500 -0
  7. package/dist/chunk-2AX4NCID.mjs +9 -0
  8. package/dist/chunk-2IUOZG4C.mjs +9 -0
  9. package/dist/chunk-2XZMNT7I.mjs +338 -0
  10. package/dist/chunk-3D7BVS7D.mjs +9 -0
  11. package/dist/chunk-4LG6EED4.mjs +338 -0
  12. package/dist/chunk-6LULEPIE.mjs +9 -0
  13. package/dist/chunk-6PBDLFSF.mjs +338 -0
  14. package/dist/{chunk-TQ7ZYMEA.mjs → chunk-BH2SMTND.mjs} +2258 -4014
  15. package/dist/chunk-BHR4A3C6.mjs +338 -0
  16. package/dist/chunk-CNTTKK3H.mjs +338 -0
  17. package/dist/chunk-GGDCO5HR.mjs +338 -0
  18. package/dist/chunk-GKNSUUUE.mjs +338 -0
  19. package/dist/chunk-GMK5GXWR.mjs +338 -0
  20. package/dist/chunk-H2QNW4D5.mjs +1768 -0
  21. package/dist/chunk-IHPZ7BNV.mjs +338 -0
  22. package/dist/chunk-J66ITCXC.mjs +473 -0
  23. package/dist/chunk-J6MXKFIM.mjs +9 -0
  24. package/dist/chunk-JTMPFTCK.mjs +338 -0
  25. package/dist/{chunk-BUC7QXRO.mjs → chunk-KFEPREUF.mjs} +13 -5
  26. package/dist/chunk-LNVLXOLI.mjs +9 -0
  27. package/dist/chunk-MAIU557K.mjs +9 -0
  28. package/dist/chunk-MPZFCWWS.mjs +210 -0
  29. package/dist/chunk-NWS7KJ2G.mjs +245 -0
  30. package/dist/chunk-OC3M4CZY.mjs +9 -0
  31. package/dist/chunk-QO653DAE.mjs +338 -0
  32. package/dist/chunk-RCLWUNMR.mjs +9 -0
  33. package/dist/chunk-SHQDVHGR.mjs +338 -0
  34. package/dist/{chunk-5AJJNRZF.mjs → chunk-TJ3WMH25.mjs} +1916 -2026
  35. package/dist/chunk-VU2JLVD3.mjs +89 -0
  36. package/dist/chunk-W5O2JSVK.mjs +20 -0
  37. package/dist/chunk-WNOWHB26.mjs +9 -0
  38. package/dist/chunk-XLPTCIXT.mjs +9 -0
  39. package/dist/chunk-ZCQXBKDM.mjs +24 -0
  40. package/dist/chunk-ZFGYQSNR.mjs +33 -0
  41. package/dist/client.d.mts +1296 -37
  42. package/dist/client.d.ts +1296 -37
  43. package/dist/client.js +11039 -6379
  44. package/dist/client.mjs +273 -58
  45. package/dist/en-Dd7uvXnv.d.mts +336 -0
  46. package/dist/en-Dd7uvXnv.d.ts +336 -0
  47. package/dist/index.d.mts +632 -5
  48. package/dist/index.d.ts +632 -5
  49. package/dist/index.js +21618 -14851
  50. package/dist/index.mjs +2138 -59
  51. package/dist/locales/lazy/all.d.mts +2 -0
  52. package/dist/locales/lazy/all.d.ts +2 -0
  53. package/dist/locales/lazy/all.js +1 -0
  54. package/dist/locales/lazy/all.mjs +24 -0
  55. package/dist/locales/lazy/ar.d.mts +2 -0
  56. package/dist/locales/lazy/ar.d.ts +2 -0
  57. package/dist/locales/lazy/ar.js +683 -0
  58. package/dist/locales/lazy/ar.mjs +4 -0
  59. package/dist/locales/lazy/de.d.mts +2 -0
  60. package/dist/locales/lazy/de.d.ts +2 -0
  61. package/dist/locales/lazy/de.js +683 -0
  62. package/dist/locales/lazy/de.mjs +4 -0
  63. package/dist/locales/lazy/es.d.mts +2 -0
  64. package/dist/locales/lazy/es.d.ts +2 -0
  65. package/dist/locales/lazy/es.js +683 -0
  66. package/dist/locales/lazy/es.mjs +4 -0
  67. package/dist/locales/lazy/fr.d.mts +2 -0
  68. package/dist/locales/lazy/fr.d.ts +2 -0
  69. package/dist/locales/lazy/fr.js +683 -0
  70. package/dist/locales/lazy/fr.mjs +4 -0
  71. package/dist/locales/lazy/he.d.mts +2 -0
  72. package/dist/locales/lazy/he.d.ts +2 -0
  73. package/dist/locales/lazy/he.js +683 -0
  74. package/dist/locales/lazy/he.mjs +4 -0
  75. package/dist/locales/lazy/hu.d.mts +2 -0
  76. package/dist/locales/lazy/hu.d.ts +2 -0
  77. package/dist/locales/lazy/hu.js +683 -0
  78. package/dist/locales/lazy/hu.mjs +4 -0
  79. package/dist/locales/lazy/index.d.mts +25 -0
  80. package/dist/locales/lazy/index.d.ts +25 -0
  81. package/dist/locales/lazy/index.js +384 -0
  82. package/dist/locales/lazy/index.mjs +9 -0
  83. package/dist/locales/lazy/it.d.mts +2 -0
  84. package/dist/locales/lazy/it.d.ts +2 -0
  85. package/dist/locales/lazy/it.js +683 -0
  86. package/dist/locales/lazy/it.mjs +4 -0
  87. package/dist/locales/lazy/ja.d.mts +2 -0
  88. package/dist/locales/lazy/ja.d.ts +2 -0
  89. package/dist/locales/lazy/ja.js +683 -0
  90. package/dist/locales/lazy/ja.mjs +4 -0
  91. package/dist/locales/lazy/ko.d.mts +2 -0
  92. package/dist/locales/lazy/ko.d.ts +2 -0
  93. package/dist/locales/lazy/ko.js +683 -0
  94. package/dist/locales/lazy/ko.mjs +4 -0
  95. package/dist/locales/lazy/ru.d.mts +2 -0
  96. package/dist/locales/lazy/ru.d.ts +2 -0
  97. package/dist/locales/lazy/ru.js +683 -0
  98. package/dist/locales/lazy/ru.mjs +4 -0
  99. package/dist/locales/lazy/zh.d.mts +2 -0
  100. package/dist/locales/lazy/zh.d.ts +2 -0
  101. package/dist/locales/lazy/zh.js +683 -0
  102. package/dist/locales/lazy/zh.mjs +4 -0
  103. package/dist/map.css +664 -0
  104. package/dist/map.d.mts +118 -0
  105. package/dist/map.d.ts +118 -0
  106. package/dist/map.js +777 -0
  107. package/dist/map.mjs +395 -0
  108. package/dist/reference-theme-explorer.d.mts +34 -0
  109. package/dist/reference-theme-explorer.d.ts +34 -0
  110. package/dist/reference-theme-explorer.js +8322 -0
  111. package/dist/reference-theme-explorer.mjs +1988 -0
  112. package/dist/rich-text-editor.d.mts +32 -0
  113. package/dist/rich-text-editor.d.ts +32 -0
  114. package/dist/rich-text-editor.js +469 -0
  115. package/dist/rich-text-editor.mjs +115 -0
  116. package/dist/server.d.mts +112 -248
  117. package/dist/server.d.ts +112 -248
  118. package/dist/server.js +6797 -1679
  119. package/dist/server.mjs +588 -55
  120. package/package.json +104 -9
  121. package/dist/AISearchCard-Bbnsd-yl.d.mts +0 -7786
  122. package/dist/AISearchCard-Bbnsd-yl.d.ts +0 -7786
@@ -0,0 +1,89 @@
1
+ import {
2
+ GdsBadgeShapePin,
3
+ GdsBadgeStack,
4
+ GdsBadgeStackLayer
5
+ } from "./chunk-MPZFCWWS.mjs";
6
+ import {
7
+ GdsIcon
8
+ } from "./chunk-J66ITCXC.mjs";
9
+
10
+ // src/GdsMapPinBadge.tsx
11
+ import { cloneElement, isValidElement } from "react";
12
+ import { gdsDevWarnOnce, useGdsBadgeIconStyle } from "@sovereignsquad/gds-theme";
13
+ import { resolveGdsAccentTokens } from "@sovereignsquad/gds-theme";
14
+ import { jsx, jsxs } from "react/jsx-runtime";
15
+ var gdsResolvedAccentFallback = resolveGdsAccentTokens(void 0, "light");
16
+ var isIconKey = (icon) => typeof icon === "string";
17
+ var DEEPER_SHADE = {
18
+ base: "deep",
19
+ deep: "deeper",
20
+ deeper: "deepest",
21
+ deepest: "deepest"
22
+ };
23
+ var GDS_PIN_EMPHASIS_STROKE = 2.25;
24
+ var GDS_PIN_SELECTED_SCALE = 1.15;
25
+ var GDS_PIN_APPROXIMATE_DASH = "3 2.5";
26
+ var GDS_PIN_HEAD_CENTER_OFFSET = "translateY(-4.1667%)";
27
+ var PIN_HEAD_CENTER_OFFSET = GDS_PIN_HEAD_CENTER_OFFSET;
28
+ var GDS_PIN_ICON_SCALE = 0.46;
29
+ var ICON_SCALE = GDS_PIN_ICON_SCALE;
30
+ var GDS_PIN_EMOJI_SCALE = GDS_PIN_ICON_SCALE * 0.9;
31
+ var EMOJI_DISC_FILL = "var(--mantine-color-dark-7, #1f2937)";
32
+ function GdsMapPinBadge({
33
+ accent,
34
+ icon,
35
+ label,
36
+ filled = false,
37
+ fillOpacity = 1,
38
+ shade = "base",
39
+ size = 40,
40
+ emoji,
41
+ iconStyle,
42
+ state = "idle"
43
+ }) {
44
+ const accentColor = `var(--gds-accent-${accent}-${shade}, ${gdsResolvedAccentFallback[`--gds-accent-${accent}-${shade}`]})`;
45
+ const hoverStrokeShade = DEEPER_SHADE[shade];
46
+ const hoverStrokeColor = `var(--gds-accent-${accent}-${hoverStrokeShade}, ${gdsResolvedAccentFallback[`--gds-accent-${accent}-${hoverStrokeShade}`]})`;
47
+ const inverseColor = "var(--gds-text-on-inverse, var(--mantine-color-white))";
48
+ const resolvedIconStyle = useGdsBadgeIconStyle(iconStyle);
49
+ const useEmoji = resolvedIconStyle === "emoji" && Boolean(emoji);
50
+ if (useEmoji && filled) {
51
+ gdsDevWarnOnce(
52
+ "GdsMapPinBadge:emoji-with-filled",
53
+ "GdsMapPinBadge received both an active `emoji` glyph and `filled` \u2014 emoji mode always fills the pin with its own fixed dark-neutral disc, so `filled`/`fillOpacity` have no effect while emoji is active."
54
+ );
55
+ }
56
+ const iconColor = filled ? inverseColor : accentColor;
57
+ const iconElement = isIconKey(icon) ? /* @__PURE__ */ jsx(GdsIcon, { icon, size: "100%", tone: "default" }) : isValidElement(icon) ? cloneElement(icon, { stroke: 1.75 }) : icon;
58
+ const pinFill = useEmoji ? EMOJI_DISC_FILL : filled ? accentColor : "none";
59
+ const pinFillOpacity = useEmoji ? 1 : filled ? fillOpacity : void 0;
60
+ const numericSize = typeof size === "number" ? size : void 0;
61
+ const pinStroke = state === "hovered" || state === "selected" ? GDS_PIN_EMPHASIS_STROKE : 1.75;
62
+ const pinStrokeColor = state === "hovered" ? hoverStrokeColor : state === "approximate" ? EMOJI_DISC_FILL : accentColor;
63
+ const pinDash = state === "approximate" ? GDS_PIN_APPROXIMATE_DASH : void 0;
64
+ const stackStyle = state === "selected" ? { transform: `scale(${GDS_PIN_SELECTED_SCALE})`, transformOrigin: "50% 100%" } : void 0;
65
+ return /* @__PURE__ */ jsxs(GdsBadgeStack, { size, label, style: stackStyle, children: [
66
+ /* @__PURE__ */ jsx(GdsBadgeStackLayer, { children: /* @__PURE__ */ jsx(GdsBadgeShapePin, { size: "100%", stroke: pinStroke, color: pinStrokeColor, fill: pinFill, fillOpacity: pinFillOpacity, strokeDasharray: pinDash }) }),
67
+ useEmoji ? /* @__PURE__ */ jsx(
68
+ GdsBadgeStackLayer,
69
+ {
70
+ style: {
71
+ transform: PIN_HEAD_CENTER_OFFSET,
72
+ fontSize: numericSize ? `${numericSize * GDS_PIN_EMOJI_SCALE}px` : `${GDS_PIN_EMOJI_SCALE * 100}%`,
73
+ lineHeight: 1
74
+ },
75
+ children: /* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: emoji })
76
+ }
77
+ ) : /* @__PURE__ */ jsx(GdsBadgeStackLayer, { style: { transform: `${PIN_HEAD_CENTER_OFFSET} scale(${ICON_SCALE})`, color: iconColor }, children: iconElement })
78
+ ] });
79
+ }
80
+
81
+ export {
82
+ GDS_PIN_EMPHASIS_STROKE,
83
+ GDS_PIN_SELECTED_SCALE,
84
+ GDS_PIN_APPROXIMATE_DASH,
85
+ GDS_PIN_HEAD_CENTER_OFFSET,
86
+ GDS_PIN_ICON_SCALE,
87
+ GDS_PIN_EMOJI_SCALE,
88
+ GdsMapPinBadge
89
+ };
@@ -0,0 +1,20 @@
1
+ // src/GdsInlineLink.tsx
2
+ import { Anchor } from "@mantine/core";
3
+ import { jsx } from "react/jsx-runtime";
4
+ function GdsInlineLink({ href, children, external, ariaLabel }) {
5
+ return /* @__PURE__ */ jsx(
6
+ Anchor,
7
+ {
8
+ href,
9
+ "data-gds-inline-link": "",
10
+ target: external ? "_blank" : void 0,
11
+ rel: external ? "noreferrer noopener" : void 0,
12
+ "aria-label": ariaLabel,
13
+ children
14
+ }
15
+ );
16
+ }
17
+
18
+ export {
19
+ GdsInlineLink
20
+ };
@@ -0,0 +1,9 @@
1
+ import {
2
+ registerGdsLocale
3
+ } from "./chunk-ZCQXBKDM.mjs";
4
+ import {
5
+ ar
6
+ } from "./chunk-QO653DAE.mjs";
7
+
8
+ // src/locales/lazy/ar.ts
9
+ registerGdsLocale("ar", ar);
@@ -0,0 +1,9 @@
1
+ import {
2
+ he
3
+ } from "./chunk-CNTTKK3H.mjs";
4
+ import {
5
+ registerGdsLocale
6
+ } from "./chunk-ZCQXBKDM.mjs";
7
+
8
+ // src/locales/lazy/he.ts
9
+ registerGdsLocale("he", he);
@@ -0,0 +1,24 @@
1
+ import {
2
+ en
3
+ } from "./chunk-GGDCO5HR.mjs";
4
+
5
+ // src/locales/lazy/registry.ts
6
+ import { gdsDevWarnOnce } from "@sovereignsquad/gds-theme";
7
+ var registry = /* @__PURE__ */ new Map([["en", en]]);
8
+ function registerGdsLocale(locale, dictionary) {
9
+ registry.set(locale, dictionary);
10
+ }
11
+ function getGdsMessagesLazy(locale) {
12
+ const dictionary = registry.get(locale);
13
+ if (dictionary) return dictionary;
14
+ gdsDevWarnOnce(
15
+ `gds-i18n-lazy:${locale}`,
16
+ `getGdsMessagesLazy('${locale}') fell back to English because no dictionary is registered for '${locale}'. Import '@sovereignsquad/gds-core/locales/lazy/${locale}' (or '@sovereignsquad/gds-core/locales/lazy/all' for every locale) before this lookup runs.`
17
+ );
18
+ return en;
19
+ }
20
+
21
+ export {
22
+ registerGdsLocale,
23
+ getGdsMessagesLazy
24
+ };
@@ -0,0 +1,33 @@
1
+ import {
2
+ GdsIcons
3
+ } from "./chunk-J66ITCXC.mjs";
4
+
5
+ // src/ThemeToggle.tsx
6
+ import { ActionIcon, useMantineColorScheme, useComputedColorScheme } from "@mantine/core";
7
+ import { useGdsTranslation } from "@sovereignsquad/gds-theme";
8
+ import { jsx } from "react/jsx-runtime";
9
+ function ThemeToggle({ size = "xl", onColorSchemeChange }) {
10
+ const { setColorScheme } = useMantineColorScheme();
11
+ const computedColorScheme = useComputedColorScheme("light", { getInitialValueInEffect: true });
12
+ const { t } = useGdsTranslation();
13
+ const toggleColorScheme = () => {
14
+ const nextScheme = computedColorScheme === "dark" ? "light" : "dark";
15
+ setColorScheme(nextScheme);
16
+ onColorSchemeChange?.(nextScheme);
17
+ };
18
+ const isDark = computedColorScheme === "dark";
19
+ return /* @__PURE__ */ jsx(
20
+ ActionIcon,
21
+ {
22
+ onClick: toggleColorScheme,
23
+ variant: "default",
24
+ size,
25
+ "aria-label": t("gds.aria.themeToggle", "Toggle color scheme"),
26
+ children: isDark ? /* @__PURE__ */ jsx(GdsIcons.Sun, { size: "1.2rem" }) : /* @__PURE__ */ jsx(GdsIcons.Moon, { size: "1.2rem" })
27
+ }
28
+ );
29
+ }
30
+
31
+ export {
32
+ ThemeToggle
33
+ };