@utrecht/component-library-react 1.0.0-alpha.130 → 1.0.0-alpha.131

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,10 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2022 Robbert Broersma
4
+ */
5
+ import { HTMLAttributes } from 'react';
6
+ declare type HeadingGroupProps = HTMLAttributes<HTMLElement>;
7
+ export declare const HeadingGroup: import("react").ForwardRefExoticComponent<HeadingGroupProps & {
8
+ children?: import("react").ReactNode;
9
+ } & import("react").RefAttributes<HTMLElement>>;
10
+ export {};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2021 Robbert Broersma
4
+ */
5
+ import { ImgHTMLAttributes } from 'react';
6
+ export interface ImageProps extends ImgHTMLAttributes<HTMLImageElement> {
7
+ photo?: boolean;
8
+ }
9
+ export declare const Image: import("react").ForwardRefExoticComponent<ImageProps & import("react").RefAttributes<HTMLImageElement>>;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2021 Robbert Broersma
4
+ */
5
+ import { HTMLAttributes } from 'react';
6
+ declare type PreHeadingProps = HTMLAttributes<HTMLParagraphElement>;
7
+ export declare const PreHeading: import("react").ForwardRefExoticComponent<PreHeadingProps & {
8
+ children?: import("react").ReactNode;
9
+ } & import("react").RefAttributes<HTMLParagraphElement>>;
10
+ export {};
package/dist/index.cjs.js CHANGED
@@ -430,6 +430,34 @@ var Heading6 = /*#__PURE__*/react.forwardRef(function (_a, ref) {
430
430
  });
431
431
  Heading6.displayName = 'Heading6';
432
432
 
