@arc-ui/community-components 12.0.0-beta.5 → 12.0.0-beta7
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/Accordion/Accordion.cjs.js +48 -0
- package/dist/Accordion/Accordion.esm.js +40 -0
- package/dist/Accordion/package.json +7 -0
- package/dist/Accordion/styles.css +1 -0
- package/dist/Author/Author.cjs.js +16 -0
- package/dist/Author/Author.esm.js +8 -0
- package/dist/Author/package.json +7 -0
- package/dist/Author/styles.css +1 -0
- package/dist/CopyLead/CopyLead.cjs.js +39 -46
- package/dist/CopyLead/CopyLead.esm.js +26 -33
- package/dist/CopyLead/styles.css +1 -0
- package/dist/FeaturePost/FeaturePost.cjs.js +2220 -26
- package/dist/FeaturePost/FeaturePost.esm.js +2213 -19
- package/dist/FeaturePost/styles.css +1 -0
- package/dist/Highlights/Highlights.cjs.js +64 -0
- package/dist/Highlights/Highlights.esm.js +56 -0
- package/dist/Highlights/package.json +7 -0
- package/dist/Highlights/styles.css +1 -0
- package/dist/PromoListing/PromoListing.cjs.js +66 -0
- package/dist/PromoListing/PromoListing.esm.js +58 -0
- package/dist/PromoListing/package.json +7 -0
- package/dist/PromoListing/styles.css +1 -0
- package/dist/Quote/Quote.cjs.js +33 -0
- package/dist/Quote/Quote.esm.js +25 -0
- package/dist/Quote/package.json +7 -0
- package/dist/Quote/styles.css +1 -0
- package/dist/_shared/cjs/Author-cd166353.js +30 -0
- package/dist/_shared/cjs/index-9947ac13.js +64 -0
- package/dist/_shared/cjs/index.es-875b2756.js +13 -0
- package/dist/_shared/cjs/index.es-a9e01247.js +129 -0
- package/dist/_shared/cjs/tslib.es6-ec509cfc.js +46 -0
- package/dist/_shared/esm/Author-9c7cb4f2.js +24 -0
- package/dist/_shared/esm/index-2e73c2e9.js +62 -0
- package/dist/_shared/esm/index.es-33860780.js +127 -0
- package/dist/_shared/esm/index.es-a1591fd3.js +9 -0
- package/dist/_shared/esm/tslib.es6-2bdcff75.js +44 -0
- package/dist/index.es.js +2528 -63
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2532 -62
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/components/Accordion/Accordion.d.ts +10 -0
- package/dist/types/components/Accordion/components/AccordionDisclosureList/AccordionDisclosureList.d.ts +9 -0
- package/dist/types/components/Accordion/components/AccordionHeader/AccordionHeader.d.ts +20 -0
- package/dist/types/components/Accordion/index.d.ts +1 -0
- package/dist/types/components/Author/Author.d.ts +17 -0
- package/dist/types/components/Author/index.d.ts +1 -0
- package/dist/types/components/CopyLead/CopyLead.d.ts +8 -3
- package/dist/types/components/CopyLead/components/MediaContent/MediaContent.d.ts +2 -0
- package/dist/types/components/CopyLead/templates/Content/Content.d.ts +3 -1
- package/dist/types/components/CopyLead/templates/Media/Media.d.ts +4 -2
- package/dist/types/components/FeaturePost/FeaturePost.d.ts +27 -1
- package/dist/types/components/FeaturePost/types/feature-post-cta-footer.d.ts +2 -6
- package/dist/types/components/Highlights/Highlights.d.ts +30 -0
- package/dist/types/components/Highlights/components/HighlightHeader/HighlightHeader.d.ts +21 -0
- package/dist/types/components/Highlights/components/HighlightItem/HighlightItem.d.ts +14 -0
- package/dist/types/components/Highlights/components/HighlightList/HighlightList.d.ts +9 -0
- package/dist/types/components/Highlights/index.d.ts +1 -0
- package/dist/types/components/Highlights/types/highlight-list-item.d.ts +10 -0
- package/dist/types/components/Highlights/types/index.d.ts +1 -0
- package/dist/types/components/PromoListing/PromoListing.d.ts +38 -0
- package/dist/types/components/PromoListing/components/PromoListingHeader/PromoListingHeader.d.ts +17 -0
- package/dist/types/components/PromoListing/index.d.ts +1 -0
- package/dist/types/components/Quote/Quote.d.ts +11 -0
- package/dist/types/components/Quote/index.d.ts +1 -0
- package/dist/types/components/index.d.ts +5 -0
- package/package.json +20 -16
- package/dist/_shared/cjs/index-0524fde2.js +0 -119
- package/dist/_shared/esm/index-8c73b64b.js +0 -113
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.FeaturePost-module_labelDate__NXOgY{padding-top:var(--sem-space-padding-20)}.FeaturePost-module_authorContent__FEuRO{padding-left:var(--sem-space-padding-70)}.FeaturePost-module_googlePlayButtonWrapper__GI-ag{padding:var(--sem-space-padding-70) 0 0}.FeaturePost-module_imgWrapper__r6omd{border-radius:var(--sem-border-radius-s);overflow:hidden}@media (min-width:636px){.FeaturePost-module_googlePlayButtonWrapper__GI-ag{padding:0 0 0 var(--sem-space-padding-70)}}@media (min-width:768px){.FeaturePost-module_featurePost__9jY21{display:flex;gap:24px}.FeaturePost-module_featurePostReversed__WQRXm{flex-direction:row-reverse}.FeaturePost-module_contentContainer__kdus7{padding:0 var(--sem-space-padding-110) 0 0}.FeaturePost-module_col__eW8gY{flex:0 1 auto;width:50%}.FeaturePost-module_labelDate__NXOgY{padding-left:var(--sem-space-padding-70)}}@media (min-width:1280px){.FeaturePost-module_featurePost__9jY21{gap:32px}.FeaturePost-module_contentContainer__kdus7{padding:0 var(--sem-space-padding-130) 0 0}}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var useMediaQuery = require('@arc-ui/components/dist/use-media-query');
|
|
7
|
+
var index = require('../_shared/cjs/index-9947ac13.js');
|
|
8
|
+
var Heading = require('@arc-ui/components/dist/Heading');
|
|
9
|
+
var Icon = require('@arc-ui/components/dist/Icon');
|
|
10
|
+
var Text = require('@arc-ui/components/dist/Text');
|
|
11
|
+
var Link = require('@arc-ui/components/dist/Link');
|
|
12
|
+
var VerticalSpace = require('@arc-ui/components/dist/VerticalSpace');
|
|
13
|
+
|
|
14
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
15
|
+
|
|
16
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
17
|
+
|
|
18
|
+
var styles = {"highlights":"Highlights-module_highlights__Hf7Zq","header":"Highlights-module_header__hIdDj","highlightItem":"Highlights-module_highlightItem__-N6le","headerContent":"Highlights-module_headerContent__rt-Oj","highlights2Column":"Highlights-module_highlights2Column__6qIuI","highlights3Column":"Highlights-module_highlights3Column__qsCMP"};
|
|
19
|
+
|
|
20
|
+
var HighlightItem = function (_a) {
|
|
21
|
+
var icon = _a.icon, heading = _a.heading, text = _a.text, link = _a.link, isSmallIcon = _a.isSmallIcon;
|
|
22
|
+
return (React__default["default"].createElement("div", { "data-testid": "highlight-item-container", className: styles.highlightItem },
|
|
23
|
+
icon && (React__default["default"].createElement("div", { className: styles.Icon },
|
|
24
|
+
React__default["default"].createElement(Icon.Icon, { "data-testid": "highlight-icon", color: "brand", icon: icon, size: isSmallIcon ? 64 : 76 }))),
|
|
25
|
+
React__default["default"].createElement(VerticalSpace.VerticalSpace, { size: "16" }),
|
|
26
|
+
React__default["default"].createElement(Heading.Heading, { level: "3", size: "m" }, heading),
|
|
27
|
+
React__default["default"].createElement(VerticalSpace.VerticalSpace, { size: "16" }),
|
|
28
|
+
React__default["default"].createElement(Text.Text, null, text),
|
|
29
|
+
React__default["default"].createElement(VerticalSpace.VerticalSpace, { size: "16" }),
|
|
30
|
+
link && (React__default["default"].createElement(Link.Link, { href: link.url, id: link.url, onClick: function noRefCheck() { }, rel: "", size: "m", target: "_self", title: link.textLink }, link.textLink))));
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
var HighlightList = function (_a) {
|
|
34
|
+
var listItems = _a.listItems, columns = _a.columns, isSmallIcon = _a.isSmallIcon;
|
|
35
|
+
return (React__default["default"].createElement("div", { "data-testid": "highlights-list", className: index.classNames(styles.highlights, styles["highlights".concat(columns, "Column")]) }, listItems.map(function (_a) {
|
|
36
|
+
var icon = _a.icon, heading = _a.heading, text = _a.text, link = _a.link;
|
|
37
|
+
return (React__default["default"].createElement(HighlightItem, { icon: icon, heading: heading, text: text, link: link, isSmallIcon: isSmallIcon }));
|
|
38
|
+
})));
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Use `Highlights` to give supporting information about a page or proposition. It can be used to call out key benefits in bullet points, or link to a supporting explanatory video. An optional CTA can be used to link to further information or trigger a sales or enquiry journey.
|
|
43
|
+
*/
|
|
44
|
+
var HighlightHeader = function (_a) {
|
|
45
|
+
var heading = _a.heading, headingLevel = _a.headingLevel, content = _a.content;
|
|
46
|
+
return (React__default["default"].createElement("div", { "data-testid": "highlights-header", className: styles.header },
|
|
47
|
+
React__default["default"].createElement(Heading.Heading, { level: headingLevel, size: "xl" }, heading),
|
|
48
|
+
content && (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
49
|
+
React__default["default"].createElement(VerticalSpace.VerticalSpace, { size: "24" }),
|
|
50
|
+
React__default["default"].createElement("p", { className: styles.headerContent }, content)))));
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Use `Highlights` to give supporting information about a page or proposition. It can be used to call out key benefits in bullet points, or link. Both two and three column options are available.
|
|
55
|
+
*/
|
|
56
|
+
var Highlights = function (_a) {
|
|
57
|
+
var heading = _a.heading, _b = _a.headingLevel, headingLevel = _b === void 0 ? "2" : _b, content = _a.content, listItems = _a.listItems, _c = _a.columns, columns = _c === void 0 ? "2" : _c;
|
|
58
|
+
var isMaxWidthArcBreakpointXs = useMediaQuery.useMediaQuery("(max-width: 767px)");
|
|
59
|
+
return (React__default["default"].createElement("div", null,
|
|
60
|
+
React__default["default"].createElement(HighlightHeader, { heading: heading, headingLevel: headingLevel, content: content }),
|
|
61
|
+
React__default["default"].createElement(HighlightList, { "data-testid": "highlights-list-container", listItems: listItems, columns: columns, isSmallIcon: isMaxWidthArcBreakpointXs })));
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
exports.Highlights = Highlights;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useMediaQuery } from '@arc-ui/components/dist/use-media-query';
|
|
3
|
+
import { c as classNames } from '../_shared/esm/index-2e73c2e9.js';
|
|
4
|
+
import { Heading } from '@arc-ui/components/dist/Heading';
|
|
5
|
+
import { Icon } from '@arc-ui/components/dist/Icon';
|
|
6
|
+
import { Text } from '@arc-ui/components/dist/Text';
|
|
7
|
+
import { Link } from '@arc-ui/components/dist/Link';
|
|
8
|
+
import { VerticalSpace } from '@arc-ui/components/dist/VerticalSpace';
|
|
9
|
+
|
|
10
|
+
var styles = {"highlights":"Highlights-module_highlights__Hf7Zq","header":"Highlights-module_header__hIdDj","highlightItem":"Highlights-module_highlightItem__-N6le","headerContent":"Highlights-module_headerContent__rt-Oj","highlights2Column":"Highlights-module_highlights2Column__6qIuI","highlights3Column":"Highlights-module_highlights3Column__qsCMP"};
|
|
11
|
+
|
|
12
|
+
var HighlightItem = function (_a) {
|
|
13
|
+
var icon = _a.icon, heading = _a.heading, text = _a.text, link = _a.link, isSmallIcon = _a.isSmallIcon;
|
|
14
|
+
return (React.createElement("div", { "data-testid": "highlight-item-container", className: styles.highlightItem },
|
|
15
|
+
icon && (React.createElement("div", { className: styles.Icon },
|
|
16
|
+
React.createElement(Icon, { "data-testid": "highlight-icon", color: "brand", icon: icon, size: isSmallIcon ? 64 : 76 }))),
|
|
17
|
+
React.createElement(VerticalSpace, { size: "16" }),
|
|
18
|
+
React.createElement(Heading, { level: "3", size: "m" }, heading),
|
|
19
|
+
React.createElement(VerticalSpace, { size: "16" }),
|
|
20
|
+
React.createElement(Text, null, text),
|
|
21
|
+
React.createElement(VerticalSpace, { size: "16" }),
|
|
22
|
+
link && (React.createElement(Link, { href: link.url, id: link.url, onClick: function noRefCheck() { }, rel: "", size: "m", target: "_self", title: link.textLink }, link.textLink))));
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
var HighlightList = function (_a) {
|
|
26
|
+
var listItems = _a.listItems, columns = _a.columns, isSmallIcon = _a.isSmallIcon;
|
|
27
|
+
return (React.createElement("div", { "data-testid": "highlights-list", className: classNames(styles.highlights, styles["highlights".concat(columns, "Column")]) }, listItems.map(function (_a) {
|
|
28
|
+
var icon = _a.icon, heading = _a.heading, text = _a.text, link = _a.link;
|
|
29
|
+
return (React.createElement(HighlightItem, { icon: icon, heading: heading, text: text, link: link, isSmallIcon: isSmallIcon }));
|
|
30
|
+
})));
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Use `Highlights` to give supporting information about a page or proposition. It can be used to call out key benefits in bullet points, or link to a supporting explanatory video. An optional CTA can be used to link to further information or trigger a sales or enquiry journey.
|
|
35
|
+
*/
|
|
36
|
+
var HighlightHeader = function (_a) {
|
|
37
|
+
var heading = _a.heading, headingLevel = _a.headingLevel, content = _a.content;
|
|
38
|
+
return (React.createElement("div", { "data-testid": "highlights-header", className: styles.header },
|
|
39
|
+
React.createElement(Heading, { level: headingLevel, size: "xl" }, heading),
|
|
40
|
+
content && (React.createElement(React.Fragment, null,
|
|
41
|
+
React.createElement(VerticalSpace, { size: "24" }),
|
|
42
|
+
React.createElement("p", { className: styles.headerContent }, content)))));
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Use `Highlights` to give supporting information about a page or proposition. It can be used to call out key benefits in bullet points, or link. Both two and three column options are available.
|
|
47
|
+
*/
|
|
48
|
+
var Highlights = function (_a) {
|
|
49
|
+
var heading = _a.heading, _b = _a.headingLevel, headingLevel = _b === void 0 ? "2" : _b, content = _a.content, listItems = _a.listItems, _c = _a.columns, columns = _c === void 0 ? "2" : _c;
|
|
50
|
+
var isMaxWidthArcBreakpointXs = useMediaQuery("(max-width: 767px)");
|
|
51
|
+
return (React.createElement("div", null,
|
|
52
|
+
React.createElement(HighlightHeader, { heading: heading, headingLevel: headingLevel, content: content }),
|
|
53
|
+
React.createElement(HighlightList, { "data-testid": "highlights-list-container", listItems: listItems, columns: columns, isSmallIcon: isMaxWidthArcBreakpointXs })));
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export { Highlights };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.Highlights-module_highlights__Hf7Zq{display:grid;grid-gap:48px 24px;gap:48px 24px;grid-template-columns:1fr}.Highlights-module_header__hIdDj{display:flex;flex-direction:column;padding-bottom:40px;width:auto}.Highlights-module_highlightItem__-N6le{max-width:480px;width:auto}.Highlights-module_headerContent__rt-Oj{color:#2a2a2a;font-size:20px;line-height:28px;margin:0}@media (min-width:636px){.Highlights-module_header__hIdDj{min-width:588px;width:auto}.Highlights-module_highlights__Hf7Zq{grid-template-columns:1fr 1fr}.Highlights-module_highlightItem__-N6le{min-width:282px;padding-right:0}}@media (min-width:768px){.Highlights-module_header__hIdDj{min-width:720px;padding:0 186px 40px 0}.Highlights-module_highlights2Column__6qIuI{grid-template-columns:1fr 1fr}.Highlights-module_highlights2Column__6qIuI .Highlights-module_highlightItem__-N6le{max-width:-moz-max-content;max-width:max-content;min-width:348px;padding-right:62px}.Highlights-module_highlights3Column__qsCMP{grid-template-columns:1fr 1fr 1fr}.Highlights-module_highlights3Column__qsCMP .Highlights-module_highlightItem__-N6le{min-width:224px}}@media (min-width:1024px){.Highlights-module_header__hIdDj{min-width:960px;padding:0 246px 40px 0}.Highlights-module_highlights2Column__6qIuI{grid-template-columns:1fr 1fr}.Highlights-module_highlights2Column__6qIuI .Highlights-module_highlightItem__-N6le{min-width:468px;padding-right:82px}.Highlights-module_highlights3Column__qsCMP{grid-template-columns:1fr 1fr 1fr}.Highlights-module_highlights3Column__qsCMP .Highlights-module_highlightItem__-N6le{min-width:304px}}@media (min-width:1280px){.Highlights-module_header__hIdDj{min-width:1216px;padding:0 312px 40px 0}.Highlights-module_highlights__Hf7Zq{gap:48px 32px}.Highlights-module_highlights2Column__6qIuI{grid-template-columns:1fr 1fr}.Highlights-module_highlights2Column__6qIuI .Highlights-module_highlightItem__-N6le{min-width:592px;padding-right:104px}.Highlights-module_highlights3Column__qsCMP{grid-template-columns:1fr 1fr 1fr}.Highlights-module_highlights3Column__qsCMP .Highlights-module_highlightItem__-N6le{min-width:384px}}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var tslib_es6 = require('../_shared/cjs/tslib.es6-ec509cfc.js');
|
|
6
|
+
var React = require('react');
|
|
7
|
+
var index = require('../_shared/cjs/index-9947ac13.js');
|
|
8
|
+
var Carousel = require('@arc-ui/components/dist/Carousel');
|
|
9
|
+
var useMediaQuery = require('@arc-ui/components/dist/use-media-query');
|
|
10
|
+
var MediaCard = require('@arc-ui/components/dist/MediaCard');
|
|
11
|
+
var ImpactCard = require('@arc-ui/components/dist/ImpactCard');
|
|
12
|
+
var InformationCard = require('@arc-ui/components/dist/InformationCard');
|
|
13
|
+
var TypographyCard = require('@arc-ui/components/dist/TypographyCard');
|
|
14
|
+
var Heading = require('@arc-ui/components/dist/Heading');
|
|
15
|
+
var VerticalSpace = require('@arc-ui/components/dist/VerticalSpace');
|
|
16
|
+
|
|
17
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
18
|
+
|
|
19
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Do not edit directly
|
|
23
|
+
* Generated on Fri, 25 Oct 2024 08:31:13 GMT
|
|
24
|
+
*/
|
|
25
|
+
var ArcSizeBreakpointsL = "1024px";
|
|
26
|
+
|
|
27
|
+
var styles = {"PromoListing":"PromoListing-module_PromoListing__6ensv","headerContent":"PromoListing-module_headerContent__rMt1t","header":"PromoListing-module_header__PDGdP","promoListingContainer":"PromoListing-module_promoListingContainer__vwez-","cardGrid":"PromoListing-module_cardGrid__llf73","cardGrid2Columns":"PromoListing-module_cardGrid2Columns__qPLQk","cardGrid3Cards":"PromoListing-module_cardGrid3Cards__VKWMs","cardGrid5Cards":"PromoListing-module_cardGrid5Cards__ywl5k","cardGrid3Columns":"PromoListing-module_cardGrid3Columns__g0Xru","cardGrid4Cards":"PromoListing-module_cardGrid4Cards__5Bv5u","cardGrid2Cards":"PromoListing-module_cardGrid2Cards__wDc4S"};
|
|
28
|
+
|
|
29
|
+
var PromoListingHeader = function (_a) {
|
|
30
|
+
var heading = _a.heading, headingLevel = _a.headingLevel, content = _a.content;
|
|
31
|
+
return (React__default["default"].createElement("div", { "data-testid": "PromoListing-header", className: styles.header },
|
|
32
|
+
React__default["default"].createElement(Heading.Heading, { level: headingLevel, size: "xl" }, heading),
|
|
33
|
+
content && (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
34
|
+
React__default["default"].createElement(VerticalSpace.VerticalSpace, { size: "24" }),
|
|
35
|
+
React__default["default"].createElement("p", { className: styles.headerContent }, content)))));
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Use `PromoListing` to give supporting information about a page or proposition in the form of the card components (`ImpactCard`, `InformationCard`, `MediaCard` and `TypographyCard`).
|
|
40
|
+
*/
|
|
41
|
+
var PromoListing = function (_a) {
|
|
42
|
+
var heading = _a.heading, content = _a.content, isCarousel = _a.isCarousel, cards = _a.cards, _b = _a.headingLevel, headingLevel = _b === void 0 ? "2" : _b, _c = _a.columns, columns = _c === void 0 ? "2" : _c;
|
|
43
|
+
var isMinWidthArcBreakpointL = useMediaQuery.useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsL, ")"));
|
|
44
|
+
var columnCount = isMinWidthArcBreakpointL ? columns : 2;
|
|
45
|
+
var getCard = function (card) { return (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
46
|
+
card.type === "media-card" && React__default["default"].createElement(MediaCard.MediaCard, tslib_es6.__assign({}, card)),
|
|
47
|
+
card.type === "impact-card" && React__default["default"].createElement(ImpactCard.ImpactCard, tslib_es6.__assign({}, card)),
|
|
48
|
+
card.type === "information-card" && React__default["default"].createElement(InformationCard.InformationCard, tslib_es6.__assign({}, card)),
|
|
49
|
+
card.type === "typography-card" && React__default["default"].createElement(TypographyCard.TypographyCard, tslib_es6.__assign({}, card)))); };
|
|
50
|
+
return (React__default["default"].createElement("div", { className: styles.PromoListing },
|
|
51
|
+
React__default["default"].createElement(PromoListingHeader, { heading: heading, headingLevel: headingLevel, content: content }),
|
|
52
|
+
isCarousel && !isMinWidthArcBreakpointL ? (React__default["default"].createElement(Carousel.Carousel, { itemsPerSlide: 1, responsive: {
|
|
53
|
+
s: {
|
|
54
|
+
slideAmount: 1,
|
|
55
|
+
partialVisible: false,
|
|
56
|
+
itemsPerSlide: 2
|
|
57
|
+
},
|
|
58
|
+
m: {
|
|
59
|
+
slideAmount: 1,
|
|
60
|
+
partialVisible: true,
|
|
61
|
+
itemsPerSlide: 2
|
|
62
|
+
}
|
|
63
|
+
} }, cards === null || cards === void 0 ? void 0 : cards.map(function (card) { return getCard(card); }))) : (React__default["default"].createElement("div", { className: index.classNames(styles.cardGrid, styles["cardGrid".concat(columnCount, "Columns")], styles["cardGrid".concat(cards.length, "Cards")]) }, cards === null || cards === void 0 ? void 0 : cards.map(function (card, index$1) { return (React__default["default"].createElement("div", { "data-testid": "promoList-card".concat(index$1), className: index.classNames(styles.promoListingContainer), key: index$1 }, getCard(card))); })))));
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
exports.PromoListing = PromoListing;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { a as __assign } from '../_shared/esm/tslib.es6-2bdcff75.js';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { c as classNames } from '../_shared/esm/index-2e73c2e9.js';
|
|
4
|
+
import { Carousel } from '@arc-ui/components/dist/Carousel';
|
|
5
|
+
import { useMediaQuery } from '@arc-ui/components/dist/use-media-query';
|
|
6
|
+
import { MediaCard } from '@arc-ui/components/dist/MediaCard';
|
|
7
|
+
import { ImpactCard } from '@arc-ui/components/dist/ImpactCard';
|
|
8
|
+
import { InformationCard } from '@arc-ui/components/dist/InformationCard';
|
|
9
|
+
import { TypographyCard } from '@arc-ui/components/dist/TypographyCard';
|
|
10
|
+
import { Heading } from '@arc-ui/components/dist/Heading';
|
|
11
|
+
import { VerticalSpace } from '@arc-ui/components/dist/VerticalSpace';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Do not edit directly
|
|
15
|
+
* Generated on Fri, 25 Oct 2024 08:31:13 GMT
|
|
16
|
+
*/
|
|
17
|
+
var ArcSizeBreakpointsL = "1024px";
|
|
18
|
+
|
|
19
|
+
var styles = {"PromoListing":"PromoListing-module_PromoListing__6ensv","headerContent":"PromoListing-module_headerContent__rMt1t","header":"PromoListing-module_header__PDGdP","promoListingContainer":"PromoListing-module_promoListingContainer__vwez-","cardGrid":"PromoListing-module_cardGrid__llf73","cardGrid2Columns":"PromoListing-module_cardGrid2Columns__qPLQk","cardGrid3Cards":"PromoListing-module_cardGrid3Cards__VKWMs","cardGrid5Cards":"PromoListing-module_cardGrid5Cards__ywl5k","cardGrid3Columns":"PromoListing-module_cardGrid3Columns__g0Xru","cardGrid4Cards":"PromoListing-module_cardGrid4Cards__5Bv5u","cardGrid2Cards":"PromoListing-module_cardGrid2Cards__wDc4S"};
|
|
20
|
+
|
|
21
|
+
var PromoListingHeader = function (_a) {
|
|
22
|
+
var heading = _a.heading, headingLevel = _a.headingLevel, content = _a.content;
|
|
23
|
+
return (React.createElement("div", { "data-testid": "PromoListing-header", className: styles.header },
|
|
24
|
+
React.createElement(Heading, { level: headingLevel, size: "xl" }, heading),
|
|
25
|
+
content && (React.createElement(React.Fragment, null,
|
|
26
|
+
React.createElement(VerticalSpace, { size: "24" }),
|
|
27
|
+
React.createElement("p", { className: styles.headerContent }, content)))));
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Use `PromoListing` to give supporting information about a page or proposition in the form of the card components (`ImpactCard`, `InformationCard`, `MediaCard` and `TypographyCard`).
|
|
32
|
+
*/
|
|
33
|
+
var PromoListing = function (_a) {
|
|
34
|
+
var heading = _a.heading, content = _a.content, isCarousel = _a.isCarousel, cards = _a.cards, _b = _a.headingLevel, headingLevel = _b === void 0 ? "2" : _b, _c = _a.columns, columns = _c === void 0 ? "2" : _c;
|
|
35
|
+
var isMinWidthArcBreakpointL = useMediaQuery("(min-width: ".concat(ArcSizeBreakpointsL, ")"));
|
|
36
|
+
var columnCount = isMinWidthArcBreakpointL ? columns : 2;
|
|
37
|
+
var getCard = function (card) { return (React.createElement(React.Fragment, null,
|
|
38
|
+
card.type === "media-card" && React.createElement(MediaCard, __assign({}, card)),
|
|
39
|
+
card.type === "impact-card" && React.createElement(ImpactCard, __assign({}, card)),
|
|
40
|
+
card.type === "information-card" && React.createElement(InformationCard, __assign({}, card)),
|
|
41
|
+
card.type === "typography-card" && React.createElement(TypographyCard, __assign({}, card)))); };
|
|
42
|
+
return (React.createElement("div", { className: styles.PromoListing },
|
|
43
|
+
React.createElement(PromoListingHeader, { heading: heading, headingLevel: headingLevel, content: content }),
|
|
44
|
+
isCarousel && !isMinWidthArcBreakpointL ? (React.createElement(Carousel, { itemsPerSlide: 1, responsive: {
|
|
45
|
+
s: {
|
|
46
|
+
slideAmount: 1,
|
|
47
|
+
partialVisible: false,
|
|
48
|
+
itemsPerSlide: 2
|
|
49
|
+
},
|
|
50
|
+
m: {
|
|
51
|
+
slideAmount: 1,
|
|
52
|
+
partialVisible: true,
|
|
53
|
+
itemsPerSlide: 2
|
|
54
|
+
}
|
|
55
|
+
} }, cards === null || cards === void 0 ? void 0 : cards.map(function (card) { return getCard(card); }))) : (React.createElement("div", { className: classNames(styles.cardGrid, styles["cardGrid".concat(columnCount, "Columns")], styles["cardGrid".concat(cards.length, "Cards")]) }, cards === null || cards === void 0 ? void 0 : cards.map(function (card, index) { return (React.createElement("div", { "data-testid": "promoList-card".concat(index), className: classNames(styles.promoListingContainer), key: index }, getCard(card))); })))));
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export { PromoListing };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.PromoListing-module_PromoListing__6ensv{max-width:1280px}.PromoListing-module_headerContent__rMt1t{color:#2a2a2a;font-size:20px;line-height:28px;margin:0}.PromoListing-module_header__PDGdP{display:flex;flex-direction:column;padding-bottom:40px;width:auto}.PromoListing-module_promoListingContainer__vwez-{grid-column:span 2;height:100%;width:100%}.PromoListing-module_cardGrid__llf73{display:grid;grid-gap:24px;gap:24px;grid-template-columns:2fr}@media (min-width:320px){.PromoListing-module_cardGrid__llf73{grid-auto-rows:minmax(430px,1fr)}}@media (min-width:636px){.PromoListing-module_header__PDGdP{min-width:588px}.PromoListing-module_cardGrid2Columns__qPLQk{grid-auto-rows:minmax(430px,1fr);grid-template-columns:repeat(4,1fr)}.PromoListing-module_cardGrid2Columns__qPLQk.PromoListing-module_cardGrid3Cards__VKWMs .PromoListing-module_promoListingContainer__vwez-:last-child{grid-column-end:4}.PromoListing-module_cardGrid2Columns__qPLQk.PromoListing-module_cardGrid5Cards__ywl5k .PromoListing-module_promoListingContainer__vwez-:last-child{grid-column-end:4}}@media (min-width:768px){.PromoListing-module_header__PDGdP{min-width:720px;padding:0 186px 40px 0}.PromoListing-module_cardGrid2Columns__qPLQk{grid-auto-rows:minmax(430px,1fr)}}@media (min-width:1024px){.PromoListing-module_header__PDGdP{min-width:960px;padding:0 246px 40px 0}.PromoListing-module_cardGrid2Columns__qPLQk{grid-auto-rows:minmax(468px,1fr)}.PromoListing-module_cardGrid3Columns__g0Xru{grid-auto-rows:minmax(437px,1fr);grid-template-columns:repeat(6,1fr)}.PromoListing-module_cardGrid3Columns__g0Xru.PromoListing-module_cardGrid4Cards__5Bv5u .PromoListing-module_promoListingContainer__vwez-:last-child{grid-column-end:5}.PromoListing-module_cardGrid3Columns__g0Xru.PromoListing-module_cardGrid2Cards__wDc4S .PromoListing-module_promoListingContainer__vwez-:last-child{grid-column-end:6}.PromoListing-module_cardGrid3Columns__g0Xru.PromoListing-module_cardGrid5Cards__ywl5k .PromoListing-module_promoListingContainer__vwez-:last-child{grid-column-end:6}.PromoListing-module_cardGrid3Columns__g0Xru.PromoListing-module_cardGrid2Cards__wDc4S .PromoListing-module_promoListingContainer__vwez-:nth-last-child(2){grid-column-end:4}.PromoListing-module_cardGrid3Columns__g0Xru.PromoListing-module_cardGrid5Cards__ywl5k .PromoListing-module_promoListingContainer__vwez-:nth-last-child(2){grid-column-end:4}}@media (min-width:1280px){.PromoListing-module_header__PDGdP{min-width:1216px;padding:0 312px 40px 0}.PromoListing-module_cardGrid2Columns__qPLQk{grid-auto-rows:minmax(592px,1fr)}.PromoListing-module_cardGrid3Columns__g0Xru{grid-auto-rows:minmax(523px,1fr)}.PromoListing-module_cardGrid__llf73{gap:32px}}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var tslib_es6 = require('../_shared/cjs/tslib.es6-ec509cfc.js');
|
|
6
|
+
var React = require('react');
|
|
7
|
+
var index = require('../_shared/cjs/index-9947ac13.js');
|
|
8
|
+
var index_es = require('../_shared/cjs/index.es-a9e01247.js');
|
|
9
|
+
var Author = require('../_shared/cjs/Author-cd166353.js');
|
|
10
|
+
require('@arc-ui/components/dist/Grid');
|
|
11
|
+
require('@arc-ui/components/dist/Avatar');
|
|
12
|
+
require('@arc-ui/components/dist/Heading');
|
|
13
|
+
require('@arc-ui/components/dist/Text');
|
|
14
|
+
|
|
15
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
16
|
+
|
|
17
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
18
|
+
|
|
19
|
+
var styles = {"blockQuote":"Quote-module_blockQuote__STj-z","quoteContent":"Quote-module_quoteContent__kWc51","quoteDefault":"Quote-module_quoteDefault__tU5db","quoteSecondary":"Quote-module_quoteSecondary__3Rk3f","quoteIcon":"Quote-module_quoteIcon__HK1TV"};
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Use `Quote` where a quote or testimonial from an existing customer or stakeholder would help build trust and credibility with potential new customers. It's commonly used on product pages where customers would learn about a product or service that we offer.*/
|
|
23
|
+
var Quote = function (_a) {
|
|
24
|
+
var author = _a.author, _b = _a.styling, styling = _b === void 0 ? "Default" : _b, content = _a.content, citeUrl = _a.citeUrl, props = tslib_es6.__rest(_a, ["author", "styling", "content", "citeUrl"]);
|
|
25
|
+
return (React__default["default"].createElement("div", tslib_es6.__assign({ className: "community-component--quote", "data-testid": "quote-test" }, index_es.filterDataAttrs(props)),
|
|
26
|
+
React__default["default"].createElement("blockquote", { "data-testid": "style-test", className: index.classNames(styles.blockQuote, styles["quote".concat(styling)]), cite: citeUrl },
|
|
27
|
+
React__default["default"].createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 100 77", className: styles.quoteIcon, "aria-hidden": "true" },
|
|
28
|
+
React__default["default"].createElement("path", { d: "M21.8085 76.4706C15.9574 76.4706 10.8156 74.2732 6.38298 69.8783C2.12766 65.4834 0 58.979 0 50.3651C0 40.5206 3.10284 31.1156 9.30851 22.1501C15.6915 13.1846 25.3546 5.80122 38.2979 0L44.1489 11.3387C37.4113 14.3272 31.7376 18.0189 27.1277 22.4138C22.5177 26.6329 19.6809 31.4672 18.617 36.9168C19.8582 36.741 21.0106 36.6531 22.0745 36.6531C27.7482 36.6531 32.4468 38.499 36.1702 42.1907C40.0709 45.8824 42.0213 50.7167 42.0213 56.6937C42.0213 62.4949 39.9823 67.2414 35.9043 70.9331C32.0035 74.6247 27.305 76.4706 21.8085 76.4706ZM77.6596 76.4706C71.8085 76.4706 66.6667 74.2732 62.234 69.8783C57.9787 65.4834 55.8511 58.979 55.8511 50.3651C55.8511 40.5206 58.9539 31.1156 65.1596 22.1501C71.5425 13.1846 81.2057 5.80122 94.1489 0L100 11.3387C93.2624 14.3272 87.5886 18.0189 82.9787 22.4138C78.3688 26.6329 75.5319 31.4672 74.4681 36.9168C75.7092 36.741 76.8617 36.6531 77.9255 36.6531C83.5993 36.6531 88.2979 38.499 92.0213 42.1907C95.922 45.8824 97.8723 50.7167 97.8723 56.6937C97.8723 62.4949 95.8333 67.2414 91.7553 70.9331C87.8546 74.6247 83.156 76.4706 77.6596 76.4706Z" })),
|
|
29
|
+
React__default["default"].createElement("p", { className: styles.quoteContent }, content)),
|
|
30
|
+
author && (React__default["default"].createElement(Author.Author, { name: author.name, title: author.title, avatar: author.avatar }))));
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
exports.Quote = Quote;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { _ as __rest, a as __assign } from '../_shared/esm/tslib.es6-2bdcff75.js';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { c as classNames } from '../_shared/esm/index-2e73c2e9.js';
|
|
4
|
+
import { f as filterDataAttrs } from '../_shared/esm/index.es-33860780.js';
|
|
5
|
+
import { A as Author } from '../_shared/esm/Author-9c7cb4f2.js';
|
|
6
|
+
import '@arc-ui/components/dist/Grid';
|
|
7
|
+
import '@arc-ui/components/dist/Avatar';
|
|
8
|
+
import '@arc-ui/components/dist/Heading';
|
|
9
|
+
import '@arc-ui/components/dist/Text';
|
|
10
|
+
|
|
11
|
+
var styles = {"blockQuote":"Quote-module_blockQuote__STj-z","quoteContent":"Quote-module_quoteContent__kWc51","quoteDefault":"Quote-module_quoteDefault__tU5db","quoteSecondary":"Quote-module_quoteSecondary__3Rk3f","quoteIcon":"Quote-module_quoteIcon__HK1TV"};
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Use `Quote` where a quote or testimonial from an existing customer or stakeholder would help build trust and credibility with potential new customers. It's commonly used on product pages where customers would learn about a product or service that we offer.*/
|
|
15
|
+
var Quote = function (_a) {
|
|
16
|
+
var author = _a.author, _b = _a.styling, styling = _b === void 0 ? "Default" : _b, content = _a.content, citeUrl = _a.citeUrl, props = __rest(_a, ["author", "styling", "content", "citeUrl"]);
|
|
17
|
+
return (React.createElement("div", __assign({ className: "community-component--quote", "data-testid": "quote-test" }, filterDataAttrs(props)),
|
|
18
|
+
React.createElement("blockquote", { "data-testid": "style-test", className: classNames(styles.blockQuote, styles["quote".concat(styling)]), cite: citeUrl },
|
|
19
|
+
React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 100 77", className: styles.quoteIcon, "aria-hidden": "true" },
|
|
20
|
+
React.createElement("path", { d: "M21.8085 76.4706C15.9574 76.4706 10.8156 74.2732 6.38298 69.8783C2.12766 65.4834 0 58.979 0 50.3651C0 40.5206 3.10284 31.1156 9.30851 22.1501C15.6915 13.1846 25.3546 5.80122 38.2979 0L44.1489 11.3387C37.4113 14.3272 31.7376 18.0189 27.1277 22.4138C22.5177 26.6329 19.6809 31.4672 18.617 36.9168C19.8582 36.741 21.0106 36.6531 22.0745 36.6531C27.7482 36.6531 32.4468 38.499 36.1702 42.1907C40.0709 45.8824 42.0213 50.7167 42.0213 56.6937C42.0213 62.4949 39.9823 67.2414 35.9043 70.9331C32.0035 74.6247 27.305 76.4706 21.8085 76.4706ZM77.6596 76.4706C71.8085 76.4706 66.6667 74.2732 62.234 69.8783C57.9787 65.4834 55.8511 58.979 55.8511 50.3651C55.8511 40.5206 58.9539 31.1156 65.1596 22.1501C71.5425 13.1846 81.2057 5.80122 94.1489 0L100 11.3387C93.2624 14.3272 87.5886 18.0189 82.9787 22.4138C78.3688 26.6329 75.5319 31.4672 74.4681 36.9168C75.7092 36.741 76.8617 36.6531 77.9255 36.6531C83.5993 36.6531 88.2979 38.499 92.0213 42.1907C95.922 45.8824 97.8723 50.7167 97.8723 56.6937C97.8723 62.4949 95.8333 67.2414 91.7553 70.9331C87.8546 74.6247 83.156 76.4706 77.6596 76.4706Z" })),
|
|
21
|
+
React.createElement("p", { className: styles.quoteContent }, content)),
|
|
22
|
+
author && (React.createElement(Author, { name: author.name, title: author.title, avatar: author.avatar }))));
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export { Quote };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.Quote-module_blockQuote__STj-z{font-size:36px;font-style:normal;font-weight:500;margin:0}.Quote-module_quoteContent__kWc51{line-height:44px;margin:0;padding-top:32px;padding-bottom:32px}.Quote-module_quoteDefault__tU5db{color:#5514b4;fill:#5514b4}.Quote-module_quoteSecondary__3Rk3f{color:#434343;fill:#434343}.Quote-module_quoteIcon__HK1TV{height:76.471px;width:100px}svg{padding:0}@media (min-width:768px){.Quote-module_blockQuote__STj-z{font-size:40px}.Quote-module_quoteContent__kWc51{line-height:48px}}@media (min-width:1024px){.Quote-module_quoteIcon__HK1TV{height:95.588px;width:125px}}@media (min-width:1280px){.Quote-module_blockQuote__STj-z{font-size:56px}.Quote-module_quoteContent__kWc51{line-height:64px}}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var tslib_es6 = require('./tslib.es6-ec509cfc.js');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var index_es = require('./index.es-a9e01247.js');
|
|
6
|
+
var Grid = require('@arc-ui/components/dist/Grid');
|
|
7
|
+
var Avatar = require('@arc-ui/components/dist/Avatar');
|
|
8
|
+
var Heading = require('@arc-ui/components/dist/Heading');
|
|
9
|
+
var Text = require('@arc-ui/components/dist/Text');
|
|
10
|
+
|
|
11
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
|
+
|
|
13
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
14
|
+
|
|
15
|
+
var styles = {"authorContent":"Author-module_authorContent__TBY7b"};
|
|
16
|
+
|
|
17
|
+
var Author = function (_a) {
|
|
18
|
+
var name = _a.name, title = _a.title, avatar = _a.avatar, props = tslib_es6.__rest(_a, ["name", "title", "avatar"]);
|
|
19
|
+
return (React__default["default"].createElement("div", tslib_es6.__assign({}, index_es.filterDataAttrs(props)),
|
|
20
|
+
React__default["default"].createElement(Grid.Grid, { isFluid: true, isGutterless: true },
|
|
21
|
+
React__default["default"].createElement(Grid.Grid.Row, { align: "center" },
|
|
22
|
+
React__default["default"].createElement(Grid.Grid.Col, { xs: "auto" },
|
|
23
|
+
React__default["default"].createElement(Avatar.Avatar, tslib_es6.__assign({ size: "m" }, avatar, { "data-testid": "authorAvatar" }))),
|
|
24
|
+
React__default["default"].createElement(Grid.Grid.Col, null,
|
|
25
|
+
React__default["default"].createElement("div", { className: styles.authorContent, "data-testid": "authorContent" },
|
|
26
|
+
React__default["default"].createElement(Heading.Heading, { size: "xs" }, name),
|
|
27
|
+
React__default["default"].createElement(Text.Text, { size: "s" }, title)))))));
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
exports.Author = Author;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var classnames = {exports: {}};
|
|
4
|
+
|
|
5
|
+
/*!
|
|
6
|
+
Copyright (c) 2018 Jed Watson.
|
|
7
|
+
Licensed under the MIT License (MIT), see
|
|
8
|
+
http://jedwatson.github.io/classnames
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
(function (module) {
|
|
12
|
+
/* global define */
|
|
13
|
+
|
|
14
|
+
(function () {
|
|
15
|
+
|
|
16
|
+
var hasOwn = {}.hasOwnProperty;
|
|
17
|
+
|
|
18
|
+
function classNames() {
|
|
19
|
+
var classes = [];
|
|
20
|
+
|
|
21
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
22
|
+
var arg = arguments[i];
|
|
23
|
+
if (!arg) continue;
|
|
24
|
+
|
|
25
|
+
var argType = typeof arg;
|
|
26
|
+
|
|
27
|
+
if (argType === 'string' || argType === 'number') {
|
|
28
|
+
classes.push(arg);
|
|
29
|
+
} else if (Array.isArray(arg)) {
|
|
30
|
+
if (arg.length) {
|
|
31
|
+
var inner = classNames.apply(null, arg);
|
|
32
|
+
if (inner) {
|
|
33
|
+
classes.push(inner);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
} else if (argType === 'object') {
|
|
37
|
+
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
|
|
38
|
+
classes.push(arg.toString());
|
|
39
|
+
continue;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
for (var key in arg) {
|
|
43
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
44
|
+
classes.push(key);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
return classes.join(' ');
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
if (module.exports) {
|
|
54
|
+
classNames.default = classNames;
|
|
55
|
+
module.exports = classNames;
|
|
56
|
+
} else {
|
|
57
|
+
window.classNames = classNames;
|
|
58
|
+
}
|
|
59
|
+
}());
|
|
60
|
+
}(classnames));
|
|
61
|
+
|
|
62
|
+
var classNames = classnames.exports;
|
|
63
|
+
|
|
64
|
+
exports.classNames = classNames;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Do not edit directly
|
|
5
|
+
* Generated on Fri, 25 Oct 2024 08:31:41 GMT
|
|
6
|
+
*/
|
|
7
|
+
var SemSizeBreakpointsM = "768px"; // Medium (MD) - 768px to 991px: This is commonly used for larger tablets and smaller desktop screens.
|
|
8
|
+
var SemSizeBreakpointsL = "1024px"; // Large (LG) - 1024px - 1279px: This breakpoint is often applied to larger desktop screens and some laptops.
|
|
9
|
+
var SemSizeBreakpointsXl = "1280px"; // Extra Large (XL) - 1280px and above: This breakpoint is used for very large desktop screens.
|
|
10
|
+
|
|
11
|
+
exports.SemSizeBreakpointsL = SemSizeBreakpointsL;
|
|
12
|
+
exports.SemSizeBreakpointsM = SemSizeBreakpointsM;
|
|
13
|
+
exports.SemSizeBreakpointsXl = SemSizeBreakpointsXl;
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var dataAttrRe = /^(data-.*)$/;
|
|
4
|
+
var filterDataAttrs = function (props) {
|
|
5
|
+
var filteredProps = {};
|
|
6
|
+
for (var prop in props) {
|
|
7
|
+
if (Object.prototype.hasOwnProperty.call(props, prop) &&
|
|
8
|
+
dataAttrRe.test(prop)) {
|
|
9
|
+
filteredProps[prop] = props[prop];
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
return filteredProps;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
var camelcase = {exports: {}};
|
|
16
|
+
|
|
17
|
+
const UPPERCASE = /[\p{Lu}]/u;
|
|
18
|
+
const LOWERCASE = /[\p{Ll}]/u;
|
|
19
|
+
const LEADING_CAPITAL = /^[\p{Lu}](?![\p{Lu}])/gu;
|
|
20
|
+
const IDENTIFIER = /([\p{Alpha}\p{N}_]|$)/u;
|
|
21
|
+
const SEPARATORS = /[_.\- ]+/;
|
|
22
|
+
|
|
23
|
+
const LEADING_SEPARATORS = new RegExp('^' + SEPARATORS.source);
|
|
24
|
+
const SEPARATORS_AND_IDENTIFIER = new RegExp(SEPARATORS.source + IDENTIFIER.source, 'gu');
|
|
25
|
+
const NUMBERS_AND_IDENTIFIER = new RegExp('\\d+' + IDENTIFIER.source, 'gu');
|
|
26
|
+
|
|
27
|
+
const preserveCamelCase = (string, toLowerCase, toUpperCase) => {
|
|
28
|
+
let isLastCharLower = false;
|
|
29
|
+
let isLastCharUpper = false;
|
|
30
|
+
let isLastLastCharUpper = false;
|
|
31
|
+
|
|
32
|
+
for (let i = 0; i < string.length; i++) {
|
|
33
|
+
const character = string[i];
|
|
34
|
+
|
|
35
|
+
if (isLastCharLower && UPPERCASE.test(character)) {
|
|
36
|
+
string = string.slice(0, i) + '-' + string.slice(i);
|
|
37
|
+
isLastCharLower = false;
|
|
38
|
+
isLastLastCharUpper = isLastCharUpper;
|
|
39
|
+
isLastCharUpper = true;
|
|
40
|
+
i++;
|
|
41
|
+
} else if (isLastCharUpper && isLastLastCharUpper && LOWERCASE.test(character)) {
|
|
42
|
+
string = string.slice(0, i - 1) + '-' + string.slice(i - 1);
|
|
43
|
+
isLastLastCharUpper = isLastCharUpper;
|
|
44
|
+
isLastCharUpper = false;
|
|
45
|
+
isLastCharLower = true;
|
|
46
|
+
} else {
|
|
47
|
+
isLastCharLower = toLowerCase(character) === character && toUpperCase(character) !== character;
|
|
48
|
+
isLastLastCharUpper = isLastCharUpper;
|
|
49
|
+
isLastCharUpper = toUpperCase(character) === character && toLowerCase(character) !== character;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
return string;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
const preserveConsecutiveUppercase = (input, toLowerCase) => {
|
|
57
|
+
LEADING_CAPITAL.lastIndex = 0;
|
|
58
|
+
|
|
59
|
+
return input.replace(LEADING_CAPITAL, m1 => toLowerCase(m1));
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
const postProcess = (input, toUpperCase) => {
|
|
63
|
+
SEPARATORS_AND_IDENTIFIER.lastIndex = 0;
|
|
64
|
+
NUMBERS_AND_IDENTIFIER.lastIndex = 0;
|
|
65
|
+
|
|
66
|
+
return input.replace(SEPARATORS_AND_IDENTIFIER, (_, identifier) => toUpperCase(identifier))
|
|
67
|
+
.replace(NUMBERS_AND_IDENTIFIER, m => toUpperCase(m));
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
const camelCase = (input, options) => {
|
|
71
|
+
if (!(typeof input === 'string' || Array.isArray(input))) {
|
|
72
|
+
throw new TypeError('Expected the input to be `string | string[]`');
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
options = {
|
|
76
|
+
pascalCase: false,
|
|
77
|
+
preserveConsecutiveUppercase: false,
|
|
78
|
+
...options
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
if (Array.isArray(input)) {
|
|
82
|
+
input = input.map(x => x.trim())
|
|
83
|
+
.filter(x => x.length)
|
|
84
|
+
.join('-');
|
|
85
|
+
} else {
|
|
86
|
+
input = input.trim();
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
if (input.length === 0) {
|
|
90
|
+
return '';
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
const toLowerCase = options.locale === false ?
|
|
94
|
+
string => string.toLowerCase() :
|
|
95
|
+
string => string.toLocaleLowerCase(options.locale);
|
|
96
|
+
const toUpperCase = options.locale === false ?
|
|
97
|
+
string => string.toUpperCase() :
|
|
98
|
+
string => string.toLocaleUpperCase(options.locale);
|
|
99
|
+
|
|
100
|
+
if (input.length === 1) {
|
|
101
|
+
return options.pascalCase ? toUpperCase(input) : toLowerCase(input);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
const hasUpperCase = input !== toLowerCase(input);
|
|
105
|
+
|
|
106
|
+
if (hasUpperCase) {
|
|
107
|
+
input = preserveCamelCase(input, toLowerCase, toUpperCase);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
input = input.replace(LEADING_SEPARATORS, '');
|
|
111
|
+
|
|
112
|
+
if (options.preserveConsecutiveUppercase) {
|
|
113
|
+
input = preserveConsecutiveUppercase(input, toLowerCase);
|
|
114
|
+
} else {
|
|
115
|
+
input = toLowerCase(input);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
if (options.pascalCase) {
|
|
119
|
+
input = toUpperCase(input.charAt(0)) + input.slice(1);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
return postProcess(input, toUpperCase);
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
camelcase.exports = camelCase;
|
|
126
|
+
// TODO: Remove this for the next major release
|
|
127
|
+
camelcase.exports.default = camelCase;
|
|
128
|
+
|
|
129
|
+
exports.filterDataAttrs = filterDataAttrs;
|