@pantheon-systems/pds-toolkit-react 1.0.0-dev.1 → 1.0.0-dev.100
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/README.md +17 -48
- package/_dist/cjs/index.js +93 -0
- package/_dist/cjs/index.js.map +1 -0
- package/_dist/css/component-css/pds-animated-button.css +7 -0
- package/_dist/css/component-css/pds-avatar-tile-list.css +1 -0
- package/_dist/css/component-css/pds-avatar.css +1 -0
- package/_dist/css/component-css/pds-banner.css +1 -0
- package/_dist/css/component-css/pds-breadcrumbs.css +1 -0
- package/_dist/css/component-css/pds-button-link.css +1 -0
- package/_dist/css/component-css/pds-button.css +81 -0
- package/_dist/css/component-css/pds-callout.css +1 -0
- package/_dist/css/component-css/pds-card-select-group.css +1 -0
- package/_dist/css/component-css/pds-card.css +1 -0
- package/_dist/css/component-css/pds-checkbox-group.css +1 -0
- package/_dist/css/component-css/pds-checkbox.css +1 -0
- package/_dist/css/component-css/pds-comparison-list.css +1 -0
- package/_dist/css/component-css/pds-cta-link.css +1 -0
- package/_dist/css/component-css/pds-cta-slice.css +1 -0
- package/_dist/css/component-css/pds-expansion-panel-group.css +1 -0
- package/_dist/css/component-css/pds-expansion-panel.css +1 -0
- package/_dist/css/component-css/pds-footer-heading.css +1 -0
- package/_dist/css/component-css/pds-footer-links.css +1 -0
- package/_dist/css/component-css/pds-heading.css +1 -0
- package/_dist/css/component-css/pds-icon-button.css +5 -0
- package/_dist/css/component-css/pds-icon-story-only.css +1 -0
- package/_dist/css/component-css/pds-index.css +138 -0
- package/_dist/css/component-css/pds-indicator-badge.css +29 -0
- package/_dist/css/component-css/pds-input-group.css +1 -0
- package/_dist/css/component-css/pds-inputs-common.css +1 -0
- package/_dist/css/component-css/pds-links-card.css +1 -0
- package/_dist/css/component-css/pds-menu-button.css +2 -0
- package/_dist/css/component-css/pds-modal.css +1 -0
- package/_dist/css/component-css/pds-nav-menu.css +1 -0
- package/_dist/css/component-css/pds-navbar.css +5 -0
- package/_dist/css/component-css/pds-new-site-card.css +1 -0
- package/_dist/css/component-css/pds-pager.css +1 -0
- package/_dist/css/component-css/pds-panel.css +1 -0
- package/_dist/css/component-css/pds-pantheon-logo.css +1 -0
- package/_dist/css/component-css/pds-platform-icon.css +1 -0
- package/_dist/css/component-css/pds-popover.css +1 -0
- package/_dist/css/component-css/pds-pricing-card-local.css +1 -0
- package/_dist/css/component-css/pds-pricing-card.css +1 -0
- package/_dist/css/component-css/pds-progress-bar.css +1 -0
- package/_dist/css/component-css/pds-progress-ring.css +1 -0
- package/_dist/css/component-css/pds-pull-quote.css +1 -0
- package/_dist/css/component-css/pds-radio-group.css +1 -0
- package/_dist/css/component-css/pds-section-message.css +1 -0
- package/_dist/css/component-css/pds-select.css +4 -0
- package/_dist/css/component-css/pds-side-nav.css +1 -0
- package/_dist/css/component-css/pds-site-card.css +1 -0
- package/_dist/css/component-css/pds-site-footer.css +1 -0
- package/_dist/css/component-css/pds-social-links.css +1 -0
- package/_dist/css/component-css/pds-spinner.css +1 -0
- package/_dist/css/component-css/pds-split-button.css +2 -0
- package/_dist/css/component-css/pds-stats-tile-list.css +1 -0
- package/_dist/css/component-css/pds-status-badge.css +9 -0
- package/_dist/css/component-css/pds-status-indicator.css +1 -0
- package/_dist/css/component-css/pds-stepper.css +1 -0
- package/_dist/css/component-css/pds-table-of-contents.css +1 -0
- package/_dist/css/component-css/pds-table.css +1 -0
- package/_dist/css/component-css/pds-tabs.css +1 -0
- package/_dist/css/component-css/pds-tag.css +1 -0
- package/_dist/css/component-css/pds-textarea.css +1 -0
- package/_dist/css/component-css/pds-tile.css +1 -0
- package/_dist/css/component-css/pds-tiles-common.css +1 -0
- package/_dist/css/component-css/pds-toast.css +1 -0
- package/_dist/css/component-css/pds-toaster.css +1 -0
- package/_dist/css/component-css/pds-toggle-button.css +1 -0
- package/_dist/css/component-css/pds-toggle-switch.css +3 -0
- package/_dist/css/component-css/pds-tooltip.css +1 -0
- package/_dist/css/component-css/pds-workspace-selector.css +1 -0
- package/_dist/css/pds-components.css +138 -0
- package/_dist/css/pds-core.css +5 -0
- package/_dist/css/pds-layouts.css +1 -0
- package/_dist/esm/index.js +93 -0
- package/_dist/esm/index.js.map +1 -0
- package/package.json +48 -23
package/README.md
CHANGED
|
@@ -1,68 +1,37 @@
|
|
|
1
1
|
# pds-toolkit-react
|
|
2
2
|
|
|
3
|
-
React Toolkit for the Pantheon Design System
|
|
3
|
+
## React Toolkit for the Pantheon Design System
|
|
4
4
|
|
|
5
5
|
This toolkit provides assets for use within a React project and a Storybook instance to preview the components.
|
|
6
6
|
|
|
7
7
|
[Published Storybook](https://live-pds-toolkit-react.appa.pantheon.site/)
|
|
8
8
|
|
|
9
|
-
##
|
|
9
|
+
## Toolkit philosophy and scope
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
The intent of this toolkit is to provide a React-based implementation of the Pantheon Design System (PDS) with a focus on semantics, accessibility, visual design, and user-interface design.
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
2. `npm run develop` — Compiles styles, watches for changes, and starts the Storybook development server.
|
|
13
|
+
This toolkit should not contain processes or mechanisms used for data manipulation, business logic, or similar. Therefore, processes such as form handling, routing, and language translation should be handled within the application that is consuming the toolkit.
|
|
15
14
|
|
|
16
|
-
|
|
15
|
+
Each component will contain a documentation page within Storybook that provides usage notes, implementation instructions, and expected data structure for that particular component.
|
|
17
16
|
|
|
18
|
-
|
|
17
|
+
### Content within components
|
|
19
18
|
|
|
20
|
-
|
|
19
|
+
Content should not live within components with a few exceptions — the Social Links component and the links in the legal section of the SiteFooter component. To maintain consistency between all of our digital properties, these links will originate from the design system.
|
|
21
20
|
|
|
22
|
-
|
|
21
|
+
## Implementation instructions
|
|
23
22
|
|
|
24
|
-
|
|
23
|
+
The toolkit consists of a global stylesheet and React components. Both are required for the toolkit to function as intended.
|
|
25
24
|
|
|
26
|
-
|
|
25
|
+
The global stylesheet — `pds-core.css` — provides the base styles for the toolkit including foundations, utilities, and color variables. This stylesheet should be applied at the root of the application.
|
|
27
26
|
|
|
28
|
-
|
|
27
|
+
The React components are imported and used within the application as needed. Component-specific styles are imported and applied automatically when the component is used.
|
|
29
28
|
|
|
30
|
-
|
|
29
|
+
Components should be imported using named imports. For example:
|
|
31
30
|
|
|
32
|
-
|
|
31
|
+
```js
|
|
32
|
+
import { Container, SidebarLayout } from '@pantheon-systems/pds-toolkit-react';
|
|
33
|
+
```
|
|
33
34
|
|
|
34
|
-
|
|
35
|
+
### Avoid style conflicts
|
|
35
36
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
### /src/patterns
|
|
39
|
-
|
|
40
|
-
Patterns are reusable configurations of components and other foundational elements.
|
|
41
|
-
|
|
42
|
-
Any stories built in this section are for example purposes only and will not have shipped JavaScript components.
|
|
43
|
-
|
|
44
|
-
To create a new pattern story run `npm run generate:pattern` from the root of the project.
|
|
45
|
-
|
|
46
|
-
### /src/utilities
|
|
47
|
-
|
|
48
|
-
Utilities include functionality that is used to build components, pages, or other digital experiences in accordance with design system guidelines such as utility classes and functions. Styles from this section will be compiled into `pds-core.css`.
|
|
49
|
-
|
|
50
|
-
Any stories built in this section are for example purposes only and will not have shipped JavaScript components.
|
|
51
|
-
|
|
52
|
-
To create a new utility run `npm run generate:utility` from the root of the project.
|
|
53
|
-
|
|
54
|
-
## Contributing
|
|
55
|
-
|
|
56
|
-
### Updating a Component
|
|
57
|
-
|
|
58
|
-
When making changes to a component, be sure to also update any associated tests. (COMING SOON -- tests are not enabled at this time).
|
|
59
|
-
|
|
60
|
-
### Adding a new Component
|
|
61
|
-
|
|
62
|
-
Run `npm run generate:component` from the project root to scaffold files necessary for the component.
|
|
63
|
-
|
|
64
|
-
### Update the Changelog
|
|
65
|
-
|
|
66
|
-
Add any changes that will affect the consumer of the toolkit to the `Unreleased` section of `CHANGELOG.md`.
|
|
67
|
-
|
|
68
|
-
When creating a new release, update `CHANGELOG.md` accordingly with the new version number and start a new `Unreleased` section at the top.
|
|
37
|
+
This toolkit is not intended to be used in conjunction with other CSS frameworks. Doing so may result in unexpected behavior and/or visual conflicts.
|