@utrecht/component-library-react 1.0.0-alpha.162 → 1.0.0-alpha.164
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/dist/Icon.d.ts +10 -0
- package/dist/LinkSocial.d.ts +2 -3
- package/dist/index.cjs.js +16 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.esm.js +16 -10
- package/dist/index.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/Icon.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license EUPL-1.2
|
|
3
|
+
* Copyright (c) 2021 Gemeente Utrecht
|
|
4
|
+
* Copyright (c) 2021 Robbert Broersma
|
|
5
|
+
*/
|
|
6
|
+
import { HTMLAttributes } from 'react';
|
|
7
|
+
export declare type IconProps = HTMLAttributes<HTMLElement>;
|
|
8
|
+
export declare const Icon: import("react").ForwardRefExoticComponent<IconProps & {
|
|
9
|
+
children?: import("react").ReactNode;
|
|
10
|
+
} & import("react").RefAttributes<HTMLElement>>;
|
package/dist/LinkSocial.d.ts
CHANGED
|
@@ -3,10 +3,9 @@
|
|
|
3
3
|
* Copyright (c) 2021 Robbert Broersma
|
|
4
4
|
*/
|
|
5
5
|
import { AnchorHTMLAttributes } from 'react';
|
|
6
|
-
export interface
|
|
7
|
-
boxContent?: boolean;
|
|
6
|
+
export interface LinkSocialProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
8
7
|
external?: boolean;
|
|
9
8
|
}
|
|
10
|
-
export declare const LinkSocial: import("react").ForwardRefExoticComponent<
|
|
9
|
+
export declare const LinkSocial: import("react").ForwardRefExoticComponent<LinkSocialProps & {
|
|
11
10
|
children?: import("react").ReactNode;
|
|
12
11
|
} & import("react").RefAttributes<HTMLAnchorElement>>;
|
package/dist/index.cjs.js
CHANGED
|
@@ -926,6 +926,20 @@ var HeadingGroup = /*#__PURE__*/react.forwardRef(function (_a, ref) {
|
|
|
926
926
|
});
|
|
927
927
|
HeadingGroup.displayName = 'HeadingGroup';
|
|
928
928
|
|
|
929
|
+
var Icon = /*#__PURE__*/react.forwardRef(function (_a, ref) {
|
|
930
|
+
var children = _a.children,
|
|
931
|
+
className = _a.className,
|
|
932
|
+
restProps = tslib.__rest(_a, ["children", "className"]);
|
|
933
|
+
|
|
934
|
+
return jsxRuntime.jsx("span", Object.assign({
|
|
935
|
+
ref: ref,
|
|
936
|
+
className: clsx__default["default"]('utrecht-icon', className)
|
|
937
|
+
}, restProps, {
|
|
938
|
+
children: children
|
|
939
|
+
}));
|
|
940
|
+
});
|
|
941
|
+
Icon.displayName = 'Icon';
|
|
942
|
+
|
|
929
943
|
var Image = /*#__PURE__*/react.forwardRef(function (_a, ref) {
|
|
930
944
|
var className = _a.className,
|
|
931
945
|
photo = _a.photo,
|
|
@@ -998,7 +1012,7 @@ var LinkSocial = /*#__PURE__*/react.forwardRef(function (_a, ref) {
|
|
|
998
1012
|
return jsxRuntime.jsx("a", Object.assign({}, restProps, {
|
|
999
1013
|
ref: ref,
|
|
1000
1014
|
className: clsx__default["default"]('utrecht-link-social', className),
|
|
1001
|
-
rel: external ? 'external noopener noreferrer' : undefined
|
|
1015
|
+
rel: external !== false ? 'external noopener noreferrer' : undefined
|
|
1002
1016
|
}, {
|
|
1003
1017
|
children: children
|
|
1004
1018
|
}));
|
|
@@ -1013,14 +1027,6 @@ var ListSocial = function ListSocial(_ref) {
|
|
|
1013
1027
|
children: children
|
|
1014
1028
|
}));
|
|
1015
1029
|
};
|
|
1016
|
-
var ListSocialItem = function ListSocialItem(_ref2) {
|
|
1017
|
-
var children = _ref2.children;
|
|
1018
|
-
return jsxRuntime.jsx("li", Object.assign({
|
|
1019
|
-
className: clsx__default["default"]('utrecht-list-social__item')
|
|
1020
|
-
}, {
|
|
1021
|
-
children: children
|
|
1022
|
-
}));
|
|
1023
|
-
};
|
|
1024
1030
|
|
|
1025
1031
|
var NumberValue = /*#__PURE__*/react.forwardRef(function (_a, ref) {
|
|
1026
1032
|
var children = _a.children,
|
|
@@ -1510,12 +1516,12 @@ exports.Heading4 = Heading4;
|
|
|
1510
1516
|
exports.Heading5 = Heading5;
|
|
1511
1517
|
exports.Heading6 = Heading6;
|
|
1512
1518
|
exports.HeadingGroup = HeadingGroup;
|
|
1519
|
+
exports.Icon = Icon;
|
|
1513
1520
|
exports.Image = Image;
|
|
1514
1521
|
exports.Link = Link;
|
|
1515
1522
|
exports.LinkButton = LinkButton;
|
|
1516
1523
|
exports.LinkSocial = LinkSocial;
|
|
1517
1524
|
exports.ListSocial = ListSocial;
|
|
1518
|
-
exports.ListSocialItem = ListSocialItem;
|
|
1519
1525
|
exports.NumberValue = NumberValue;
|
|
1520
1526
|
exports.OrderedList = OrderedList;
|
|
1521
1527
|
exports.OrderedListItem = OrderedListItem;
|
package/dist/index.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -29,11 +29,12 @@ export { Heading4 } from './Heading4';
|
|
|
29
29
|
export { Heading5 } from './Heading5';
|
|
30
30
|
export { Heading6 } from './Heading6';
|
|
31
31
|
export { HeadingGroup } from './HeadingGroup';
|
|
32
|
+
export { Icon } from './Icon';
|
|
32
33
|
export { Image } from './Image';
|
|
33
34
|
export { Link } from './Link';
|
|
34
35
|
export { LinkButton } from './LinkButton';
|
|
35
|
-
export
|
|
36
|
-
export
|
|
36
|
+
export { LinkSocial } from './LinkSocial';
|
|
37
|
+
export { ListSocial } from './ListSocial';
|
|
37
38
|
export { NumberValue } from './NumberValue';
|
|
38
39
|
export { OrderedList } from './OrderedList';
|
|
39
40
|
export { OrderedListItem } from './OrderedListItem';
|
package/dist/index.esm.js
CHANGED
|
@@ -917,6 +917,20 @@ var HeadingGroup = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
917
917
|
});
|
|
918
918
|
HeadingGroup.displayName = 'HeadingGroup';
|
|
919
919
|
|
|
920
|
+
var Icon = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
921
|
+
var children = _a.children,
|
|
922
|
+
className = _a.className,
|
|
923
|
+
restProps = __rest(_a, ["children", "className"]);
|
|
924
|
+
|
|
925
|
+
return jsx("span", Object.assign({
|
|
926
|
+
ref: ref,
|
|
927
|
+
className: clsx('utrecht-icon', className)
|
|
928
|
+
}, restProps, {
|
|
929
|
+
children: children
|
|
930
|
+
}));
|
|
931
|
+
});
|
|
932
|
+
Icon.displayName = 'Icon';
|
|
933
|
+
|
|
920
934
|
var Image = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
921
935
|
var className = _a.className,
|
|
922
936
|
photo = _a.photo,
|
|
@@ -989,7 +1003,7 @@ var LinkSocial = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
989
1003
|
return jsx("a", Object.assign({}, restProps, {
|
|
990
1004
|
ref: ref,
|
|
991
1005
|
className: clsx('utrecht-link-social', className),
|
|
992
|
-
rel: external ? 'external noopener noreferrer' : undefined
|
|
1006
|
+
rel: external !== false ? 'external noopener noreferrer' : undefined
|
|
993
1007
|
}, {
|
|
994
1008
|
children: children
|
|
995
1009
|
}));
|
|
@@ -1004,14 +1018,6 @@ var ListSocial = function ListSocial(_ref) {
|
|
|
1004
1018
|
children: children
|
|
1005
1019
|
}));
|
|
1006
1020
|
};
|
|
1007
|
-
var ListSocialItem = function ListSocialItem(_ref2) {
|
|
1008
|
-
var children = _ref2.children;
|
|
1009
|
-
return jsx("li", Object.assign({
|
|
1010
|
-
className: clsx('utrecht-list-social__item')
|
|
1011
|
-
}, {
|
|
1012
|
-
children: children
|
|
1013
|
-
}));
|
|
1014
|
-
};
|
|
1015
1021
|
|
|
1016
1022
|
var NumberValue = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
1017
1023
|
var children = _a.children,
|
|
@@ -1470,5 +1476,5 @@ var UnorderedListItem = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
1470
1476
|
});
|
|
1471
1477
|
UnorderedListItem.displayName = 'UnorderedListItem';
|
|
1472
1478
|
|
|
1473
|
-
export { Article, Backdrop, Button, ButtonGroup, ButtonLink, Calendar, Checkbox, CustomRadioButton, DataList, DataListActions, DataListItem, DataListKey, DataListValue, Document, Emphasis, Fieldset, FieldsetLegend, Figure, FigureCaption, FormField, FormFieldDescription, FormLabel, HTMLContent, Heading, Heading1, Heading2, Heading3, Heading4, Heading5, Heading6, HeadingGroup, Image, Link, LinkButton, LinkSocial, ListSocial,
|
|
1479
|
+
export { Article, Backdrop, Button, ButtonGroup, ButtonLink, Calendar, Checkbox, CustomRadioButton, DataList, DataListActions, DataListItem, DataListKey, DataListValue, Document, Emphasis, Fieldset, FieldsetLegend, Figure, FigureCaption, FormField, FormFieldDescription, FormLabel, HTMLContent, Heading, Heading1, Heading2, Heading3, Heading4, Heading5, Heading6, HeadingGroup, Icon, Image, Link, LinkButton, LinkSocial, ListSocial, NumberValue, OrderedList, OrderedListItem, Page, PageContent, PageFooter, PageHeader, Paragraph, PreHeading, PrimaryActionButton, RadioButton, SecondaryActionButton, Select, SelectOption, Separator, SkipLink, Strong, SubtleButton, Surface, Table, TableBody, TableCaption, TableCell, TableFooter, TableHeader, TableHeaderCell, TableRow, Textarea, Textbox, URLValue, UnorderedList, UnorderedListItem };
|
|
1474
1480
|
//# sourceMappingURL=index.esm.js.map
|
package/dist/index.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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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",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"react": "16 - 18",
|
|
74
74
|
"react-dom": "16 - 18"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "7155e788f4eef75d1c892a2c8f001d0f24a23194"
|
|
77
77
|
}
|