@universityofmaryland/web-elements-library 1.5.0-beta.0 → 1.5.1
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 +1 -1
- package/dist/composite/banner/promo.d.ts.map +1 -1
- package/dist/composite/banner/promo.js +6 -3
- package/dist/composite/banner/promo.js.map +1 -1
- package/dist/composite/banner/promo.mjs +6 -3
- package/dist/composite/banner/promo.mjs.map +1 -1
- package/dist/composite/footer/elements/main-section/index.js.map +1 -1
- package/dist/composite/footer/elements/main-section/index.mjs.map +1 -1
- package/dist/composite/navigation/header.d.ts.map +1 -1
- package/dist/composite/navigation/header.js +4 -1
- package/dist/composite/navigation/header.js.map +1 -1
- package/dist/composite/navigation/header.mjs +4 -1
- package/dist/composite/navigation/header.mjs.map +1 -1
- package/dist/composite/quote/elements/icon.d.ts +3 -2
- package/dist/composite/quote/elements/icon.d.ts.map +1 -1
- package/dist/composite/quote/elements/icon.js +23 -16
- package/dist/composite/quote/elements/icon.js.map +1 -1
- package/dist/composite/quote/elements/icon.mjs +23 -16
- package/dist/composite/quote/elements/icon.mjs.map +1 -1
- package/dist/composite/quote/elements/image.d.ts.map +1 -1
- package/dist/composite/quote/elements/image.js +6 -6
- package/dist/composite/quote/elements/image.js.map +1 -1
- package/dist/composite/quote/elements/image.mjs +6 -6
- package/dist/composite/quote/elements/image.mjs.map +1 -1
- package/dist/composite/quote/elements/index.d.ts +1 -0
- package/dist/composite/quote/elements/index.d.ts.map +1 -1
- package/dist/composite/quote/elements/index.js +2 -0
- package/dist/composite/quote/elements/index.js.map +1 -1
- package/dist/composite/quote/elements/index.mjs +2 -0
- package/dist/composite/quote/elements/index.mjs.map +1 -1
- package/dist/composite/quote/elements/quote.d.ts +13 -0
- package/dist/composite/quote/elements/quote.d.ts.map +1 -0
- package/dist/composite/quote/elements/quote.js +114 -0
- package/dist/composite/quote/elements/quote.js.map +1 -0
- package/dist/composite/quote/elements/quote.mjs +97 -0
- package/dist/composite/quote/elements/quote.mjs.map +1 -0
- package/dist/composite/quote/elements/text.d.ts +1 -1
- package/dist/composite/quote/elements/text.d.ts.map +1 -1
- package/dist/composite/quote/elements/text.js +103 -172
- package/dist/composite/quote/elements/text.js.map +1 -1
- package/dist/composite/quote/elements/text.mjs +103 -172
- package/dist/composite/quote/elements/text.mjs.map +1 -1
- package/dist/composite/quote/featured.d.ts +3 -0
- package/dist/composite/quote/featured.d.ts.map +1 -1
- package/dist/composite/quote/featured.js +14 -7
- package/dist/composite/quote/featured.js.map +1 -1
- package/dist/composite/quote/featured.mjs +14 -7
- package/dist/composite/quote/featured.mjs.map +1 -1
- package/dist/composite/quote/helper/animation.d.ts.map +1 -1
- package/dist/composite/quote/helper/animation.js +67 -36
- package/dist/composite/quote/helper/animation.js.map +1 -1
- package/dist/composite/quote/helper/animation.mjs +67 -36
- package/dist/composite/quote/helper/animation.mjs.map +1 -1
- package/dist/composite/quote/inline.d.ts +3 -0
- package/dist/composite/quote/inline.d.ts.map +1 -1
- package/dist/composite/quote/inline.js +15 -7
- package/dist/composite/quote/inline.js.map +1 -1
- package/dist/composite/quote/inline.mjs +15 -7
- package/dist/composite/quote/inline.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -6,6 +6,7 @@ const text = require("./elements/text.js");
|
|
|
6
6
|
require("@universityofmaryland/web-icons-library/brand");
|
|
7
7
|
const _constants = require("./_constants.js");
|
|
8
8
|
require("@universityofmaryland/web-styles-library/layout");
|
|
9
|
+
require("@universityofmaryland/web-styles-library/typography");
|
|
9
10
|
const animation = require("./helper/animation.js");
|
|
10
11
|
function _interopNamespaceDefault(e) {
|
|
11
12
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
@@ -25,14 +26,14 @@ function _interopNamespaceDefault(e) {
|
|
|
25
26
|
}
|
|
26
27
|
const token__namespace = /* @__PURE__ */ _interopNamespaceDefault(token);
|
|
27
28
|
const InlineQuote = (props) => {
|
|
28
|
-
const { isSizeLarge, image: image$1 } = props;
|
|
29
|
+
const { isSizeLarge, image: image$1, isTypeFeatured = false } = props;
|
|
29
30
|
const textContainer = text(props);
|
|
30
31
|
const getInlineWrapperChildren = (props2) => {
|
|
31
32
|
const wrapperChildren2 = [];
|
|
32
33
|
if (image$1) {
|
|
33
34
|
const imageContainer = image({
|
|
34
35
|
...props2,
|
|
35
|
-
isTypeFeatured
|
|
36
|
+
isTypeFeatured,
|
|
36
37
|
image: image$1
|
|
37
38
|
});
|
|
38
39
|
wrapperChildren2.push(imageContainer);
|
|
@@ -69,11 +70,18 @@ const InlineQuote = (props) => {
|
|
|
69
70
|
};
|
|
70
71
|
const wrapperChildren = getInlineWrapperChildren(props);
|
|
71
72
|
const wrapper = createWrapper(wrapperChildren);
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
73
|
+
const loadAnimation = () => {
|
|
74
|
+
animation.quoteAnimation({
|
|
75
|
+
...props,
|
|
76
|
+
quoteElement: wrapper
|
|
77
|
+
});
|
|
78
|
+
};
|
|
79
|
+
return {
|
|
80
|
+
...createContainer(wrapper),
|
|
81
|
+
events: {
|
|
82
|
+
loadAnimation
|
|
83
|
+
}
|
|
84
|
+
};
|
|
77
85
|
};
|
|
78
86
|
module.exports = InlineQuote;
|
|
79
87
|
//# sourceMappingURL=inline.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline.js","sources":["../../../source/composite/quote/inline.ts"],"sourcesContent":["import * as token from '@universityofmaryland/web-styles-library/token';\nimport { ElementModel } from 'model';\nimport { image as elementImage, text as elementText } from './elements';\nimport { quoteAnimation } from './helper/animation';\nimport { SMALL } from './_constants';\nimport { type QuoteInlineProps } from './_types';\nimport { type ElementVisual } from '../../_types';\n\nexport default (props: QuoteInlineProps) => {\n const { isSizeLarge, image } = props;\n const textContainer = elementText(props);\n const getInlineWrapperChildren = (props: QuoteInlineProps) => {\n const wrapperChildren: ElementVisual[] = [];\n\n if (image) {\n const imageContainer = elementImage({\n ...props,\n isTypeFeatured
|
|
1
|
+
{"version":3,"file":"inline.js","sources":["../../../source/composite/quote/inline.ts"],"sourcesContent":["import * as token from '@universityofmaryland/web-styles-library/token';\nimport { ElementModel } from 'model';\nimport { image as elementImage, text as elementText } from './elements';\nimport { quoteAnimation } from './helper/animation';\nimport { SMALL } from './_constants';\nimport { type QuoteInlineProps } from './_types';\nimport { type ElementVisual } from '../../_types';\n\nexport default (props: QuoteInlineProps) => {\n const { isSizeLarge, image, isTypeFeatured = false } = props;\n const textContainer = elementText(props);\n const getInlineWrapperChildren = (props: QuoteInlineProps) => {\n const wrapperChildren: ElementVisual[] = [];\n\n if (image) {\n const imageContainer = elementImage({\n ...props,\n isTypeFeatured,\n image,\n });\n\n wrapperChildren.push(imageContainer);\n }\n\n wrapperChildren.push(textContainer);\n return wrapperChildren;\n };\n\n const createWrapper = (children: ElementVisual[]) => {\n return ElementModel.createDiv({\n className: 'quote-inline-container-wrapper',\n children: children,\n elementStyles: {\n element: {\n [`@container (min-width: ${SMALL}px)`]: {\n display: 'flex',\n gap: token.spacing.lg,\n ...(isSizeLarge && { gap: token.spacing.xl }),\n },\n },\n },\n });\n };\n\n const createContainer = (wrapper: ElementVisual) => {\n return ElementModel.createDiv({\n className: 'quote-inline-container',\n children: [wrapper],\n elementStyles: {\n element: {\n containerType: 'inline-size',\n width: '100%',\n },\n },\n });\n };\n\n const wrapperChildren = getInlineWrapperChildren(props);\n const wrapper = createWrapper(wrapperChildren);\n\n const loadAnimation = () => {\n quoteAnimation({\n ...props,\n quoteElement: wrapper,\n });\n };\n\n return {\n ...createContainer(wrapper),\n events: {\n loadAnimation,\n },\n };\n};\n"],"names":["image","elementText","props","wrapperChildren","elementImage","ElementModel.createDiv","SMALL","token","wrapper","quoteAnimation"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,MAAA,cAAe,CAAC,UAA4B;AAC1C,QAAM,EAAE,aAAA,OAAaA,SAAO,iBAAiB,UAAU;AACvD,QAAM,gBAAgBC,KAAY,KAAK;AACvC,QAAM,2BAA2B,CAACC,WAA4B;AAC5D,UAAMC,mBAAmC,CAAA;AAEzC,QAAIH,SAAO;AACT,YAAM,iBAAiBI,MAAa;AAAA,QAClC,GAAGF;AAAAA,QACH;AAAA,QAAA,OACAF;AAAAA,MAAA,CACD;AAEDG,uBAAgB,KAAK,cAAc;AAAA,IACrC;AAEAA,qBAAgB,KAAK,aAAa;AAClC,WAAOA;AAAAA,EACT;AAEA,QAAM,gBAAgB,CAAC,aAA8B;AACnD,WAAOE,gBAAuB;AAAA,MAC5B,WAAW;AAAA,MACX;AAAA,MACA,eAAe;AAAA,QACb,SAAS;AAAA,UACP,CAAC,0BAA0BC,gBAAK,KAAK,GAAG;AAAA,YACtC,SAAS;AAAA,YACT,KAAKC,iBAAM,QAAQ;AAAA,YACnB,GAAI,eAAe,EAAE,KAAKA,iBAAM,QAAQ,GAAA;AAAA,UAAG;AAAA,QAC7C;AAAA,MACF;AAAA,IACF,CACD;AAAA,EACH;AAEA,QAAM,kBAAkB,CAACC,aAA2B;AAClD,WAAOH,gBAAuB;AAAA,MAC5B,WAAW;AAAA,MACX,UAAU,CAACG,QAAO;AAAA,MAClB,eAAe;AAAA,QACb,SAAS;AAAA,UACP,eAAe;AAAA,UACf,OAAO;AAAA,QAAA;AAAA,MACT;AAAA,IACF,CACD;AAAA,EACH;AAEA,QAAM,kBAAkB,yBAAyB,KAAK;AACtD,QAAM,UAAU,cAAc,eAAe;AAE7C,QAAM,gBAAgB,MAAM;AAC1BC,6BAAe;AAAA,MACb,GAAG;AAAA,MACH,cAAc;AAAA,IAAA,CACf;AAAA,EACH;AAEA,SAAO;AAAA,IACL,GAAG,gBAAgB,OAAO;AAAA,IAC1B,QAAQ;AAAA,MACN;AAAA,IAAA;AAAA,EACF;AAEJ;;"}
|
|
@@ -5,16 +5,17 @@ import elementText from "./elements/text.mjs";
|
|
|
5
5
|
import "@universityofmaryland/web-icons-library/brand";
|
|
6
6
|
import { SMALL } from "./_constants.mjs";
|
|
7
7
|
import "@universityofmaryland/web-styles-library/layout";
|
|
8
|
+
import "@universityofmaryland/web-styles-library/typography";
|
|
8
9
|
import { quoteAnimation } from "./helper/animation.mjs";
|
|
9
10
|
const InlineQuote = (props) => {
|
|
10
|
-
const { isSizeLarge, image } = props;
|
|
11
|
+
const { isSizeLarge, image, isTypeFeatured = false } = props;
|
|
11
12
|
const textContainer = elementText(props);
|
|
12
13
|
const getInlineWrapperChildren = (props2) => {
|
|
13
14
|
const wrapperChildren2 = [];
|
|
14
15
|
if (image) {
|
|
15
16
|
const imageContainer = elementImage({
|
|
16
17
|
...props2,
|
|
17
|
-
isTypeFeatured
|
|
18
|
+
isTypeFeatured,
|
|
18
19
|
image
|
|
19
20
|
});
|
|
20
21
|
wrapperChildren2.push(imageContainer);
|
|
@@ -51,11 +52,18 @@ const InlineQuote = (props) => {
|
|
|
51
52
|
};
|
|
52
53
|
const wrapperChildren = getInlineWrapperChildren(props);
|
|
53
54
|
const wrapper = createWrapper(wrapperChildren);
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
const loadAnimation = () => {
|
|
56
|
+
quoteAnimation({
|
|
57
|
+
...props,
|
|
58
|
+
quoteElement: wrapper
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
return {
|
|
62
|
+
...createContainer(wrapper),
|
|
63
|
+
events: {
|
|
64
|
+
loadAnimation
|
|
65
|
+
}
|
|
66
|
+
};
|
|
59
67
|
};
|
|
60
68
|
export {
|
|
61
69
|
InlineQuote as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline.mjs","sources":["../../../source/composite/quote/inline.ts"],"sourcesContent":["import * as token from '@universityofmaryland/web-styles-library/token';\nimport { ElementModel } from 'model';\nimport { image as elementImage, text as elementText } from './elements';\nimport { quoteAnimation } from './helper/animation';\nimport { SMALL } from './_constants';\nimport { type QuoteInlineProps } from './_types';\nimport { type ElementVisual } from '../../_types';\n\nexport default (props: QuoteInlineProps) => {\n const { isSizeLarge, image } = props;\n const textContainer = elementText(props);\n const getInlineWrapperChildren = (props: QuoteInlineProps) => {\n const wrapperChildren: ElementVisual[] = [];\n\n if (image) {\n const imageContainer = elementImage({\n ...props,\n isTypeFeatured
|
|
1
|
+
{"version":3,"file":"inline.mjs","sources":["../../../source/composite/quote/inline.ts"],"sourcesContent":["import * as token from '@universityofmaryland/web-styles-library/token';\nimport { ElementModel } from 'model';\nimport { image as elementImage, text as elementText } from './elements';\nimport { quoteAnimation } from './helper/animation';\nimport { SMALL } from './_constants';\nimport { type QuoteInlineProps } from './_types';\nimport { type ElementVisual } from '../../_types';\n\nexport default (props: QuoteInlineProps) => {\n const { isSizeLarge, image, isTypeFeatured = false } = props;\n const textContainer = elementText(props);\n const getInlineWrapperChildren = (props: QuoteInlineProps) => {\n const wrapperChildren: ElementVisual[] = [];\n\n if (image) {\n const imageContainer = elementImage({\n ...props,\n isTypeFeatured,\n image,\n });\n\n wrapperChildren.push(imageContainer);\n }\n\n wrapperChildren.push(textContainer);\n return wrapperChildren;\n };\n\n const createWrapper = (children: ElementVisual[]) => {\n return ElementModel.createDiv({\n className: 'quote-inline-container-wrapper',\n children: children,\n elementStyles: {\n element: {\n [`@container (min-width: ${SMALL}px)`]: {\n display: 'flex',\n gap: token.spacing.lg,\n ...(isSizeLarge && { gap: token.spacing.xl }),\n },\n },\n },\n });\n };\n\n const createContainer = (wrapper: ElementVisual) => {\n return ElementModel.createDiv({\n className: 'quote-inline-container',\n children: [wrapper],\n elementStyles: {\n element: {\n containerType: 'inline-size',\n width: '100%',\n },\n },\n });\n };\n\n const wrapperChildren = getInlineWrapperChildren(props);\n const wrapper = createWrapper(wrapperChildren);\n\n const loadAnimation = () => {\n quoteAnimation({\n ...props,\n quoteElement: wrapper,\n });\n };\n\n return {\n ...createContainer(wrapper),\n events: {\n loadAnimation,\n },\n };\n};\n"],"names":["props","wrapperChildren","Element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