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