@react-spectrum/card 3.0.0-nightly.4149 → 3.0.0-nightly.4157
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/import.mjs +111 -84
- package/dist/main.css +1 -1
- package/dist/main.js +111 -84
- package/dist/main.js.map +1 -1
- package/dist/module.js +111 -84
- package/dist/module.js.map +1 -1
- package/package.json +22 -22
package/dist/import.mjs
CHANGED
|
@@ -59,87 +59,114 @@ function $parcel$export(e, n, v, s) {
|
|
|
59
59
|
|
|
60
60
|
var $408a78e5068502c2$exports = {};
|
|
61
61
|
|
|
62
|
-
$parcel$export($408a78e5068502c2$exports, "
|
|
63
|
-
$parcel$export($408a78e5068502c2$exports, "
|
|
64
|
-
$parcel$export($408a78e5068502c2$exports, "
|
|
65
|
-
$parcel$export($408a78e5068502c2$exports, "spectrum-Card-checkbox", () => $408a78e5068502c2$export$842da5d48b8f6db2, (v) => $408a78e5068502c2$export$842da5d48b8f6db2 = v);
|
|
66
|
-
$parcel$export($408a78e5068502c2$exports, "is-selected", () => $408a78e5068502c2$export$1e0fb04f31d3c22a, (v) => $408a78e5068502c2$export$1e0fb04f31d3c22a = v);
|
|
62
|
+
$parcel$export($408a78e5068502c2$exports, "avatar", () => $408a78e5068502c2$export$345c5736c8054f22, (v) => $408a78e5068502c2$export$345c5736c8054f22 = v);
|
|
63
|
+
$parcel$export($408a78e5068502c2$exports, "content", () => $408a78e5068502c2$export$a7db06668cad9adb, (v) => $408a78e5068502c2$export$a7db06668cad9adb = v);
|
|
64
|
+
$parcel$export($408a78e5068502c2$exports, "detail", () => $408a78e5068502c2$export$13a2d28b88853ef2, (v) => $408a78e5068502c2$export$13a2d28b88853ef2 = v);
|
|
67
65
|
$parcel$export($408a78e5068502c2$exports, "focus-ring", () => $408a78e5068502c2$export$f39a09f249340e2a, (v) => $408a78e5068502c2$export$f39a09f249340e2a = v);
|
|
66
|
+
$parcel$export($408a78e5068502c2$exports, "i18nFontFamily", () => $408a78e5068502c2$export$8c4ee2c50c22c514, (v) => $408a78e5068502c2$export$8c4ee2c50c22c514 = v);
|
|
67
|
+
$parcel$export($408a78e5068502c2$exports, "is-drop-target", () => $408a78e5068502c2$export$d8467f38d2d00bd0, (v) => $408a78e5068502c2$export$d8467f38d2d00bd0 = v);
|
|
68
|
+
$parcel$export($408a78e5068502c2$exports, "is-focused", () => $408a78e5068502c2$export$e7dc768d35940237, (v) => $408a78e5068502c2$export$e7dc768d35940237 = v);
|
|
68
69
|
$parcel$export($408a78e5068502c2$exports, "is-hovered", () => $408a78e5068502c2$export$b8813cd5d7824ce7, (v) => $408a78e5068502c2$export$b8813cd5d7824ce7 = v);
|
|
69
|
-
$parcel$export($408a78e5068502c2$exports, "
|
|
70
|
-
$parcel$export($408a78e5068502c2$exports, "
|
|
71
|
-
$parcel$export($408a78e5068502c2$exports, "spectrum-Card
|
|
72
|
-
$parcel$export($408a78e5068502c2$exports, "spectrum-Card-illustration", () => $408a78e5068502c2$export$13dd3510ae7a8399, (v) => $408a78e5068502c2$export$13dd3510ae7a8399 = v);
|
|
73
|
-
$parcel$export($408a78e5068502c2$exports, "spectrum-Card-avatar", () => $408a78e5068502c2$export$159930c59efb6273, (v) => $408a78e5068502c2$export$159930c59efb6273 = v);
|
|
74
|
-
$parcel$export($408a78e5068502c2$exports, "spectrum-Card-detail", () => $408a78e5068502c2$export$16715af38fbd9819, (v) => $408a78e5068502c2$export$16715af38fbd9819 = v);
|
|
75
|
-
$parcel$export($408a78e5068502c2$exports, "spectrum-Card-content", () => $408a78e5068502c2$export$d946625b97e8aa17, (v) => $408a78e5068502c2$export$d946625b97e8aa17 = v);
|
|
76
|
-
$parcel$export($408a78e5068502c2$exports, "spectrum-Card--waterfall", () => $408a78e5068502c2$export$d9c7209e0e4f7e4d, (v) => $408a78e5068502c2$export$d9c7209e0e4f7e4d = v);
|
|
70
|
+
$parcel$export($408a78e5068502c2$exports, "is-selected", () => $408a78e5068502c2$export$1e0fb04f31d3c22a, (v) => $408a78e5068502c2$export$1e0fb04f31d3c22a = v);
|
|
71
|
+
$parcel$export($408a78e5068502c2$exports, "preview", () => $408a78e5068502c2$export$48c2d0f2f545ac27, (v) => $408a78e5068502c2$export$48c2d0f2f545ac27 = v);
|
|
72
|
+
$parcel$export($408a78e5068502c2$exports, "spectrum-Card", () => $408a78e5068502c2$export$4e5e9f191b1edb8, (v) => $408a78e5068502c2$export$4e5e9f191b1edb8 = v);
|
|
77
73
|
$parcel$export($408a78e5068502c2$exports, "spectrum-Card--default", () => $408a78e5068502c2$export$c7a022df9e10a238, (v) => $408a78e5068502c2$export$c7a022df9e10a238 = v);
|
|
78
|
-
$parcel$export($408a78e5068502c2$exports, "spectrum-Card--noPreview", () => $408a78e5068502c2$export$b77922bc0320c9e4, (v) => $408a78e5068502c2$export$b77922bc0320c9e4 = v);
|
|
79
|
-
$parcel$export($408a78e5068502c2$exports, "spectrum-Card--grid", () => $408a78e5068502c2$export$59739ab951d2dcc7, (v) => $408a78e5068502c2$export$59739ab951d2dcc7 = v);
|
|
80
|
-
$parcel$export($408a78e5068502c2$exports, "spectrum-Card--noLayout", () => $408a78e5068502c2$export$a03d836e6ef3e749, (v) => $408a78e5068502c2$export$a03d836e6ef3e749 = v);
|
|
81
|
-
$parcel$export($408a78e5068502c2$exports, "spectrum-Card--isQuiet", () => $408a78e5068502c2$export$92ad04b5ac9296ea, (v) => $408a78e5068502c2$export$92ad04b5ac9296ea = v);
|
|
82
74
|
$parcel$export($408a78e5068502c2$exports, "spectrum-Card--gallery", () => $408a78e5068502c2$export$ccd8ffc36bd10cc, (v) => $408a78e5068502c2$export$ccd8ffc36bd10cc = v);
|
|
75
|
+
$parcel$export($408a78e5068502c2$exports, "spectrum-Card--grid", () => $408a78e5068502c2$export$59739ab951d2dcc7, (v) => $408a78e5068502c2$export$59739ab951d2dcc7 = v);
|
|
83
76
|
$parcel$export($408a78e5068502c2$exports, "spectrum-Card--horizontal", () => $408a78e5068502c2$export$1c52334407225704, (v) => $408a78e5068502c2$export$1c52334407225704 = v);
|
|
84
|
-
$parcel$export($408a78e5068502c2$exports, "
|
|
77
|
+
$parcel$export($408a78e5068502c2$exports, "spectrum-Card--isQuiet", () => $408a78e5068502c2$export$92ad04b5ac9296ea, (v) => $408a78e5068502c2$export$92ad04b5ac9296ea = v);
|
|
78
|
+
$parcel$export($408a78e5068502c2$exports, "spectrum-Card--noLayout", () => $408a78e5068502c2$export$a03d836e6ef3e749, (v) => $408a78e5068502c2$export$a03d836e6ef3e749 = v);
|
|
79
|
+
$parcel$export($408a78e5068502c2$exports, "spectrum-Card--noPreview", () => $408a78e5068502c2$export$b77922bc0320c9e4, (v) => $408a78e5068502c2$export$b77922bc0320c9e4 = v);
|
|
80
|
+
$parcel$export($408a78e5068502c2$exports, "spectrum-Card--waterfall", () => $408a78e5068502c2$export$d9c7209e0e4f7e4d, (v) => $408a78e5068502c2$export$d9c7209e0e4f7e4d = v);
|
|
81
|
+
$parcel$export($408a78e5068502c2$exports, "spectrum-Card-avatar", () => $408a78e5068502c2$export$159930c59efb6273, (v) => $408a78e5068502c2$export$159930c59efb6273 = v);
|
|
82
|
+
$parcel$export($408a78e5068502c2$exports, "spectrum-Card-checkbox", () => $408a78e5068502c2$export$842da5d48b8f6db2, (v) => $408a78e5068502c2$export$842da5d48b8f6db2 = v);
|
|
83
|
+
$parcel$export($408a78e5068502c2$exports, "spectrum-Card-checkboxWrapper", () => $408a78e5068502c2$export$33977546b63e0df9, (v) => $408a78e5068502c2$export$33977546b63e0df9 = v);
|
|
84
|
+
$parcel$export($408a78e5068502c2$exports, "spectrum-Card-content", () => $408a78e5068502c2$export$d946625b97e8aa17, (v) => $408a78e5068502c2$export$d946625b97e8aa17 = v);
|
|
85
|
+
$parcel$export($408a78e5068502c2$exports, "spectrum-Card-decoration", () => $408a78e5068502c2$export$48252dc130b62514, (v) => $408a78e5068502c2$export$48252dc130b62514 = v);
|
|
86
|
+
$parcel$export($408a78e5068502c2$exports, "spectrum-Card-detail", () => $408a78e5068502c2$export$16715af38fbd9819, (v) => $408a78e5068502c2$export$16715af38fbd9819 = v);
|
|
87
|
+
$parcel$export($408a78e5068502c2$exports, "spectrum-Card-grid", () => $408a78e5068502c2$export$b3dd760d2dfde29e, (v) => $408a78e5068502c2$export$b3dd760d2dfde29e = v);
|
|
88
|
+
$parcel$export($408a78e5068502c2$exports, "spectrum-Card-heading", () => $408a78e5068502c2$export$92758a4a0e8d19e4, (v) => $408a78e5068502c2$export$92758a4a0e8d19e4 = v);
|
|
89
|
+
$parcel$export($408a78e5068502c2$exports, "spectrum-Card-illustration", () => $408a78e5068502c2$export$13dd3510ae7a8399, (v) => $408a78e5068502c2$export$13dd3510ae7a8399 = v);
|
|
90
|
+
$parcel$export($408a78e5068502c2$exports, "spectrum-Card-image", () => $408a78e5068502c2$export$8d5fea71dc66db80, (v) => $408a78e5068502c2$export$8d5fea71dc66db80 = v);
|
|
85
91
|
$parcel$export($408a78e5068502c2$exports, "spectrum-CardView", () => $408a78e5068502c2$export$2f34e9e3e0b89d95, (v) => $408a78e5068502c2$export$2f34e9e3e0b89d95 = v);
|
|
86
92
|
$parcel$export($408a78e5068502c2$exports, "spectrum-CardView-centeredWrapper", () => $408a78e5068502c2$export$7fc89689fcfab196, (v) => $408a78e5068502c2$export$7fc89689fcfab196 = v);
|
|
87
93
|
$parcel$export($408a78e5068502c2$exports, "spectrum-CardView-row", () => $408a78e5068502c2$export$4746ac09daa215ae, (v) => $408a78e5068502c2$export$4746ac09daa215ae = v);
|
|
88
|
-
$parcel$export($408a78e5068502c2$exports, "
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
var $408a78e5068502c2$export$
|
|
93
|
-
var $408a78e5068502c2$export$
|
|
94
|
+
$parcel$export($408a78e5068502c2$exports, "spectrum-FocusRing-ring", () => $408a78e5068502c2$export$4109102f950813a6, (v) => $408a78e5068502c2$export$4109102f950813a6 = v);
|
|
95
|
+
$parcel$export($408a78e5068502c2$exports, "spectrum-FocusRing", () => $408a78e5068502c2$export$24c7f46a6e3605dd, (v) => $408a78e5068502c2$export$24c7f46a6e3605dd = v);
|
|
96
|
+
$parcel$export($408a78e5068502c2$exports, "spectrum-FocusRing--quiet", () => $408a78e5068502c2$export$2927016961429360, (v) => $408a78e5068502c2$export$2927016961429360 = v);
|
|
97
|
+
$parcel$export($408a78e5068502c2$exports, "title", () => $408a78e5068502c2$export$fb184b623420d9be, (v) => $408a78e5068502c2$export$fb184b623420d9be = v);
|
|
98
|
+
var $408a78e5068502c2$export$345c5736c8054f22;
|
|
99
|
+
var $408a78e5068502c2$export$a7db06668cad9adb;
|
|
100
|
+
var $408a78e5068502c2$export$13a2d28b88853ef2;
|
|
94
101
|
var $408a78e5068502c2$export$f39a09f249340e2a;
|
|
102
|
+
var $408a78e5068502c2$export$8c4ee2c50c22c514;
|
|
103
|
+
var $408a78e5068502c2$export$d8467f38d2d00bd0;
|
|
104
|
+
var $408a78e5068502c2$export$e7dc768d35940237;
|
|
95
105
|
var $408a78e5068502c2$export$b8813cd5d7824ce7;
|
|
96
|
-
var $408a78e5068502c2$export$
|
|
97
|
-
var $408a78e5068502c2$export$
|
|
98
|
-
var $408a78e5068502c2$export$
|
|
99
|
-
var $408a78e5068502c2$export$13dd3510ae7a8399;
|
|
100
|
-
var $408a78e5068502c2$export$159930c59efb6273;
|
|
101
|
-
var $408a78e5068502c2$export$16715af38fbd9819;
|
|
102
|
-
var $408a78e5068502c2$export$d946625b97e8aa17;
|
|
103
|
-
var $408a78e5068502c2$export$d9c7209e0e4f7e4d;
|
|
106
|
+
var $408a78e5068502c2$export$1e0fb04f31d3c22a;
|
|
107
|
+
var $408a78e5068502c2$export$48c2d0f2f545ac27;
|
|
108
|
+
var $408a78e5068502c2$export$4e5e9f191b1edb8;
|
|
104
109
|
var $408a78e5068502c2$export$c7a022df9e10a238;
|
|
105
|
-
var $408a78e5068502c2$export$b77922bc0320c9e4;
|
|
106
|
-
var $408a78e5068502c2$export$59739ab951d2dcc7;
|
|
107
|
-
var $408a78e5068502c2$export$a03d836e6ef3e749;
|
|
108
|
-
var $408a78e5068502c2$export$92ad04b5ac9296ea;
|
|
109
110
|
var $408a78e5068502c2$export$ccd8ffc36bd10cc;
|
|
111
|
+
var $408a78e5068502c2$export$59739ab951d2dcc7;
|
|
110
112
|
var $408a78e5068502c2$export$1c52334407225704;
|
|
111
|
-
var $408a78e5068502c2$export$
|
|
113
|
+
var $408a78e5068502c2$export$92ad04b5ac9296ea;
|
|
114
|
+
var $408a78e5068502c2$export$a03d836e6ef3e749;
|
|
115
|
+
var $408a78e5068502c2$export$b77922bc0320c9e4;
|
|
116
|
+
var $408a78e5068502c2$export$d9c7209e0e4f7e4d;
|
|
117
|
+
var $408a78e5068502c2$export$159930c59efb6273;
|
|
118
|
+
var $408a78e5068502c2$export$842da5d48b8f6db2;
|
|
119
|
+
var $408a78e5068502c2$export$33977546b63e0df9;
|
|
120
|
+
var $408a78e5068502c2$export$d946625b97e8aa17;
|
|
121
|
+
var $408a78e5068502c2$export$48252dc130b62514;
|
|
122
|
+
var $408a78e5068502c2$export$16715af38fbd9819;
|
|
123
|
+
var $408a78e5068502c2$export$b3dd760d2dfde29e;
|
|
124
|
+
var $408a78e5068502c2$export$92758a4a0e8d19e4;
|
|
125
|
+
var $408a78e5068502c2$export$13dd3510ae7a8399;
|
|
126
|
+
var $408a78e5068502c2$export$8d5fea71dc66db80;
|
|
112
127
|
var $408a78e5068502c2$export$2f34e9e3e0b89d95;
|
|
113
128
|
var $408a78e5068502c2$export$7fc89689fcfab196;
|
|
114
129
|
var $408a78e5068502c2$export$4746ac09daa215ae;
|
|
115
|
-
var $408a78e5068502c2$export$
|
|
116
|
-
$408a78e5068502c2$export$
|
|
117
|
-
$408a78e5068502c2$export$
|
|
118
|
-
$408a78e5068502c2$export$
|
|
119
|
-
$408a78e5068502c2$export$
|
|
120
|
-
$408a78e5068502c2$export$
|
|
121
|
-
$408a78e5068502c2$export$
|
|
122
|
-
$408a78e5068502c2$export$
|
|
123
|
-
$408a78e5068502c2$export$
|
|
124
|
-
$408a78e5068502c2$export$
|
|
125
|
-
$408a78e5068502c2$export$
|
|
126
|
-
$408a78e5068502c2$export$
|
|
127
|
-
$408a78e5068502c2$export$
|
|
128
|
-
$408a78e5068502c2$export$
|
|
129
|
-
$408a78e5068502c2$export$
|
|
130
|
-
$408a78e5068502c2$export$
|
|
131
|
-
$408a78e5068502c2$export$
|
|
132
|
-
$408a78e5068502c2$export$
|
|
133
|
-
$408a78e5068502c2$export$
|
|
134
|
-
$408a78e5068502c2$export$
|
|
135
|
-
$408a78e5068502c2$export$
|
|
136
|
-
$408a78e5068502c2$export$
|
|
137
|
-
$408a78e5068502c2$export$
|
|
138
|
-
$408a78e5068502c2$export$
|
|
139
|
-
$408a78e5068502c2$export$
|
|
140
|
-
$408a78e5068502c2$export$
|
|
141
|
-
$408a78e5068502c2$export$
|
|
142
|
-
$408a78e5068502c2$export$
|
|
130
|
+
var $408a78e5068502c2$export$4109102f950813a6;
|
|
131
|
+
var $408a78e5068502c2$export$24c7f46a6e3605dd;
|
|
132
|
+
var $408a78e5068502c2$export$2927016961429360;
|
|
133
|
+
var $408a78e5068502c2$export$fb184b623420d9be;
|
|
134
|
+
$408a78e5068502c2$export$345c5736c8054f22 = `dqWSla_avatar`;
|
|
135
|
+
$408a78e5068502c2$export$a7db06668cad9adb = `dqWSla_content`;
|
|
136
|
+
$408a78e5068502c2$export$13a2d28b88853ef2 = `dqWSla_detail`;
|
|
137
|
+
$408a78e5068502c2$export$f39a09f249340e2a = `dqWSla_focus-ring`;
|
|
138
|
+
$408a78e5068502c2$export$8c4ee2c50c22c514 = `dqWSla_i18nFontFamily`;
|
|
139
|
+
$408a78e5068502c2$export$d8467f38d2d00bd0 = `dqWSla_is-drop-target`;
|
|
140
|
+
$408a78e5068502c2$export$e7dc768d35940237 = `dqWSla_is-focused`;
|
|
141
|
+
$408a78e5068502c2$export$b8813cd5d7824ce7 = `dqWSla_is-hovered`;
|
|
142
|
+
$408a78e5068502c2$export$1e0fb04f31d3c22a = `dqWSla_is-selected`;
|
|
143
|
+
$408a78e5068502c2$export$48c2d0f2f545ac27 = `dqWSla_preview`;
|
|
144
|
+
$408a78e5068502c2$export$4e5e9f191b1edb8 = `dqWSla_spectrum-Card`;
|
|
145
|
+
$408a78e5068502c2$export$c7a022df9e10a238 = `dqWSla_spectrum-Card--default`;
|
|
146
|
+
$408a78e5068502c2$export$ccd8ffc36bd10cc = `dqWSla_spectrum-Card--gallery`;
|
|
147
|
+
$408a78e5068502c2$export$59739ab951d2dcc7 = `dqWSla_spectrum-Card--grid`;
|
|
148
|
+
$408a78e5068502c2$export$1c52334407225704 = `dqWSla_spectrum-Card--horizontal`;
|
|
149
|
+
$408a78e5068502c2$export$92ad04b5ac9296ea = `dqWSla_spectrum-Card--isQuiet`;
|
|
150
|
+
$408a78e5068502c2$export$a03d836e6ef3e749 = `dqWSla_spectrum-Card--noLayout`;
|
|
151
|
+
$408a78e5068502c2$export$b77922bc0320c9e4 = `dqWSla_spectrum-Card--noPreview`;
|
|
152
|
+
$408a78e5068502c2$export$d9c7209e0e4f7e4d = `dqWSla_spectrum-Card--waterfall`;
|
|
153
|
+
$408a78e5068502c2$export$159930c59efb6273 = `dqWSla_spectrum-Card-avatar`;
|
|
154
|
+
$408a78e5068502c2$export$842da5d48b8f6db2 = `dqWSla_spectrum-Card-checkbox`;
|
|
155
|
+
$408a78e5068502c2$export$33977546b63e0df9 = `dqWSla_spectrum-Card-checkboxWrapper`;
|
|
156
|
+
$408a78e5068502c2$export$d946625b97e8aa17 = `dqWSla_spectrum-Card-content`;
|
|
157
|
+
$408a78e5068502c2$export$48252dc130b62514 = `dqWSla_spectrum-Card-decoration`;
|
|
158
|
+
$408a78e5068502c2$export$16715af38fbd9819 = `dqWSla_spectrum-Card-detail`;
|
|
159
|
+
$408a78e5068502c2$export$b3dd760d2dfde29e = `dqWSla_spectrum-Card-grid`;
|
|
160
|
+
$408a78e5068502c2$export$92758a4a0e8d19e4 = `dqWSla_spectrum-Card-heading`;
|
|
161
|
+
$408a78e5068502c2$export$13dd3510ae7a8399 = `dqWSla_spectrum-Card-illustration`;
|
|
162
|
+
$408a78e5068502c2$export$8d5fea71dc66db80 = `dqWSla_spectrum-Card-image`;
|
|
163
|
+
$408a78e5068502c2$export$2f34e9e3e0b89d95 = `dqWSla_spectrum-CardView`;
|
|
164
|
+
$408a78e5068502c2$export$7fc89689fcfab196 = `dqWSla_spectrum-CardView-centeredWrapper`;
|
|
165
|
+
$408a78e5068502c2$export$4746ac09daa215ae = `dqWSla_spectrum-CardView-row`;
|
|
166
|
+
$408a78e5068502c2$export$4109102f950813a6 = `dqWSla_spectrum-FocusRing-ring`;
|
|
167
|
+
$408a78e5068502c2$export$24c7f46a6e3605dd = `dqWSla_spectrum-FocusRing ${$408a78e5068502c2$export$4109102f950813a6}`;
|
|
168
|
+
$408a78e5068502c2$export$2927016961429360 = `dqWSla_spectrum-FocusRing--quiet`;
|
|
169
|
+
$408a78e5068502c2$export$fb184b623420d9be = `dqWSla_title`;
|
|
143
170
|
|
|
144
171
|
|
|
145
172
|
/*
|
|
@@ -164,26 +191,26 @@ function $8d180a244893de14$export$fea0b38586ec8f13() {
|
|
|
164
191
|
function $643dd8fa80926f94$var$CardBase(props, ref) {
|
|
165
192
|
props = (0, $8EWFi$useProviderProps)(props);
|
|
166
193
|
let context = (0, $8d180a244893de14$export$fea0b38586ec8f13)() || {}; // we can call again here, won't change from Card.tsx
|
|
167
|
-
let { state: state
|
|
194
|
+
let { state: state } = context;
|
|
168
195
|
let manager = state === null || state === void 0 ? void 0 : state.selectionManager;
|
|
169
|
-
let { isQuiet: isQuiet
|
|
196
|
+
let { isQuiet: isQuiet, orientation: orientation = "vertical", articleProps: articleProps = {}, item: item, layout: layout, children: children } = props;
|
|
170
197
|
let key = item === null || item === void 0 ? void 0 : item.key;
|
|
171
198
|
let isSelected = manager === null || manager === void 0 ? void 0 : manager.isSelected(key);
|
|
172
199
|
let isDisabled = state === null || state === void 0 ? void 0 : state.disabledKeys.has(key);
|
|
173
200
|
let onChange = ()=>{
|
|
174
201
|
return manager === null || manager === void 0 ? void 0 : manager.select(key);
|
|
175
202
|
};
|
|
176
|
-
let { styleProps: styleProps
|
|
177
|
-
let { cardProps: cardProps
|
|
203
|
+
let { styleProps: styleProps } = (0, $8EWFi$useStyleProps)(props);
|
|
204
|
+
let { cardProps: cardProps, titleProps: titleProps, contentProps: contentProps } = $643dd8fa80926f94$var$useCard(props);
|
|
178
205
|
let domRef = (0, $8EWFi$useDOMRef)(ref);
|
|
179
206
|
let gridRef = (0, $8EWFi$useRef)();
|
|
180
207
|
let checkboxRef = (0, $8EWFi$useRef)(null);
|
|
181
208
|
// cards are only interactive if there is a selection manager and it allows selection
|
|
182
|
-
let { hoverProps: hoverProps
|
|
209
|
+
let { hoverProps: hoverProps, isHovered: isHovered } = (0, $8EWFi$useHover)({
|
|
183
210
|
isDisabled: manager === undefined || (manager === null || manager === void 0 ? void 0 : manager.selectionMode) === "none" || isDisabled
|
|
184
211
|
});
|
|
185
212
|
let [isFocused, setIsFocused] = (0, $8EWFi$useState)(false);
|
|
186
|
-
let { focusWithinProps: focusWithinProps
|
|
213
|
+
let { focusWithinProps: focusWithinProps } = (0, $8EWFi$useFocusWithin)({
|
|
187
214
|
onFocusWithinChange: setIsFocused,
|
|
188
215
|
isDisabled: isDisabled
|
|
189
216
|
});
|
|
@@ -617,10 +644,10 @@ $49aba923a95704ba$exports = {
|
|
|
617
644
|
|
|
618
645
|
|
|
619
646
|
function $81a52da995c19652$var$CardView(props, ref) {
|
|
620
|
-
let { scale: scale
|
|
621
|
-
let { styleProps: styleProps
|
|
647
|
+
let { scale: scale } = (0, $8EWFi$useProvider)();
|
|
648
|
+
let { styleProps: styleProps } = (0, $8EWFi$useStyleProps)(props);
|
|
622
649
|
let domRef = (0, $8EWFi$useDOMRef)(ref);
|
|
623
|
-
let { isQuiet: isQuiet
|
|
650
|
+
let { isQuiet: isQuiet, renderEmptyState: renderEmptyState, layout: layout, loadingState: loadingState, onLoadMore: onLoadMore, cardOrientation: cardOrientation = "vertical" } = props;
|
|
624
651
|
let collator = (0, $8EWFi$useCollator)({
|
|
625
652
|
usage: "search",
|
|
626
653
|
sensitivity: "base"
|
|
@@ -638,8 +665,8 @@ function $81a52da995c19652$var$CardView(props, ref) {
|
|
|
638
665
|
]);
|
|
639
666
|
let layoutType = cardViewLayout.layoutType;
|
|
640
667
|
let stringFormatter = (0, $8EWFi$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($49aba923a95704ba$exports))));
|
|
641
|
-
let { direction: direction
|
|
642
|
-
let { collection: collection
|
|
668
|
+
let { direction: direction } = (0, $8EWFi$useLocale)();
|
|
669
|
+
let { collection: collection } = (0, $8EWFi$useListState)(props);
|
|
643
670
|
let gridCollection = (0, $8EWFi$useMemo)(()=>new (0, $8EWFi$GridCollection)({
|
|
644
671
|
columnCount: 1,
|
|
645
672
|
items: [
|
|
@@ -674,7 +701,7 @@ function $81a52da995c19652$var$CardView(props, ref) {
|
|
|
674
701
|
cardViewLayout.disabledKeys = state.disabledKeys;
|
|
675
702
|
cardViewLayout.isLoading = isLoading;
|
|
676
703
|
cardViewLayout.direction = direction;
|
|
677
|
-
let { gridProps: gridProps
|
|
704
|
+
let { gridProps: gridProps } = (0, $8EWFi$useGrid)({
|
|
678
705
|
...props,
|
|
679
706
|
isVirtualized: true,
|
|
680
707
|
keyboardDelegate: cardViewLayout
|
|
@@ -738,8 +765,8 @@ function $81a52da995c19652$var$CardView(props, ref) {
|
|
|
738
765
|
}
|
|
739
766
|
}));
|
|
740
767
|
}
|
|
741
|
-
function $81a52da995c19652$var$CenteredWrapper({ children: children
|
|
742
|
-
let { state: state
|
|
768
|
+
function $81a52da995c19652$var$CenteredWrapper({ children: children }) {
|
|
769
|
+
let { state: state } = (0, $8d180a244893de14$export$fea0b38586ec8f13)();
|
|
743
770
|
return /*#__PURE__*/ (0, $8EWFi$react).createElement("div", {
|
|
744
771
|
role: "row",
|
|
745
772
|
"aria-rowindex": state.collection.size + 1,
|
|
@@ -749,20 +776,20 @@ function $81a52da995c19652$var$CenteredWrapper({ children: children }) {
|
|
|
749
776
|
}, children));
|
|
750
777
|
}
|
|
751
778
|
function $81a52da995c19652$var$InternalCard(props) {
|
|
752
|
-
let { item: item
|
|
779
|
+
let { item: item } = props;
|
|
753
780
|
let cellNode = [
|
|
754
781
|
...item.childNodes
|
|
755
782
|
][0];
|
|
756
|
-
let { state: state
|
|
783
|
+
let { state: state, cardOrientation: cardOrientation, isQuiet: isQuiet, layout: layout } = (0, $8d180a244893de14$export$fea0b38586ec8f13)();
|
|
757
784
|
let layoutType = layout.layoutType;
|
|
758
785
|
let rowRef = (0, $8EWFi$useRef)();
|
|
759
786
|
let cellRef = (0, $8EWFi$useRef)();
|
|
760
787
|
let unwrappedRef = (0, $8EWFi$useUnwrapDOMRef)(cellRef);
|
|
761
|
-
let { rowProps: gridRowProps
|
|
788
|
+
let { rowProps: gridRowProps } = (0, $8EWFi$useGridRow)({
|
|
762
789
|
node: item,
|
|
763
790
|
isVirtualized: true
|
|
764
791
|
}, state, rowRef);
|
|
765
|
-
let { gridCellProps: gridCellProps
|
|
792
|
+
let { gridCellProps: gridCellProps } = (0, $8EWFi$useGridCell)({
|
|
766
793
|
node: cellNode,
|
|
767
794
|
focusMode: "cell"
|
|
768
795
|
}, state, unwrappedRef);
|
|
@@ -1605,7 +1632,7 @@ let $d2d1c099b89e366a$var$Card = /*#__PURE__*/ (0, $8EWFi$forwardRef)((props, re
|
|
|
1605
1632
|
});
|
|
1606
1633
|
// @ts-ignore
|
|
1607
1634
|
$d2d1c099b89e366a$var$Card.getCollectionNode = function* getCollectionNode(props) {
|
|
1608
|
-
let { children: children
|
|
1635
|
+
let { children: children, textValue: textValue } = props;
|
|
1609
1636
|
yield {
|
|
1610
1637
|
type: "item",
|
|
1611
1638
|
props: props,
|