@viglet/viglet-design-system 2026.2.34 → 2026.2.35

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.
@@ -0,0 +1,17 @@
1
+ import { default as vigletLogoUrl } from './viglet.png';
2
+ import { default as turingLogoUrl } from './turing.png';
3
+ import { default as shioLogoUrl } from './shio.png';
4
+ import { default as dumontLogoUrl } from './dumont.png';
5
+ export { vigletLogoUrl, turingLogoUrl, shioLogoUrl, dumontLogoUrl };
6
+ /**
7
+ * Convenience map keyed by product id, matching the `vg-dot-*` utility
8
+ * class names and the institutional palette.
9
+ */
10
+ export declare const productLogos: {
11
+ readonly viglet: string;
12
+ readonly turing: string;
13
+ readonly shio: string;
14
+ readonly dumont: string;
15
+ };
16
+ export type ProductId = keyof typeof productLogos;
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/assets/products/index.ts"],"names":[],"mappings":"AAEA,OAAO,aAAa,MAAM,cAAc,CAAC;AACzC,OAAO,aAAa,MAAM,cAAc,CAAC;AACzC,OAAO,WAAW,MAAM,YAAY,CAAC;AACrC,OAAO,aAAa,MAAM,cAAc,CAAC;AAEzC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC;AAEpE;;;GAGG;AACH,eAAO,MAAM,YAAY;;;;;CAKf,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,MAAM,OAAO,YAAY,CAAC"}
@@ -23,4 +23,5 @@ export { StickyPageHeader } from './sticky.page.header';
23
23
  export { SubPage } from './sub.page';
24
24
  export { SubPageHeader } from './sub.page.header';
25
25
  export { ThemeProvider, useTheme } from './theme-provider';
26
+ export { VigletAppSwitcher, type VigletAppSwitcherProps, type VigletAppSwitcherUrls, type VigletProduct, } from './viglet-app-switcher';
26
27
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file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CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EACL,iBAAiB,EACjB,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,aAAa,GACnB,MAAM,uBAAuB,CAAC"}
@@ -0,0 +1,33 @@
1
+ export type VigletProduct = "cloud" | "turing" | "shio" | "dumont";
2
+ export interface VigletAppSwitcherUrls {
3
+ cloud?: string;
4
+ turing?: string;
5
+ shio?: string;
6
+ dumont?: string;
7
+ docs?: string;
8
+ }
9
+ export interface VigletAppSwitcherProps {
10
+ open: boolean;
11
+ onToggle: () => void;
12
+ /** Which product is currently running (highlighted + checkmark, renders as a local "/"). */
13
+ activeProduct: VigletProduct;
14
+ /** Override any URL (useful for dev/staging or custom domains). */
15
+ urls?: VigletAppSwitcherUrls;
16
+ /** Tooltip for the trigger button. Default: "Apps" (translated via i18n if key exists). */
17
+ triggerTitle?: string;
18
+ /** Aria label for the close overlay. */
19
+ closeLabel?: string;
20
+ /** Header height in px so the panel sits below the app header. Default 56. */
21
+ headerHeight?: number;
22
+ }
23
+ /**
24
+ * Pre-configured Viglet app switcher — same list of apps across the entire
25
+ * suite (Cloud, Turing, Shio, Dumont, Docs). Highlights the current product
26
+ * and opens the others in a new tab.
27
+ *
28
+ * Keeping the list hard-coded here ensures the navigation is consistent
29
+ * across every deployment. Apps that need to customize the URLs (custom
30
+ * domain, dev environment) can pass `urls`.
31
+ */
32
+ export declare function VigletAppSwitcher({ open, onToggle, activeProduct, urls, triggerTitle, closeLabel, headerHeight, }: Readonly<VigletAppSwitcherProps>): import("react/jsx-runtime").JSX.Element;
33
+ //# sourceMappingURL=viglet-app-switcher.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"viglet-app-switcher.d.ts","sourceRoot":"","sources":["../../../src/components/viglet-app-switcher.tsx"],"names":[],"mappings":"AASA,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEnE,MAAM,WAAW,qBAAqB;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAUD,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,4FAA4F;IAC5F,aAAa,EAAE,aAAa,CAAC;IAC7B,mEAAmE;IACnE,IAAI,CAAC,EAAE,qBAAqB,CAAC;IAC7B,2FAA2F;IAC3F,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wCAAwC;IACxC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,8EAA8E;IAC9E,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,IAAI,EACJ,YAAY,EACZ,UAAU,EACV,YAAiB,GAClB,EAAE,QAAQ,CAAC,sBAAsB,CAAC,2CA4DlC"}
@@ -1,4 +1,5 @@
1
1
  export * from './components';
2
+ export { vigletLogoUrl, turingLogoUrl, shioLogoUrl, dumontLogoUrl, productLogos, type ProductId, } from './assets/products';
2
3
  export * from './hooks';
3
4
  export { BreadcrumbProvider, useBreadcrumb, useBreadcrumbOptional, UserProvider, useCurrentUser } from './contexts';
4
5
  export type { BreadcrumbItem as VigBreadcrumbItem } from './contexts';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,oBAAoB,CAAC;AAG5B,cAAc,cAAc,CAAC;AAG7B,cAAc,SAAS,CAAC;AAGxB,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,qBAAqB,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACpH,YAAY,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAGtE,cAAc,OAAO,CAAC;AAGtB,cAAc,UAAU,CAAC;AAGzB,OAAO,EAAE,uBAAuB,EAAE,2BAA2B,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,oBAAoB,CAAC;AAG5B,cAAc,cAAc,CAAC;AAG7B,OAAO,EACL,aAAa,EACb,aAAa,EACb,WAAW,EACX,aAAa,EACb,YAAY,EACZ,KAAK,SAAS,GACf,MAAM,mBAAmB,CAAC;AAG3B,cAAc,SAAS,CAAC;AAGxB,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,qBAAqB,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACpH,YAAY,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAGtE,cAAc,OAAO,CAAC;AAGtB,cAAc,UAAU,CAAC;AAGzB,OAAO,EAAE,uBAAuB,EAAE,2BAA2B,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC"}