northants-design-system 1.6.5 → 1.6.7
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 +12 -2
- package/build/index.js +263 -154
- package/build/index.js.map +1 -1
- package/build/index.mjs.js +263 -154
- package/build/index.mjs.js.map +1 -1
- package/build/library/components/SummaryList/SummaryList.types.d.ts +8 -0
- package/build/library/components/logos/GDSLogo/logo.d.ts +3 -3
- package/build/library/helpers/date-time-helpers.d.ts +4 -0
- package/build/library/pages/Home/HomePage.types.d.ts +2 -2
- package/build/library/pages/MemorialPage/MemorialPage.types.d.ts +1 -1
- package/build/library/pages/SearchResultsPageExample/SearchResultsPageExample.d.ts +2 -25
- package/build/library/pages/ServiceLandingPageExample/ServiceLandingPageExample.types.d.ts +2 -1
- package/build/library/slices/InquestSchedule/InquestSchedule.types.d.ts +4 -1
- package/build/library/structure/NewsArticleFeaturedBlock/NewsArticleFeaturedBlock.storydata.d.ts +5 -0
- package/build/library/structure/PhaseBanner/PhaseBanner.d.ts +6 -2
- package/build/library/structure/PhaseBanner/PhaseBanner.test.d.ts +1 -0
- package/build/library/structure/PhaseBanner/PhaseBanner.types.d.ts +12 -0
- package/build/library/structure/PromoBanner/PromoBanner.storydata.d.ts +3 -8
- package/build/themes/ThemeVars.types.d.ts +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -109,13 +109,23 @@ const MyComponent = () =>
|
|
|
109
109
|
There is a util file under `util` called `create-component.js`. Instead of copy pasting components to create a new component, you can just run this command to generate all the files you need to start building out a new component. To use it:
|
|
110
110
|
|
|
111
111
|
```
|
|
112
|
-
npm run generate NewComponentName
|
|
112
|
+
npm run generate NewComponentName [<<ComponentType>>]
|
|
113
113
|
```
|
|
114
114
|
|
|
115
115
|
This will generate:
|
|
116
116
|
|
|
117
117
|
```
|
|
118
|
-
/src
|
|
118
|
+
/src/library/components/
|
|
119
|
+
/NewComponentName
|
|
120
|
+
NewComponentName.tsx
|
|
121
|
+
NewComponentName.stories.tsx
|
|
122
|
+
NewComponentName.test.tsx
|
|
123
|
+
NewComponentName.types.ts
|
|
124
|
+
NewComponentName.styles.ts
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
```
|
|
128
|
+
/src/library/<<ComponentType>>/
|
|
119
129
|
/NewComponentName
|
|
120
130
|
NewComponentName.tsx
|
|
121
131
|
NewComponentName.stories.tsx
|