@scrippsproduct/networks-ui-library 1.0.23 → 1.1.0-alpha.1

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 (126) hide show
  1. package/dist/{Form.module-DbpB9u1l.mjs → Form.module-Cd8qH2rj.mjs} +1 -1
  2. package/dist/{ResultsTable.module-nTlGw9Lh.mjs → ResultsTable.module-B7M9y7hd.mjs} +1 -5
  3. package/dist/_commonjsHelpers-C6fGbg64.mjs +6 -0
  4. package/dist/{add-FrnMPwwO.mjs → add-UWUc_nrO.mjs} +2 -2
  5. package/dist/{addMonths-BDf46gmB.mjs → addMonths-FatsTLmU.mjs} +1 -1
  6. package/dist/assets/ActionButton.css +1 -1
  7. package/dist/assets/AdBlock.css +1 -1
  8. package/dist/assets/CarouselSlide.css +1 -1
  9. package/dist/assets/ChannelSearch.css +1 -1
  10. package/dist/assets/DateNavigation.css +1 -1
  11. package/dist/assets/DatePicker.css +1 -1
  12. package/dist/assets/DeviceAndPlatformLists.css +1 -1
  13. package/dist/assets/EqualSizeFlexRow.css +1 -1
  14. package/dist/assets/EqualSizeGrid.css +1 -1
  15. package/dist/assets/FeaturedList.css +1 -1
  16. package/dist/assets/Figure.css +1 -1
  17. package/dist/assets/FindUs.css +1 -1
  18. package/dist/assets/Form.css +1 -1
  19. package/dist/assets/GridList.css +1 -1
  20. package/dist/assets/IONShowHero.css +1 -1
  21. package/dist/assets/ImageCard.css +1 -1
  22. package/dist/assets/LogoListItem.css +1 -1
  23. package/dist/assets/ModalContainer.css +1 -1
  24. package/dist/assets/PageHero.css +1 -1
  25. package/dist/assets/ProgramAirdate.css +1 -1
  26. package/dist/assets/PromotionBlock.css +1 -1
  27. package/dist/assets/ResultsTable.css +1 -1
  28. package/dist/{chevron-left-DmvQntvu.mjs → chevron-left-DRvpaLmK.mjs} +1 -1
  29. package/dist/{chevron-right-CaAz6ISN.mjs → chevron-right-C8yCnmfx.mjs} +1 -1
  30. package/dist/components/ActionButton/ActionButton.d.ts +20 -1
  31. package/dist/components/ActionButton/ActionButton.js +36 -36
  32. package/dist/components/ActionButton/index.d.ts +2 -1
  33. package/dist/components/AirDateFormatter/AirDateFormatter.js +3 -3
  34. package/dist/components/BasicGridModule/BasicGridModule.js +25 -25
  35. package/dist/components/Carousel/Carousel.d.ts +7 -24
  36. package/dist/components/Carousel/Carousel.js +109 -109
  37. package/dist/components/Carousel/CarouselUtils.class.d.ts +16 -28
  38. package/dist/components/Carousel/CarouselUtils.class.js +85 -55
  39. package/dist/components/CarouselSlide/CarouselSlide.d.ts +8 -6
  40. package/dist/components/CarouselSlide/CarouselSlide.js +90 -26
  41. package/dist/components/CarouselSlide/index.d.ts +2 -1
  42. package/dist/components/CarouselSlide/slide-layouts/Empty/Empty.d.ts +1 -1
  43. package/dist/components/CarouselSlide/slide-layouts/Empty/Empty.js +3 -4
  44. package/dist/components/CarouselSlide/slide-layouts/Empty/index.d.ts +2 -1
  45. package/dist/components/CarouselSlide/slide-layouts/Figure/Figure.d.ts +2 -2
  46. package/dist/components/CarouselSlide/slide-layouts/Figure/Figure.js +10 -11
  47. package/dist/components/CarouselSlide/slide-layouts/Figure/index.d.ts +2 -1
  48. package/dist/components/CarouselSlide/slide-layouts/Text/TextSlide.d.ts +2 -2
  49. package/dist/components/CarouselSlide/slide-layouts/Text/TextSlide.js +9 -10
  50. package/dist/components/CarouselSlide/slide-layouts/Text/index.d.ts +2 -1
  51. package/dist/components/CarouselSlide/slide-layouts/TwoColumn/TwoColumnSlide.js +1 -1
  52. package/dist/components/CastInfoLayout/CastInfoLayout.js +1 -1
  53. package/dist/components/ChannelSearch/ChannelSearch.js +12 -12
  54. package/dist/components/Concat/Concat.js +1 -1
  55. package/dist/components/CtaBlock/CtaBlock.js +2 -2
  56. package/dist/components/CustomDataList/CustomDataList.js +44 -47
  57. package/dist/components/CustomSelect/CustomSelect.js +5 -5
  58. package/dist/components/DateNavigation/DateNavigation.js +7 -8
  59. package/dist/components/DatePicker/DatePicker.js +2527 -2452
  60. package/dist/components/DeviceAndPlatformLists/DeviceAndPlatformLists.js +1 -1
  61. package/dist/components/DrawerNavigation/DrawerNavigation.js +27 -29
  62. package/dist/components/ErrorHandler/ErrorHandler.js +1 -1
  63. package/dist/components/FeaturedList/FeaturedList.js +7 -7
  64. package/dist/components/Figure/Figure.js +1 -1
  65. package/dist/components/FindUs/FindUs.js +6 -6
  66. package/dist/components/GenericList/GenericList.js +1 -1
  67. package/dist/components/GetAirdateWrapper/GetAirdateWrapper.js +6 -6
  68. package/dist/components/ImageCard/ImageCard.js +6 -6
  69. package/dist/components/ImageCard/ImageCardCore.js +1 -1
  70. package/dist/components/InfoPanel/InfoPanel.js +15 -16
  71. package/dist/components/InlineNavigation/InlineNavigation.js +6 -7
  72. package/dist/components/Input/Input.js +1 -1
  73. package/dist/components/InstructionsList/InstructionsList.js +1 -1
  74. package/dist/components/Loading/Loading.js +5 -8
  75. package/dist/components/ModalContainer/ModalContainer.js +41 -44
  76. package/dist/components/Overlay/Overlay.js +17 -20
  77. package/dist/components/PageHero/page-hero-layouts/IONShow/IONShowHero.js +1 -1
  78. package/dist/components/ProgramAirdate/ProgramAirdate.js +9 -9
  79. package/dist/components/PromotionBlock/PromotionBlock.js +15 -17
  80. package/dist/components/PromotionsRowModule/PromotionsRowModule.js +8 -8
  81. package/dist/components/ResultsTable/ResultsTable.js +7 -7
  82. package/dist/components/ResultsTableBody/ResultsTableBody.js +1 -1
  83. package/dist/components/ResultsTableHeader/ResultsTableHeader.js +1 -1
  84. package/dist/components/ScheduleLayout/ScheduleLayout.js +2 -2
  85. package/dist/components/ScheduleList/ScheduleList.js +17 -17
  86. package/dist/components/ScheduleList/schedule-list-items/MovieItem.js +10 -10
  87. package/dist/components/ScheduleList/schedule-list-items/SeriesItem.js +8 -8
  88. package/dist/components/ScheduleList/schedule-list-items/SportsItem.js +8 -8
  89. package/dist/components/SectionedContent/SectionedContent.js +13 -16
  90. package/dist/components/Select/Select.js +1 -1
  91. package/dist/components/ShowAboutContent/ShowAboutContent.js +1 -1
  92. package/dist/components/ShowAboutLayout/ShowAboutLayout.js +24 -25
  93. package/dist/components/SocialLinks/SocialLinks.js +3 -3
  94. package/dist/components/SocialShareBlock/SocialShareBlock.js +8 -8
  95. package/dist/components/StringList/StringList.js +1 -1
  96. package/dist/components/TabContent/TabContent.js +1 -1
  97. package/dist/components/TextArea/TextArea.js +1 -1
  98. package/dist/components/UpcomingList/UpcomingList.js +8 -8
  99. package/dist/containers/NowPlayingContainer.js +10 -10
  100. package/dist/{facebook-osmzgL7R.mjs → facebook-HCcA1M1m.mjs} +1 -1
  101. package/dist/{format-plq8pBNY.mjs → format-YhWt2D8M.mjs} +78 -12
  102. package/dist/hooks/useGetSchedule.js +3 -3
  103. package/dist/hooks/useGetUpcoming.js +2 -2
  104. package/dist/{index-C8O1hjfH.mjs → index-0wieGV50.mjs} +0 -1
  105. package/dist/{index-DC7FmJPK.mjs → index-C-kn9Zhn.mjs} +7134 -7069
  106. package/dist/{index-CZzwT3Oj.mjs → index-DC2JJV3a.mjs} +246 -241
  107. package/dist/index-VjANCDXC.mjs +1873 -0
  108. package/dist/settings.d.ts +4 -3
  109. package/dist/{sub-CkNH5u-l.mjs → sub-CoUmnfhv.mjs} +2 -2
  110. package/dist/{subMonths-nbU1oDhB.mjs → subMonths-BtMU5A9u.mjs} +1 -1
  111. package/dist/{triangle-D0AHL9lB.mjs → triangle-PcCcGXjr.mjs} +1 -1
  112. package/dist/types.d.js +27 -0
  113. package/dist/utils/analytics.js +434 -423
  114. package/dist/utils/date-helpers.js +4 -4
  115. package/dist/utils/getFeaturedList.js +3 -3
  116. package/dist/utils/getOnNowProgram.js +3 -3
  117. package/dist/utils/getUpcomingPrograms.js +2 -2
  118. package/dist/{x-D8_C2o-U.mjs → x-C-QzJ-qD.mjs} +1 -1
  119. package/package.json +27 -24
  120. package/dist/_commonjsHelpers-DaMA6jEr.mjs +0 -8
  121. package/dist/components/CarouselSlide/slide-layouts/Figure/Figure.stories.d.ts +0 -34
  122. package/dist/components/CarouselSlide/slide-layouts/Figure/Figure.stories.js +0 -105
  123. package/dist/components/CarouselSlide/slide-layouts/Text/TextSlide.stories.d.ts +0 -19
  124. package/dist/components/CarouselSlide/slide-layouts/Text/TextSlide.stories.js +0 -35
  125. package/dist/index-B0ARwqly.mjs +0 -1818
  126. /package/dist/{networks-ui.d.ts → secl-ui.d.ts} +0 -0
