@moduk/frontend 1.8.31 → 2.0.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/assets/svg/moduk-header-logo.svg +4 -2
- package/client/moduk-frontend.umd.js +2 -1
- package/client/moduk-frontend.umd.js.LICENSE.txt +84 -0
- package/client/moduk-frontend.umd.js.map +1 -1
- package/css/index.css +1 -1
- package/dist/assets/svg/moduk-header-logo.svg +4 -2
- package/dist/client/moduk-frontend.umd.js +2 -1
- package/dist/client/moduk-frontend.umd.js.LICENSE.txt +84 -0
- package/dist/client/moduk-frontend.umd.js.map +1 -1
- package/dist/css/index.css +1 -1
- package/dist/nunjucks/moduk/components/phase-banner/__examples__/beta.njk +1 -1
- package/dist/nunjucks/moduk/components/phase-banner/__examples__/default.njk +1 -1
- package/dist/nunjucks/moduk/components/phase-banner/__examples__/with-tag-override.njk +1 -1
- package/dist/nunjucks/moduk/components/phase-banner/__examples__/with-text.njk +1 -1
- package/dist/nunjucks/moduk/components/tag/macro.njk +1 -1
- package/nunjucks/moduk/components/phase-banner/__examples__/beta.njk +1 -1
- package/nunjucks/moduk/components/phase-banner/__examples__/default.njk +1 -1
- package/nunjucks/moduk/components/phase-banner/__examples__/with-tag-override.njk +1 -1
- package/nunjucks/moduk/components/phase-banner/__examples__/with-text.njk +1 -1
- package/nunjucks/moduk/components/tag/macro.njk +1 -1
- package/package.json +3 -3
- package/react/MODUKBody/MODUKBody.d.ts.map +1 -1
- package/react/esm/MODUKBody/MODUKBody.js +5 -1
- package/react/esm/internal/hooks/useMODUKComponent/useMODUKComponent.js +1 -1
- package/react/esm/internal/test-utils/Root.js +0 -1
- package/react/esm/warning-text/WarningText.js +1 -1
- package/react/index.js +1 -1
- package/react/index.js.map +1 -1
- package/react/internal/hooks/useMODUKComponent/useMODUKComponent.d.ts.map +1 -1
- package/react/phase-banner/PhaseBanner.d.ts +1 -1
- package/src/css/_colour-palette.scss +1 -1
- package/src/css/components/_header.scss +1 -1
- package/src/css/index.scss +1 -2
- package/src/react/phase-banner/__examples__/beta.tsx +1 -1
- package/src/react/phase-banner/__examples__/default.tsx +1 -1
- package/src/react/phase-banner/__examples__/with-tag-override.tsx +1 -1
- package/src/react/phase-banner/__examples__/with-text.tsx +1 -1
- package/src/css/components/_tag.scss +0 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMODUKComponent.d.ts","sourceRoot":"","sources":["../../../../../src/react/internal/hooks/useMODUKComponent/useMODUKComponent.ts"],"names":[],"mappings":"AAEA,UAAU,gBAAgB;IACxB,SAAS,EAAE,cAAc,CAAA;IACzB,MAAM,EAAE,WAAW,CAAA;IACnB,QAAQ,EAAE,iBAAiB,CAAA;CAC5B;AAED,KAAK,oBAAoB,GAAG,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"useMODUKComponent.d.ts","sourceRoot":"","sources":["../../../../../src/react/internal/hooks/useMODUKComponent/useMODUKComponent.ts"],"names":[],"mappings":"AAEA,UAAU,gBAAgB;IACxB,SAAS,EAAE,cAAc,CAAA;IACzB,MAAM,EAAE,WAAW,CAAA;IACnB,QAAQ,EAAE,iBAAiB,CAAA;CAC5B;AAED,KAAK,oBAAoB,GAAG,MAAM,gBAAgB,CAAA;AAWlD,wBAAgB,iBAAiB,CAC/B,aAAa,SAAS,oBAAoB,EAE1C,aAAa,EAAE,aAAa;;EAe7B"}
|
|
@@ -19,7 +19,7 @@ export interface PhaseBannerProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
19
19
|
* @experimental React components are in alpha and subject to change.
|
|
20
20
|
*
|
|
21
21
|
* @example
|
|
22
|
-
* <PhaseBanner phaseTag={<PhaseTag>
|
|
22
|
+
* <PhaseBanner phaseTag={<PhaseTag>Alpha</PhaseTag>}>
|
|
23
23
|
* This is a new service – your <a className='govuk-link' href='#'>feedback</a> will help us to improve it.
|
|
24
24
|
* </PhaseBanner>
|
|
25
25
|
*/
|
package/src/css/index.scss
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
@forward 'variables';
|
|
4
4
|
@use 'variables';
|
|
5
5
|
|
|
6
|
-
@forward 'govuk-frontend/govuk/all' with (
|
|
6
|
+
@forward 'govuk-frontend/dist/govuk/all' with (
|
|
7
7
|
$govuk-assets-path: variables.$moduk-assets-path,
|
|
8
8
|
$govuk-images-path: variables.$moduk-images-path,
|
|
9
9
|
$govuk-font-family: variables.$moduk-font-family,
|
|
@@ -11,4 +11,3 @@
|
|
|
11
11
|
);
|
|
12
12
|
|
|
13
13
|
@forward 'components/header';
|
|
14
|
-
@forward 'components/tag';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PhaseBanner, PhaseTag } from '@moduk/frontend/react'
|
|
2
2
|
|
|
3
3
|
export const Example = () => (
|
|
4
|
-
<PhaseBanner phaseTag={<PhaseTag>
|
|
4
|
+
<PhaseBanner phaseTag={<PhaseTag>Beta</PhaseTag>}>
|
|
5
5
|
This is a new service – your <a className='govuk-link' href='#'>feedback</a> will help us to improve it.
|
|
6
6
|
</PhaseBanner>
|
|
7
7
|
)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PhaseBanner, PhaseTag } from '@moduk/frontend/react'
|
|
2
2
|
|
|
3
3
|
export const Example = () => (
|
|
4
|
-
<PhaseBanner phaseTag={<PhaseTag>
|
|
4
|
+
<PhaseBanner phaseTag={<PhaseTag>Alpha</PhaseTag>}>
|
|
5
5
|
This is a new service – your <a className='govuk-link' href='#'>feedback</a> will help us to improve it.
|
|
6
6
|
</PhaseBanner>
|
|
7
7
|
)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PhaseBanner, PhaseTag } from '@moduk/frontend/react'
|
|
2
2
|
|
|
3
3
|
export const Example = () => (
|
|
4
|
-
<PhaseBanner phaseTag={<PhaseTag className='govuk-tag--grey'>
|
|
4
|
+
<PhaseBanner phaseTag={<PhaseTag className='govuk-tag--grey'>Beta</PhaseTag>}>
|
|
5
5
|
This is a new service – your <a className='govuk-link' href='#'>feedback</a> will help us to improve it.
|
|
6
6
|
</PhaseBanner>
|
|
7
7
|
)
|