433
+ var HeadingGroup = /*#__PURE__*/react.forwardRef(function (_a, ref) {
434
+ var children = _a.children,
435
+ className = _a.className,
436
+ restProps = tslib.__rest(_a, ["children", "className"]);
437
+
438
+ return jsxRuntime.jsx("hgroup", Object.assign({}, restProps, {
439
+ ref: ref,
440
+ className: clsx__default["default"]('utrecht-heading-group', className)
441
+ }, {
442
+ children: children
443
+ }));
444
+ });
445
+ HeadingGroup.displayName = 'HeadingGroup';
446
+
447
+ var Image = /*#__PURE__*/react.forwardRef(function (_a, ref) {
448
+ var className = _a.className,
449
+ photo = _a.photo,
450
+ restProps = tslib.__rest(_a, ["className", "photo"]);
451
+
452
+ return jsxRuntime.jsx("img", Object.assign({}, restProps, {
453
+ ref: ref,
454
+ className: clsx__default["default"]('utrecht-img', {
455
+ 'utrecht-img--photo': photo
456
+ }, className)
457
+ }));
458
+ });
459
+ Image.displayName = 'Image';
460
+
433
461
  var Link = /*#__PURE__*/react.forwardRef(function (_a, ref) {
434
462
  var boxContent = _a.boxContent,
435
463
  children = _a.children,
@@ -601,6 +629,20 @@ var Paragraph = /*#__PURE__*/react.forwardRef(function (_a, ref) {
601
629
  });
602
630
  Paragraph.displayName = 'Paragraph';
603
631
 
632
+ var PreHeading = /*#__PURE__*/react.forwardRef(function (_a, ref) {
633
+ var children = _a.children,
634
+ className = _a.className,
635
+ restProps = tslib.__rest(_a, ["children", "className"]);
636
+
637
+ return jsxRuntime.jsx("p", Object.assign({}, restProps, {
638
+ ref: ref,
639
+ className: clsx__default["default"]('utrecht-pre-heading', className)
640
+ }, {
641
+ children: children
642
+ }));
643
+ });
644
+ PreHeading.displayName = 'PreHeading';
645
+
604
646
  var RadioButton = /*#__PURE__*/react.forwardRef(function (_a, ref) {
605
647
  var invalid = _a.invalid,
606
648
  className = _a.className,
@@ -920,6 +962,8 @@ exports.Heading3 = Heading3;
920
962
  exports.Heading4 = Heading4;
921
963
  exports.Heading5 = Heading5;
922
964
  exports.Heading6 = Heading6;
965
+ exports.HeadingGroup = HeadingGroup;
966
+ exports.Image = Image;
923
967
  exports.Link = Link;
924
968
  exports.LinkButton = LinkButton;
925
969
  exports.NumberValue = NumberValue;
@@ -930,6 +974,7 @@ exports.PageContent = PageContent;
930
974
  exports.PageFooter = PageFooter;
931
975
  exports.PageHeader = PageHeader;
932
976
  exports.Paragraph = Paragraph;
977
+ exports.PreHeading = PreHeading;
933
978
  exports.PrimaryActionButton = PrimaryActionButton;
934
979
  exports.RadioButton = RadioButton;
935
980
  exports.SecondaryActionButton = SecondaryActionButton;
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index.d.ts CHANGED
@@ -22,6 +22,8 @@ export { Heading3 } from './Heading3';
22
22
  export { Heading4 } from './Heading4';
23
23
  export { Heading5 } from './Heading5';
24
24
  export { Heading6 } from './Heading6';
25
+ export { HeadingGroup } from './HeadingGroup';
26
+ export { Image } from './Image';
25
27
  export { Link } from './Link';
26
28
  export { LinkButton } from './LinkButton';
27
29
  export { NumberValue } from './NumberValue';
@@ -32,6 +34,7 @@ export { PageContent } from './PageContent';
32
34
  export { PageFooter } from './PageFooter';
33
35
  export { PageHeader } from './PageHeader';
34
36
  export { Paragraph } from './Paragraph';
37
+ export { PreHeading } from './PreHeading';
35
38
  export { RadioButton } from './RadioButton';
36
39
  export { Select, SelectOption } from './Select';
37
40
  export { Separator } from './Separator';
package/dist/index.esm.js CHANGED
@@ -422,6 +422,34 @@ var Heading6 = /*#__PURE__*/forwardRef(function (_a, ref) {
422
422
  });
423
423
  Heading6.displayName = 'Heading6';
424
424
 
425
+ var HeadingGroup = /*#__PURE__*/forwardRef(function (_a, ref) {
426
+ var children = _a.children,
427
+ className = _a.className,
428
+ restProps = __rest(_a, ["children", "className"]);
429
+
430
+ return jsx("hgroup", Object.assign({}, restProps, {
431
+ ref: ref,
432
+ className: clsx('utrecht-heading-group', className)
433
+ }, {
434
+ children: children
435
+ }));
436
+ });
437
+ HeadingGroup.displayName = 'HeadingGroup';
438
+
439
+ var Image = /*#__PURE__*/forwardRef(function (_a, ref) {
440
+ var className = _a.className,
441
+ photo = _a.photo,
442
+ restProps = __rest(_a, ["className", "photo"]);
443
+
444
+ return jsx("img", Object.assign({}, restProps, {
445
+ ref: ref,
446
+ className: clsx('utrecht-img', {
447
+ 'utrecht-img--photo': photo
448
+ }, className)
449
+ }));
450
+ });
451
+ Image.displayName = 'Image';
452
+
425
453
  var Link = /*#__PURE__*/forwardRef(function (_a, ref) {
426
454
  var boxContent = _a.boxContent,
427
455
  children = _a.children,
@@ -593,6 +621,20 @@ var Paragraph = /*#__PURE__*/forwardRef(function (_a, ref) {
593
621
  });
594
622
  Paragraph.displayName = 'Paragraph';
595
623
 
624
+ var PreHeading = /*#__PURE__*/forwardRef(function (_a, ref) {
625
+ var children = _a.children,
626
+ className = _a.className,
627
+ restProps = __rest(_a, ["children", "className"]);
628
+
629
+ return jsx("p", Object.assign({}, restProps, {
630
+ ref: ref,
631
+ className: clsx('utrecht-pre-heading', className)
632
+ }, {
633
+ children: children
634
+ }));
635
+ });
636
+ PreHeading.displayName = 'PreHeading';
637
+
596
638
  var RadioButton = /*#__PURE__*/forwardRef(function (_a, ref) {
597
639
  var invalid = _a.invalid,
598
640
  className = _a.className,
@@ -888,5 +930,5 @@ var UnorderedListItem = /*#__PURE__*/forwardRef(function (_a, ref) {
888
930
  });
889
931
  UnorderedListItem.displayName = 'UnorderedListItem';
890
932
 
891
- export { Article, Backdrop, Button, ButtonLink, Checkbox, CustomRadioButton, DataList, DataListActions, DataListItem, DataListKey, DataListValue, Document, Fieldset, FieldsetLegend, FormField, FormFieldDescription, FormLabel, HTMLContent, Heading1, Heading2, Heading3, Heading4, Heading5, Heading6, Link, LinkButton, NumberValue, OrderedList, OrderedListItem, Page, PageContent, PageFooter, PageHeader, Paragraph, PrimaryActionButton, RadioButton, SecondaryActionButton, Select, SelectOption, Separator, SkipLink, SubtleButton, Surface, Table, TableBody, TableCaption, TableCell, TableFooter, TableHeader, TableHeaderCell, TableRow, Textarea, Textbox, URLValue, UnorderedList, UnorderedListItem };
933
+ export { Article, Backdrop, Button, ButtonLink, Checkbox, CustomRadioButton, DataList, DataListActions, DataListItem, DataListKey, DataListValue, Document, Fieldset, FieldsetLegend, FormField, FormFieldDescription, FormLabel, HTMLContent, Heading1, Heading2, Heading3, Heading4, Heading5, Heading6, HeadingGroup, Image, Link, LinkButton, NumberValue, OrderedList, OrderedListItem, Page, PageContent, PageFooter, PageHeader, Paragraph, PreHeading, PrimaryActionButton, RadioButton, SecondaryActionButton, Select, SelectOption, Separator, SkipLink, SubtleButton, Surface, Table, TableBody, TableCaption, TableCell, TableFooter, TableHeader, TableHeaderCell, TableRow, Textarea, Textbox, URLValue, UnorderedList, UnorderedListItem };
892
934
  //# sourceMappingURL=index.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.0-alpha.130",
2
+ "version": "1.0.0-alpha.131",
3
3
  "author": "Community for NL Design System",
4
4
  "description": "React component library bundle for the Municipality of Utrecht based on the NL Design System architecture",
5
5
  "license": "EUPL-1.2",
@@ -18,6 +18,7 @@
18
18
  "sideEffects": false,
19
19
  "scripts": {
20
20
  "build": "rollup -c",
21
+ "build:watch": "rollup -c --watch",
21
22
  "clean": "rimraf dist/ pages/",
22
23
  "lint": "tsc --project ./tsconfig.json --noEmit && tsc --noEmit --project ./tsconfig.test.json",
23
24
  "test": "mkdir -p pages && NODE_OPTIONS=--experimental-vm-modules jest --verbose",
@@ -68,5 +69,5 @@
68
69
  "react": "16 - 18",
69
70
  "react-dom": "16 - 18"
70
71
  },
71
- "gitHead": "72672bd52ad8395b99b46f6fb24d17de0518f190"
72
+ "gitHead": "71d7026847c3ab2bfd0560b543ea6424c5143cca"
72
73
  }