@hexure/ui 1.13.34 → 1.13.36

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/esm/index.js CHANGED
@@ -1181,6 +1181,12 @@ onChange = () => { }, style, }) => {
1181
1181
  setSelectedYear(d.year().toString());
1182
1182
  setDDate(d);
1183
1183
  }
1184
+ else {
1185
+ setSelectedDay('');
1186
+ setSelectedMonth('');
1187
+ setSelectedYear('');
1188
+ setDDate(dayjs(date || undefined));
1189
+ }
1184
1190
  }, [date]);
1185
1191
  useEffect(() => {
1186
1192
  if (selectedDay && selectedMonth && selectedYear) {
@@ -1375,10 +1381,10 @@ const Field = (_a) => {
1375
1381
  const id = generateUniqueId('field');
1376
1382
  return (React.createElement(Wrapper$9, Object.assign({ "$customStyle": style }, accessibleProps, { id: `${id}-wrapper` }),
1377
1383
  React.createElement(LabelRow, { id: `${id}-label-row` },
1378
- React.createElement(Label$2, { htmlFor: htmlFor, id: `${id}-label` },
1384
+ label || required || tooltip ? (React.createElement(Label$2, { htmlFor: htmlFor, id: `${id}-label` },
1379
1385
  label,
1380
1386
  required ? React.createElement(Required, { id: `${id}-required` }, "*") : null,
1381
- tooltip ? React.createElement(Tooltip, Object.assign({}, tooltip)) : null),
1387
+ tooltip ? React.createElement(Tooltip, Object.assign({}, tooltip)) : null)) : null,
1382
1388
  action ? (React.createElement(Action, { id: action.id || `${id}-action`, onClick: action.onClick }, action.label)) : null),
1383
1389
  description ? React.createElement(Description, { id: `${id}-description` }, description) : null,
1384
1390
  React.createElement("div", { id: `${id}-children` }, children),