td-stylekit 28.44.1 → 29.0.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/CHANGELOG.md +48 -0
- package/dist/es/DataGrid/renderers.d.ts +0 -4
- package/dist/es/DataGrid/renderers.js +55 -120
- package/dist/es/DateControl/elements.d.ts +21 -21
- package/dist/es/FormField/index.d.ts +0 -2
- package/dist/es/FormField/index.js +0 -8
- package/dist/es/Icon/types.js +6 -2
- package/dist/es/TimeControl/elements.d.ts +21 -21
- package/dist/es/index.d.ts +1 -11
- package/dist/es/index.js +0 -70
- package/package.json +13 -13
- package/dist/es/CheckboxField/CheckboxField.d.ts +0 -13
- package/dist/es/CheckboxField/CheckboxField.js +0 -73
- package/dist/es/CheckboxField/index.d.ts +0 -3
- package/dist/es/CheckboxField/index.js +0 -15
- package/dist/es/DateField/DateField.d.ts +0 -74
- package/dist/es/DateField/DateField.js +0 -297
- package/dist/es/DateField/elements.d.ts +0 -11
- package/dist/es/DateField/elements.js +0 -39
- package/dist/es/DateField/index.d.ts +0 -3
- package/dist/es/DateField/index.js +0 -15
- package/dist/es/DetailPanel/DetailPanel.d.ts +0 -16
- package/dist/es/DetailPanel/DetailPanel.js +0 -62
- package/dist/es/DetailPanel/elements.d.ts +0 -35
- package/dist/es/DetailPanel/elements.js +0 -225
- package/dist/es/DetailPanel/index.d.ts +0 -3
- package/dist/es/DetailPanel/index.js +0 -15
- package/dist/es/FormField/FormField.d.ts +0 -38
- package/dist/es/FormField/FormField.js +0 -204
- package/dist/es/FormField/elements.d.ts +0 -17
- package/dist/es/FormField/elements.js +0 -75
- package/dist/es/InfiniteList/InfiniteList.d.ts +0 -29
- package/dist/es/InfiniteList/InfiniteList.js +0 -114
- package/dist/es/InfiniteList/index.d.ts +0 -2
- package/dist/es/InfiniteList/index.js +0 -15
- package/dist/es/NavigationBar/LogoItem.d.ts +0 -6
- package/dist/es/NavigationBar/LogoItem.js +0 -42
- package/dist/es/NavigationBar/NavigationBar.d.ts +0 -33
- package/dist/es/NavigationBar/NavigationBar.js +0 -99
- package/dist/es/NavigationBar/NavigationItem.d.ts +0 -33
- package/dist/es/NavigationBar/NavigationItem.js +0 -183
- package/dist/es/NavigationBar/index.d.ts +0 -2
- package/dist/es/NavigationBar/index.js +0 -15
- package/dist/es/NavigationPopover/NavigationPopover.d.ts +0 -24
- package/dist/es/NavigationPopover/NavigationPopover.js +0 -116
- package/dist/es/NavigationPopover/index.d.ts +0 -2
- package/dist/es/NavigationPopover/index.js +0 -15
- package/dist/es/Overlay/Overlay.d.ts +0 -15
- package/dist/es/Overlay/Overlay.js +0 -66
- package/dist/es/Overlay/OverlayBody.d.ts +0 -9
- package/dist/es/Overlay/OverlayBody.js +0 -32
- package/dist/es/Overlay/OverlayHeader.d.ts +0 -37
- package/dist/es/Overlay/OverlayHeader.js +0 -135
- package/dist/es/Overlay/index.d.ts +0 -4
- package/dist/es/Overlay/index.js +0 -29
- package/dist/es/StatCard/StatCard.d.ts +0 -26
- package/dist/es/StatCard/StatCard.js +0 -118
- package/dist/es/StatCard/elements.d.ts +0 -48
- package/dist/es/StatCard/elements.js +0 -156
- package/dist/es/StatCard/index.d.ts +0 -3
- package/dist/es/StatCard/index.js +0 -15
- package/dist/es/TimeField/TimeField.d.ts +0 -15
- package/dist/es/TimeField/TimeField.js +0 -42
- package/dist/es/TimeField/index.d.ts +0 -3
- package/dist/es/TimeField/index.js +0 -15
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { FormFieldProps } from '../FormField';
|
|
3
|
-
export declare const FORMAT_ERROR_MESSAGE = "Format HH:MM AM";
|
|
4
|
-
export declare const FORMAT_VALIDATION_REGEX: RegExp;
|
|
5
|
-
export type TimeFieldProps = Omit<FormFieldProps<'text'>, 'type' | 'value'> & {
|
|
6
|
-
value: string;
|
|
7
|
-
};
|
|
8
|
-
export declare const TimeField: ({ error, name, value, ...props }: TimeFieldProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
-
declare const _default: import("react").FC<Pick<Omit<FormFieldProps<"text">, "value" | "type"> & {
|
|
10
|
-
value: string;
|
|
11
|
-
}, "value" | "form" | "label" | "slot" | "style" | "title" | "pattern" | "className" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "disabled" | "readOnly" | "checked" | "error" | "required" | "invalid" | "height" | "width" | "wrap" | "inline" | "name" | "data-instrumentation" | "getRef" | "rows" | "size" | "max" | "min" | "crossOrigin" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "step" | "data-gs-c" | "list" | "tooltip" | "multiple" | "accept" | "alt" | "autoComplete" | "capture" | "enterKeyHint" | "maxLength" | "minLength" | "src" | "showAddOnInTooltip" | "showFullError" | "showFullHint" | "truncateErrors" | "hint" | "hintNode" | "hideAddOn" | "variant" | "cols" | "dirName" | "inputRef" | "isClearable" | "addOnClassName" | "tooltipClassName" | "valueCanBeNull"> & {
|
|
12
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
13
|
-
}>;
|
|
14
|
-
export default _default;
|
|
15
|
-
//# sourceMappingURL=TimeField.d.ts.map
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports["default"] = exports.TimeField = exports.FORMAT_VALIDATION_REGEX = exports.FORMAT_ERROR_MESSAGE = void 0;
|
|
8
|
-
var _react = require("@emotion/react");
|
|
9
|
-
var _FormField = _interopRequireDefault(require("../FormField"));
|
|
10
|
-
var _utils = require("../utils/");
|
|
11
|
-
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
12
|
-
var _excluded = ["error", "name", "value"];
|
|
13
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
14
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
17
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
19
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
20
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
21
|
-
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
22
|
-
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
23
|
-
var FORMAT_ERROR_MESSAGE = exports.FORMAT_ERROR_MESSAGE = 'Format HH:MM AM';
|
|
24
|
-
var FORMAT_VALIDATION_REGEX = exports.FORMAT_VALIDATION_REGEX = /^(0{0,1}[1-9]|1[0-2]):(0[0-9]|[1-5][0-9]) (AM|PM)$/i;
|
|
25
|
-
var TimeField = exports.TimeField = function TimeField(_ref) {
|
|
26
|
-
var error = _ref.error,
|
|
27
|
-
name = _ref.name,
|
|
28
|
-
value = _ref.value,
|
|
29
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
30
|
-
var errorList = error ? (0, _utils.getErrorList)(error) : [];
|
|
31
|
-
var validationError = !FORMAT_VALIDATION_REGEX.test(value) ? [FORMAT_ERROR_MESSAGE] : [];
|
|
32
|
-
return (0, _jsxRuntime.jsx)(_FormField["default"], _objectSpread(_objectSpread({
|
|
33
|
-
"data-gs-c": gsC(name, value),
|
|
34
|
-
"data-gs": gs("src", "timefield", "timefield.tsx", "form-field")
|
|
35
|
-
}, props), {}, {
|
|
36
|
-
error: validationError.concat(errorList),
|
|
37
|
-
name: name,
|
|
38
|
-
value: value,
|
|
39
|
-
type: "text"
|
|
40
|
-
}));
|
|
41
|
-
};
|
|
42
|
-
var _default = exports["default"] = (0, _react.withTheme)(TimeField);
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "default", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _TimeField["default"];
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
var _TimeField = _interopRequireDefault(require("./TimeField"));
|
|
13
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
14
|
-
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
15
|
-
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|