@dloizides/ui-forms 1.30.1 → 1.31.0
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.d.mts +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -908,7 +908,6 @@ function useThemedInput(options = {}) {
|
|
|
908
908
|
colors.border,
|
|
909
909
|
colors.surface,
|
|
910
910
|
colors.surfaceElevated,
|
|
911
|
-
colors.background,
|
|
912
911
|
colors.textSecondary,
|
|
913
912
|
editable,
|
|
914
913
|
primary,
|
|
@@ -2166,7 +2165,8 @@ function WebDateInput({ fieldProps, context, webInputType }) {
|
|
|
2166
2165
|
);
|
|
2167
2166
|
}
|
|
2168
2167
|
var IS_WEB7 = Platform.OS === "web";
|
|
2169
|
-
function
|
|
2168
|
+
function TemporalInput({ fieldProps, context, webInputType }) {
|
|
2169
|
+
if (IS_WEB7) return /* @__PURE__ */ jsx(WebDateInput, { context, fieldProps, webInputType });
|
|
2170
2170
|
return /* @__PURE__ */ jsx(
|
|
2171
2171
|
ThemedTextInput,
|
|
2172
2172
|
{
|
|
@@ -2186,7 +2186,7 @@ function renderNativeInput(fieldProps, context) {
|
|
|
2186
2186
|
}
|
|
2187
2187
|
function TemporalField({ fieldProps, webInputType }) {
|
|
2188
2188
|
const { label, required, hint, error } = fieldProps;
|
|
2189
|
-
return /* @__PURE__ */ jsx(Field, { error, hint, label, required, children: (context) =>
|
|
2189
|
+
return /* @__PURE__ */ jsx(Field, { error, hint, label, required, children: (context) => /* @__PURE__ */ jsx(TemporalInput, { context, fieldProps, webInputType }) });
|
|
2190
2190
|
}
|
|
2191
2191
|
function DateField(props) {
|
|
2192
2192
|
return /* @__PURE__ */ jsx(TemporalField, { fieldProps: props, webInputType: "date" });
|
|
@@ -2230,6 +2230,9 @@ function DateRangeControl({
|
|
|
2230
2230
|
function DateTimeField(props) {
|
|
2231
2231
|
return /* @__PURE__ */ jsx(TemporalField, { fieldProps: props, webInputType: "datetime-local" });
|
|
2232
2232
|
}
|
|
2233
|
+
function DateInput({ fieldProps, context }) {
|
|
2234
|
+
return /* @__PURE__ */ jsx(TemporalInput, { context, fieldProps, webInputType: "date" });
|
|
2235
|
+
}
|
|
2233
2236
|
|
|
2234
2237
|
// src/groupSelection/groupSelection.ts
|
|
2235
2238
|
var NONE = 0;
|
|
@@ -2470,6 +2473,6 @@ var UploadWithLinkField = ({
|
|
|
2470
2473
|
] });
|
|
2471
2474
|
};
|
|
2472
2475
|
|
|
2473
|
-
export { AlignToControl, AnchoredMenu, ChipSelector, DEFAULT_MAX_RECENTS, DEFAULT_OPTIONAL_LABEL, DEFAULT_TYPEAHEAD_MAX_SUGGESTIONS, DEFAULT_TYPEAHEAD_MIN_CHARS, DateField, DateRangeControl, DateTimeField, Field, FormActions, FormCell, FormCheckbox, FormField, FormGrid, FormSection, FormStack, FormStatusLine, FormSwitch, INLINE_FIELD_ROW_MIN_WIDTH, InlineFieldRow, RESPONSIVE_FORM_DEFAULT_BREAKPOINT, ResponsiveFormLayout, SelectControl, SelectField, StepperNav, StepperTabs, ThemedTextInput, TypeaheadControl, UploadWithLinkField, controlStyles, groupAriaChecked, inlineFieldRowLayout, isUnmatched, isWideFormLayout, nextHighlight, resolveGroupSelection, resolveStepNeighbours, suggestOptions, toggleGroupSelection, useFocusFirstInvalid, useKeepInView, useRecentValues, useThemedInput };
|
|
2476
|
+
export { AlignToControl, AnchoredMenu, ChipSelector, DEFAULT_MAX_RECENTS, DEFAULT_OPTIONAL_LABEL, DEFAULT_TYPEAHEAD_MAX_SUGGESTIONS, DEFAULT_TYPEAHEAD_MIN_CHARS, DateField, DateInput, DateRangeControl, DateTimeField, Field, FormActions, FormCell, FormCheckbox, FormField, FormGrid, FormSection, FormStack, FormStatusLine, FormSwitch, INLINE_FIELD_ROW_MIN_WIDTH, InlineFieldRow, RESPONSIVE_FORM_DEFAULT_BREAKPOINT, ResponsiveFormLayout, SelectControl, SelectField, StepperNav, StepperTabs, ThemedTextInput, TypeaheadControl, UploadWithLinkField, controlStyles, groupAriaChecked, inlineFieldRowLayout, isUnmatched, isWideFormLayout, nextHighlight, resolveGroupSelection, resolveStepNeighbours, suggestOptions, toggleGroupSelection, useFocusFirstInvalid, useKeepInView, useRecentValues, useThemedInput };
|
|
2474
2477
|
//# sourceMappingURL=index.mjs.map
|
|
2475
2478
|
//# sourceMappingURL=index.mjs.map
|