@telicent-oss/ds 0.15.1 → 0.16.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/ds.js CHANGED
@@ -19470,12 +19470,12 @@ var beforeRead = "beforeRead";
19470
19470
  var read = "read";
19471
19471
  var afterRead = "afterRead";
19472
19472
  var beforeMain = "beforeMain";
19473
- var main$2 = "main";
19473
+ var main$3 = "main";
19474
19474
  var afterMain = "afterMain";
19475
19475
  var beforeWrite = "beforeWrite";
19476
19476
  var write = "write";
19477
19477
  var afterWrite = "afterWrite";
19478
- var modifierPhases = [beforeRead, read, afterRead, beforeMain, main$2, afterMain, beforeWrite, write, afterWrite];
19478
+ var modifierPhases = [beforeRead, read, afterRead, beforeMain, main$3, afterMain, beforeWrite, write, afterWrite];
19479
19479
  function getNodeName(element) {
19480
19480
  return element ? (element.nodeName || "").toLowerCase() : null;
19481
19481
  }
@@ -55053,7 +55053,8 @@ const AppBar2 = ({
55053
55053
  beta = false,
55054
55054
  position: position2 = "relative",
55055
55055
  apps = [],
55056
- userProfile
55056
+ endChild,
55057
+ version
55057
55058
  }) => {
55058
55059
  const theme = useExtendedTheme();
55059
55060
  return /* @__PURE__ */ jsxs(AppBar$1, { color: "inherit", position: position2, children: [
@@ -55075,17 +55076,16 @@ const AppBar2 = ({
55075
55076
  fontFamily: "Figtree",
55076
55077
  fontSize: 40
55077
55078
  }, children: appName }),
55078
- beta && /* @__PURE__ */ jsx$1(Box, { position: "absolute", right: -28, bottom: 2, fontSize: 8, paddingInline: 0.5, sx: {
55079
- backgroundColor: theme.palette.primary.main,
55080
- color: theme.palette.primary.contrastText
55081
- }, children: "BETA" })
55079
+ version && /* @__PURE__ */ jsx$1(Box, { position: "absolute", right: -33, bottom: 5, fontSize: 12, paddingInline: 0.5, sx: {
55080
+ color: theme.palette.secondary.contrastText
55081
+ }, children: version })
55082
55082
  ] }),
55083
- userProfile && /* @__PURE__ */ jsx$1(Stack, { sx: {
55083
+ endChild && /* @__PURE__ */ jsx$1(Stack, { sx: {
55084
55084
  position: "absolute",
55085
55085
  top: "50%",
55086
55086
  right: 16,
55087
55087
  transform: "translate(0, -50%)"
55088
- }, children: userProfile })
55088
+ }, children: endChild })
55089
55089
  ] });
55090
55090
  };
