@fluid-app/ui-primitives 0.1.6 → 0.1.7
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/index.cjs +7 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +176 -182
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +176 -182
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +7 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -373,7 +373,7 @@ function Badge({ className, variant = "default", asChild = false, ...props }) {
|
|
|
373
373
|
}
|
|
374
374
|
//#endregion
|
|
375
375
|
//#region src/components/Calendar.tsx
|
|
376
|
-
|
|
376
|
+
const Calendar = Object.assign(function CalendarComponent({ className, classNames, showOutsideDays = true, ...props }) {
|
|
377
377
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_day_picker.DayPicker, {
|
|
378
378
|
showOutsideDays,
|
|
379
379
|
className: cn("p-3", className),
|
|
@@ -413,8 +413,7 @@ function Calendar({ className, classNames, showOutsideDays = true, ...props }) {
|
|
|
413
413
|
},
|
|
414
414
|
...props
|
|
415
415
|
});
|
|
416
|
-
}
|
|
417
|
-
Calendar.displayName = "Calendar";
|
|
416
|
+
}, { displayName: "Calendar" });
|
|
418
417
|
//#endregion
|
|
419
418
|
//#region src/components/Card.tsx
|
|
420
419
|
function Card({ className, ...props }) {
|
|
@@ -944,7 +943,11 @@ const useFormField = () => {
|
|
|
944
943
|
formItemId: `${id}-form-item`,
|
|
945
944
|
formDescriptionId: `${id}-form-item-description`,
|
|
946
945
|
formMessageId: `${id}-form-item-message`,
|
|
947
|
-
|
|
946
|
+
invalid: fieldState.invalid,
|
|
947
|
+
isDirty: fieldState.isDirty,
|
|
948
|
+
isTouched: fieldState.isTouched,
|
|
949
|
+
isValidating: fieldState.isValidating,
|
|
950
|
+
error: fieldState.error
|
|
948
951
|
};
|
|
949
952
|
};
|
|
950
953
|
const FormItemContext = react.createContext({});
|