@sovereignsquad/gds-core 3.9.0 → 6.9.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/README.md +33 -0
- package/dist/GdsBadge-DqTdnomt.d.mts +417 -0
- package/dist/GdsBadge-DqTdnomt.d.ts +417 -0
- package/dist/PartnerDiscovery-As_-JKtb.d.ts +732 -0
- package/dist/PartnerDiscovery-Bwxixtka.d.mts +732 -0
- package/dist/QuickStartCard-Bgjdfs_t.d.ts +20798 -0
- package/dist/QuickStartCard-DnZMDjzb.d.mts +20798 -0
- package/dist/chunk-3B5MK2PG.mjs +6349 -0
- package/dist/{chunk-TQ7ZYMEA.mjs → chunk-5G3XZWSW.mjs} +4916 -6400
- package/dist/chunk-5GH7XD7X.mjs +430 -0
- package/dist/chunk-6WDH57MJ.mjs +430 -0
- package/dist/chunk-A32PWTD2.mjs +430 -0
- package/dist/chunk-BD5XQH5Z.mjs +430 -0
- package/dist/chunk-DBJE4TRO.mjs +430 -0
- package/dist/chunk-EQ7Y2PUI.mjs +1842 -0
- package/dist/chunk-F76YTG3S.mjs +430 -0
- package/dist/chunk-HJVDKPVW.mjs +245 -0
- package/dist/chunk-IMT3UTOT.mjs +430 -0
- package/dist/chunk-J66ITCXC.mjs +473 -0
- package/dist/chunk-KEYBUMOR.mjs +430 -0
- package/dist/chunk-KLFTBWEG.mjs +430 -0
- package/dist/chunk-KNP35WAB.mjs +27 -0
- package/dist/chunk-LERXSJHD.mjs +430 -0
- package/dist/chunk-MKEWYVTJ.mjs +430 -0
- package/dist/chunk-NTNVQZJU.mjs +89 -0
- package/dist/chunk-OH5HH4G3.mjs +430 -0
- package/dist/chunk-SPPTDVJC.mjs +211 -0
- package/dist/chunk-W5O2JSVK.mjs +20 -0
- package/dist/{chunk-BUC7QXRO.mjs → chunk-WI24JME4.mjs} +13 -5
- package/dist/chunk-ZFGYQSNR.mjs +33 -0
- package/dist/client.d.mts +1616 -64
- package/dist/client.d.ts +1616 -64
- package/dist/client.js +13417 -6683
- package/dist/client.mjs +303 -60
- package/dist/en-D9CWSH3F.d.mts +428 -0
- package/dist/en-D9CWSH3F.d.ts +428 -0
- package/dist/index.d.mts +632 -5
- package/dist/index.d.ts +632 -5
- package/dist/index.js +22423 -13558
- package/dist/index.mjs +2198 -61
- package/dist/locales/lazy/all.d.mts +2 -0
- package/dist/locales/lazy/all.d.ts +2 -0
- package/dist/locales/lazy/all.js +5150 -0
- package/dist/locales/lazy/all.mjs +50 -0
- package/dist/locales/lazy/ar.d.mts +2 -0
- package/dist/locales/lazy/ar.d.ts +2 -0
- package/dist/locales/lazy/ar.js +870 -0
- package/dist/locales/lazy/ar.mjs +10 -0
- package/dist/locales/lazy/de.d.mts +2 -0
- package/dist/locales/lazy/de.d.ts +2 -0
- package/dist/locales/lazy/de.js +870 -0
- package/dist/locales/lazy/de.mjs +10 -0
- package/dist/locales/lazy/es.d.mts +2 -0
- package/dist/locales/lazy/es.d.ts +2 -0
- package/dist/locales/lazy/es.js +870 -0
- package/dist/locales/lazy/es.mjs +10 -0
- package/dist/locales/lazy/fr.d.mts +2 -0
- package/dist/locales/lazy/fr.d.ts +2 -0
- package/dist/locales/lazy/fr.js +870 -0
- package/dist/locales/lazy/fr.mjs +10 -0
- package/dist/locales/lazy/he.d.mts +2 -0
- package/dist/locales/lazy/he.d.ts +2 -0
- package/dist/locales/lazy/he.js +870 -0
- package/dist/locales/lazy/he.mjs +10 -0
- package/dist/locales/lazy/hu.d.mts +2 -0
- package/dist/locales/lazy/hu.d.ts +2 -0
- package/dist/locales/lazy/hu.js +870 -0
- package/dist/locales/lazy/hu.mjs +10 -0
- package/dist/locales/lazy/index.d.mts +25 -0
- package/dist/locales/lazy/index.d.ts +25 -0
- package/dist/locales/lazy/index.js +479 -0
- package/dist/locales/lazy/index.mjs +9 -0
- package/dist/locales/lazy/it.d.mts +2 -0
- package/dist/locales/lazy/it.d.ts +2 -0
- package/dist/locales/lazy/it.js +870 -0
- package/dist/locales/lazy/it.mjs +10 -0
- package/dist/locales/lazy/ja.d.mts +2 -0
- package/dist/locales/lazy/ja.d.ts +2 -0
- package/dist/locales/lazy/ja.js +870 -0
- package/dist/locales/lazy/ja.mjs +10 -0
- package/dist/locales/lazy/ko.d.mts +2 -0
- package/dist/locales/lazy/ko.d.ts +2 -0
- package/dist/locales/lazy/ko.js +870 -0
- package/dist/locales/lazy/ko.mjs +10 -0
- package/dist/locales/lazy/ru.d.mts +2 -0
- package/dist/locales/lazy/ru.d.ts +2 -0
- package/dist/locales/lazy/ru.js +870 -0
- package/dist/locales/lazy/ru.mjs +10 -0
- package/dist/locales/lazy/zh.d.mts +2 -0
- package/dist/locales/lazy/zh.d.ts +2 -0
- package/dist/locales/lazy/zh.js +870 -0
- package/dist/locales/lazy/zh.mjs +10 -0
- package/dist/map.css +658 -0
- package/dist/map.d.mts +118 -0
- package/dist/map.d.ts +118 -0
- package/dist/map.js +778 -0
- package/dist/map.mjs +395 -0
- package/dist/reference-theme-explorer.d.mts +34 -0
- package/dist/reference-theme-explorer.d.ts +34 -0
- package/dist/reference-theme-explorer.js +9488 -0
- package/dist/reference-theme-explorer.mjs +1988 -0
- package/dist/rich-text-editor.d.mts +32 -0
- package/dist/rich-text-editor.d.ts +32 -0
- package/dist/rich-text-editor.js +469 -0
- package/dist/rich-text-editor.mjs +115 -0
- package/dist/server.d.mts +112 -248
- package/dist/server.d.ts +112 -248
- package/dist/server.js +8461 -1889
- package/dist/server.mjs +598 -57
- package/package.json +110 -10
- package/dist/AISearchCard-Bbnsd-yl.d.mts +0 -7786
- package/dist/AISearchCard-Bbnsd-yl.d.ts +0 -7786
- package/dist/chunk-5AJJNRZF.mjs +0 -5847
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
-
GdsIcons,
|
|
3
2
|
StateBlock
|
|
4
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SPPTDVJC.mjs";
|
|
4
|
+
import {
|
|
5
|
+
GdsIcons
|
|
6
|
+
} from "./chunk-J66ITCXC.mjs";
|
|
5
7
|
|
|
6
8
|
// src/PartnerDiscovery.tsx
|
|
9
|
+
import { useGdsTranslation } from "@sovereignsquad/gds-theme";
|
|
7
10
|
import {
|
|
8
11
|
Anchor,
|
|
9
12
|
Badge,
|
|
@@ -306,10 +309,12 @@ function PartnerPlaceResultCard({
|
|
|
306
309
|
place,
|
|
307
310
|
amenityLabels = {},
|
|
308
311
|
active = false,
|
|
309
|
-
detailLabel
|
|
312
|
+
detailLabel: detailLabelProp,
|
|
310
313
|
onSelect,
|
|
311
314
|
onEvent
|
|
312
315
|
}) {
|
|
316
|
+
const { t } = useGdsTranslation();
|
|
317
|
+
const detailLabel = detailLabelProp ?? t("gds.partnerDiscovery.detailLabel", "See details");
|
|
313
318
|
return /* @__PURE__ */ jsx(
|
|
314
319
|
Card,
|
|
315
320
|
{
|
|
@@ -375,9 +380,12 @@ function PartnerMapPin({
|
|
|
375
380
|
function PartnerMapControls({
|
|
376
381
|
onZoomIn,
|
|
377
382
|
onZoomOut,
|
|
378
|
-
zoomInLabel
|
|
379
|
-
zoomOutLabel
|
|
383
|
+
zoomInLabel: zoomInLabelProp,
|
|
384
|
+
zoomOutLabel: zoomOutLabelProp
|
|
380
385
|
}) {
|
|
386
|
+
const { t } = useGdsTranslation();
|
|
387
|
+
const zoomInLabel = zoomInLabelProp ?? t("gds.partnerDiscovery.zoomInLabel", "Zoom in");
|
|
388
|
+
const zoomOutLabel = zoomOutLabelProp ?? t("gds.partnerDiscovery.zoomOutLabel", "Zoom out");
|
|
381
389
|
return /* @__PURE__ */ jsxs(Group, { gap: "xs", children: [
|
|
382
390
|
/* @__PURE__ */ jsx(Button, { type: "button", variant: "default", "aria-label": zoomInLabel, onClick: onZoomIn, w: 32, h: 32, p: 0, children: /* @__PURE__ */ jsx(GdsIcons.Add, { size: "1rem", "aria-hidden": true }) }),
|
|
383
391
|
/* @__PURE__ */ jsx(Button, { type: "button", variant: "default", "aria-label": zoomOutLabel, onClick: onZoomOut, w: 32, h: 32, p: 0, children: /* @__PURE__ */ jsx(GdsIcons.Remove, { size: "1rem", "aria-hidden": true }) })
|
|
@@ -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
|
+
};
|