55091
55091
  const AppChrome = ({
@@ -60646,8 +60646,17 @@ const DATA_NAVY = {
60646
60646
  500: "#2F44CA",
60647
60647
  600: "#2636A2"
60648
60648
  };
60649
- const main$1 = "#F56AAA";
60649
+ const main$2 = "#F56AAA";
60650
60650
  const DOCUMENT_PINK = {
60651
+ 50: alpha$1(main$2, 0.1),
60652
+ 100: alpha$1(main$2, 0.2),
60653
+ 200: alpha$1(main$2, 0.3),
60654
+ 400: alpha$1(main$2, 0.5),
60655
+ 500: main$2,
60656
+ 600: alpha$1(main$2, 0.7)
60657
+ };
60658
+ const main$1 = "#F2A64B";
60659
+ const GRAPH_ORANGE = {
60651
60660
  50: alpha$1(main$1, 0.1),
60652
60661
  100: alpha$1(main$1, 0.2),
60653
60662
  200: alpha$1(main$1, 0.3),
@@ -60655,8 +60664,8 @@ const DOCUMENT_PINK = {
60655
60664
  500: main$1,
60656
60665
  600: alpha$1(main$1, 0.7)
60657
60666
  };
60658
- const main = "#F2A64B";
60659
- const GRAPH_ORANGE = {
60667
+ const main = "#20BCFA";
60668
+ const ADMIN_BLUE = {
60660
60669
  50: alpha$1(main, 0.1),
60661
60670
  100: alpha$1(main, 0.2),
60662
60671
  200: alpha$1(main, 0.3),
@@ -60664,7 +60673,7 @@ const GRAPH_ORANGE = {
60664
60673
  500: main,
60665
60674
  600: alpha$1(main, 0.7)
60666
60675
  };
60667
- const UIThemeSchema = z.enum(["light", "dark", "DataNavy", "DocumentPink", "GraphOrange"]);
60676
+ const UIThemeSchema = z.enum(["light", "dark", "DataNavy", "DocumentPink", "GraphOrange", "AdminBlue"]);
60668
60677
  const lightMain = common.white;
60669
60678
  const THEME_COLORS = {
60670
60679
  DataNavy: {
@@ -60685,7 +60694,7 @@ const THEME_COLORS = {
60685
60694
  // TODO fix dark theme
60686
60695
  light: alpha$1(lightMain, 0.5),
60687
60696
  dark: alpha$1(lightMain, 0.9),
60688
- contrastText: common.black
60697
+ contrastText: common.white
60689
60698
  },
60690
60699
  DocumentPink: {
60691
60700
  ...DOCUMENT_PINK,
@@ -60700,6 +60709,13 @@ const THEME_COLORS = {
60700
60709
  light: GRAPH_ORANGE[400],
60701
60710
  dark: GRAPH_ORANGE[600],
60702
60711
  contrastText: common.black
60712
+ },
60713
+ AdminBlue: {
60714
+ ...ADMIN_BLUE,
60715
+ main: ADMIN_BLUE[500],
60716
+ light: ADMIN_BLUE[400],
60717
+ dark: ADMIN_BLUE[600],
60718
+ contrastText: common.black
60703
60719
  }
60704
60720
  };
60705
60721
  const AVATAR_OVERRIDES = {
package/dist/ds.umd.cjs CHANGED
@@ -19488,12 +19488,12 @@ Please use another name.` : formatMuiErrorMessage$1(18));
19488
19488
  var read = "read";
19489
19489
  var afterRead = "afterRead";
19490
19490
  var beforeMain = "beforeMain";
19491
- var main$2 = "main";
19491
+ var main$3 = "main";
19492
19492
  var afterMain = "afterMain";
19493
19493
  var beforeWrite = "beforeWrite";
19494
19494
  var write = "write";
19495
19495
  var afterWrite = "afterWrite";
19496
- var modifierPhases = [beforeRead, read, afterRead, beforeMain, main$2, afterMain, beforeWrite, write, afterWrite];
19496
+ var modifierPhases = [beforeRead, read, afterRead, beforeMain, main$3, afterMain, beforeWrite, write, afterWrite];
19497
19497
  function getNodeName(element) {
19498
19498
  return element ? (element.nodeName || "").toLowerCase() : null;
19499
19499
  }
@@ -55071,7 +55071,8 @@ Please use another name.` : formatMuiErrorMessage$1(18));
55071
55071
  beta = false,
55072
55072
  position: position2 = "relative",
55073
55073
  apps = [],
55074
- userProfile
55074
+ endChild,
55075
+ version
55075
55076
  }) => {
55076
55077
  const theme = useExtendedTheme();
55077
55078
  return /* @__PURE__ */ jsxs(AppBar$1, { color: "inherit", position: position2, children: [
@@ -55093,17 +55094,16 @@ Please use another name.` : formatMuiErrorMessage$1(18));
55093
55094
  fontFamily: "Figtree",
55094
55095
  fontSize: 40
55095
55096
  }, children: appName }),
55096
- beta && /* @__PURE__ */ jsx$1(Box, { position: "absolute", right: -28, bottom: 2, fontSize: 8, paddingInline: 0.5, sx: {
55097
- backgroundColor: theme.palette.primary.main,
55098
- color: theme.palette.primary.contrastText
55099
- }, children: "BETA" })
55097
+ version && /* @__PURE__ */ jsx$1(Box, { position: "absolute", right: -33, bottom: 5, fontSize: 12, paddingInline: 0.5, sx: {
55098
+ color: theme.palette.secondary.contrastText
55099
+ }, children: version })
55100
55100
  ] }),
55101
- userProfile && /* @__PURE__ */ jsx$1(Stack, { sx: {
55101
+ endChild && /* @__PURE__ */ jsx$1(Stack, { sx: {
55102
55102
  position: "absolute",
55103
55103
  top: "50%",
55104
55104
  right: 16,
55105
55105
  transform: "translate(0, -50%)"
55106
- }, children: userProfile })
55106
+ }, children: endChild })
55107
55107
  ] });
55108
55108
  };
55109
55109
  const AppChrome = ({
@@ -60664,8 +60664,17 @@ Please use another name.` : formatMuiErrorMessage$1(18));
60664
60664
  500: "#2F44CA",
60665
60665
  600: "#2636A2"
60666
60666
  };
60667
- const main$1 = "#F56AAA";
60667
+ const main$2 = "#F56AAA";
60668
60668
  const DOCUMENT_PINK = {
60669
+ 50: alpha$1(main$2, 0.1),
60670
+ 100: alpha$1(main$2, 0.2),
60671
+ 200: alpha$1(main$2, 0.3),
60672
+ 400: alpha$1(main$2, 0.5),
60673
+ 500: main$2,
60674
+ 600: alpha$1(main$2, 0.7)
60675
+ };
60676
+ const main$1 = "#F2A64B";
60677
+ const GRAPH_ORANGE = {
60669
60678
  50: alpha$1(main$1, 0.1),
60670
60679
  100: alpha$1(main$1, 0.2),
60671
60680
  200: alpha$1(main$1, 0.3),
@@ -60673,8 +60682,8 @@ Please use another name.` : formatMuiErrorMessage$1(18));
60673
60682
  500: main$1,
60674
60683
  600: alpha$1(main$1, 0.7)
60675
60684
  };
60676
- const main = "#F2A64B";
60677
- const GRAPH_ORANGE = {
60685
+ const main = "#20BCFA";
60686
+ const ADMIN_BLUE = {
60678
60687
  50: alpha$1(main, 0.1),
60679
60688
  100: alpha$1(main, 0.2),
60680
60689
  200: alpha$1(main, 0.3),
@@ -60682,7 +60691,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
60682
60691
  500: main,
60683
60692
  600: alpha$1(main, 0.7)
60684
60693
  };
60685
- const UIThemeSchema = z.enum(["light", "dark", "DataNavy", "DocumentPink", "GraphOrange"]);
60694
+ const UIThemeSchema = z.enum(["light", "dark", "DataNavy", "DocumentPink", "GraphOrange", "AdminBlue"]);
60686
60695
  const lightMain = common.white;
60687
60696
  const THEME_COLORS = {
60688
60697
  DataNavy: {
@@ -60703,7 +60712,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
60703
60712
  // TODO fix dark theme
60704
60713
  light: alpha$1(lightMain, 0.5),
60705
60714
  dark: alpha$1(lightMain, 0.9),
60706
- contrastText: common.black
60715
+ contrastText: common.white
60707
60716
  },
60708
60717
  DocumentPink: {
60709
60718
  ...DOCUMENT_PINK,
@@ -60718,6 +60727,13 @@ Please use another name.` : formatMuiErrorMessage$1(18));
60718
60727
  light: GRAPH_ORANGE[400],
60719
60728
  dark: GRAPH_ORANGE[600],
60720
60729
  contrastText: common.black
60730
+ },
60731
+ AdminBlue: {
60732
+ ...ADMIN_BLUE,
60733
+ main: ADMIN_BLUE[500],
60734
+ light: ADMIN_BLUE[400],
60735
+ dark: ADMIN_BLUE[600],
60736
+ contrastText: common.black
60721
60737
  }
60722
60738
  };
60723
60739
  const AVATAR_OVERRIDES = {
@@ -6,8 +6,9 @@ export type AppBarProps = Partial<{
6
6
  appName: string;
7
7
  beta: boolean;
8
8
  apps: AppSwitchLibraryType;
9
- userProfile: React.ReactNode;
9
+ endChild: React.ReactNode;
10
10
  position: MUIAppBarProps["position"];
11
+ version: string;
11
12
  }>;
12
13
  declare const AppBar: React.FC<AppBarProps>;
13
14
  export default AppBar;
@@ -7,3 +7,5 @@ type Story = StoryObj<typeof AppBar>;
7
7
  export declare const Example: Story;
8
8
  export declare const WithAppName: Story;
9
9
  export declare const WithUserProfile: Story;
10
+ export declare const WithVersionNumber: Story;
11
+ export declare const WithSignOutButton: Story;
@@ -0,0 +1,9 @@
1
+ declare const ADMIN_BLUE: {
2
+ 50: string;
3
+ 100: string;
4
+ 200: string;
5
+ 400: string;
6
+ 500: string;
7
+ 600: string;
8
+ };
9
+ export default ADMIN_BLUE;
@@ -1,6 +1,6 @@
1
1
  import { default as zod } from 'zod';
2
2
 
3
- export declare const UIThemeSchema: zod.ZodEnum<["light", "dark", "DataNavy", "DocumentPink", "GraphOrange"]>;
3
+ export declare const UIThemeSchema: zod.ZodEnum<["light", "dark", "DataNavy", "DocumentPink", "GraphOrange", "AdminBlue"]>;
4
4
  export type UITheme = zod.infer<typeof UIThemeSchema>;
5
5
  declare const THEME_COLORS: {
6
6
  DataNavy: {
@@ -25,7 +25,7 @@ declare const THEME_COLORS: {
25
25
  main: "#fff";
26
26
  light: string;
27
27
  dark: string;
28
- contrastText: "#000";
28
+ contrastText: "#fff";
29
29
  };
30
30
  DocumentPink: {
31
31
  main: string;
@@ -51,5 +51,17 @@ declare const THEME_COLORS: {
51
51
  500: string;
52
52
  600: string;
53
53
  };
54
+ AdminBlue: {
55
+ main: string;
56
+ light: string;
57
+ dark: string;
58
+ contrastText: "#000";
59
+ 50: string;
60
+ 100: string;
61
+ 200: string;
62
+ 400: string;
63
+ 500: string;
64
+ 600: string;
65
+ };
54
66
  };
55
67
  export default THEME_COLORS;
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "url": "https://github.com/telicent-oss/telicent-ds.git"
8
8
  },
9
9
  "type": "module",
10
- "version": "0.15.1",
10
+ "version": "0.16.0",
11
11
  "private": false,
12
12
  "dependencies": {
13
13
  "@emotion/react": "^11.10.6",