@@ -1,8 +1,8 @@
1
- import { a as u } from "../add-FrnMPwwO.mjs";
2
- import { f as i } from "../format-plq8pBNY.mjs";
3
- import { s as w } from "../sub-CkNH5u-l.mjs";
1
+ import { a as u } from "../add-UWUc_nrO.mjs";
2
+ import { f as i } from "../format-YhWt2D8M.mjs";
3
+ import { s as w } from "../sub-CoUmnfhv.mjs";
4
4
  import { convert12to24 as h } from "./helpers.js";
5
- import { g } from "../index-C8O1hjfH.mjs";
5
+ import { g } from "../index-0wieGV50.mjs";
6
6
  const S = () => {
7
7
  const n = /* @__PURE__ */ new Date();
8
8
  let e = n.toLocaleString("en-US", { timeZone: "America/New_York" }), [r, t] = e.split(",");
@@ -1,7 +1,7 @@
1
- import { a as M } from "../add-FrnMPwwO.mjs";
2
- import { f as _ } from "../format-plq8pBNY.mjs";
1
+ import { a as M } from "../add-UWUc_nrO.mjs";
2
+ import { f as _ } from "../format-YhWt2D8M.mjs";
3
3
  import { determineSeriesPrefix as w } from "./program-helpers.js";
4
- import { g as k } from "../index-C8O1hjfH.mjs";
4
+ import { g as k } from "../index-0wieGV50.mjs";
5
5
  const D = /* @__PURE__ */ new Date(), T = /* @__PURE__ */ new Map([
6
6
  ["series", "Episode"],
7
7
  ["movies", "Film"],
@@ -1,9 +1,9 @@
1
- import { a as U } from "../add-FrnMPwwO.mjs";
2
- import { f as Y } from "../format-plq8pBNY.mjs";
1
+ import { a as U } from "../add-UWUc_nrO.mjs";
2
+ import { f as Y } from "../format-YhWt2D8M.mjs";
3
3
  import { getCurrentEasternProgrammingDateStr as V, determineIfShowIsOnNow as Z } from "./date-helpers.js";
4
4
  import { convert12to24 as d } from "./helpers.js";
5
5
  import { determineSeriesPrefix as B, determineSeasonNumberFromSeriesPrefix as D, determineEpisodeNumber as G } from "./series-helpers.js";
6
- import { g as J } from "../index-C8O1hjfH.mjs";
6
+ import { g as J } from "../index-0wieGV50.mjs";
7
7
  const H = /* @__PURE__ */ new Date(`${V()}T00:00:00`), Q = (o) => {
8
8
  const n = o.substring(0, o.lastIndexOf("S") - 1);
9
9
  return n === "" ? o : n;
@@ -1,5 +1,5 @@
1
- import { a as f } from "../add-FrnMPwwO.mjs";
2
- import { f as c } from "../format-plq8pBNY.mjs";
1
+ import { a as f } from "../add-UWUc_nrO.mjs";
2
+ import { f as c } from "../format-YhWt2D8M.mjs";
3
3
  const l = async (t, o = "series", r, i, s) => {
4
4
  const a = /* @__PURE__ */ new Map([
5
5
  ["series", `series_prefix__icontains=${t}`],
@@ -1,5 +1,5 @@
1
1
  import l, { forwardRef as c } from "react";
2
- import { P as a } from "./index-CZzwT3Oj.mjs";
2
+ import { P as a } from "./index-DC2JJV3a.mjs";
3
3
  function f() {
4
4
  return f = Object.assign || function(e) {
5
5
  for (var o = 1; o < arguments.length; o++) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.23",
2
+ "version": "1.1.0-alpha.1",
3
3
  "name": "@scrippsproduct/networks-ui-library",
4
4
  "description": "React Component Library for use in Scripps Networks external applications",
5
5
  "author": {
@@ -9,7 +9,7 @@
9
9
  "private": false,
10
10
  "engines": {
11
11
  "node": ">=20.0.0",
12
- "npm": ">=10.0.0"
12
+ "npm": ">=10.0.0"
13
13
  },
14
14
  "main": "dist/index.js",
15
15
  "files": [
@@ -18,12 +18,15 @@
18
18
  "scripts": {
19
19
  "dev": "vite",
20
20
  "build": "tsc -b && cross-env NODE_ENV=production vite build && rm -rf ./dist/components/**/*.stories.d.ts ./dist/components/**/*.stories.js ./dist/components/**/*.mdx ./dist/components/**/*.stories.mdx ./dist/components/**/*.md",
21
+ "test": "npx vitest run",
22
+ "test:watch": "npx vitest --watch --ui",
21
23
  "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
22
24
  "preview": "vite preview",
23
25
  "storybook": "storybook dev -p 6006 --no-open",
24
26
  "build-storybook": "storybook build",
25
27
  "chromatic": "npx chromatic --project-token=f011f556f41a",
26
- "create-component": "node scripts/componentFolderBuilder.js"
28
+ "create-component": "node scripts/componentFolderBuilder.js",
29
+ "reinstall-deps": "node ./reinstall-deps.js"
27
30
  },
28
31
  "dependencies": {
29
32
  "date-fns": "^3.6.0",
@@ -42,33 +45,33 @@
42
45
  "@babel/cli": "^7.24.7",
43
46
  "@babel/preset-env": "^7.24.7",
44
47
  "@babel/preset-react": "^7.24.7",
45
- "@chromatic-com/storybook": "^1.6.0",
46
- "@storybook/addon-essentials": "^8.1.11",
47
- "@storybook/addon-interactions": "^8.1.11",
48
- "@storybook/addon-links": "^8.1.11",
49
- "@storybook/addon-onboarding": "^8.1.11",
50
- "@storybook/blocks": "^8.1.11",
51
- "@storybook/react": "^8.1.11",
52
- "@storybook/react-vite": "^8.1.11",
53
- "@storybook/test": "^8.1.11",
48
+ "@chromatic-com/storybook": "^4.1.1",
49
+ "@scrippsproduct/console-logger": "1.0.11",
50
+ "@scrippsproduct/linter-configs": "0.0.7",
51
+ "@storybook/addon-docs": "^9.1.13",
52
+ "@storybook/addon-links": "^9.1.13",
53
+ "@storybook/react-vite": "^9.1.13",
54
54
  "@types/glob": "^8.1.0",
55
55
  "@types/react": "^18.3.3",
56
56
  "@types/react-dom": "^18.3.0",
57
- "@typescript-eslint/eslint-plugin": "^7.13.1",
58
- "@typescript-eslint/parser": "^7.13.1",
57
+ "@typescript-eslint/eslint-plugin": "^8.46.3",
58
+ "@typescript-eslint/parser": "^8.46.3",
59
59
  "@vitejs/plugin-react": "^4.3.1",
60
60
  "babel-preset-react-app": "^10.0.1",
61
61
  "cross-env": "^7.0.3",
62
- "eslint": "^8.57.0",
63
- "eslint-plugin-react-hooks": "^4.6.2",
64
- "eslint-plugin-react-refresh": "^0.4.7",
65
- "eslint-plugin-storybook": "^0.8.0",
66
- "storybook": "^8.1.11",
67
- "typescript": "^5.2.2",
68
- "vite": "^5.3.1",
69
- "vite-plugin-dts": "^4.0.1",
70
- "vite-plugin-lib-inject-css": "^2.1.1",
71
- "vite-tsconfig-paths": "^4.3.2"
62
+ "eslint": "^9.32.0",
63
+ "eslint-plugin-react-hooks": "^5.1.0-rc.0",
64
+ "eslint-plugin-react-refresh": "^0.4.9",
65
+ "eslint-plugin-storybook": "^9.1.13",
66
+ "storybook": "^9.1.13",
67
+ "typescript": "^5.8.2",
68
+ "vite": "^6.4.1",
69
+ "vite-plugin-dts": "^4.5.4",
70
+ "vite-plugin-lib-inject-css": "^2.2.2",
71
+ "vite-tsconfig-paths": "^5.1.4",
72
+ "@vitest/ui": "3.2.4",
73
+ "jsdom": "^26.1.0",
74
+ "vitest": "^3.0.5"
72
75
  },
73
76
  "eslintConfig": {
74
77
  "extends": [
@@ -1,8 +0,0 @@
1
- var o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2
- function l(e) {
3
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4
- }
5
- export {
6
- o as c,
7
- l as g
8
- };
@@ -1,34 +0,0 @@
1
- import { default as Figure } from './Figure';
2
- declare namespace _default {
3
- export let title: string;
4
- export { Figure as component };
5
- export let tags: string[];
6
- export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[];
7
- }
8
- export default _default;
9
- export function Default(args: any): import("react/jsx-runtime").JSX.Element;
10
- export namespace Default {
11
- namespace args {
12
- let images: {
13
- url: string;
14
- altText: string;
15
- caption: string;
16
- }[];
17
- let imagesPerSlide: number;
18
- }
19
- }
20
- export function TwoUp(args: any): import("react/jsx-runtime").JSX.Element;
21
- export namespace TwoUp {
22
- let args_1: any;
23
- export { args_1 as args };
24
- }
25
- export function ThreeUp(args: any): import("react/jsx-runtime").JSX.Element;
26
- export namespace ThreeUp {
27
- let args_2: any;
28
- export { args_2 as args };
29
- }
30
- export function FourUp(args: any): import("react/jsx-runtime").JSX.Element;
31
- export namespace FourUp {
32
- let args_3: any;
33
- export { args_3 as args };
34
- }
@@ -1,105 +0,0 @@
1
- import { jsx as l } from "react/jsx-runtime";
2
- import "react";
3
- import { FigureSlide as o } from "./Figure.js";
4
- const d = {
5
- title: "Slide Layouts/Figure",
6
- component: o,
7
- tags: ["autodocs"],
8
- decorators: [
9
- (e) => /* @__PURE__ */ l(
10
- "div",
11
- {
12
- style: {
13
- width: "60%",
14
- "--_cell-aspect-ratio": "4/2",
15
- "--_slide-gap": "1rem",
16
- border: "1px solid #000"
17
- },
18
- children: /* @__PURE__ */ l(e, {})
19
- }
20
- )
21
- ]
22
- }, t = (e) => /* @__PURE__ */ l(o, { ...e }), a = t.bind({});
23
- a.args = {
24
- images: [
25
- {
26
- url: "https://placehold.co/500x300",
27
- altText: "A random image from Unsplash (https://unsplash.com)",
28
- caption: "Image 1"
29
- }
30
- ],
31
- imagesPerSlide: 1
32
- };
33
- const s = t.bind({});
34
- s.args = {
35
- ...a.args,
36
- images: [
37
- {
38
- url: "https://placehold.co/500x300",
39
- altText: "",
40
- caption: "Image 1"
41
- },
42
- {
43
- url: "https://placehold.co/500x300",
44
- altText: "",
45
- caption: "Image 2"
46
- }
47
- ],
48
- imagesPerSlide: 2
49
- };
50
- const p = t.bind({});
51
- p.args = {
52
- ...a.args,
53
- images: [
54
- {
55
- url: "https://placehold.co/500x300",
56
- altText: "",
57
- caption: "Image 1"
58
- },
59
- {
60
- url: "https://placehold.co/500x300",
61
- altText: "",
62
- caption: "Image 2"
63
- },
64
- {
65
- url: "https://placehold.co/500x300",
66
- altText: "",
67
- caption: "Image 3"
68
- }
69
- ],
70
- imagesPerSlide: 3
71
- };
72
- const c = t.bind({});
73
- c.args = {
74
- ...a.args,
75
- images: [
76
- {
77
- url: "https://placehold.co/500x300",
78
- altText: "",
79
- caption: "Image 1"
80
- },
81
- {
82
- url: "https://placehold.co/500x300",
83
- altText: "Blue ocean with a large wave",
84
- caption: "Image 2"
85
- },
86
- {
87
- url: "https://placehold.co/500x300",
88
- altText: "",
89
- caption: "Image 3"
90
- },
91
- {
92
- url: "https://placehold.co/500x300",
93
- altText: "",
94
- caption: "Image 4"
95
- }
96
- ],
97
- imagesPerSlide: 4
98
- };
99
- export {
100
- a as Default,
101
- c as FourUp,
102
- p as ThreeUp,
103
- s as TwoUp,
104
- d as default
105
- };
@@ -1,19 +0,0 @@
1
- import { default as TextSlide } from './TextSlide';
2
- declare namespace _default {
3
- export let title: string;
4
- export { TextSlide as component };
5
- export let tags: string[];
6
- export let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[];
7
- }
8
- export default _default;
9
- export function Default(args: any): import("react/jsx-runtime").JSX.Element;
10
- export namespace Default {
11
- namespace args {
12
- let text: string;
13
- }
14
- }
15
- export function Inverse(args: any): import("react/jsx-runtime").JSX.Element;
16
- export namespace Inverse {
17
- let args_1: any;
18
- export { args_1 as args };
19
- }
@@ -1,35 +0,0 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import "react";
3
- import { TextSlide as o } from "./TextSlide.js";
4
- const n = {
5
- title: "Slide Layouts/Text Slide",
6
- component: o,
7
- tags: ["autodocs"],
8
- decorators: [
9
- (t) => /* @__PURE__ */ e(
10
- "div",
11
- {
12
- style: {
13
- width: "60%",
14
- aspectRatio: "4/2",
15
- border: "1px solid #000"
16
- },
17
- children: /* @__PURE__ */ e(t, {})
18
- }
19
- )
20
- ]
21
- }, s = (t) => /* @__PURE__ */ e(o, { ...t }), i = s.bind({});
22
- i.args = {
23
- text: "This is a Text Slide"
24
- };
25
- const r = s.bind({});
26
- r.args = {
27
- ...i.args,
28
- backgroundColor: "#000",
29
- textColor: "#fff"
30
- };
31
- export {
32
- i as Default,
33
- r as Inverse,
34
- n as default
35
- };