terracotta 1.0.2 → 1.0.3
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/cjs/development/index.cjs +6 -10
- package/dist/cjs/development/index.cjs.map +2 -2
- package/dist/cjs/production/index.cjs +1 -1
- package/dist/esm/development/index.mjs +6 -10
- package/dist/esm/development/index.mjs.map +2 -2
- package/dist/esm/production/index.mjs +1 -1
- package/dist/types/components/tabs/TabGroup.d.ts.map +1 -1
- package/dist/types/components/tabs/TabList.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/components/tabs/TabGroup.ts +1 -3
- package/src/components/tabs/TabList.ts +5 -9
|
@@ -5825,7 +5825,6 @@ function TabGroup(props) {
|
|
|
5825
5825
|
return (0, import_solid_js106.createMemo)(() => {
|
|
5826
5826
|
const ownerID = (0, import_solid_js106.createUniqueId)();
|
|
5827
5827
|
const state = createSingleSelectState(props);
|
|
5828
|
-
let id = 0;
|
|
5829
5828
|
const ids = /* @__PURE__ */ new Map();
|
|
5830
5829
|
return (0, import_solid_js106.createComponent)(TabGroupContext.Provider, {
|
|
5831
5830
|
value: {
|
|
@@ -5835,9 +5834,8 @@ function TabGroup(props) {
|
|
|
5835
5834
|
getId(kind, value) {
|
|
5836
5835
|
let currentID = ids.get(value);
|
|
5837
5836
|
if (!currentID) {
|
|
5838
|
-
currentID =
|
|
5837
|
+
currentID = ids.size;
|
|
5839
5838
|
ids.set(value, currentID);
|
|
5840
|
-
id += 1;
|
|
5841
5839
|
}
|
|
5842
5840
|
return `${ownerID}__${kind}-${currentID}`;
|
|
5843
5841
|
}
|
|
@@ -5944,13 +5942,11 @@ function TabList(props) {
|
|
|
5944
5942
|
}
|
|
5945
5943
|
}
|
|
5946
5944
|
});
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
} else {
|
|
5953
|
-
controller.setFirstChecked();
|
|
5945
|
+
use_event_listener_default(current, "focusin", (e) => {
|
|
5946
|
+
if (e.target && e.target !== current) {
|
|
5947
|
+
controller.setCurrent(e.target);
|
|
5948
|
+
}
|
|
5949
|
+
});
|
|
5954
5950
|
}
|
|
5955
5951
|
});
|
|
5956
5952
|
return (0, import_solid_js107.createComponent)(TabListContext.Provider, {
|