@gpa-gemstone/react-forms 1.1.96 → 1.1.98

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.
@@ -31,7 +31,6 @@ function Calender(props) {
31
31
  var _f = React.useState((_b = (_a = props.DateTime) === null || _a === void 0 ? void 0 : _a.month()) !== null && _b !== void 0 ? _b : 0), month = _f[0], setMonth = _f[1];
32
32
  var _g = React.useState((_d = (_c = props.DateTime) === null || _c === void 0 ? void 0 : _c.year()) !== null && _d !== void 0 ? _d : moment.utc().year()), year = _g[0], setYear = _g[1];
33
33
  var _h = React.useState('month'), mode = _h[0], setMode = _h[1];
34
- var _j = React.useState('None'), hover = _j[0], setHover = _j[1];
35
34
  React.useEffect(function () {
36
35
  var _a, _b, _c, _d, _e, _f, _g, _h;
37
36
  setMonth(isNaN((_b = (_a = props.DateTime) === null || _a === void 0 ? void 0 : _a.month()) !== null && _b !== void 0 ? _b : NaN) ? 0 : ((_d = (_c = props.DateTime) === null || _c === void 0 ? void 0 : _c.month()) !== null && _d !== void 0 ? _d : 0));
@@ -94,19 +93,19 @@ function Calender(props) {
94
93
  }
95
94
  var headerWidth = (mode === 'month' ? 5 : 2);
96
95
  return (React.createElement("div", { style: { background: '#f0f0f0', opacity: 1 } },
97
- React.createElement("table", { style: { textAlign: 'center' } },
96
+ React.createElement("table", { style: { textAlign: 'center', width: '100%' } },
98
97
  React.createElement("thead", { style: { verticalAlign: 'middle', fontWeight: 'bold' } },
99
98
  React.createElement("tr", { style: { height: 20, lineHeight: '20px' } },
100
- React.createElement("th", { style: { width: 20, padding: 5, cursor: 'pointer' }, onMouseEnter: function () { return setHover('Previous'); }, onMouseLeave: function () { return setHover('None'); }, onClick: toPrev }, '<'),
99
+ React.createElement("th", { style: { width: 20, padding: 5, cursor: 'pointer' }, onClick: toPrev }, '<'),
101
100
  React.createElement("th", { style: { width: 145, padding: 5, cursor: 'pointer' }, colSpan: headerWidth, onClick: function (evt) {
102
101
  evt.stopPropagation();
103
102
  if (mode === 'month')
104
103
  setMode('year');
105
- }, onMouseEnter: function () { return setHover('Center'); }, onMouseLeave: function () { return setHover('None'); } },
104
+ } },
106
105
  mode === 'month' ? moment([year, month, 1]).format('MMMM YYYY') : '',
107
106
  mode === 'year' ? year : '',
108
107
  mode === 'dozenYear' ? "".concat(year - 6, "-").concat(year + 5) : ''),
109
- React.createElement("th", { style: { width: 20, padding: 5, cursor: 'pointer' }, onClick: toNext, onMouseEnter: function () { return setHover('Next'); }, onMouseLeave: function () { return setHover('None'); } }, '>')),
108
+ React.createElement("th", { style: { width: 20, padding: 5, cursor: 'pointer' }, onClick: toNext }, '>')),
110
109
  mode === 'month' ? React.createElement("tr", { style: { height: 20, lineHeight: '20px' } },
111
110
  React.createElement("td", { style: { width: 20, padding: 5 } }, "SU"),
112
111
  React.createElement("td", { style: { width: 20, padding: 5 } }, "MO"),
@@ -0,0 +1,18 @@
1
+ import * as moment from 'moment';
2
+ import { Gemstone } from '@gpa-gemstone/application-typings';
3
+ export type TimeUnit = ('datetime-local' | 'date' | 'time');
4
+ export interface IProps<T> extends Gemstone.TSX.Interfaces.IBaseFormProps<T> {
5
+ Valid: (field: keyof T) => boolean;
6
+ Feedback?: string;
7
+ Format?: string;
8
+ Type?: TimeUnit;
9
+ AllowEmpty?: boolean;
10
+ Accuracy?: Gemstone.TSX.Types.Accuracy;
11
+ MinDate?: moment.Moment;
12
+ }
13
+ /**
14
+ * Component that allows a user to pick a date or datetime.
15
+ */
16
+ export default function DateTimePickerBase<T>(props: IProps<T>): JSX.Element;
17
+ export declare function getBoxFormat(type?: TimeUnit, accuracy?: Gemstone.TSX.Types.Accuracy): "YYYY-MM-DD" | "HH:mm" | "HH:mm:ss" | "HH:mm:ss.SSS" | "YYYY-MM-DD[T]HH:mm" | "YYYY-MM-DD[T]HH:mm:ss" | "YYYY-MM-DD[T]HH:mm:ss.SSS";
18
+ export declare const getInputWidth: (inputRef: HTMLInputElement, currentValue: string, currentStep: string) => number;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  // ******************************************************************************************************
3
- // DatePicker.tsx - Gbtc
3
+ // DateTimePickerBase.tsx - Gbtc
4
4
  //
5
5
  // Copyright © 2020, Grid Protection Alliance. All Rights Reserved.
6
6
  //
@@ -17,7 +17,7 @@
17
17
  //
18
18
  // Code Modification History:
19
19
  // ----------------------------------------------------------------------------------------------------
20
- // 02/05/2020 - Billy Ernest
20
+ // 07/02/2025 - Preston Crawford
21
21
  // Generated original version of source code.
22
22
  //
23
23
  // ******************************************************************************************************
@@ -33,36 +33,38 @@ var __assign = (this && this.__assign) || function () {
33
33
  return __assign.apply(this, arguments);
34
34
  };
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.default = DateTimePicker;
36
+ exports.getInputWidth = void 0;
37
+ exports.default = DateTimePickerBase;
38
+ exports.getBoxFormat = getBoxFormat;
37
39
  var React = require("react");
38
40
  var moment = require("moment");
39
- var DateTimePopup_1 = require("./DateTimeUI/DateTimePopup");
41
+ var DateTimePopup_1 = require("./DateTimePopup");
40
42
  var helper_functions_1 = require("@gpa-gemstone/helper-functions");
41
- var ToolTip_1 = require("./ToolTip");
43
+ var ToolTip_1 = require("../ToolTip");
42
44
  var gpa_symbols_1 = require("@gpa-gemstone/gpa-symbols");
43
45
  /**
44
46
  * Component that allows a user to pick a date or datetime.
45
47
  */
46
- function DateTimePicker(props) {
48
+ function DateTimePickerBase(props) {
47
49
  var inputRef = React.useRef(null);
50
+ var popupRef = React.useRef(null);
51
+ var divRef = React.useRef(null);
48
52
  var width = (0, helper_functions_1.useGetContainerPosition)(inputRef).width;
49
53
  var _a = React.useState(false), isTextOverflowing = _a[0], setIsTextOverflowing = _a[1];
50
54
  var _b = React.useState(false), isInputHovered = _b[0], setIsInputHovered = _b[1];
51
55
  var overflowGUID = React.useState((0, helper_functions_1.CreateGuid)())[0];
56
+ var _c = React.useState(false), showOverlay = _c[0], setShowOverlay = _c[1];
52
57
  // Formats for displaying dates in the input box and storing in the record.
53
58
  var boxFormat = getBoxFormat(props.Type, props.Accuracy);
54
59
  var recordFormat = props.Format !== undefined ? props.Format : "YYYY-MM-DD" + (props.Type === undefined || props.Type === 'date' ? "" : "[T]HH:mm:ss.SSS[Z]");
55
60
  // Parse the date from the record.
56
61
  var parse = function (r) { return moment(props.Record[props.Field], recordFormat); };
57
- // State and ref declarations.
58
- var divRef = React.useRef(null);
59
62
  var helpGuid = React.useState((0, helper_functions_1.CreateGuid)())[0];
60
- var _c = React.useState(false), showHelp = _c[0], setShowHelp = _c[1];
63
+ var _d = React.useState(false), showHelp = _d[0], setShowHelp = _d[1];
61
64
  // Adds a buffer between the outside props and what the box is reading to prevent box overwriting every render with a keystroke
62
- var _d = React.useState(parse(props.Record).format(boxFormat)), boxRecord = _d[0], setBoxRecord = _d[1];
63
- var _e = React.useState(parse(props.Record)), pickerRecord = _e[0], setPickerRecord = _e[1];
64
- var _f = React.useState(""), feedbackMessage = _f[0], setFeedbackMessage = _f[1];
65
- var _g = React.useState(false), showOverlay = _g[0], setShowOverlay = _g[1];
65
+ var _e = React.useState(parse(props.Record).format(boxFormat)), boxRecord = _e[0], setBoxRecord = _e[1];
66
+ var _f = React.useState(parse(props.Record)), pickerRecord = _f[0], setPickerRecord = _f[1];
67
+ var _g = React.useState(""), feedbackMessage = _g[0], setFeedbackMessage = _g[1];
66
68
  var _h = React.useState(0), top = _h[0], setTop = _h[1];
67
69
  var _j = React.useState(0), left = _j[0], setLeft = _j[1];
68
70
  var allowNull = React.useMemo(function () { var _a; return (_a = props.AllowEmpty) !== null && _a !== void 0 ? _a : false; }, [props.AllowEmpty]);
@@ -121,16 +123,18 @@ function DateTimePicker(props) {
121
123
  }
122
124
  // Handle clicks outside the component.
123
125
  function onWindowClick(evt) {
124
- if (evt.target.closest(".gpa-gemstone-datetime") == null) {
125
- setShowOverlay(false);
126
- if (props.Record[props.Field] !== null) {
127
- setPickerAndRecord(parse(props.Record));
128
- setBoxRecord(parse(props.Record).format(boxFormat));
129
- }
130
- else {
131
- setPickerAndRecord(undefined);
132
- setBoxRecord('');
133
- }
126
+ var _a, _b;
127
+ // if the click is inside the input-container or inside the popup, bail
128
+ if (divRef.current == null || popupRef.current == null || ((_a = divRef.current) === null || _a === void 0 ? void 0 : _a.contains(evt.target)) || ((_b = popupRef.current) === null || _b === void 0 ? void 0 : _b.contains(evt.target)))
129
+ return;
130
+ setShowOverlay(false);
131
+ if (props.Record[props.Field] !== null) {
132
+ setPickerAndRecord(parse(props.Record));
133
+ setBoxRecord(parse(props.Record).format(boxFormat));
134
+ }
135
+ else {
136
+ setPickerAndRecord(undefined);
137
+ setBoxRecord('');
134
138
  }
135
139
  }
136
140
  function getFeedbackMessage() {
@@ -193,7 +197,7 @@ function DateTimePicker(props) {
193
197
  React.useEffect(function () {
194
198
  if (inputRef.current == null)
195
199
  return;
196
- var inputWidth = getInputWidth(inputRef.current, boxRecord, step);
200
+ var inputWidth = (0, exports.getInputWidth)(inputRef.current, boxRecord, step);
197
201
  setIsTextOverflowing(inputWidth > width);
198
202
  }, [width, boxRecord, step]);
199
203
  return (React.createElement("div", { className: "form-group", ref: divRef },
@@ -208,14 +212,14 @@ function DateTimePicker(props) {
208
212
  : null,
209
213
  React.createElement("input", { className: "gpa-gemstone-datetime form-control ".concat(IsValid() ? '' : 'is-invalid'), type: props.Type === undefined ? 'date' : props.Type, onChange: function (evt) {
210
214
  valueChange(evt.target.value);
211
- }, onFocus: function () { setShowOverlay(true); }, value: boxRecord, disabled: props.Disabled === undefined ? false : props.Disabled, onClick: function (e) { e.preventDefault(); }, step: step, ref: inputRef, "data-tooltip": overflowGUID, onMouseOver: function () { return setIsInputHovered(true); }, onMouseOut: function () { return setIsInputHovered(false); } }),
215
+ }, onFocus: function () { return setShowOverlay(true); }, value: boxRecord, disabled: props.Disabled === undefined ? false : props.Disabled, onClick: function (e) { return e.preventDefault(); }, step: step, ref: inputRef, "data-tooltip": overflowGUID, onMouseOver: function () { return setIsInputHovered(true); }, onMouseOut: function () { return setIsInputHovered(false); } }),
212
216
  React.createElement("div", { className: "invalid-feedback" }, getFeedbackMessage()),
213
217
  React.createElement(ToolTip_1.default, { Show: isTextOverflowing && isInputHovered, Target: overflowGUID }, props.Format != null ? moment(boxRecord).format(props.Format) : boxRecord),
214
- React.createElement(DateTimePopup_1.default, { Setter: function (d) {
218
+ React.createElement(DateTimePopup_1.default, { ref: popupRef, Setter: function (d) {
215
219
  setPickerAndRecord(d);
216
220
  if (props.Type === 'date')
217
221
  setShowOverlay(false);
218
- }, Show: showOverlay, DateTime: pickerRecord, Valid: props.Valid(props.Field), Top: top, Center: left, Type: props.Type === undefined ? 'date' : props.Type, Accuracy: props.Accuracy })));
222
+ }, Show: showOverlay, DateTime: pickerRecord, Top: top, Center: left, Type: props.Type === undefined ? 'date' : props.Type, Accuracy: props.Accuracy })));
219
223
  }
220
224
  function getBoxFormat(type, accuracy) {
221
225
  var dateTime = type !== null && type !== void 0 ? type : 'date';
@@ -267,3 +271,4 @@ var getInputWidth = function (inputRef, currentValue, currentStep) {
267
271
  document.body.removeChild(dummyInput);
268
272
  return width;
269
273
  };
274
+ exports.getInputWidth = getInputWidth;
@@ -1,16 +1,15 @@
1
+ import * as React from 'react';
1
2
  import * as moment from 'moment';
2
- import { TimeUnit } from '../DatePicker';
3
3
  import { Gemstone } from '@gpa-gemstone/application-typings';
4
+ import { TimeUnit } from './DateTimePicker';
4
5
  interface IProps {
5
6
  DateTime: moment.Moment | undefined;
6
7
  Setter: (record: moment.Moment) => void;
7
- Valid: boolean;
8
- Feedback?: string;
9
8
  Type: TimeUnit;
10
9
  Show: boolean;
11
10
  Top: number;
12
11
  Center: number;
13
12
  Accuracy?: Gemstone.TSX.Types.Accuracy;
14
13
  }
15
- export default function DateTimePopup(props: IProps): JSX.Element | null;
16
- export {};
14
+ declare const _default: React.ForwardRefExoticComponent<IProps & React.RefAttributes<HTMLDivElement | null>>;
15
+ export default _default;
@@ -26,34 +26,33 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
26
26
  return cooked;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.default = DateTimePopup;
30
29
  var React = require("react");
31
30
  var react_portal_1 = require("react-portal");
32
31
  var styled_components_1 = require("styled-components");
33
32
  var Calender_1 = require("./Calender");
34
33
  var Clock_1 = require("./Clock");
34
+ var helper_functions_1 = require("@gpa-gemstone/helper-functions");
35
+ //TODO: this eventually should be moved into a css class
35
36
  var WrapperDiv = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n & {\n border-radius: 3px;\n display: inline-block;\n font-size: 13px;\n padding: 8px 21px;\n position: fixed;\n transition: opacity 0.3s ease-out;\n z-index: 9999;\n opacity: 0.9;\n background: #222;\n top: ", ";\n left: ", ";\n border: 1px solid transparent;\n }\n &::before {\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n border-bottom: 8px solid #222;\n left: ", ";\n top: -6px;\n margin-left: -8px;\n content: \"\";\n width: 0px;\n height: 0px;\n position: absolute\n }"], ["\n & {\n border-radius: 3px;\n display: inline-block;\n font-size: 13px;\n padding: 8px 21px;\n position: fixed;\n transition: opacity 0.3s ease-out;\n z-index: 9999;\n opacity: 0.9;\n background: #222;\n top: ", ";\n left: ", ";\n border: 1px solid transparent;\n }\n &::before {\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n border-bottom: 8px solid #222;\n left: ", ";\n top: -6px;\n margin-left: -8px;\n content: \"\";\n width: 0px;\n height: 0px;\n position: absolute\n }"])), function (props) { return "".concat(props.Top, "px"); }, function (props) { return "".concat(props.Left, "px"); }, function (props) { return "".concat(props.Indicator, "%"); });
36
- function DateTimePopup(props) {
37
+ //This is merely used to provide a class name for the popup for indentification purposes
38
+ var DateTimePopupClass = "gpa-gemstone-datetime-popup";
39
+ function DateTimePopup(props, ref) {
37
40
  var divRef = React.useRef(null);
38
41
  var _a = React.useState(props.Type !== 'date'), showTime = _a[0], setShowTime = _a[1];
39
42
  var _b = React.useState(props.Type !== 'time'), showDate = _b[0], setShowDate = _b[1];
40
- var _c = React.useState(0), width = _c[0], setWidth = _c[1];
41
- var _d = React.useState(0), height = _d[0], setHeight = _d[1];
42
- React.useLayoutEffect(function () {
43
- var _a, _b, _c, _d;
44
- setWidth((_b = (_a = divRef.current) === null || _a === void 0 ? void 0 : _a.offsetWidth) !== null && _b !== void 0 ? _b : width);
45
- setHeight((_d = (_c = divRef.current) === null || _c === void 0 ? void 0 : _c.offsetHeight) !== null && _d !== void 0 ? _d : height);
46
- });
43
+ var refToUse = ref !== null && ref !== void 0 ? ref : divRef;
44
+ var width = (0, helper_functions_1.useGetContainerPosition)(refToUse).width;
45
+ var left = Math.max(props.Center - 0.5 * width, 0);
47
46
  React.useEffect(function () {
48
47
  setShowTime(props.Type !== 'date');
49
48
  setShowDate(props.Type !== 'time');
50
49
  }, [props.Type]);
51
50
  if (!props.Show)
52
51
  return null;
53
- var left = Math.max(props.Center - 0.5 * width, 0);
54
52
  return (React.createElement(react_portal_1.Portal, null,
55
- React.createElement(WrapperDiv, { Top: props.Top, Left: left, Indicator: 50, ref: divRef, className: 'gpa-gemstone-datetime' },
53
+ React.createElement(WrapperDiv, { Top: props.Top, Left: left, Indicator: 50, ref: refToUse, className: DateTimePopupClass },
56
54
  showDate ? React.createElement(Calender_1.default, { DateTime: props.DateTime, Setter: props.Setter }) : null,
57
55
  showTime ? React.createElement(Clock_1.default, { DateTime: props.DateTime, Setter: props.Setter, Accuracy: props.Accuracy }) : null)));
58
56
  }
57
+ exports.default = React.forwardRef(DateTimePopup);
59
58
  var templateObject_1;
package/lib/MultiInput.js CHANGED
@@ -70,15 +70,13 @@ function MultiInput(props) {
70
70
  var _a;
71
71
  return props.Setter(__assign(__assign({}, props.Record), (_a = {}, _a[props.Field] = [props.DefaultValue], _a)));
72
72
  } },
73
- " ",
74
- React.createElement(gpa_symbols_1.ReactIcons.CirclePlus, null),
75
- " ")),
73
+ React.createElement(gpa_symbols_1.ReactIcons.CirclePlus, null))),
76
74
  React.createElement(ToolTip_1.default, { Show: showHelp && props.Help != null, Target: guid, Class: "info", Position: "bottom" }, props.Help))
77
75
  : null,
78
76
  fieldArray.map(function (r, index) {
79
77
  var _a, _b;
80
- return (React.createElement("div", { className: 'row align-items-center', key: index },
81
- React.createElement("div", { className: 'col' },
78
+ return (React.createElement("div", { className: 'row', key: index },
79
+ React.createElement("div", { className: 'col-10' },
82
80
  React.createElement(Input_1.default, { Record: fieldArray, Field: index, Label: index === 0 ? props.Label : '', AllowNull: props.AllowNull, Type: props.Type, Help: index === 0 ? props.Help : undefined, Feedback: props.Feedback, Valid: function () { return props.Valid(props.Field); }, Style: props.Style, Disabled: props.Disabled, Setter: function (record) {
83
81
  var _a;
84
82
  var _b;
@@ -89,7 +87,7 @@ function MultiInput(props) {
89
87
  newArray[index] = record[index];
90
88
  props.Setter(__assign(__assign({}, props.Record), (_a = {}, _a[props.Field] = newArray, _a)));
91
89
  } })),
92
- React.createElement("div", { className: 'col-auto' },
90
+ React.createElement("div", { className: "col-".concat(index === __spreadArray([], fieldArray, true).length - 1 ? 1 : 2, " ").concat(index === 0 ? 'd-flex align-items-center' : '') },
93
91
  React.createElement("button", { className: 'btn', style: ((_a = props.Disabled) !== null && _a !== void 0 ? _a : false) ? { display: 'none' } : undefined, onClick: function () {
94
92
  var _a;
95
93
  var newRecords = __spreadArray([], fieldArray, true).filter(function (_, i) { return i !== index; });
@@ -97,7 +95,7 @@ function MultiInput(props) {
97
95
  } },
98
96
  React.createElement(gpa_symbols_1.ReactIcons.TrashCan, { Color: 'red' }))),
99
97
  index === __spreadArray([], fieldArray, true).length - 1 ?
100
- React.createElement("div", { className: 'col-auto' },
98
+ React.createElement("div", { className: "col-1 ".concat(index === 0 ? 'd-flex align-items-center' : '') },
101
99
  React.createElement("button", { className: 'btn', style: ((_b = props.Disabled) !== null && _b !== void 0 ? _b : false) ? { display: 'none' } : undefined, onClick: function () {
102
100
  var _a;
103
101
  var newRecords = __spreadArray(__spreadArray([], __spreadArray([], fieldArray, true), true), [props.DefaultValue], false);
@@ -29,11 +29,10 @@ interface IProps {
29
29
  */
30
30
  Help?: string | JSX.Element;
31
31
  /**
32
- * Tooltip style for the items
33
- * @type {'no-tip' | 'dark' | 'light'}
32
+ * Flag to show or hide the selected options tooltip
34
33
  * @optional
35
34
  */
36
- ItemTooltip?: 'no-tip' | 'dark' | 'light';
35
+ ShowToolTip?: boolean;
37
36
  }
38
37
  declare const MultiSelect: (props: IProps) => JSX.Element;
39
38
  export default MultiSelect;
@@ -105,7 +105,7 @@ var MultiSelect = function (props) {
105
105
  showHelpIcon ?
106
106
  React.createElement(ToolTip_1.default, { Show: showHelp, Target: helperGuid, Class: "info", Position: "bottom" }, props.Help)
107
107
  : null,
108
- ((_a = props.ItemTooltip) !== null && _a !== void 0 ? _a : 'no-tip') !== 'no-tip' ?
108
+ ((_a = props.ShowToolTip) !== null && _a !== void 0 ? _a : false) ?
109
109
  React.createElement(ToolTip_1.default, { Show: showItems, Target: guid, Position: "bottom" },
110
110
  React.createElement("p", null, "Selected Options:"),
111
111
  selectedOptions.slice(0, 10).map(function (opt, i) { return React.createElement("p", { key: i }, opt.Label); }),
package/lib/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import CheckBox from './CheckBox';
2
2
  import Input from './Input';
3
- import DatePicker from './DatePicker';
3
+ import DatePicker from './DateTimeUI/DateTimePicker';
4
4
  import Select from './Select';
5
5
  import TextArea from './TextArea';
6
6
  import DateRangePicker from './DateRangePicker';
package/lib/index.js CHANGED
@@ -27,8 +27,8 @@ var CheckBox_1 = require("./CheckBox");
27
27
  exports.CheckBox = CheckBox_1.default;
28
28
  var Input_1 = require("./Input");
29
29
  exports.Input = Input_1.default;
30
- var DatePicker_1 = require("./DatePicker");
31
- exports.DatePicker = DatePicker_1.default;
30
+ var DateTimePicker_1 = require("./DateTimeUI/DateTimePicker");
31
+ exports.DatePicker = DateTimePicker_1.default;
32
32
  var Select_1 = require("./Select");
33
33
  exports.Select = Select_1.default;
34
34
  var TextArea_1 = require("./TextArea");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpa-gemstone/react-forms",
3
- "version": "1.1.96",
3
+ "version": "1.1.98",
4
4
  "description": "React Form modules for gpa webapps",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "@gpa-gemstone/application-typings": "0.0.87",
49
- "@gpa-gemstone/gpa-symbols": "0.0.53",
49
+ "@gpa-gemstone/gpa-symbols": "0.0.54",
50
50
  "@gpa-gemstone/helper-functions": "0.0.45",
51
51
  "@types/react": "^17.0.14",
52
52
  "@types/styled-components": "^5.1.11",
@@ -1,17 +0,0 @@
1
- import * as moment from 'moment';
2
- import { Gemstone } from '@gpa-gemstone/application-typings';
3
- export type TimeUnit = ('datetime-local' | 'date' | 'time');
4
- interface IProps<T> extends Gemstone.TSX.Interfaces.IBaseFormProps<T> {
5
- Valid: (field: keyof T) => boolean;
6
- Feedback?: string;
7
- Format?: string;
8
- Type?: TimeUnit;
9
- AllowEmpty?: boolean;
10
- Accuracy?: Gemstone.TSX.Types.Accuracy;
11
- MinDate?: moment.Moment;
12
- }
13
- /**
14
- * Component that allows a user to pick a date or datetime.
15
- */
16
- export default function DateTimePicker<T>(props: IProps<T>): JSX.Element;
17
- export {};