@pantheon-systems/pds-toolkit-react 1.1.1 → 1.3.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.
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from 'react';
2
+ import './SbDocsTocLayout.css';
3
+ interface SbDocsTocLayoutProps {
4
+ children: ReactNode;
5
+ className?: string;
6
+ }
7
+ export declare const SbDocsTocLayout: ({ children, className, }: SbDocsTocLayoutProps) => import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,5 @@
1
+ export declare const cardData: {
2
+ heading: string;
3
+ description: string;
4
+ buttonLink: import("react/jsx-runtime").JSX.Element;
5
+ }[];
@@ -0,0 +1,15 @@
1
+ export type SearchableItem = {
2
+ /** Anchor for section (e.g., "#brand-voice") */
3
+ anchor?: string;
4
+ /** Text content to search through */
5
+ content: string;
6
+ /** Unique identifier */
7
+ id: string;
8
+ /** Page title (e.g., "Fundamentals") */
9
+ page: string;
10
+ /** URL path to navigate to */
11
+ path: string;
12
+ /** Section heading (e.g., "Brand voice") */
13
+ section: string;
14
+ };
15
+ export declare const searchContentIndex: SearchableItem[];
@@ -0,0 +1,14 @@
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ type CardData = {
3
+ buttonLink: ReactNode;
4
+ description: string;
5
+ heading: string;
6
+ };
7
+ interface SectionCardsProps extends ComponentPropsWithoutRef<'div'> {
8
+ /**
9
+ * Cards to display in the section.
10
+ */
11
+ cards: CardData[];
12
+ }
13
+ export declare const SectionCards: ({ cards, ...props }: SectionCardsProps) => import("react/jsx-runtime").JSX.Element;
14
+ export {};
@@ -0,0 +1,17 @@
1
+ import { ComponentPropsWithoutRef } from 'react';
2
+ import './ux-writing-search.css';
3
+ interface UxWritingSearchProps extends ComponentPropsWithoutRef<'div'> {
4
+ /**
5
+ * Message to display when no results are found
6
+ */
7
+ noResultsMessage?: string;
8
+ /**
9
+ * Placeholder text for the search input
10
+ */
11
+ placeholder?: string;
12
+ }
13
+ /**
14
+ * Search component for UX Writing section
15
+ */
16
+ export declare const UxWritingSearch: ({ noResultsMessage, placeholder, ...props }: UxWritingSearchProps) => import("react/jsx-runtime").JSX.Element;
17
+ export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pantheon-systems/pds-toolkit-react",
3
3
  "technology": "React",
4
- "version": "1.1.1",
4
+ "version": "1.3.0",
5
5
  "description": "PDS toolkit built using the React framework",
6
6
  "publishConfig": {
7
7
  "access": "public",
@@ -45,12 +45,12 @@
45
45
  "build:css:layouts": "postcss src/layouts/index.css -o _dist/css/pds-layouts.css",
46
46
  "build:css:packageExtraCss": "node scripts/package-extra-css.js",
47
47
  "build:css:watch": "npm run build:css -- -w",
48
- "prestorybook": "npm run build:css",
48
+ "prestorybook": "npm run build:css && npm run generate:ux-writing-search-index && npm run generate:ux-writing-guide",
49
49
  "storybook": "storybook dev -p 6006",
50
- "prebuild": "npm run build:css",
50
+ "prebuild": "npm run build:css && npm run generate:ux-writing-search-index && npm run generate:ux-writing-guide",
51
51
  "build": "storybook build",
52
52
  "build-storybook": "storybook build",
53
- "predeploy:pantheon": "npm run build:css",
53
+ "predeploy:pantheon": "npm run build:css && npm run generate:ux-writing-search-index && npm run generate:ux-writing-guide",
54
54
  "deploy:pantheon": "storybook build",
55
55
  "start": "node index.js",
56
56
  "develop": "concurrently --raw --kill-others \"npm run storybook\" \"npm run build:css:watch\"",
@@ -76,6 +76,8 @@
76
76
  "generate:foundation": "plop foundation",
77
77
  "generate:pattern": "plop pattern",
78
78
  "generate:utility": "plop utility",
79
+ "generate:ux-writing-search-index": "node scripts/generate-search-index.js",
80
+ "generate:ux-writing-guide": "node scripts/generate-ux-writing-guide.js",
79
81
  "test:version-switcher": "bash scripts/test-version-switcher.sh",
80
82
  "pack:local": "bash scripts/pack-local.sh",
81
83
  "prepare": "husky install"
@@ -1,4 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export declare const SbDocsTocLayout: ({ children }: {
3
- children: ReactNode;
4
- }) => import("react/jsx-runtime").JSX.Element;