@react-spectrum/card 3.0.0-alpha.32 → 3.0.0-alpha.33

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.
Files changed (62) hide show
  1. package/dist/BaseLayout.main.js +12 -12
  2. package/dist/BaseLayout.mjs +13 -13
  3. package/dist/BaseLayout.module.js +12 -12
  4. package/dist/Card.main.js +2 -2
  5. package/dist/Card.mjs +3 -3
  6. package/dist/Card.module.js +2 -2
  7. package/dist/CardBase.main.js +36 -36
  8. package/dist/CardBase.mjs +37 -37
  9. package/dist/CardBase.module.js +36 -36
  10. package/dist/CardView.main.js +21 -21
  11. package/dist/CardView.mjs +22 -22
  12. package/dist/CardView.module.js +21 -21
  13. package/dist/CardViewContext.mjs +1 -1
  14. package/dist/GalleryLayout.main.js +10 -10
  15. package/dist/GalleryLayout.main.js.map +1 -1
  16. package/dist/GalleryLayout.mjs +11 -11
  17. package/dist/GalleryLayout.module.js +10 -10
  18. package/dist/GalleryLayout.module.js.map +1 -1
  19. package/dist/GridLayout.main.js +19 -19
  20. package/dist/GridLayout.mjs +20 -20
  21. package/dist/GridLayout.module.js +19 -19
  22. package/dist/WaterfallLayout.main.js +7 -7
  23. package/dist/WaterfallLayout.mjs +8 -8
  24. package/dist/WaterfallLayout.module.js +7 -7
  25. package/dist/ar-AE.mjs +1 -1
  26. package/dist/bg-BG.mjs +1 -1
  27. package/dist/card_vars_css.mjs +1 -1
  28. package/dist/cs-CZ.mjs +1 -1
  29. package/dist/da-DK.mjs +1 -1
  30. package/dist/de-DE.mjs +1 -1
  31. package/dist/el-GR.mjs +1 -1
  32. package/dist/en-US.mjs +1 -1
  33. package/dist/es-ES.mjs +1 -1
  34. package/dist/et-EE.mjs +1 -1
  35. package/dist/fi-FI.mjs +1 -1
  36. package/dist/fr-FR.mjs +1 -1
  37. package/dist/he-IL.mjs +1 -1
  38. package/dist/hr-HR.mjs +1 -1
  39. package/dist/hu-HU.mjs +1 -1
  40. package/dist/intlStrings.mjs +1 -1
  41. package/dist/it-IT.mjs +1 -1
  42. package/dist/ja-JP.mjs +1 -1
  43. package/dist/ko-KR.mjs +1 -1
  44. package/dist/lt-LT.mjs +1 -1
  45. package/dist/lv-LV.mjs +1 -1
  46. package/dist/nb-NO.mjs +1 -1
  47. package/dist/nl-NL.mjs +1 -1
  48. package/dist/pl-PL.mjs +1 -1
  49. package/dist/pt-BR.mjs +1 -1
  50. package/dist/pt-PT.mjs +1 -1
  51. package/dist/ro-RO.mjs +1 -1
  52. package/dist/ru-RU.mjs +1 -1
  53. package/dist/sk-SK.mjs +1 -1
  54. package/dist/sl-SI.mjs +1 -1
  55. package/dist/sr-SP.mjs +1 -1
  56. package/dist/sv-SE.mjs +1 -1
  57. package/dist/tr-TR.mjs +1 -1
  58. package/dist/uk-UA.mjs +1 -1
  59. package/dist/zh-CN.mjs +1 -1
  60. package/dist/zh-TW.mjs +1 -1
  61. package/package.json +18 -18
  62. package/src/GalleryLayout.tsx +2 -2
