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