@viasat/beam-shared 2.1.0 → 2.2.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/chunks/{card.CG-SDcm1.js → card.CCV9x_-G.js} +9 -7
- package/chunks/card.CNaiyXIu.js +1 -0
- package/index.cjs.js +1 -1
- package/index.es.js +31 -30
- package/lib/components/card.cjs.js +1 -1
- package/lib/components/card.d.ts +5 -3
- package/lib/components/card.es.js +4 -3
- package/lib/components/index.cjs.js +1 -1
- package/lib/components/index.es.js +1 -1
- package/lib/utils/dom.cjs.js +1 -1
- package/lib/utils/dom.d.ts +9 -0
- package/lib/utils/dom.es.js +30 -23
- package/lib/utils/index.cjs.js +1 -1
- package/lib/utils/index.es.js +34 -33
- package/package.json +1 -1
- package/chunks/card.CLwQAceo.js +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { allSizes as e } from "../lib/utils/constants.es.js";
|
|
2
|
-
const t = [e.sm, e.md, e.lg], a = {
|
|
2
|
+
const t = [e.sm, e.md, e.lg], a = ["clickable", "selectable"], c = {
|
|
3
3
|
start: "start",
|
|
4
4
|
end: "end",
|
|
5
5
|
spaceBetween: "spaceBetween",
|
|
6
6
|
stacked: "stacked"
|
|
7
|
-
},
|
|
7
|
+
}, s = {
|
|
8
8
|
BLACK_10: "black-10",
|
|
9
9
|
BLACK_20: "black-20",
|
|
10
10
|
BLACK_30: "black-30",
|
|
@@ -15,13 +15,15 @@ const t = [e.sm, e.md, e.lg], a = {
|
|
|
15
15
|
WHITE_40: "white-40"
|
|
16
16
|
}, _ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
17
17
|
__proto__: null,
|
|
18
|
-
CARD_BACKDROP_VALUES:
|
|
19
|
-
FOOTER_ACTION_ALIGNMENT:
|
|
20
|
-
cardDensity: t
|
|
18
|
+
CARD_BACKDROP_VALUES: s,
|
|
19
|
+
FOOTER_ACTION_ALIGNMENT: c,
|
|
20
|
+
cardDensity: t,
|
|
21
|
+
cardType: a
|
|
21
22
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
22
23
|
export {
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
s as C,
|
|
25
|
+
c as F,
|
|
25
26
|
t as a,
|
|
27
|
+
a as b,
|
|
26
28
|
_ as c
|
|
27
29
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("../lib/utils/constants.cjs.js"),t=[e.allSizes.sm,e.allSizes.md,e.allSizes.lg],c=["clickable","selectable"],a={start:"start",end:"end",spaceBetween:"spaceBetween",stacked:"stacked"},s={BLACK_10:"black-10",BLACK_20:"black-20",BLACK_30:"black-30",BLACK_40:"black-40",WHITE_10:"white-10",WHITE_20:"white-20",WHITE_30:"white-30",WHITE_40:"white-40"},l=Object.freeze(Object.defineProperty({__proto__:null,CARD_BACKDROP_VALUES:s,FOOTER_ACTION_ALIGNMENT:a,cardDensity:t,cardType:c},Symbol.toStringTag,{value:"Module"}));exports.CARD_BACKDROP_VALUES=s;exports.FOOTER_ACTION_ALIGNMENT=a;exports.card=l;exports.cardDensity=t;exports.cardType=c;
|
package/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./chunks/accordion.C1LkPYXv.js"),s=require("./chunks/actionList.LFHBSlrg.js"),a=require("./chunks/alert.B4q5-o6H.js"),c=require("./chunks/avatar.VNzxbOMa.js"),l=require("./chunks/badge.B_k2GBe6.js"),p=require("./chunks/badgeDot.Dkqfk3zg.js"),_=require("./chunks/box.CsO__7hu.js"),m=require("./chunks/button.Bbz_mfWv.js"),u=require("./chunks/card.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./chunks/accordion.C1LkPYXv.js"),s=require("./chunks/actionList.LFHBSlrg.js"),a=require("./chunks/alert.B4q5-o6H.js"),c=require("./chunks/avatar.VNzxbOMa.js"),l=require("./chunks/badge.B_k2GBe6.js"),p=require("./chunks/badgeDot.Dkqfk3zg.js"),_=require("./chunks/box.CsO__7hu.js"),m=require("./chunks/button.Bbz_mfWv.js"),u=require("./chunks/card.CNaiyXIu.js"),d=require("./chunks/chips.DKEagIsp.js"),b=require("./chunks/closeButton.C1A3p88y.js"),E=require("./chunks/dialog.DnkeApRr.js"),g=require("./chunks/divider.BYMLu6Wp.js"),S=require("./chunks/fileUpload.C-l2YXzO.js"),T=require("./chunks/form.CIzlawbr.js"),C=require("./chunks/helperText.C-apoW8Z.js"),q=require("./chunks/icon.SiHuIfL8.js"),h=require("./chunks/inputChoiceGroup.BSousduj.js"),A=require("./chunks/link.VyBRMFxS.js"),v=require("./chunks/list.D6NIx1OS.js"),D=require("./chunks/logo.CLQZSaVN.js"),x=require("./chunks/nativeSelect.Lz45VyQX.js"),f=require("./chunks/pageHeader.CbDGb6ot.js"),P=require("./chunks/pagination.Br7vTt5b.js"),F=require("./chunks/progressBar.DcG-X-RY.js"),R=require("./chunks/SegmentedControl.D0l_8a7O.js"),y=require("./chunks/spinner.B6R6yphw.js"),N=require("./chunks/stepper.ByKqsxhz.js"),L=require("./chunks/switch.Dalf8ccu.js"),M=require("./chunks/tabs.C7SBQq_R.js"),O=require("./chunks/text.CW-ftgoP.js"),B=require("./chunks/textArea.DF76BVU5.js"),U=require("./chunks/toast.C-h1RUq_.js"),I=require("./chunks/tooltip.DZTJP5dS.js"),V=require("./lib/shared.cjs.js"),i=require("./lib/utils/classNames.cjs.js"),e=require("./lib/utils/constants.cjs.js"),t=require("./lib/utils/helpers.cjs.js"),w=require("./lib/utils/styles.cjs.js"),o=require("./lib/utils/dom.cjs.js"),Y=require("./lib/utils/raf.cjs.js"),n=require("./lib/utils/overflow.cjs.js");exports.accordion=r.accordion;exports.actionList=s.actionList;exports.alert=a.alert;exports.avatar=c.avatar;exports.badge=l.badge;exports.badgeDot=p.badgeDot;exports.box=_.box;exports.button=m.button;exports.card=u.card;exports.chips=d.chips;exports.closeButton=b.closeButton;exports.dialog=E.dialog;exports.divider=g.divider;exports.fileUpload=S.fileUpload;exports.form=T.form;exports.helperText=C.helperText;exports.icon=q.icon;exports.inputChoiceGroup=h.inputChoiceGroup;exports.link=A.link;exports.list=v.list;exports.logo=D.logo;exports.nativeSelect=x.nativeSelect;exports.pageHeader=f.pageHeader;exports.pagination=P.pagination;exports.progressBar=F.progressBar;exports.segmentedControl=R.SegmentedControl;exports.spinner=y.spinner;exports.stepper=N.stepper;exports.switch=L._switch;exports.tabs=M.tabs;exports.text=O.text;exports.textArea=B.textArea;exports.toast=U.toast;exports.tooltip=I.tooltip;exports.shared=V.shared;exports.generateSpacingClasses=i.generateSpacingClasses;exports.getBEMClassNames=i.getBEMClassNames;exports.ACCENT=e.ACCENT;exports.ATTRIBUTE=e.ATTRIBUTE;exports.BASE_FONT_SIZE=e.BASE_FONT_SIZE;exports.BEAM_INVERSE=e.BEAM_INVERSE;exports.DEFAULT_ACCENT=e.DEFAULT_ACCENT;exports.DEFAULT_MODE=e.DEFAULT_MODE;exports.DEFAULT_PRODUCT_TYPE=e.DEFAULT_PRODUCT_TYPE;exports.DEFAULT_THEME=e.DEFAULT_THEME;exports.EXPRESSIVE_THEMES=e.EXPRESSIVE_THEMES;exports.FPS_1=e.FPS_1;exports.FPS_120=e.FPS_120;exports.FPS_30=e.FPS_30;exports.FPS_60=e.FPS_60;exports.PRODUCT_TYPE=e.PRODUCT_TYPE;exports.STORAGE_KEY=e.STORAGE_KEY;exports.SYSTEM_MODE_ENABLED_KEY=e.SYSTEM_MODE_ENABLED_KEY;exports.SpacingValues=e.SpacingValues;exports.SpacingValuesAsNumbers=e.SpacingValuesAsNumbers;exports.StaticAppearances=e.StaticAppearances;exports.accentThemeClassName=e.accentThemeClassName;exports.allColors=e.allColors;exports.allSizes=e.allSizes;exports.appearance=e.appearance;exports.appearances=e.appearances;exports.consumer=e.consumer;exports.emphases=e.emphases;exports.enterprise=e.enterprise;exports.expressiveThemeClassName=e.expressiveThemeClassName;exports.info=e.info;exports.infoPrimary=e.infoPrimary;exports.infoSecondary=e.infoSecondary;exports.information=e.information;exports.inverse=e.inverse;exports.lg=e.lg;exports.md=e.md;exports.negative=e.negative;exports.positive=e.positive;exports.prefix=e.prefix;exports.primary=e.primary;exports.productTypeThemeClassName=e.productTypeThemeClassName;exports.secondary=e.secondary;exports.secondaryInverse=e.secondaryInverse;exports.sizes=e.sizes;exports.sm=e.sm;exports.themeClassName=e.themeClassName;exports.themeTypeValues=e.themeTypeValues;exports.warning=e.warning;exports.xl=e.xl;exports.xs=e.xs;exports.xxs=e.xxs;exports.Directions=t.Directions;exports.attributeDecorator=t.attributeDecorator;exports.camelCaseToKebabCase=t.camelCaseToKebabCase;exports.capitalizeFirstLetter=t.capitalizeFirstLetter;exports.debounce=t.debounce;exports.doesEventContainElement=t.doesEventContainElement;exports.doesWebComponentSlotExist=t.doesWebComponentSlotExist;exports.enrichSVGIcon=t.enrichSVGIcon;exports.findFirstFocusableElement=t.findFirstFocusableElement;exports.getDirection=t.getDirection;exports.getRandomArbitrary=t.getRandomArbitrary;exports.getRandomInt=t.getRandomInt;exports.getTypedEntries=t.getTypedEntries;exports.getTypedValues=t.getTypedValues;exports.isAPISupported=t.isAPISupported;exports.isMobileDevice=t.isMobileDevice;exports.nodesHaveContent=t.nodesHaveContent;exports.partitionProps=t.partitionProps;exports.propsChanged=t.propsChanged;exports.throttle=t.throttle;exports.generateCssVarPrefix=w.generateCssVarPrefix;exports.addScrollToRect=o.addScrollToRect;exports.compareDomOrder=o.compareDomOrder;exports.findTopLevelSlottedWrapper=o.findTopLevelSlottedWrapper;exports.getElementScrollBoundingClientRect=o.getElementScrollBoundingClientRect;exports.getSecureRelAttribute=o.getSecureRelAttribute;exports.readStringProp=o.readStringProp;exports.createRafScheduler=Y.createRafScheduler;exports.computeFitCount=n.computeFitCount;exports.hasScrollOverflow=n.hasScrollOverflow;exports.isMultiLineClamped=n.isMultiLineClamped;exports.isOverFlowing=n.isOverFlowing;exports.isSingleLineClamped=n.isSingleLineClamped;exports.isTextWrapping=n.isTextWrapping;
|
package/index.es.js
CHANGED
|
@@ -6,13 +6,13 @@ import { b as l } from "./chunks/badge.DZN0yrZh.js";
|
|
|
6
6
|
import { b as x } from "./chunks/badgeDot.ClhZtqzd.js";
|
|
7
7
|
import { b as d } from "./chunks/box._mFtvgTp.js";
|
|
8
8
|
import { b as S } from "./chunks/button.Dz8Zhr7J.js";
|
|
9
|
-
import { c as
|
|
9
|
+
import { c as T } from "./chunks/card.CCV9x_-G.js";
|
|
10
10
|
import { c as u } from "./chunks/chips.GU9UVEOU.js";
|
|
11
|
-
import { c as
|
|
11
|
+
import { c as _ } from "./chunks/closeButton.g8_iRoUg.js";
|
|
12
12
|
import { d as A } from "./chunks/dialog.BTq-pLBf.js";
|
|
13
13
|
import { d as v } from "./chunks/divider.DgP7kpLb.js";
|
|
14
14
|
import { f as P } from "./chunks/fileUpload.BbSIsjJv.js";
|
|
15
|
-
import { f as
|
|
15
|
+
import { f as N } from "./chunks/form.BRWIo59c.js";
|
|
16
16
|
import { h as L } from "./chunks/helperText.CS5sun4r.js";
|
|
17
17
|
import { i as O } from "./chunks/icon.tCAxaKQh.js";
|
|
18
18
|
import { i as I } from "./chunks/inputChoiceGroup.DkDdA57f.js";
|
|
@@ -33,25 +33,25 @@ import { t as le } from "./chunks/textArea.CmtmGm_y.js";
|
|
|
33
33
|
import { t as xe } from "./chunks/toast.Bs1t4Urq.js";
|
|
34
34
|
import { t as de } from "./chunks/tooltip.D1fCHa9d.js";
|
|
35
35
|
import { shared as Se } from "./lib/shared.es.js";
|
|
36
|
-
import { generateSpacingClasses as
|
|
37
|
-
import { ACCENT as
|
|
38
|
-
import { Directions as
|
|
36
|
+
import { generateSpacingClasses as Te, getBEMClassNames as Ce } from "./lib/utils/classNames.es.js";
|
|
37
|
+
import { ACCENT as be, ATTRIBUTE as _e, BASE_FONT_SIZE as he, BEAM_INVERSE as Ae, DEFAULT_ACCENT as De, DEFAULT_MODE as ve, DEFAULT_PRODUCT_TYPE as Fe, DEFAULT_THEME as Pe, EXPRESSIVE_THEMES as Re, FPS_1 as Ne, FPS_120 as ye, FPS_30 as Le, FPS_60 as Me, PRODUCT_TYPE as Oe, STORAGE_KEY as Be, SYSTEM_MODE_ENABLED_KEY as Ie, SpacingValues as Ue, SpacingValuesAsNumbers as Ve, StaticAppearances as Ye, accentThemeClassName as we, allColors as He, allSizes as ze, appearance as Ge, appearances as Ke, consumer as We, emphases as ke, enterprise as Xe, expressiveThemeClassName as Ze, info as je, infoPrimary as qe, infoSecondary as Je, information as Qe, inverse as $e, lg as er, md as rr, negative as or, positive as tr, prefix as ar, primary as sr, productTypeThemeClassName as pr, secondary as ir, secondaryInverse as mr, sizes as nr, sm as lr, themeClassName as fr, themeTypeValues as xr, warning as cr, xl as dr, xs as Er, xxs as Sr } from "./lib/utils/constants.es.js";
|
|
38
|
+
import { Directions as Tr, attributeDecorator as Cr, camelCaseToKebabCase as ur, capitalizeFirstLetter as br, debounce as _r, doesEventContainElement as hr, doesWebComponentSlotExist as Ar, enrichSVGIcon as Dr, findFirstFocusableElement as vr, getDirection as Fr, getRandomArbitrary as Pr, getRandomInt as Rr, getTypedEntries as Nr, getTypedValues as yr, isAPISupported as Lr, isMobileDevice as Mr, nodesHaveContent as Or, partitionProps as Br, propsChanged as Ir, throttle as Ur } from "./lib/utils/helpers.es.js";
|
|
39
39
|
import { generateCssVarPrefix as Yr } from "./lib/utils/styles.es.js";
|
|
40
|
-
import { addScrollToRect as Hr, compareDomOrder as zr, findTopLevelSlottedWrapper as Gr, getElementScrollBoundingClientRect as Kr,
|
|
41
|
-
import { createRafScheduler as
|
|
42
|
-
import { computeFitCount as
|
|
40
|
+
import { addScrollToRect as Hr, compareDomOrder as zr, findTopLevelSlottedWrapper as Gr, getElementScrollBoundingClientRect as Kr, getSecureRelAttribute as Wr, readStringProp as kr } from "./lib/utils/dom.es.js";
|
|
41
|
+
import { createRafScheduler as Zr } from "./lib/utils/raf.es.js";
|
|
42
|
+
import { computeFitCount as qr, hasScrollOverflow as Jr, isMultiLineClamped as Qr, isOverFlowing as $r, isSingleLineClamped as eo, isTextWrapping as ro } from "./lib/utils/overflow.es.js";
|
|
43
43
|
export {
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
be as ACCENT,
|
|
45
|
+
_e as ATTRIBUTE,
|
|
46
46
|
he as BASE_FONT_SIZE,
|
|
47
47
|
Ae as BEAM_INVERSE,
|
|
48
48
|
De as DEFAULT_ACCENT,
|
|
49
49
|
ve as DEFAULT_MODE,
|
|
50
50
|
Fe as DEFAULT_PRODUCT_TYPE,
|
|
51
51
|
Pe as DEFAULT_THEME,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
Tr as Directions,
|
|
53
|
+
Re as EXPRESSIVE_THEMES,
|
|
54
|
+
Ne as FPS_1,
|
|
55
55
|
ye as FPS_120,
|
|
56
56
|
Le as FPS_30,
|
|
57
57
|
Me as FPS_60,
|
|
@@ -77,15 +77,15 @@ export {
|
|
|
77
77
|
d as box,
|
|
78
78
|
S as button,
|
|
79
79
|
ur as camelCaseToKebabCase,
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
br as capitalizeFirstLetter,
|
|
81
|
+
T as card,
|
|
82
82
|
u as chips,
|
|
83
|
-
|
|
83
|
+
_ as closeButton,
|
|
84
84
|
zr as compareDomOrder,
|
|
85
|
-
|
|
85
|
+
qr as computeFitCount,
|
|
86
86
|
We as consumer,
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
Zr as createRafScheduler,
|
|
88
|
+
_r as debounce,
|
|
89
89
|
A as dialog,
|
|
90
90
|
v as divider,
|
|
91
91
|
hr as doesEventContainElement,
|
|
@@ -97,17 +97,18 @@ export {
|
|
|
97
97
|
P as fileUpload,
|
|
98
98
|
vr as findFirstFocusableElement,
|
|
99
99
|
Gr as findTopLevelSlottedWrapper,
|
|
100
|
-
|
|
100
|
+
N as form,
|
|
101
101
|
Yr as generateCssVarPrefix,
|
|
102
|
-
|
|
102
|
+
Te as generateSpacingClasses,
|
|
103
103
|
Ce as getBEMClassNames,
|
|
104
104
|
Fr as getDirection,
|
|
105
105
|
Kr as getElementScrollBoundingClientRect,
|
|
106
106
|
Pr as getRandomArbitrary,
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
Rr as getRandomInt,
|
|
108
|
+
Wr as getSecureRelAttribute,
|
|
109
|
+
Nr as getTypedEntries,
|
|
109
110
|
yr as getTypedValues,
|
|
110
|
-
|
|
111
|
+
Jr as hasScrollOverflow,
|
|
111
112
|
L as helperText,
|
|
112
113
|
O as icon,
|
|
113
114
|
je as info,
|
|
@@ -118,10 +119,10 @@ export {
|
|
|
118
119
|
$e as inverse,
|
|
119
120
|
Lr as isAPISupported,
|
|
120
121
|
Mr as isMobileDevice,
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
122
|
+
Qr as isMultiLineClamped,
|
|
123
|
+
$r as isOverFlowing,
|
|
124
|
+
eo as isSingleLineClamped,
|
|
125
|
+
ro as isTextWrapping,
|
|
125
126
|
er as lg,
|
|
126
127
|
V as link,
|
|
127
128
|
w as list,
|
|
@@ -139,7 +140,7 @@ export {
|
|
|
139
140
|
pr as productTypeThemeClassName,
|
|
140
141
|
q as progressBar,
|
|
141
142
|
Ir as propsChanged,
|
|
142
|
-
|
|
143
|
+
kr as readStringProp,
|
|
143
144
|
ir as secondary,
|
|
144
145
|
mr as secondaryInverse,
|
|
145
146
|
Q as segmentedControl,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../utils/constants.cjs.js");const e=require("../../chunks/card.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../utils/constants.cjs.js");const e=require("../../chunks/card.CNaiyXIu.js");exports.CARD_BACKDROP_VALUES=e.CARD_BACKDROP_VALUES;exports.FOOTER_ACTION_ALIGNMENT=e.FOOTER_ACTION_ALIGNMENT;exports.cardDensity=e.cardDensity;exports.cardType=e.cardType;
|
package/lib/components/card.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
export declare const cardDensity: readonly ["sm", "md", "lg"];
|
|
2
|
-
export type CardDensity = typeof cardDensity[number];
|
|
2
|
+
export type CardDensity = (typeof cardDensity)[number];
|
|
3
|
+
export declare const cardType: readonly ["clickable", "selectable"];
|
|
4
|
+
export type CardType = (typeof cardType)[number];
|
|
3
5
|
export declare const FOOTER_ACTION_ALIGNMENT: {
|
|
4
6
|
readonly start: "start";
|
|
5
7
|
readonly end: "end";
|
|
6
8
|
readonly spaceBetween: "spaceBetween";
|
|
7
9
|
readonly stacked: "stacked";
|
|
8
10
|
};
|
|
9
|
-
export type FooterActionLayout = typeof FOOTER_ACTION_ALIGNMENT[keyof typeof FOOTER_ACTION_ALIGNMENT];
|
|
11
|
+
export type FooterActionLayout = (typeof FOOTER_ACTION_ALIGNMENT)[keyof typeof FOOTER_ACTION_ALIGNMENT];
|
|
10
12
|
export declare const CARD_BACKDROP_VALUES: {
|
|
11
13
|
readonly BLACK_10: "black-10";
|
|
12
14
|
readonly BLACK_20: "black-20";
|
|
@@ -18,5 +20,5 @@ export declare const CARD_BACKDROP_VALUES: {
|
|
|
18
20
|
readonly WHITE_40: "white-40";
|
|
19
21
|
};
|
|
20
22
|
type CardBackdropKeys = keyof typeof CARD_BACKDROP_VALUES;
|
|
21
|
-
export type CardBackdrop = typeof CARD_BACKDROP_VALUES[CardBackdropKeys];
|
|
23
|
+
export type CardBackdrop = (typeof CARD_BACKDROP_VALUES)[CardBackdropKeys];
|
|
22
24
|
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import "../utils/constants.es.js";
|
|
2
|
-
import { C as
|
|
2
|
+
import { C as A, F as C, a as O, b as T } from "../../chunks/card.CCV9x_-G.js";
|
|
3
3
|
export {
|
|
4
|
-
|
|
4
|
+
A as CARD_BACKDROP_VALUES,
|
|
5
5
|
C as FOOTER_ACTION_ALIGNMENT,
|
|
6
|
-
O as cardDensity
|
|
6
|
+
O as cardDensity,
|
|
7
|
+
T as cardType
|
|
7
8
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../chunks/accordion.C1LkPYXv.js"),o=require("../../chunks/actionList.LFHBSlrg.js"),t=require("../../chunks/alert.B4q5-o6H.js"),n=require("../../chunks/avatar.VNzxbOMa.js"),i=require("../../chunks/badge.B_k2GBe6.js"),r=require("../../chunks/badgeDot.Dkqfk3zg.js"),s=require("../../chunks/box.CsO__7hu.js"),c=require("../../chunks/button.Bbz_mfWv.js"),l=require("../../chunks/card.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../chunks/accordion.C1LkPYXv.js"),o=require("../../chunks/actionList.LFHBSlrg.js"),t=require("../../chunks/alert.B4q5-o6H.js"),n=require("../../chunks/avatar.VNzxbOMa.js"),i=require("../../chunks/badge.B_k2GBe6.js"),r=require("../../chunks/badgeDot.Dkqfk3zg.js"),s=require("../../chunks/box.CsO__7hu.js"),c=require("../../chunks/button.Bbz_mfWv.js"),l=require("../../chunks/card.CNaiyXIu.js"),p=require("../../chunks/chips.DKEagIsp.js"),_=require("../../chunks/closeButton.C1A3p88y.js"),a=require("../../chunks/dialog.DnkeApRr.js"),b=require("../../chunks/divider.BYMLu6Wp.js"),u=require("../../chunks/fileUpload.C-l2YXzO.js"),m=require("../../chunks/form.CIzlawbr.js"),q=require("../../chunks/helperText.C-apoW8Z.js"),d=require("../../chunks/icon.SiHuIfL8.js"),g=require("../../chunks/inputChoiceGroup.BSousduj.js"),h=require("../../chunks/link.VyBRMFxS.js"),x=require("../../chunks/list.D6NIx1OS.js"),v=require("../../chunks/logo.CLQZSaVN.js"),f=require("../../chunks/nativeSelect.Lz45VyQX.js"),S=require("../../chunks/pageHeader.CbDGb6ot.js"),B=require("../../chunks/pagination.Br7vTt5b.js"),C=require("../../chunks/progressBar.DcG-X-RY.js"),T=require("../../chunks/SegmentedControl.D0l_8a7O.js"),k=require("../../chunks/spinner.B6R6yphw.js"),w=require("../../chunks/stepper.ByKqsxhz.js"),A=require("../../chunks/switch.Dalf8ccu.js"),D=require("../../chunks/tabs.C7SBQq_R.js"),G=require("../../chunks/text.CW-ftgoP.js"),H=require("../../chunks/textArea.DF76BVU5.js"),L=require("../../chunks/toast.C-h1RUq_.js"),U=require("../../chunks/tooltip.DZTJP5dS.js");exports.accordion=e.accordion;exports.actionList=o.actionList;exports.alert=t.alert;exports.avatar=n.avatar;exports.badge=i.badge;exports.badgeDot=r.badgeDot;exports.box=s.box;exports.button=c.button;exports.card=l.card;exports.chips=p.chips;exports.closeButton=_.closeButton;exports.dialog=a.dialog;exports.divider=b.divider;exports.fileUpload=u.fileUpload;exports.form=m.form;exports.helperText=q.helperText;exports.icon=d.icon;exports.inputChoiceGroup=g.inputChoiceGroup;exports.link=h.link;exports.list=x.list;exports.logo=v.logo;exports.nativeSelect=f.nativeSelect;exports.pageHeader=S.pageHeader;exports.pagination=B.pagination;exports.progressBar=C.progressBar;exports.segmentedControl=T.SegmentedControl;exports.spinner=k.spinner;exports.stepper=w.stepper;exports.switch=A._switch;exports.tabs=D.tabs;exports.text=G.text;exports.textArea=H.textArea;exports.toast=L.toast;exports.tooltip=U.tooltip;
|
|
@@ -6,7 +6,7 @@ import { b as i } from "../../chunks/badge.DZN0yrZh.js";
|
|
|
6
6
|
import { b as n } from "../../chunks/badgeDot.ClhZtqzd.js";
|
|
7
7
|
import { b as d } from "../../chunks/box._mFtvgTp.js";
|
|
8
8
|
import { b as g } from "../../chunks/button.Dz8Zhr7J.js";
|
|
9
|
-
import { c as u } from "../../chunks/card.
|
|
9
|
+
import { c as u } from "../../chunks/card.CCV9x_-G.js";
|
|
10
10
|
import { c as B } from "../../chunks/chips.GU9UVEOU.js";
|
|
11
11
|
import { c as S } from "../../chunks/closeButton.g8_iRoUg.js";
|
|
12
12
|
import { d as w } from "../../chunks/dialog.BTq-pLBf.js";
|
package/lib/utils/dom.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=(e,n)=>{const t=e,
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=(e,n)=>{const t=e,i=t[n];if(typeof i=="string"&&i.length>0)return i;const r=t.getAttribute(n);return r!==null&&r!==""?r:void 0},u=(e,n,t)=>{const i=t==null?void 0:t.assignedElements({flatten:!0}),r=i?new Set(i):void 0;let o=e;for(;o;){if(r!=null&&r.has(o)||o.parentElement===n)return o;o=o.parentElement}return e},s=(e,n)=>{const t=e.compareDocumentPosition(n);return t&Node.DOCUMENT_POSITION_FOLLOWING?-1:t&Node.DOCUMENT_POSITION_PRECEDING?1:0},l=e=>new DOMRect(e.x+window.scrollX,e.y+window.scrollY,e.width,e.height),d=e=>{if(!e)return null;const n=e.getBoundingClientRect();return l(n)},a=(e,n)=>{if(e==="_blank"){const t=n?n.split(/\s+/):[];return t.includes("noopener")||t.push("noopener"),t.join(" ")}return n};exports.addScrollToRect=l;exports.compareDomOrder=s;exports.findTopLevelSlottedWrapper=u;exports.getElementScrollBoundingClientRect=d;exports.getSecureRelAttribute=a;exports.readStringProp=c;
|
package/lib/utils/dom.d.ts
CHANGED
|
@@ -16,3 +16,12 @@ export declare const findTopLevelSlottedWrapper: (child: HTMLElement, host: HTML
|
|
|
16
16
|
export declare const compareDomOrder: (a: Node, b: Node) => number;
|
|
17
17
|
export declare const addScrollToRect: (rect: DOMRect) => DOMRect;
|
|
18
18
|
export declare const getElementScrollBoundingClientRect: (element?: HTMLElement | null) => DOMRect | null;
|
|
19
|
+
/**
|
|
20
|
+
* Ensures that `rel="noopener"` is included when `target="_blank"` is set.
|
|
21
|
+
* This is a security best practice to prevent the new page from accessing `window.opener`.
|
|
22
|
+
*
|
|
23
|
+
* @param target - The target attribute value (e.g., "_blank")
|
|
24
|
+
* @param rel - The existing rel attribute value (if any)
|
|
25
|
+
* @returns The rel attribute value with "noopener" included when target="_blank"
|
|
26
|
+
*/
|
|
27
|
+
export declare const getSecureRelAttribute: (target: string | undefined, rel: string | undefined) => string | undefined;
|
package/lib/utils/dom.es.js
CHANGED
|
@@ -1,34 +1,41 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
1
|
+
const s = (e, n) => {
|
|
2
|
+
const t = e, i = t[n];
|
|
3
3
|
if (typeof i == "string" && i.length > 0) return i;
|
|
4
|
-
const r =
|
|
4
|
+
const r = t.getAttribute(n);
|
|
5
5
|
return r !== null && r !== "" ? r : void 0;
|
|
6
|
-
},
|
|
7
|
-
const i =
|
|
8
|
-
let o =
|
|
6
|
+
}, c = (e, n, t) => {
|
|
7
|
+
const i = t == null ? void 0 : t.assignedElements({ flatten: !0 }), r = i ? new Set(i) : void 0;
|
|
8
|
+
let o = e;
|
|
9
9
|
for (; o; ) {
|
|
10
10
|
if (r != null && r.has(o) || o.parentElement === n) return o;
|
|
11
11
|
o = o.parentElement;
|
|
12
12
|
}
|
|
13
|
-
return
|
|
14
|
-
},
|
|
15
|
-
const
|
|
16
|
-
return
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
), d = (
|
|
23
|
-
if (!
|
|
13
|
+
return e;
|
|
14
|
+
}, l = (e, n) => {
|
|
15
|
+
const t = e.compareDocumentPosition(n);
|
|
16
|
+
return t & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : t & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
|
|
17
|
+
}, u = (e) => new DOMRect(
|
|
18
|
+
e.x + window.scrollX,
|
|
19
|
+
e.y + window.scrollY,
|
|
20
|
+
e.width,
|
|
21
|
+
e.height
|
|
22
|
+
), d = (e) => {
|
|
23
|
+
if (!e)
|
|
24
24
|
return null;
|
|
25
|
-
const n =
|
|
26
|
-
return
|
|
25
|
+
const n = e.getBoundingClientRect();
|
|
26
|
+
return u(n);
|
|
27
|
+
}, p = (e, n) => {
|
|
28
|
+
if (e === "_blank") {
|
|
29
|
+
const t = n ? n.split(/\s+/) : [];
|
|
30
|
+
return t.includes("noopener") || t.push("noopener"), t.join(" ");
|
|
31
|
+
}
|
|
32
|
+
return n;
|
|
27
33
|
};
|
|
28
34
|
export {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
35
|
+
u as addScrollToRect,
|
|
36
|
+
l as compareDomOrder,
|
|
37
|
+
c as findTopLevelSlottedWrapper,
|
|
32
38
|
d as getElementScrollBoundingClientRect,
|
|
33
|
-
|
|
39
|
+
p as getSecureRelAttribute,
|
|
40
|
+
s as readStringProp
|
|
34
41
|
};
|
package/lib/utils/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./classNames.cjs.js"),e=require("./constants.cjs.js"),t=require("./helpers.cjs.js"),i=require("./styles.cjs.js"),s=require("./dom.cjs.js"),n=require("./raf.cjs.js"),r=require("./overflow.cjs.js");exports.generateSpacingClasses=a.generateSpacingClasses;exports.getBEMClassNames=a.getBEMClassNames;exports.ACCENT=e.ACCENT;exports.ATTRIBUTE=e.ATTRIBUTE;exports.BASE_FONT_SIZE=e.BASE_FONT_SIZE;exports.BEAM_INVERSE=e.BEAM_INVERSE;exports.DEFAULT_ACCENT=e.DEFAULT_ACCENT;exports.DEFAULT_MODE=e.DEFAULT_MODE;exports.DEFAULT_PRODUCT_TYPE=e.DEFAULT_PRODUCT_TYPE;exports.DEFAULT_THEME=e.DEFAULT_THEME;exports.EXPRESSIVE_THEMES=e.EXPRESSIVE_THEMES;exports.FPS_1=e.FPS_1;exports.FPS_120=e.FPS_120;exports.FPS_30=e.FPS_30;exports.FPS_60=e.FPS_60;exports.PRODUCT_TYPE=e.PRODUCT_TYPE;exports.STORAGE_KEY=e.STORAGE_KEY;exports.SYSTEM_MODE_ENABLED_KEY=e.SYSTEM_MODE_ENABLED_KEY;exports.SpacingValues=e.SpacingValues;exports.SpacingValuesAsNumbers=e.SpacingValuesAsNumbers;exports.StaticAppearances=e.StaticAppearances;exports.accentThemeClassName=e.accentThemeClassName;exports.allColors=e.allColors;exports.allSizes=e.allSizes;exports.appearance=e.appearance;exports.appearances=e.appearances;exports.consumer=e.consumer;exports.emphases=e.emphases;exports.enterprise=e.enterprise;exports.expressiveThemeClassName=e.expressiveThemeClassName;exports.info=e.info;exports.infoPrimary=e.infoPrimary;exports.infoSecondary=e.infoSecondary;exports.information=e.information;exports.inverse=e.inverse;exports.lg=e.lg;exports.md=e.md;exports.negative=e.negative;exports.positive=e.positive;exports.prefix=e.prefix;exports.primary=e.primary;exports.productTypeThemeClassName=e.productTypeThemeClassName;exports.secondary=e.secondary;exports.secondaryInverse=e.secondaryInverse;exports.sizes=e.sizes;exports.sm=e.sm;exports.themeClassName=e.themeClassName;exports.themeTypeValues=e.themeTypeValues;exports.warning=e.warning;exports.xl=e.xl;exports.xs=e.xs;exports.xxs=e.xxs;exports.Directions=t.Directions;exports.attributeDecorator=t.attributeDecorator;exports.camelCaseToKebabCase=t.camelCaseToKebabCase;exports.capitalizeFirstLetter=t.capitalizeFirstLetter;exports.debounce=t.debounce;exports.doesEventContainElement=t.doesEventContainElement;exports.doesWebComponentSlotExist=t.doesWebComponentSlotExist;exports.enrichSVGIcon=t.enrichSVGIcon;exports.findFirstFocusableElement=t.findFirstFocusableElement;exports.getDirection=t.getDirection;exports.getRandomArbitrary=t.getRandomArbitrary;exports.getRandomInt=t.getRandomInt;exports.getTypedEntries=t.getTypedEntries;exports.getTypedValues=t.getTypedValues;exports.isAPISupported=t.isAPISupported;exports.isMobileDevice=t.isMobileDevice;exports.nodesHaveContent=t.nodesHaveContent;exports.partitionProps=t.partitionProps;exports.propsChanged=t.propsChanged;exports.throttle=t.throttle;exports.generateCssVarPrefix=i.generateCssVarPrefix;exports.addScrollToRect=s.addScrollToRect;exports.compareDomOrder=s.compareDomOrder;exports.findTopLevelSlottedWrapper=s.findTopLevelSlottedWrapper;exports.getElementScrollBoundingClientRect=s.getElementScrollBoundingClientRect;exports.getSecureRelAttribute=s.getSecureRelAttribute;exports.readStringProp=s.readStringProp;exports.createRafScheduler=n.createRafScheduler;exports.computeFitCount=r.computeFitCount;exports.hasScrollOverflow=r.hasScrollOverflow;exports.isMultiLineClamped=r.isMultiLineClamped;exports.isOverFlowing=r.isOverFlowing;exports.isSingleLineClamped=r.isSingleLineClamped;exports.isTextWrapping=r.isTextWrapping;
|
package/lib/utils/index.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { generateSpacingClasses as
|
|
2
|
-
import { ACCENT as s, ATTRIBUTE as i, BASE_FONT_SIZE as n, BEAM_INVERSE as p, DEFAULT_ACCENT as l, DEFAULT_MODE as m, DEFAULT_PRODUCT_TYPE as E, DEFAULT_THEME as c, EXPRESSIVE_THEMES as S, FPS_1 as T, FPS_120 as d, FPS_30 as C, FPS_60 as g, PRODUCT_TYPE as
|
|
3
|
-
import { Directions as
|
|
1
|
+
import { generateSpacingClasses as t, getBEMClassNames as a } from "./classNames.es.js";
|
|
2
|
+
import { ACCENT as s, ATTRIBUTE as i, BASE_FONT_SIZE as n, BEAM_INVERSE as p, DEFAULT_ACCENT as l, DEFAULT_MODE as m, DEFAULT_PRODUCT_TYPE as E, DEFAULT_THEME as c, EXPRESSIVE_THEMES as S, FPS_1 as T, FPS_120 as d, FPS_30 as C, FPS_60 as g, PRODUCT_TYPE as u, STORAGE_KEY as _, SYSTEM_MODE_ENABLED_KEY as f, SpacingValues as x, SpacingValuesAsNumbers as A, StaticAppearances as D, accentThemeClassName as F, allColors as P, allSizes as R, appearance as h, appearances as v, consumer as N, emphases as b, enterprise as y, expressiveThemeClassName as L, info as M, infoPrimary as O, infoSecondary as I, information as V, inverse as U, lg as B, md as Y, negative as w, positive as z, prefix as H, primary as K, productTypeThemeClassName as W, secondary as G, secondaryInverse as X, sizes as Z, sm as j, themeClassName as k, themeTypeValues as q, warning as J, xl as Q, xs as $, xxs as ee } from "./constants.es.js";
|
|
3
|
+
import { Directions as te, attributeDecorator as ae, camelCaseToKebabCase as oe, capitalizeFirstLetter as se, debounce as ie, doesEventContainElement as ne, doesWebComponentSlotExist as pe, enrichSVGIcon as le, findFirstFocusableElement as me, getDirection as Ee, getRandomArbitrary as ce, getRandomInt as Se, getTypedEntries as Te, getTypedValues as de, isAPISupported as Ce, isMobileDevice as ge, nodesHaveContent as ue, partitionProps as _e, propsChanged as fe, throttle as xe } from "./helpers.es.js";
|
|
4
4
|
import { generateCssVarPrefix as De } from "./styles.es.js";
|
|
5
|
-
import { addScrollToRect as Pe, compareDomOrder as
|
|
6
|
-
import { createRafScheduler as
|
|
7
|
-
import { computeFitCount as
|
|
5
|
+
import { addScrollToRect as Pe, compareDomOrder as Re, findTopLevelSlottedWrapper as he, getElementScrollBoundingClientRect as ve, getSecureRelAttribute as Ne, readStringProp as be } from "./dom.es.js";
|
|
6
|
+
import { createRafScheduler as Le } from "./raf.es.js";
|
|
7
|
+
import { computeFitCount as Oe, hasScrollOverflow as Ie, isMultiLineClamped as Ve, isOverFlowing as Ue, isSingleLineClamped as Be, isTextWrapping as Ye } from "./overflow.es.js";
|
|
8
8
|
export {
|
|
9
9
|
s as ACCENT,
|
|
10
10
|
i as ATTRIBUTE,
|
|
@@ -14,50 +14,51 @@ export {
|
|
|
14
14
|
m as DEFAULT_MODE,
|
|
15
15
|
E as DEFAULT_PRODUCT_TYPE,
|
|
16
16
|
c as DEFAULT_THEME,
|
|
17
|
-
|
|
17
|
+
te as Directions,
|
|
18
18
|
S as EXPRESSIVE_THEMES,
|
|
19
19
|
T as FPS_1,
|
|
20
20
|
d as FPS_120,
|
|
21
21
|
C as FPS_30,
|
|
22
22
|
g as FPS_60,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
u as PRODUCT_TYPE,
|
|
24
|
+
_ as STORAGE_KEY,
|
|
25
|
+
f as SYSTEM_MODE_ENABLED_KEY,
|
|
26
26
|
x as SpacingValues,
|
|
27
27
|
A as SpacingValuesAsNumbers,
|
|
28
28
|
D as StaticAppearances,
|
|
29
29
|
F as accentThemeClassName,
|
|
30
30
|
Pe as addScrollToRect,
|
|
31
31
|
P as allColors,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
R as allSizes,
|
|
33
|
+
h as appearance,
|
|
34
|
+
v as appearances,
|
|
35
|
+
ae as attributeDecorator,
|
|
36
36
|
oe as camelCaseToKebabCase,
|
|
37
37
|
se as capitalizeFirstLetter,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
Re as compareDomOrder,
|
|
39
|
+
Oe as computeFitCount,
|
|
40
|
+
N as consumer,
|
|
41
|
+
Le as createRafScheduler,
|
|
42
42
|
ie as debounce,
|
|
43
43
|
ne as doesEventContainElement,
|
|
44
44
|
pe as doesWebComponentSlotExist,
|
|
45
|
-
|
|
45
|
+
b as emphases,
|
|
46
46
|
le as enrichSVGIcon,
|
|
47
|
-
|
|
47
|
+
y as enterprise,
|
|
48
48
|
L as expressiveThemeClassName,
|
|
49
49
|
me as findFirstFocusableElement,
|
|
50
|
-
|
|
50
|
+
he as findTopLevelSlottedWrapper,
|
|
51
51
|
De as generateCssVarPrefix,
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
t as generateSpacingClasses,
|
|
53
|
+
a as getBEMClassNames,
|
|
54
54
|
Ee as getDirection,
|
|
55
|
-
|
|
55
|
+
ve as getElementScrollBoundingClientRect,
|
|
56
56
|
ce as getRandomArbitrary,
|
|
57
57
|
Se as getRandomInt,
|
|
58
|
+
Ne as getSecureRelAttribute,
|
|
58
59
|
Te as getTypedEntries,
|
|
59
60
|
de as getTypedValues,
|
|
60
|
-
|
|
61
|
+
Ie as hasScrollOverflow,
|
|
61
62
|
M as info,
|
|
62
63
|
O as infoPrimary,
|
|
63
64
|
I as infoSecondary,
|
|
@@ -65,21 +66,21 @@ export {
|
|
|
65
66
|
U as inverse,
|
|
66
67
|
Ce as isAPISupported,
|
|
67
68
|
ge as isMobileDevice,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
Ve as isMultiLineClamped,
|
|
70
|
+
Ue as isOverFlowing,
|
|
71
|
+
Be as isSingleLineClamped,
|
|
72
|
+
Ye as isTextWrapping,
|
|
72
73
|
B as lg,
|
|
73
74
|
Y as md,
|
|
74
75
|
w as negative,
|
|
75
|
-
|
|
76
|
-
|
|
76
|
+
ue as nodesHaveContent,
|
|
77
|
+
_e as partitionProps,
|
|
77
78
|
z as positive,
|
|
78
79
|
H as prefix,
|
|
79
80
|
K as primary,
|
|
80
81
|
W as productTypeThemeClassName,
|
|
81
|
-
|
|
82
|
-
|
|
82
|
+
fe as propsChanged,
|
|
83
|
+
be as readStringProp,
|
|
83
84
|
G as secondary,
|
|
84
85
|
X as secondaryInverse,
|
|
85
86
|
Z as sizes,
|
package/package.json
CHANGED
package/chunks/card.CLwQAceo.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("../lib/utils/constants.cjs.js"),t=[e.allSizes.sm,e.allSizes.md,e.allSizes.lg],s={start:"start",end:"end",spaceBetween:"spaceBetween",stacked:"stacked"},_={BLACK_10:"black-10",BLACK_20:"black-20",BLACK_30:"black-30",BLACK_40:"black-40",WHITE_10:"white-10",WHITE_20:"white-20",WHITE_30:"white-30",WHITE_40:"white-40"},c=Object.freeze(Object.defineProperty({__proto__:null,CARD_BACKDROP_VALUES:_,FOOTER_ACTION_ALIGNMENT:s,cardDensity:t},Symbol.toStringTag,{value:"Module"}));exports.CARD_BACKDROP_VALUES=_;exports.FOOTER_ACTION_ALIGNMENT=s;exports.card=c;exports.cardDensity=t;
|