@@ -37,7 +37,7 @@ function $643dd8fa80926f94$var$CardBase(props, ref) {
37
37
  let context = (0, $8d180a244893de14$export$fea0b38586ec8f13)() || {}; // we can call again here, won't change from Card.tsx
38
38
  let { state: state } = context;
39
39
  let manager = state === null || state === void 0 ? void 0 : state.selectionManager;
40
- let { isQuiet: isQuiet, orientation: orientation = "vertical", articleProps: articleProps = {}, item: item, layout: layout, children: children } = props;
40
+ let { isQuiet: isQuiet, orientation: orientation = 'vertical', articleProps: articleProps = {}, item: item, layout: layout, children: children } = props;
41
41
  let key = item === null || item === void 0 ? void 0 : item.key;
42
42
  let isSelected = manager === null || manager === void 0 ? void 0 : manager.isSelected(key);
43
43
  let isDisabled = state === null || state === void 0 ? void 0 : state.disabledKeys.has(key);
@@ -49,7 +49,7 @@ function $643dd8fa80926f94$var$CardBase(props, ref) {
49
49
  let checkboxRef = (0, $8eFIe$useRef)(null);
50
50
  // cards are only interactive if there is a selection manager and it allows selection
51
51
  let { hoverProps: hoverProps, isHovered: isHovered } = (0, $8eFIe$useHover)({
52
- isDisabled: manager === undefined || (manager === null || manager === void 0 ? void 0 : manager.selectionMode) === "none" || isDisabled
52
+ isDisabled: manager === undefined || (manager === null || manager === void 0 ? void 0 : manager.selectionMode) === 'none' || isDisabled
53
53
  });
54
54
  let [isFocused, setIsFocused] = (0, $8eFIe$useState)(false);
55
55
  let { focusWithinProps: focusWithinProps } = (0, $8eFIe$useFocusWithin)({
@@ -57,13 +57,13 @@ function $643dd8fa80926f94$var$CardBase(props, ref) {
57
57
  isDisabled: isDisabled
58
58
  });
59
59
  // ToDo: see css for comment about avatar under selector .spectrum-Card--noLayout.spectrum-Card--default
60
- let hasPreviewImage = (0, $8eFIe$useHasChild)(`.${(0, ($parcel$interopDefault($8eFIe$card_vars_cssmodulejs)))["spectrum-Card-image"]}`, gridRef);
61
- let hasPreviewIllustration = (0, $8eFIe$useHasChild)(`.${(0, ($parcel$interopDefault($8eFIe$card_vars_cssmodulejs)))["spectrum-Card-illustration"]}`, gridRef);
60
+ let hasPreviewImage = (0, $8eFIe$useHasChild)(`.${(0, ($parcel$interopDefault($8eFIe$card_vars_cssmodulejs)))['spectrum-Card-image']}`, gridRef);
61
+ let hasPreviewIllustration = (0, $8eFIe$useHasChild)(`.${(0, ($parcel$interopDefault($8eFIe$card_vars_cssmodulejs)))['spectrum-Card-illustration']}`, gridRef);
62
62
  let hasPreview = hasPreviewImage || hasPreviewIllustration;
63
63
  // this is for horizontal cards
64
64
  let [height, setHeight] = (0, $8eFIe$useState)(NaN);
65
65
  let updateHeight = (0, $8eFIe$useCallback)(()=>{
66
- if (orientation !== "horizontal") return;
66
+ if (orientation !== 'horizontal') return;
67
67
  let cardHeight = gridRef.current.getBoundingClientRect().height;
68
68
  setHeight(cardHeight);
69
69
  }, [
@@ -76,35 +76,35 @@ function $643dd8fa80926f94$var$CardBase(props, ref) {
76
76
  onResize: updateHeight
77
77
  });
78
78
  let aspectRatioEnforce = undefined;
79
- if (orientation === "horizontal" && !isNaN(height)) aspectRatioEnforce = {
79
+ if (orientation === 'horizontal' && !isNaN(height)) aspectRatioEnforce = {
80
80
  height: `${height}px`,
81
81
  width: `${height}px`
82
82
  };
83
83
  let slots = (0, $8eFIe$useMemo)(()=>({
84
84
  image: {
85
- UNSAFE_className: (0, $8eFIe$classNames)((0, ($parcel$interopDefault($8eFIe$card_vars_cssmodulejs))), "spectrum-Card-image"),
86
- objectFit: orientation === "horizontal" ? "cover" : "contain",
87
- alt: "",
85
+ UNSAFE_className: (0, $8eFIe$classNames)((0, ($parcel$interopDefault($8eFIe$card_vars_cssmodulejs))), 'spectrum-Card-image'),
86
+ objectFit: orientation === 'horizontal' ? 'cover' : 'contain',
87
+ alt: '',
88
88
  ...aspectRatioEnforce
89
89
  },
90
90
  illustration: {
91
- UNSAFE_className: (0, $8eFIe$classNames)((0, ($parcel$interopDefault($8eFIe$card_vars_cssmodulejs))), "spectrum-Card-illustration"),
91
+ UNSAFE_className: (0, $8eFIe$classNames)((0, ($parcel$interopDefault($8eFIe$card_vars_cssmodulejs))), 'spectrum-Card-illustration'),
92
92
  ...aspectRatioEnforce
93
93
  },
94
94
  avatar: {
95
- UNSAFE_className: (0, $8eFIe$classNames)((0, ($parcel$interopDefault($8eFIe$card_vars_cssmodulejs))), "spectrum-Card-avatar"),
96
- size: "avatar-size-400"
95
+ UNSAFE_className: (0, $8eFIe$classNames)((0, ($parcel$interopDefault($8eFIe$card_vars_cssmodulejs))), 'spectrum-Card-avatar'),
96
+ size: 'avatar-size-400'
97
97
  },
98
98
  heading: {
99
- UNSAFE_className: (0, $8eFIe$classNames)((0, ($parcel$interopDefault($8eFIe$card_vars_cssmodulejs))), "spectrum-Card-heading"),
99
+ UNSAFE_className: (0, $8eFIe$classNames)((0, ($parcel$interopDefault($8eFIe$card_vars_cssmodulejs))), 'spectrum-Card-heading'),
100
100
  ...titleProps
101
101
  },
102
102
  content: {
103
- UNSAFE_className: (0, $8eFIe$classNames)((0, ($parcel$interopDefault($8eFIe$card_vars_cssmodulejs))), "spectrum-Card-content"),
103
+ UNSAFE_className: (0, $8eFIe$classNames)((0, ($parcel$interopDefault($8eFIe$card_vars_cssmodulejs))), 'spectrum-Card-content'),
104
104
  ...contentProps
105
105
  },
106
106
  detail: {
107
- UNSAFE_className: (0, $8eFIe$classNames)((0, ($parcel$interopDefault($8eFIe$card_vars_cssmodulejs))), "spectrum-Card-detail")
107
+ UNSAFE_className: (0, $8eFIe$classNames)((0, ($parcel$interopDefault($8eFIe$card_vars_cssmodulejs))), 'spectrum-Card-detail')
108
108
  }
109
109
  }), [
110
110
  titleProps,
@@ -119,7 +119,7 @@ function $643dd8fa80926f94$var$CardBase(props, ref) {
119
119
  let nextNode = walker.nextNode();
120
120
  while(nextNode != null){
121
121
  if (checkboxRef.current && !checkboxRef.current.UNSAFE_getDOMNode().contains(nextNode)) {
122
- console.warn("Card does not support focusable elements, please contact the team regarding your use case.");
122
+ console.warn('Card does not support focusable elements, please contact the team regarding your use case.');
123
123
  break;
124
124
  }
125
125
  nextNode = walker.nextNode();
@@ -129,42 +129,42 @@ function $643dd8fa80926f94$var$CardBase(props, ref) {
129
129
  children
130
130
  ]);
131
131
  return /*#__PURE__*/ (0, $8eFIe$react).createElement((0, $8eFIe$FocusRing), {
132
- focusRingClass: (0, $8eFIe$classNames)((0, ($parcel$interopDefault($8eFIe$card_vars_cssmodulejs))), "focus-ring")
132
+ focusRingClass: (0, $8eFIe$classNames)((0, ($parcel$interopDefault($8eFIe$card_vars_cssmodulejs))), 'focus-ring')
133
133
  }, /*#__PURE__*/ (0, $8eFIe$react).createElement("article", {
134
134
  ...styleProps,
135
135
  ...(0, $8eFIe$mergeProps)(cardProps, focusWithinProps, hoverProps, (0, $8eFIe$filterDOMProps)(props), articleProps),
136
136
  ref: domRef,
137
- className: (0, $8eFIe$classNames)((0, ($parcel$interopDefault($8eFIe$card_vars_cssmodulejs))), "spectrum-Card", {
138
- "spectrum-Card--default": !isQuiet && orientation !== "horizontal",
139
- "spectrum-Card--isQuiet": isQuiet && orientation !== "horizontal",
140
- "spectrum-Card--horizontal": orientation === "horizontal",
141
- "spectrum-Card--noPreview": !hasPreview,
142
- "is-hovered": isHovered,
143
- "is-focused": isFocused,
144
- "is-selected": isSelected,
145
- "spectrum-Card--waterfall": layout === "waterfall",
146
- "spectrum-Card--gallery": layout === "gallery",
147
- "spectrum-Card--grid": layout === "grid",
148
- "spectrum-Card--noLayout": layout !== "waterfall" && layout !== "gallery" && layout !== "grid"
137
+ className: (0, $8eFIe$classNames)((0, ($parcel$interopDefault($8eFIe$card_vars_cssmodulejs))), 'spectrum-Card', {
138
+ 'spectrum-Card--default': !isQuiet && orientation !== 'horizontal',
139
+ 'spectrum-Card--isQuiet': isQuiet && orientation !== 'horizontal',
140
+ 'spectrum-Card--horizontal': orientation === 'horizontal',
141
+ 'spectrum-Card--noPreview': !hasPreview,
142
+ 'is-hovered': isHovered,
143
+ 'is-focused': isFocused,
144
+ 'is-selected': isSelected,
145
+ 'spectrum-Card--waterfall': layout === 'waterfall',
146
+ 'spectrum-Card--gallery': layout === 'gallery',
147
+ 'spectrum-Card--grid': layout === 'grid',
148
+ 'spectrum-Card--noLayout': layout !== 'waterfall' && layout !== 'gallery' && layout !== 'grid'
149
149
  }, styleProps.className)
150
150
  }, /*#__PURE__*/ (0, $8eFIe$react).createElement("div", {
151
151
  ref: gridRef,
152
- className: (0, $8eFIe$classNames)((0, ($parcel$interopDefault($8eFIe$card_vars_cssmodulejs))), "spectrum-Card-grid")
153
- }, manager && manager.selectionMode !== "none" && /*#__PURE__*/ (0, $8eFIe$react).createElement("div", {
154
- className: (0, $8eFIe$classNames)((0, ($parcel$interopDefault($8eFIe$card_vars_cssmodulejs))), "spectrum-Card-checkboxWrapper")
152
+ className: (0, $8eFIe$classNames)((0, ($parcel$interopDefault($8eFIe$card_vars_cssmodulejs))), 'spectrum-Card-grid')
153
+ }, manager && manager.selectionMode !== 'none' && /*#__PURE__*/ (0, $8eFIe$react).createElement("div", {
154
+ className: (0, $8eFIe$classNames)((0, ($parcel$interopDefault($8eFIe$card_vars_cssmodulejs))), 'spectrum-Card-checkboxWrapper')
155
155
  }, /*#__PURE__*/ (0, $8eFIe$react).createElement((0, $8eFIe$Checkbox), {
156
156
  ref: checkboxRef,
157
157
  isDisabled: isDisabled,
158
158
  excludeFromTabOrder: true,
159
159
  isSelected: isSelected,
160
160
  onChange: onChange,
161
- UNSAFE_className: (0, $8eFIe$classNames)((0, ($parcel$interopDefault($8eFIe$card_vars_cssmodulejs))), "spectrum-Card-checkbox"),
161
+ UNSAFE_className: (0, $8eFIe$classNames)((0, ($parcel$interopDefault($8eFIe$card_vars_cssmodulejs))), 'spectrum-Card-checkbox'),
162
162
  isEmphasized: true,
163
163
  "aria-label": "select"
164
164
  })), /*#__PURE__*/ (0, $8eFIe$react).createElement((0, $8eFIe$SlotProvider), {
165
165
  slots: slots
166
166
  }, children), /*#__PURE__*/ (0, $8eFIe$react).createElement("div", {
167
- className: (0, $8eFIe$classNames)((0, ($parcel$interopDefault($8eFIe$card_vars_cssmodulejs))), "spectrum-Card-decoration")
167
+ className: (0, $8eFIe$classNames)((0, ($parcel$interopDefault($8eFIe$card_vars_cssmodulejs))), 'spectrum-Card-decoration')
168
168
  }))));
169
169
  }
170
170
  function $643dd8fa80926f94$var$useCard(props) {
@@ -183,8 +183,8 @@ function $643dd8fa80926f94$var$useCard(props) {
183
183
  return {
184
184
  cardProps: {
185
185
  ...(0, $8eFIe$filterDOMProps)(props),
186
- "aria-labelledby": titleId,
187
- "aria-describedby": descriptionId,
186
+ 'aria-labelledby': titleId,
187
+ 'aria-describedby': descriptionId,
188
188
  tabIndex: 0
189
189
  },
190
190
  titleProps: titleProps,
@@ -52,13 +52,13 @@ function $514a55f6d91f25ef$var$CardView(props, ref) {
52
52
  let { scale: scale } = (0, $kFdxB$reactspectrumprovider.useProvider)();
53
53
  let { styleProps: styleProps } = (0, $kFdxB$reactspectrumutils.useStyleProps)(props);
54
54
  let domRef = (0, $kFdxB$reactspectrumutils.useDOMRef)(ref);
55
- let { isQuiet: isQuiet, renderEmptyState: renderEmptyState, layout: layout, loadingState: loadingState, onLoadMore: onLoadMore, cardOrientation: cardOrientation = "vertical" } = props;
55
+ let { isQuiet: isQuiet, renderEmptyState: renderEmptyState, layout: layout, loadingState: loadingState, onLoadMore: onLoadMore, cardOrientation: cardOrientation = 'vertical' } = props;
56
56
  let collator = (0, $kFdxB$reactariai18n.useCollator)({
57
- usage: "search",
58
- sensitivity: "base"
57
+ usage: 'search',
58
+ sensitivity: 'base'
59
59
  });
60
- let isLoading = loadingState === "loading" || loadingState === "loadingMore";
61
- let cardViewLayout = (0, $kFdxB$react.useMemo)(()=>typeof layout === "function" ? new layout({
60
+ let isLoading = loadingState === 'loading' || loadingState === 'loadingMore';
61
+ let cardViewLayout = (0, $kFdxB$react.useMemo)(()=>typeof layout === 'function' ? new layout({
62
62
  collator: collator,
63
63
  cardOrientation: cardOrientation,
64
64
  scale: scale
@@ -69,7 +69,7 @@ function $514a55f6d91f25ef$var$CardView(props, ref) {
69
69
  scale
70
70
  ]);
71
71
  let layoutType = cardViewLayout.layoutType;
72
- let stringFormatter = (0, $kFdxB$reactariai18n.useLocalizedStringFormatter)((0, ($parcel$interopDefault($85c597beff94758b$exports))), "@react-spectrum/card");
72
+ let stringFormatter = (0, $kFdxB$reactariai18n.useLocalizedStringFormatter)((0, ($parcel$interopDefault($85c597beff94758b$exports))), '@react-spectrum/card');
73
73
  let { direction: direction } = (0, $kFdxB$reactariai18n.useLocale)();
74
74
  let { collection: collection } = (0, $kFdxB$reactstatelylist.useListState)(props);
75
75
  let gridCollection = (0, $kFdxB$react.useMemo)(()=>new (0, $kFdxB$reactstatelygrid.GridCollection)({
@@ -83,7 +83,7 @@ function $514a55f6d91f25ef$var$CardView(props, ref) {
83
83
  childNodes: [
84
84
  {
85
85
  key: `cell-${item.key}`,
86
- type: "cell",
86
+ type: 'cell',
87
87
  value: null,
88
88
  level: 0,
89
89
  rendered: null,
@@ -98,9 +98,9 @@ function $514a55f6d91f25ef$var$CardView(props, ref) {
98
98
  ]);
99
99
  let state = (0, $kFdxB$reactstatelygrid.useGridState)({
100
100
  ...props,
101
- selectionMode: cardOrientation === "horizontal" && layoutType === "grid" ? "none" : props.selectionMode,
101
+ selectionMode: cardOrientation === 'horizontal' && layoutType === 'grid' ? 'none' : props.selectionMode,
102
102
  collection: gridCollection,
103
- focusMode: "cell"
103
+ focusMode: 'cell'
104
104
  });
105
105
  cardViewLayout.collection = gridCollection;
106
106
  cardViewLayout.disabledKeys = state.disabledKeys;
@@ -142,7 +142,7 @@ function $514a55f6d91f25ef$var$CardView(props, ref) {
142
142
  }, /*#__PURE__*/ (0, ($parcel$interopDefault($kFdxB$react))).createElement((0, $kFdxB$reactariavirtualizer.Virtualizer), {
143
143
  ...gridProps,
144
144
  ...styleProps,
145
- className: (0, $kFdxB$reactspectrumutils.classNames)((0, ($parcel$interopDefault($71570f0038472fa2$exports))), "spectrum-CardView"),
145
+ className: (0, $kFdxB$reactspectrumutils.classNames)((0, ($parcel$interopDefault($71570f0038472fa2$exports))), 'spectrum-CardView'),
146
146
  ref: domRef,
147
147
  focusedKey: focusedKey,
148
148
  scrollDirection: "vertical",
@@ -154,14 +154,14 @@ function $514a55f6d91f25ef$var$CardView(props, ref) {
154
154
  transitionDuration: isLoading ? 160 : 220,
155
155
  scrollToItem: scrollToItem
156
156
  }, (type, item)=>{
157
- if (type === "item") return /*#__PURE__*/ (0, ($parcel$interopDefault($kFdxB$react))).createElement($514a55f6d91f25ef$var$InternalCard, {
157
+ if (type === 'item') return /*#__PURE__*/ (0, ($parcel$interopDefault($kFdxB$react))).createElement($514a55f6d91f25ef$var$InternalCard, {
158
158
  item: item
159
159
  });
160
- else if (type === "loader") return /*#__PURE__*/ (0, ($parcel$interopDefault($kFdxB$react))).createElement($514a55f6d91f25ef$var$CenteredWrapper, null, /*#__PURE__*/ (0, ($parcel$interopDefault($kFdxB$react))).createElement((0, $kFdxB$reactspectrumprogress.ProgressCircle), {
160
+ else if (type === 'loader') return /*#__PURE__*/ (0, ($parcel$interopDefault($kFdxB$react))).createElement($514a55f6d91f25ef$var$CenteredWrapper, null, /*#__PURE__*/ (0, ($parcel$interopDefault($kFdxB$react))).createElement((0, $kFdxB$reactspectrumprogress.ProgressCircle), {
161
161
  isIndeterminate: true,
162
- "aria-label": state.collection.size > 0 ? stringFormatter.format("loadingMore") : stringFormatter.format("loading")
162
+ "aria-label": state.collection.size > 0 ? stringFormatter.format('loadingMore') : stringFormatter.format('loading')
163
163
  }));
164
- else if (type === "placeholder") {
164
+ else if (type === 'placeholder') {
165
165
  let emptyState = renderEmptyState ? renderEmptyState() : null;
166
166
  if (emptyState == null) return null;
167
167
  return /*#__PURE__*/ (0, ($parcel$interopDefault($kFdxB$react))).createElement($514a55f6d91f25ef$var$CenteredWrapper, null, emptyState);
@@ -173,7 +173,7 @@ function $514a55f6d91f25ef$var$CenteredWrapper({ children: children }) {
173
173
  return /*#__PURE__*/ (0, ($parcel$interopDefault($kFdxB$react))).createElement("div", {
174
174
  role: "row",
175
175
  "aria-rowindex": state.collection.size + 1,
176
- className: (0, $kFdxB$reactspectrumutils.classNames)((0, ($parcel$interopDefault($71570f0038472fa2$exports))), "spectrum-CardView-centeredWrapper")
176
+ className: (0, $kFdxB$reactspectrumutils.classNames)((0, ($parcel$interopDefault($71570f0038472fa2$exports))), 'spectrum-CardView-centeredWrapper')
177
177
  }, /*#__PURE__*/ (0, ($parcel$interopDefault($kFdxB$react))).createElement("div", {
178
178
  role: "gridcell"
179
179
  }, children));
@@ -194,19 +194,19 @@ function $514a55f6d91f25ef$var$InternalCard(props) {
194
194
  }, state, rowRef);
195
195
  let { gridCellProps: gridCellProps } = (0, $kFdxB$reactariagrid.useGridCell)({
196
196
  node: cellNode,
197
- focusMode: "cell"
197
+ focusMode: 'cell'
198
198
  }, state, unwrappedRef);
199
199
  // Prevent space key from scrolling the CardView if triggered on a disabled item or on a Card in a selectionMode="none" CardView.
200
- let allowsInteraction = state.selectionManager.selectionMode !== "none";
200
+ let allowsInteraction = state.selectionManager.selectionMode !== 'none';
201
201
  let isDisabled = !allowsInteraction || state.disabledKeys.has(item.key);
202
202
  let onKeyDown = (e)=>{
203
- if (e.key === " " && isDisabled) e.preventDefault();
203
+ if (e.key === ' ' && isDisabled) e.preventDefault();
204
204
  };
205
205
  let rowProps = (0, $kFdxB$reactariautils.mergeProps)(gridRowProps, {
206
206
  onKeyDown: onKeyDown
207
207
  });
208
- if (layoutType === "grid" || layoutType === "gallery") isQuiet = true;
209
- if (layoutType !== "grid") cardOrientation = "vertical";
208
+ if (layoutType === 'grid' || layoutType === 'gallery') isQuiet = true;
209
+ if (layoutType !== 'grid') cardOrientation = 'vertical';
210
210
  // We don't want to focus the checkbox (or any other focusable elements) within the Card
211
211
  // when pressing the arrow keys so we delete the key down handler here. Arrow key navigation between
212
212
  // the cards in the CardView is handled by useGrid => useSelectableCollection instead.
@@ -214,7 +214,7 @@ function $514a55f6d91f25ef$var$InternalCard(props) {
214
214
  return /*#__PURE__*/ (0, ($parcel$interopDefault($kFdxB$react))).createElement("div", {
215
215
  ...rowProps,
216
216
  ref: rowRef,
217
- className: (0, $kFdxB$reactspectrumutils.classNames)((0, ($parcel$interopDefault($71570f0038472fa2$exports))), "spectrum-CardView-row")
217
+ className: (0, $kFdxB$reactspectrumutils.classNames)((0, ($parcel$interopDefault($71570f0038472fa2$exports))), 'spectrum-CardView-row')
218
218
  }, /*#__PURE__*/ (0, ($parcel$interopDefault($kFdxB$react))).createElement((0, $7888205ff7de382f$exports.CardBase), {
219
219
  ref: cellRef,
220
220
  articleProps: gridCellProps,
package/dist/CardView.mjs CHANGED
@@ -46,13 +46,13 @@ function $81a52da995c19652$var$CardView(props, ref) {
46
46
  let { scale: scale } = (0, $iOsT7$useProvider)();
47
47
  let { styleProps: styleProps } = (0, $iOsT7$useStyleProps)(props);
48
48
  let domRef = (0, $iOsT7$useDOMRef)(ref);
49
- let { isQuiet: isQuiet, renderEmptyState: renderEmptyState, layout: layout, loadingState: loadingState, onLoadMore: onLoadMore, cardOrientation: cardOrientation = "vertical" } = props;
49
+ let { isQuiet: isQuiet, renderEmptyState: renderEmptyState, layout: layout, loadingState: loadingState, onLoadMore: onLoadMore, cardOrientation: cardOrientation = 'vertical' } = props;
50
50
  let collator = (0, $iOsT7$useCollator)({
51
- usage: "search",
52
- sensitivity: "base"
51
+ usage: 'search',
52
+ sensitivity: 'base'
53
53
  });
54
- let isLoading = loadingState === "loading" || loadingState === "loadingMore";
55
- let cardViewLayout = (0, $iOsT7$useMemo)(()=>typeof layout === "function" ? new layout({
54
+ let isLoading = loadingState === 'loading' || loadingState === 'loadingMore';
55
+ let cardViewLayout = (0, $iOsT7$useMemo)(()=>typeof layout === 'function' ? new layout({
56
56
  collator: collator,
57
57
  cardOrientation: cardOrientation,
58
58
  scale: scale
@@ -63,7 +63,7 @@ function $81a52da995c19652$var$CardView(props, ref) {
63
63
  scale
64
64
  ]);
65
65
  let layoutType = cardViewLayout.layoutType;
66
- let stringFormatter = (0, $iOsT7$useLocalizedStringFormatter)((0, ($parcel$interopDefault($iOsT7$intlStringsmodulejs))), "@react-spectrum/card");
66
+ let stringFormatter = (0, $iOsT7$useLocalizedStringFormatter)((0, ($parcel$interopDefault($iOsT7$intlStringsmodulejs))), '@react-spectrum/card');
67
67
  let { direction: direction } = (0, $iOsT7$useLocale)();
68
68
  let { collection: collection } = (0, $iOsT7$useListState)(props);
69
69
  let gridCollection = (0, $iOsT7$useMemo)(()=>new (0, $iOsT7$GridCollection)({
@@ -77,7 +77,7 @@ function $81a52da995c19652$var$CardView(props, ref) {
77
77
  childNodes: [
78
78
  {
79
79
  key: `cell-${item.key}`,
80
- type: "cell",
80
+ type: 'cell',
81
81
  value: null,
82
82
  level: 0,
83
83
  rendered: null,
@@ -92,9 +92,9 @@ function $81a52da995c19652$var$CardView(props, ref) {
92
92
  ]);
93
93
  let state = (0, $iOsT7$useGridState)({
94
94
  ...props,
95
- selectionMode: cardOrientation === "horizontal" && layoutType === "grid" ? "none" : props.selectionMode,
95
+ selectionMode: cardOrientation === 'horizontal' && layoutType === 'grid' ? 'none' : props.selectionMode,
96
96
  collection: gridCollection,
97
- focusMode: "cell"
97
+ focusMode: 'cell'
98
98
  });
99
99
  cardViewLayout.collection = gridCollection;
100
100
  cardViewLayout.disabledKeys = state.disabledKeys;
@@ -136,7 +136,7 @@ function $81a52da995c19652$var$CardView(props, ref) {
136
136
  }, /*#__PURE__*/ (0, $iOsT7$react).createElement((0, $iOsT7$Virtualizer), {
137
137
  ...gridProps,
138
138
  ...styleProps,
139
- className: (0, $iOsT7$classNames)((0, ($parcel$interopDefault($iOsT7$card_vars_cssmodulejs))), "spectrum-CardView"),
139
+ className: (0, $iOsT7$classNames)((0, ($parcel$interopDefault($iOsT7$card_vars_cssmodulejs))), 'spectrum-CardView'),
140
140
  ref: domRef,
141
141
  focusedKey: focusedKey,
142
142
  scrollDirection: "vertical",
@@ -148,14 +148,14 @@ function $81a52da995c19652$var$CardView(props, ref) {
148
148
  transitionDuration: isLoading ? 160 : 220,
149
149
  scrollToItem: scrollToItem
150
150
  }, (type, item)=>{
151
- if (type === "item") return /*#__PURE__*/ (0, $iOsT7$react).createElement($81a52da995c19652$var$InternalCard, {
151
+ if (type === 'item') return /*#__PURE__*/ (0, $iOsT7$react).createElement($81a52da995c19652$var$InternalCard, {
152
152
  item: item
153
153
  });
154
- else if (type === "loader") return /*#__PURE__*/ (0, $iOsT7$react).createElement($81a52da995c19652$var$CenteredWrapper, null, /*#__PURE__*/ (0, $iOsT7$react).createElement((0, $iOsT7$ProgressCircle), {
154
+ else if (type === 'loader') return /*#__PURE__*/ (0, $iOsT7$react).createElement($81a52da995c19652$var$CenteredWrapper, null, /*#__PURE__*/ (0, $iOsT7$react).createElement((0, $iOsT7$ProgressCircle), {
155
155
  isIndeterminate: true,
156
- "aria-label": state.collection.size > 0 ? stringFormatter.format("loadingMore") : stringFormatter.format("loading")
156
+ "aria-label": state.collection.size > 0 ? stringFormatter.format('loadingMore') : stringFormatter.format('loading')
157
157
  }));
158
- else if (type === "placeholder") {
158
+ else if (type === 'placeholder') {
159
159
  let emptyState = renderEmptyState ? renderEmptyState() : null;
160
160
  if (emptyState == null) return null;
161
161
  return /*#__PURE__*/ (0, $iOsT7$react).createElement($81a52da995c19652$var$CenteredWrapper, null, emptyState);
@@ -167,7 +167,7 @@ function $81a52da995c19652$var$CenteredWrapper({ children: children }) {
167
167
  return /*#__PURE__*/ (0, $iOsT7$react).createElement("div", {
168
168
  role: "row",
169
169
  "aria-rowindex": state.collection.size + 1,
170
- className: (0, $iOsT7$classNames)((0, ($parcel$interopDefault($iOsT7$card_vars_cssmodulejs))), "spectrum-CardView-centeredWrapper")
170
+ className: (0, $iOsT7$classNames)((0, ($parcel$interopDefault($iOsT7$card_vars_cssmodulejs))), 'spectrum-CardView-centeredWrapper')
171
171
  }, /*#__PURE__*/ (0, $iOsT7$react).createElement("div", {
172
172
  role: "gridcell"
173
173
  }, children));
@@ -188,19 +188,19 @@ function $81a52da995c19652$var$InternalCard(props) {
188
188
  }, state, rowRef);
189
189
  let { gridCellProps: gridCellProps } = (0, $iOsT7$useGridCell)({
190
190
  node: cellNode,
191
- focusMode: "cell"
191
+ focusMode: 'cell'
192
192
  }, state, unwrappedRef);
193
193
  // Prevent space key from scrolling the CardView if triggered on a disabled item or on a Card in a selectionMode="none" CardView.
194
- let allowsInteraction = state.selectionManager.selectionMode !== "none";
194
+ let allowsInteraction = state.selectionManager.selectionMode !== 'none';
195
195
  let isDisabled = !allowsInteraction || state.disabledKeys.has(item.key);
196
196
  let onKeyDown = (e)=>{
197
- if (e.key === " " && isDisabled) e.preventDefault();
197
+ if (e.key === ' ' && isDisabled) e.preventDefault();
198
198
  };
199
199
  let rowProps = (0, $iOsT7$mergeProps)(gridRowProps, {
200
200
  onKeyDown: onKeyDown
201
201
  });
202
- if (layoutType === "grid" || layoutType === "gallery") isQuiet = true;
203
- if (layoutType !== "grid") cardOrientation = "vertical";
202
+ if (layoutType === 'grid' || layoutType === 'gallery') isQuiet = true;
203
+ if (layoutType !== 'grid') cardOrientation = 'vertical';
204
204
  // We don't want to focus the checkbox (or any other focusable elements) within the Card
205
205
  // when pressing the arrow keys so we delete the key down handler here. Arrow key navigation between
206
206
  // the cards in the CardView is handled by useGrid => useSelectableCollection instead.
@@ -208,7 +208,7 @@ function $81a52da995c19652$var$InternalCard(props) {
208
208
  return /*#__PURE__*/ (0, $iOsT7$react).createElement("div", {
209
209
  ...rowProps,
210
210
  ref: rowRef,
211
- className: (0, $iOsT7$classNames)((0, ($parcel$interopDefault($iOsT7$card_vars_cssmodulejs))), "spectrum-CardView-row")
211
+ className: (0, $iOsT7$classNames)((0, ($parcel$interopDefault($iOsT7$card_vars_cssmodulejs))), 'spectrum-CardView-row')
212
212
  }, /*#__PURE__*/ (0, $iOsT7$react).createElement((0, $643dd8fa80926f94$export$7a6ccaf429ad93a8), {
213
213
  ref: cellRef,
214
214
  articleProps: gridCellProps,
@@ -224,4 +224,4 @@ function $81a52da995c19652$var$InternalCard(props) {
224
224
 
225
225
 
226
226
  export {$81a52da995c19652$export$7e52c821f7b6f422 as CardView};
227
- //# sourceMappingURL=CardView.mjs.map
227
+ //# sourceMappingURL=CardView.module.js.map
@@ -46,13 +46,13 @@ function $81a52da995c19652$var$CardView(props, ref) {
46
46
  let { scale: scale } = (0, $iOsT7$useProvider)();
47
47
  let { styleProps: styleProps } = (0, $iOsT7$useStyleProps)(props);
48
48
  let domRef = (0, $iOsT7$useDOMRef)(ref);
49
- let { isQuiet: isQuiet, renderEmptyState: renderEmptyState, layout: layout, loadingState: loadingState, onLoadMore: onLoadMore, cardOrientation: cardOrientation = "vertical" } = props;
49
+ let { isQuiet: isQuiet, renderEmptyState: renderEmptyState, layout: layout, loadingState: loadingState, onLoadMore: onLoadMore, cardOrientation: cardOrientation = 'vertical' } = props;
50
50
  let collator = (0, $iOsT7$useCollator)({
51
- usage: "search",
52
- sensitivity: "base"
51
+ usage: 'search',
52
+ sensitivity: 'base'
53
53
  });
54
- let isLoading = loadingState === "loading" || loadingState === "loadingMore";
55
- let cardViewLayout = (0, $iOsT7$useMemo)(()=>typeof layout === "function" ? new layout({
54
+ let isLoading = loadingState === 'loading' || loadingState === 'loadingMore';
55
+ let cardViewLayout = (0, $iOsT7$useMemo)(()=>typeof layout === 'function' ? new layout({
56
56
  collator: collator,
57
57
  cardOrientation: cardOrientation,
58
58
  scale: scale
@@ -63,7 +63,7 @@ function $81a52da995c19652$var$CardView(props, ref) {
63
63
  scale
64
64
  ]);
65
65
  let layoutType = cardViewLayout.layoutType;
66
- let stringFormatter = (0, $iOsT7$useLocalizedStringFormatter)((0, ($parcel$interopDefault($iOsT7$intlStringsmodulejs))), "@react-spectrum/card");
66
+ let stringFormatter = (0, $iOsT7$useLocalizedStringFormatter)((0, ($parcel$interopDefault($iOsT7$intlStringsmodulejs))), '@react-spectrum/card');
67
67
  let { direction: direction } = (0, $iOsT7$useLocale)();
68
68
  let { collection: collection } = (0, $iOsT7$useListState)(props);
69
69
  let gridCollection = (0, $iOsT7$useMemo)(()=>new (0, $iOsT7$GridCollection)({
@@ -77,7 +77,7 @@ function $81a52da995c19652$var$CardView(props, ref) {
77
77
  childNodes: [
78
78
  {
79
79
  key: `cell-${item.key}`,
80
- type: "cell",
80
+ type: 'cell',
81
81
  value: null,
82
82
  level: 0,
83
83
  rendered: null,
@@ -92,9 +92,9 @@ function $81a52da995c19652$var$CardView(props, ref) {
92
92
  ]);
93
93
  let state = (0, $iOsT7$useGridState)({
94
94
  ...props,
95
- selectionMode: cardOrientation === "horizontal" && layoutType === "grid" ? "none" : props.selectionMode,
95
+ selectionMode: cardOrientation === 'horizontal' && layoutType === 'grid' ? 'none' : props.selectionMode,
96
96
  collection: gridCollection,
97
- focusMode: "cell"
97
+ focusMode: 'cell'
98
98
  });
99
99
  cardViewLayout.collection = gridCollection;
100
100
  cardViewLayout.disabledKeys = state.disabledKeys;
@@ -136,7 +136,7 @@ function $81a52da995c19652$var$CardView(props, ref) {
136
136
  }, /*#__PURE__*/ (0, $iOsT7$react).createElement((0, $iOsT7$Virtualizer), {
137
137
  ...gridProps,
138
138
  ...styleProps,
139
- className: (0, $iOsT7$classNames)((0, ($parcel$interopDefault($iOsT7$card_vars_cssmodulejs))), "spectrum-CardView"),
139
+ className: (0, $iOsT7$classNames)((0, ($parcel$interopDefault($iOsT7$card_vars_cssmodulejs))), 'spectrum-CardView'),
140
140
  ref: domRef,
141
141
  focusedKey: focusedKey,
142
142
  scrollDirection: "vertical",
@@ -148,14 +148,14 @@ function $81a52da995c19652$var$CardView(props, ref) {
148
148
  transitionDuration: isLoading ? 160 : 220,
149
149
  scrollToItem: scrollToItem
150
150
  }, (type, item)=>{
151
- if (type === "item") return /*#__PURE__*/ (0, $iOsT7$react).createElement($81a52da995c19652$var$InternalCard, {
151
+ if (type === 'item') return /*#__PURE__*/ (0, $iOsT7$react).createElement($81a52da995c19652$var$InternalCard, {
152
152
  item: item
153
153
  });
154
- else if (type === "loader") return /*#__PURE__*/ (0, $iOsT7$react).createElement($81a52da995c19652$var$CenteredWrapper, null, /*#__PURE__*/ (0, $iOsT7$react).createElement((0, $iOsT7$ProgressCircle), {
154
+ else if (type === 'loader') return /*#__PURE__*/ (0, $iOsT7$react).createElement($81a52da995c19652$var$CenteredWrapper, null, /*#__PURE__*/ (0, $iOsT7$react).createElement((0, $iOsT7$ProgressCircle), {
155
155
  isIndeterminate: true,
156
- "aria-label": state.collection.size > 0 ? stringFormatter.format("loadingMore") : stringFormatter.format("loading")
156
+ "aria-label": state.collection.size > 0 ? stringFormatter.format('loadingMore') : stringFormatter.format('loading')
157
157
  }));
158
- else if (type === "placeholder") {
158
+ else if (type === 'placeholder') {
159
159
  let emptyState = renderEmptyState ? renderEmptyState() : null;
160
160
  if (emptyState == null) return null;
161
161
  return /*#__PURE__*/ (0, $iOsT7$react).createElement($81a52da995c19652$var$CenteredWrapper, null, emptyState);
@@ -167,7 +167,7 @@ function $81a52da995c19652$var$CenteredWrapper({ children: children }) {
167
167
  return /*#__PURE__*/ (0, $iOsT7$react).createElement("div", {
168
168
  role: "row",
169
169
  "aria-rowindex": state.collection.size + 1,
170
- className: (0, $iOsT7$classNames)((0, ($parcel$interopDefault($iOsT7$card_vars_cssmodulejs))), "spectrum-CardView-centeredWrapper")
170
+ className: (0, $iOsT7$classNames)((0, ($parcel$interopDefault($iOsT7$card_vars_cssmodulejs))), 'spectrum-CardView-centeredWrapper')
171
171
  }, /*#__PURE__*/ (0, $iOsT7$react).createElement("div", {
172
172
  role: "gridcell"
173
173
  }, children));
@@ -188,19 +188,19 @@ function $81a52da995c19652$var$InternalCard(props) {
188
188
  }, state, rowRef);
189
189
  let { gridCellProps: gridCellProps } = (0, $iOsT7$useGridCell)({
190
190
  node: cellNode,
191
- focusMode: "cell"
191
+ focusMode: 'cell'
192
192
  }, state, unwrappedRef);
193
193
  // Prevent space key from scrolling the CardView if triggered on a disabled item or on a Card in a selectionMode="none" CardView.
194
- let allowsInteraction = state.selectionManager.selectionMode !== "none";
194
+ let allowsInteraction = state.selectionManager.selectionMode !== 'none';
195
195
  let isDisabled = !allowsInteraction || state.disabledKeys.has(item.key);
196
196
  let onKeyDown = (e)=>{
197
- if (e.key === " " && isDisabled) e.preventDefault();
197
+ if (e.key === ' ' && isDisabled) e.preventDefault();
198
198
  };
199
199
  let rowProps = (0, $iOsT7$mergeProps)(gridRowProps, {
200
200
  onKeyDown: onKeyDown
201
201
  });
202
- if (layoutType === "grid" || layoutType === "gallery") isQuiet = true;
203
- if (layoutType !== "grid") cardOrientation = "vertical";
202
+ if (layoutType === 'grid' || layoutType === 'gallery') isQuiet = true;
203
+ if (layoutType !== 'grid') cardOrientation = 'vertical';
204
204
  // We don't want to focus the checkbox (or any other focusable elements) within the Card
205
205
  // when pressing the arrow keys so we delete the key down handler here. Arrow key navigation between
206
206
  // the cards in the CardView is handled by useGrid => useSelectableCollection instead.
@@ -208,7 +208,7 @@ function $81a52da995c19652$var$InternalCard(props) {
208
208
  return /*#__PURE__*/ (0, $iOsT7$react).createElement("div", {
209
209
  ...rowProps,
210
210
  ref: rowRef,
211
- className: (0, $iOsT7$classNames)((0, ($parcel$interopDefault($iOsT7$card_vars_cssmodulejs))), "spectrum-CardView-row")
211
+ className: (0, $iOsT7$classNames)((0, ($parcel$interopDefault($iOsT7$card_vars_cssmodulejs))), 'spectrum-CardView-row')
212
212
  }, /*#__PURE__*/ (0, $iOsT7$react).createElement((0, $643dd8fa80926f94$export$7a6ccaf429ad93a8), {
213
213
  ref: cellRef,
214
214
  articleProps: gridCellProps,
@@ -18,4 +18,4 @@ function $8d180a244893de14$export$fea0b38586ec8f13() {
18
18
 
19
19
 
20
20
  export {$8d180a244893de14$export$64992ac69f286e5c as CardViewContext, $8d180a244893de14$export$fea0b38586ec8f13 as useCardViewContext};
21
- //# sourceMappingURL=CardViewContext.mjs.map
21
+ //# sourceMappingURL=CardViewContext.module.js.map
@@ -33,8 +33,8 @@ const $8019a3d2c7d098ea$var$DEFAULT_OPTIONS = {
33
33
  minItemSize: new (0, $lJHSi$reactstatelyvirtualizer.Size)(136, 136),
34
34
  itemSpacing: new (0, $lJHSi$reactstatelyvirtualizer.Size)(18, 18),
35
35
  itemPadding: {
36
- "medium": 78,
37
- "large": 99
36
+ 'medium': 78,
37
+ 'large': 99
38
38
  },
39
39
  dropSpacing: 100,
40
40
  margin: 24
@@ -42,7 +42,7 @@ const $8019a3d2c7d098ea$var$DEFAULT_OPTIONS = {
42
42
  };
43
43
  class $8019a3d2c7d098ea$export$8e52095834484b61 extends (0, $5ee605f09afaa4de$exports.BaseLayout) {
44
44
  get layoutType() {
45
- return "gallery";
45
+ return 'gallery';
46
46
  }
47
47
  /**
48
48
  * Takes a row of widths and if there are any widths smaller than the min-width, leech width starting from
@@ -84,7 +84,7 @@ class $8019a3d2c7d098ea$export$8e52095834484b61 extends (0, $5ee605f09afaa4de$ex
84
84
  let visibleHeight = this.virtualizer.visibleRect.height;
85
85
  let y = this.margin;
86
86
  let availableWidth = visibleWidth - this.margin * 2;
87
- // If avaliable width is not greater than 0, skip node layout calculations
87
+ // If available width is not greater than 0, skip node layout calculations
88
88
  if (availableWidth > 0) {
89
89
  // Compute aspect ratios for all of the items, and the total width if all items were on in a single row.
90
90
  let ratios = [];
@@ -147,21 +147,21 @@ class $8019a3d2c7d098ea$export$8e52095834484b61 extends (0, $5ee605f09afaa4de$ex
147
147
  if (this.isLoading) {
148
148
  let loaderY = y;
149
149
  let loaderHeight = 60;
150
- // If there aren't any items, make loader take all avaliable room and remove margin from y calculation
150
+ // If there aren't any items, make loader take all available room and remove margin from y calculation
151
151
  // so it doesn't scroll
152
152
  if (this.collection.size === 0) {
153
153
  loaderY = 0;
154
154
  loaderHeight = visibleHeight || 60;
155
155
  }
156
156
  let rect = new (0, $lJHSi$reactstatelyvirtualizer.Rect)(0, loaderY, visibleWidth, loaderHeight);
157
- let loader = new (0, $lJHSi$reactstatelyvirtualizer.LayoutInfo)("loader", "loader", rect);
158
- this.layoutInfos.set("loader", loader);
157
+ let loader = new (0, $lJHSi$reactstatelyvirtualizer.LayoutInfo)('loader', 'loader', rect);
158
+ this.layoutInfos.set('loader', loader);
159
159
  y = loader.rect.maxY;
160
160
  }
161
161
  if (this.collection.size === 0 && !this.isLoading) {
162
162
  let rect = new (0, $lJHSi$reactstatelyvirtualizer.Rect)(0, 0, visibleWidth, visibleHeight);
163
- let placeholder = new (0, $lJHSi$reactstatelyvirtualizer.LayoutInfo)("placeholder", "placeholder", rect);
164
- this.layoutInfos.set("placeholder", placeholder);
163
+ let placeholder = new (0, $lJHSi$reactstatelyvirtualizer.LayoutInfo)('placeholder', 'placeholder', rect);
164
+ this.layoutInfos.set('placeholder', placeholder);
165
165
  y = placeholder.rect.maxY;
166
166
  }
167
167
  }
@@ -169,7 +169,7 @@ class $8019a3d2c7d098ea$export$8e52095834484b61 extends (0, $5ee605f09afaa4de$ex
169
169
  }
170
170
  constructor(options = {}){
171
171
  super(options);
172
- let cardSize = "L";
172
+ let cardSize = 'L';
173
173
  this.idealRowHeight = options.idealRowHeight || $8019a3d2c7d098ea$var$DEFAULT_OPTIONS[cardSize].idealRowHeight;
174
174
  this.itemSpacing = options.itemSpacing || $8019a3d2c7d098ea$var$DEFAULT_OPTIONS[cardSize].itemSpacing;
175
175
  this.itemPadding = options.itemPadding != null ? options.itemPadding : $8019a3d2c7d098ea$var$DEFAULT_OPTIONS[cardSize].itemPadding[this.scale];