@telicent-oss/ds 0.15.0 → 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 = {
@@ -61058,42 +61074,6 @@ const Modal2 = ({
61058
61074
  children2
61059
61075
  ] }) });
61060
61076
  };
61061
- const propCheckErrorDefault = (problem) => {
61062
- if (process.env.NODE_ENV === "production") {
61063
- console.warn(problem);
61064
- } else {
61065
- throw new Error(problem);
61066
- }
61067
- };
61068
- const SocketedText = ({
61069
- children: children2,
61070
- beforeItem,
61071
- afterItem,
61072
- beforeItemSX,
61073
- afterItemSX,
61074
- component = "span",
61075
- href,
61076
- containerSX,
61077
- propCheckError = propCheckErrorDefault,
61078
- ...rest
61079
- }) => {
61080
- if (component === "a" && !href) {
61081
- propCheckError('SocketedText: When using component="a", the "href" prop is required.');
61082
- }
61083
- if (beforeItem === void 0 && afterItem === void 0) {
61084
- propCheckError("SocketedText: Sockets unused; use normal Text/Typography component instead");
61085
- }
61086
- return /* @__PURE__ */ jsx$1(Typography, { component, href, ...rest, children: /* @__PURE__ */ jsxs(Box, { component: "span", sx: {
61087
- display: "inline-flex",
61088
- alignItems: "center",
61089
- gap: 1,
61090
- ...containerSX
61091
- }, children: [
61092
- beforeItem && /* @__PURE__ */ jsx$1(Box, { component: "span", sx: beforeItemSX, children: beforeItem }),
61093
- /* @__PURE__ */ jsx$1(Box, { component: "span", children: children2 }),
61094
- afterItem && /* @__PURE__ */ jsx$1(Box, { component: "span", sx: afterItemSX, children: afterItem })
61095
- ] }) });
61096
- };
61097
61077
  export {
61098
61078
  AppBar2 as AppBar,
61099
61079
  AppChrome,
@@ -61157,7 +61137,6 @@ export {
61157
61137
  SearchIcon,
61158
61138
  SearchResults,
61159
61139
  Skeleton2 as Skeleton,
61160
- SocketedText,
61161
61140
  TeliAddIcon,
61162
61141
  TeliAutocomplete,
61163
61142
  TeliBasicLayout,
@@ -61216,7 +61195,6 @@ export {
61216
61195
  UserProfileContent,
61217
61196
  UserStatus,
61218
61197
  checkOntology,
61219
- propCheckErrorDefault,
61220
61198
  useDebounce,
61221
61199
  useExtendedTheme,
61222
61200
  useFloatingPanels
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 = {
@@ -61076,42 +61092,6 @@ Please use another name.` : formatMuiErrorMessage$1(18));
61076
61092
  children2
61077
61093
  ] }) });
61078
61094
  };
61079
- const propCheckErrorDefault = (problem) => {
61080
- if (process.env.NODE_ENV === "production") {
61081
- console.warn(problem);
61082
- } else {
61083
- throw new Error(problem);
61084
- }
61085
- };
61086
- const SocketedText = ({
61087
- children: children2,
61088
- beforeItem,
61089
- afterItem,
61090
- beforeItemSX,
61091
- afterItemSX,
61092
- component = "span",
61093
- href,
61094
- containerSX,
61095
- propCheckError = propCheckErrorDefault,
61096
- ...rest
61097
- }) => {
61098
- if (component === "a" && !href) {
61099
- propCheckError('SocketedText: When using component="a", the "href" prop is required.');
61100
- }
61101
- if (beforeItem === void 0 && afterItem === void 0) {
61102
- propCheckError("SocketedText: Sockets unused; use normal Text/Typography component instead");
61103
- }
61104
- return /* @__PURE__ */ jsx$1(Typography, { component, href, ...rest, children: /* @__PURE__ */ jsxs(Box, { component: "span", sx: {
61105
- display: "inline-flex",
61106
- alignItems: "center",
61107
- gap: 1,
61108
- ...containerSX
61109
- }, children: [
61110
- beforeItem && /* @__PURE__ */ jsx$1(Box, { component: "span", sx: beforeItemSX, children: beforeItem }),
61111
- /* @__PURE__ */ jsx$1(Box, { component: "span", children: children2 }),
61112
- afterItem && /* @__PURE__ */ jsx$1(Box, { component: "span", sx: afterItemSX, children: afterItem })
61113
- ] }) });
61114
- };
61115
61095
  exports2.AppBar = AppBar;
61116
61096
  exports2.AppChrome = AppChrome;
61117
61097
  exports2.AppSwitch = AppSwitch$1;
@@ -61174,7 +61154,6 @@ Please use another name.` : formatMuiErrorMessage$1(18));
61174
61154
  exports2.SearchIcon = SearchIcon;
61175
61155
  exports2.SearchResults = SearchResults;
61176
61156
  exports2.Skeleton = Skeleton;
61177
- exports2.SocketedText = SocketedText;
61178
61157
  exports2.TeliAddIcon = TeliAddIcon;
61179
61158
  exports2.TeliAutocomplete = TeliAutocomplete;
61180
61159
  exports2.TeliBasicLayout = TeliBasicLayout;
@@ -61233,7 +61212,6 @@ Please use another name.` : formatMuiErrorMessage$1(18));
61233
61212
  exports2.UserProfileContent = UserProfileContent;
61234
61213
  exports2.UserStatus = UserStatus;
61235
61214
  exports2.checkOntology = checkOntology;
61236
- exports2.propCheckErrorDefault = propCheckErrorDefault;
61237
61215
  exports2.useDebounce = useDebounce;
61238
61216
  exports2.useExtendedTheme = useExtendedTheme;
61239
61217
  exports2.useFloatingPanels = useFloatingPanels;
@@ -12,4 +12,3 @@ export * from './v1/components/layout';
12
12
  export * from './v1/components/surfaces';
13
13
  export * from './v1/theme';
14
14
  export { Modal, type ModalProps } from './v1/components/utils/index';
15
- export * from './component-library/components/data-display/SocketedText';
@@ -318,7 +318,10 @@ export default meta;
318
318
  type Story = StoryObj<typeof meta>;
319
319
  export declare const Primary: Story;
320
320
  export declare const Secondary: Story;
321
+ export declare const DisableElevation: Story;
321
322
  export declare const Tertiary: Story;
323
+ export declare const Link: Story;
324
+ export declare const Text: Story;
322
325
  export declare const Sizing: Story;
323
326
  export declare const WithIconsAndLabel: Story;
324
327
  export declare const FullWidth: Story;
@@ -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.0",
10
+ "version": "0.16.0",
11
11
  "private": false,
12
12
  "dependencies": {
13
13
  "@emotion/react": "^11.10.6",
@@ -1,32 +0,0 @@
1
- import { default as React } from 'react';
2
- import { TypographyProps, SxProps } from '@mui/material';
3
-
4
- export interface SocketedTextProps extends Omit<TypographyProps, "component"> {
5
- beforeItem?: React.ReactNode;
6
- afterItem?: React.ReactNode;
7
- beforeItemSX?: SxProps;
8
- afterItemSX?: SxProps;
9
- href?: string;
10
- containerSX?: SxProps;
11
- component?: React.ElementType;
12
- propCheckError?: (problem: string) => void;
13
- }
14
- export declare const propCheckErrorDefault: (problem: string) => void;
15
- /**
16
- * The intended use of SocketedText to render text with a trailing, or leading icon.
17
-
18
- * This component mimic's MUI’s Typography by default, except it has beforeItem or afterItem sockets.
19
- *
20
- * The text and icons are wrapped in an inline‑flex container with sensible defaults.
21
- *
22
- * All Typography props are forwarded, so this component behaves like any other Typography element.
23
- *
24
- * **Nomenclature**: The word "Socketed" is used in the [Diablo2](https://gamefaqs.gamespot.com/pc/370600-diablo-ii-lord-of-destruction/faqs/8382) sense:
25
- *
26
- * > Socketed items are exactly the same as normal items, but with sockets in them.
27
- * > This allows you to insert gems or skulls in order to add magical properties to your items.
28
- *
29
- * <sup>This may be a terrible name</sup>
30
- *
31
- */
32
- export declare const SocketedText: React.FC<SocketedTextProps>;
@@ -1,24 +0,0 @@
1
- import { StoryObj } from '@storybook/react';
2
- import { SocketedText, SocketedTextProps } from './SocketedText';
3
-
4
- declare const meta: {
5
- title: string;
6
- component: import('react').FC<SocketedTextProps>;
7
- tags: string[];
8
- args: {
9
- children: string;
10
- };
11
- };
12
- export default meta;
13
- type Story = StoryObj<typeof SocketedText>;
14
- export declare const Default: Story;
15
- export declare const AfterItem: Story;
16
- export declare const WithBothSlots: Story;
17
- export declare const AsLink: Story;
18
- export declare const HeaderVariant: Story;
19
- export declare const ComparisonWithTypography: Story;
20
- export declare const CustomSlotStyles: Story;
21
- export declare const Wrappedchildren: Story;
22
- export declare const WrappedTextAlignStart: Story;
23
- export declare const ErrorWhenNobeforeItemAndNoEndSet: Story;
24
- export declare const ErrorWhenAnchorButNoHrefSet: Story;