@utrecht/component-library-react 3.0.1-alpha.29 → 3.0.1-alpha.30
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/css-module/index.js
CHANGED
|
@@ -202,7 +202,9 @@ var AccordionSection = /*#__PURE__*/react.forwardRef(function (_ref, ref) {
|
|
|
202
202
|
"aria-labelledby": buttonId
|
|
203
203
|
}, panelAttributes), {}, {
|
|
204
204
|
children: children
|
|
205
|
-
})) : jsxRuntime.jsx("div", _objectSpread$1k(_objectSpread$1k({
|
|
205
|
+
})) : jsxRuntime.jsx("div", _objectSpread$1k(_objectSpread$1k({
|
|
206
|
+
id: panelId
|
|
207
|
+
}, panelAttributes), {}, {
|
|
206
208
|
children: children
|
|
207
209
|
}))]
|
|
208
210
|
}));
|
|
@@ -231,7 +233,6 @@ var Accordion = /*#__PURE__*/react.forwardRef(function (_ref2, ref) {
|
|
|
231
233
|
});
|
|
232
234
|
Accordion.displayName = 'Accordion';
|
|
233
235
|
var useAccordion = function useAccordion(sections, ref) {
|
|
234
|
-
console.log('useAccordion');
|
|
235
236
|
// const sections: AccordionSectionProviderProps[] = [];
|
|
236
237
|
var refs = sections.map(function (_) {
|
|
237
238
|
return react.useRef(null);
|
|
@@ -257,7 +258,6 @@ var useAccordion = function useAccordion(sections, ref) {
|
|
|
257
258
|
focusFirstSection: function focusFirstSection() {
|
|
258
259
|
var _firstSection$current;
|
|
259
260
|
var firstSection = firstItem(buttonRefs);
|
|
260
|
-
console.log(refs);
|
|
261
261
|
firstSection === null || firstSection === void 0 || (_firstSection$current = firstSection.current) === null || _firstSection$current === void 0 || _firstSection$current.focus();
|
|
262
262
|
},
|
|
263
263
|
focusPreviousSection: function focusPreviousSection(activeElement) {
|
|
@@ -200,7 +200,9 @@ var AccordionSection = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
200
200
|
"aria-labelledby": buttonId
|
|
201
201
|
}, panelAttributes), {}, {
|
|
202
202
|
children: children
|
|
203
|
-
})) : jsx("div", _objectSpread$1k(_objectSpread$1k({
|
|
203
|
+
})) : jsx("div", _objectSpread$1k(_objectSpread$1k({
|
|
204
|
+
id: panelId
|
|
205
|
+
}, panelAttributes), {}, {
|
|
204
206
|
children: children
|
|
205
207
|
}))]
|
|
206
208
|
}));
|
|
@@ -229,7 +231,6 @@ var Accordion = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
229
231
|
});
|
|
230
232
|
Accordion.displayName = 'Accordion';
|
|
231
233
|
var useAccordion = function useAccordion(sections, ref) {
|
|
232
|
-
console.log('useAccordion');
|
|
233
234
|
// const sections: AccordionSectionProviderProps[] = [];
|
|
234
235
|
var refs = sections.map(function (_) {
|
|
235
236
|
return useRef(null);
|
|
@@ -255,7 +256,6 @@ var useAccordion = function useAccordion(sections, ref) {
|
|
|
255
256
|
focusFirstSection: function focusFirstSection() {
|
|
256
257
|
var _firstSection$current;
|
|
257
258
|
var firstSection = firstItem(buttonRefs);
|
|
258
|
-
console.log(refs);
|
|
259
259
|
firstSection === null || firstSection === void 0 || (_firstSection$current = firstSection.current) === null || _firstSection$current === void 0 || _firstSection$current.focus();
|
|
260
260
|
},
|
|
261
261
|
focusPreviousSection: function focusPreviousSection(activeElement) {
|
package/dist/index.cjs.js
CHANGED
|
@@ -172,7 +172,9 @@ var AccordionSection = /*#__PURE__*/react.forwardRef(function (_ref, ref) {
|
|
|
172
172
|
"aria-labelledby": buttonId
|
|
173
173
|
}, panelAttributes), {}, {
|
|
174
174
|
children: children
|
|
175
|
-
})) : jsxRuntime.jsx("div", _objectSpread$1k(_objectSpread$1k({
|
|
175
|
+
})) : jsxRuntime.jsx("div", _objectSpread$1k(_objectSpread$1k({
|
|
176
|
+
id: panelId
|
|
177
|
+
}, panelAttributes), {}, {
|
|
176
178
|
children: children
|
|
177
179
|
}))]
|
|
178
180
|
}));
|
|
@@ -201,7 +203,6 @@ var Accordion = /*#__PURE__*/react.forwardRef(function (_ref2, ref) {
|
|
|
201
203
|
});
|
|
202
204
|
Accordion.displayName = 'Accordion';
|
|
203
205
|
var useAccordion = function useAccordion(sections, ref) {
|
|
204
|
-
console.log('useAccordion');
|
|
205
206
|
// const sections: AccordionSectionProviderProps[] = [];
|
|
206
207
|
var refs = sections.map(function (_) {
|
|
207
208
|
return react.useRef(null);
|
|
@@ -227,7 +228,6 @@ var useAccordion = function useAccordion(sections, ref) {
|
|
|
227
228
|
focusFirstSection: function focusFirstSection() {
|
|
228
229
|
var _firstSection$current;
|
|
229
230
|
var firstSection = firstItem(buttonRefs);
|
|
230
|
-
console.log(refs);
|
|
231
231
|
firstSection === null || firstSection === void 0 || (_firstSection$current = firstSection.current) === null || _firstSection$current === void 0 || _firstSection$current.focus();
|
|
232
232
|
},
|
|
233
233
|
focusPreviousSection: function focusPreviousSection(activeElement) {
|
package/dist/index.esm.js
CHANGED
|
@@ -170,7 +170,9 @@ var AccordionSection = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
170
170
|
"aria-labelledby": buttonId
|
|
171
171
|
}, panelAttributes), {}, {
|
|
172
172
|
children: children
|
|
173
|
-
})) : jsx("div", _objectSpread$1k(_objectSpread$1k({
|
|
173
|
+
})) : jsx("div", _objectSpread$1k(_objectSpread$1k({
|
|
174
|
+
id: panelId
|
|
175
|
+
}, panelAttributes), {}, {
|
|
174
176
|
children: children
|
|
175
177
|
}))]
|
|
176
178
|
}));
|
|
@@ -199,7 +201,6 @@ var Accordion = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
199
201
|
});
|
|
200
202
|
Accordion.displayName = 'Accordion';
|
|
201
203
|
var useAccordion = function useAccordion(sections, ref) {
|
|
202
|
-
console.log('useAccordion');
|
|
203
204
|
// const sections: AccordionSectionProviderProps[] = [];
|
|
204
205
|
var refs = sections.map(function (_) {
|
|
205
206
|
return useRef(null);
|
|
@@ -225,7 +226,6 @@ var useAccordion = function useAccordion(sections, ref) {
|
|
|
225
226
|
focusFirstSection: function focusFirstSection() {
|
|
226
227
|
var _firstSection$current;
|
|
227
228
|
var firstSection = firstItem(buttonRefs);
|
|
228
|
-
console.log(refs);
|
|
229
229
|
firstSection === null || firstSection === void 0 || (_firstSection$current = firstSection.current) === null || _firstSection$current === void 0 || _firstSection$current.focus();
|
|
230
230
|
},
|
|
231
231
|
focusPreviousSection: function focusPreviousSection(activeElement) {
|
package/package.json
CHANGED