td-stylekit 28.40.4 → 28.41.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 +14 -0
- package/dist/es/BarChart/BarChart.js +1 -7
- package/dist/es/Checkbox/Checkbox.js +7 -7
- package/dist/es/CheckboxField/CheckboxField.d.ts +0 -4
- package/dist/es/CheckboxField/CheckboxField.js +2 -6
- package/dist/es/DataGrid/DataGrid.d.ts +0 -4
- package/dist/es/DataGrid/DataGrid.js +2 -7
- package/dist/es/DataGrid/elements.d.ts +1 -1
- package/dist/es/DateControl/DateControl.js +0 -2
- package/dist/es/DateField/DateField.d.ts +2 -6
- package/dist/es/DateField/DateField.js +1 -8
- package/dist/es/DropdownButton/DropdownButton.d.ts +0 -4
- package/dist/es/DropdownButton/DropdownButton.js +1 -6
- package/dist/es/FormControl/FormControl.d.ts +0 -4
- package/dist/es/FormControl/FormControl.js +1 -6
- package/dist/es/FormField/FormField.d.ts +0 -4
- package/dist/es/FormField/FormField.js +1 -6
- package/dist/es/FormModal/FormModal.js +56 -59
- package/dist/es/Input/Input.d.ts +1 -1
- package/dist/es/Input/Input.js +36 -14
- package/dist/es/Overlay/OverlayHeader.js +5 -7
- package/dist/es/Select/Select.d.ts +1 -1
- package/dist/es/Select/variantProps.d.ts +1 -1
- package/dist/es/Select/variantProps.js +26 -4
- package/dist/es/SimpleModal/SimpleModal.js +37 -40
- package/dist/es/Slider/elements.d.ts +1 -1
- package/dist/es/Slider/elements.js +3 -4
- package/dist/es/Tagger/Tagger.d.ts +8 -2
- package/dist/es/Tagger/components/PopupSelectorElements.d.ts +1 -1
- package/dist/es/Tagger/variantProps.d.ts +9 -3
- package/dist/es/Tagger/variantProps.js +44 -23
- package/dist/es/ThemeProvider/v4/CollapsibleToggle.d.ts +4 -1
- package/dist/es/TimeControl/TimeControl.js +0 -1
- package/dist/es/TimeControl/elements.js +3 -4
- package/dist/es/TimeControl/utils.js +0 -1
- package/dist/es/TimePicker/TimePicker.js +0 -1
- package/dist/es/TimePicker/components/PeriodSelector.js +5 -6
- package/dist/es/TimePicker/components/Spinner.js +1 -2
- package/dist/es/TimePicker/utils.js +0 -1
- package/package.json +3 -3
|
@@ -38,8 +38,6 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
38
38
|
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); }
|
|
39
39
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
40
40
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
41
|
-
/* eslint-disable td/instrumentation */
|
|
42
|
-
// this level of fine grained instrumentation is not needed
|
|
43
41
|
var dateToString = _DatePicker.DatePickerUtils.dateToString,
|
|
44
42
|
stringToDate = _DatePicker.DatePickerUtils.stringToDate,
|
|
45
43
|
isStringCorrectFormat = _DatePicker.DatePickerUtils.isStringCorrectFormat,
|
|
@@ -199,12 +197,7 @@ var UnstyledDateField = exports.UnstyledDateField = /*#__PURE__*/function (_Comp
|
|
|
199
197
|
}
|
|
200
198
|
}, {
|
|
201
199
|
key: "render",
|
|
202
|
-
value:
|
|
203
|
-
/**
|
|
204
|
-
* @typescript-eslint/no-unused-vars is added because even though the props are not used in this component
|
|
205
|
-
* they are getting destructured into ...props and passed further down the tree
|
|
206
|
-
*/
|
|
207
|
-
function render() {
|
|
200
|
+
value: function render() {
|
|
208
201
|
var _this2 = this;
|
|
209
202
|
var _this$props4 = this.props,
|
|
210
203
|
className = _this$props4.className,
|
|
@@ -47,10 +47,6 @@ declare class DropdownButton extends Component<DropdownButtonProps, DropdownButt
|
|
|
47
47
|
close: () => void;
|
|
48
48
|
hover: (over: boolean) => void;
|
|
49
49
|
focusTrigger: () => void;
|
|
50
|
-
/**
|
|
51
|
-
* @typescript-eslint/no-unused-vars is added because even though the props are not used in this component
|
|
52
|
-
* they are getting destructured into ...props and passed further down the tree
|
|
53
|
-
*/
|
|
54
50
|
render(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
55
51
|
}
|
|
56
52
|
export default DropdownButton;
|
|
@@ -133,12 +133,7 @@ var DropdownButton = /*#__PURE__*/function (_Component) {
|
|
|
133
133
|
}
|
|
134
134
|
}, {
|
|
135
135
|
key: "render",
|
|
136
|
-
value:
|
|
137
|
-
/**
|
|
138
|
-
* @typescript-eslint/no-unused-vars is added because even though the props are not used in this component
|
|
139
|
-
* they are getting destructured into ...props and passed further down the tree
|
|
140
|
-
*/
|
|
141
|
-
function render() {
|
|
136
|
+
value: function render() {
|
|
142
137
|
var _this2 = this;
|
|
143
138
|
var _this$props2 = this.props,
|
|
144
139
|
children = _this$props2.children,
|
|
@@ -60,10 +60,6 @@ declare class FormControl<T extends FormControlTypes = 'text'> extends PureCompo
|
|
|
60
60
|
hintIconRef: import("react").RefObject<SVGSVGElement>;
|
|
61
61
|
warningIconRef: import("react").RefObject<HTMLDivElement>;
|
|
62
62
|
getTypeComponent: (type: FormControlTypes) => typeof Input | import("react").FunctionComponent<import("react").PropsWithChildren<CheckboxGroupProps>> | import("react").FunctionComponent<import("react").PropsWithChildren<RadioGroupProps>> | ((props: any) => import("@emotion/react/jsx-runtime").JSX.Element);
|
|
63
|
-
/**
|
|
64
|
-
* @typescript-eslint/no-unused-vars is added because even though the props are not used in this component
|
|
65
|
-
* they are getting destructured into ...props and passed further down the tree
|
|
66
|
-
*/
|
|
67
63
|
render(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
68
64
|
}
|
|
69
65
|
export default FormControl;
|
|
@@ -69,12 +69,7 @@ var FormControl = /*#__PURE__*/function (_PureComponent) {
|
|
|
69
69
|
_inherits(FormControl, _PureComponent);
|
|
70
70
|
return _createClass(FormControl, [{
|
|
71
71
|
key: "render",
|
|
72
|
-
value:
|
|
73
|
-
/**
|
|
74
|
-
* @typescript-eslint/no-unused-vars is added because even though the props are not used in this component
|
|
75
|
-
* they are getting destructured into ...props and passed further down the tree
|
|
76
|
-
*/
|
|
77
|
-
function render() {
|
|
72
|
+
value: function render() {
|
|
78
73
|
var _this$props = this.props,
|
|
79
74
|
addOnClassName = _this$props.addOnClassName,
|
|
80
75
|
blockLabel = _this$props.blockLabel,
|
|
@@ -32,10 +32,6 @@ export type FormFieldProps<T extends FormFieldTypes = 'text'> = {
|
|
|
32
32
|
declare class FormField<T extends FormFieldTypes = 'text'> extends PureComponent<FormFieldProps<T>> {
|
|
33
33
|
getTypeComponent: (type: FormFieldTypes) => typeof Input | ((props: any) => import("@emotion/react/jsx-runtime").JSX.Element);
|
|
34
34
|
inputRef: import("react").RefObject<HTMLDivElement>;
|
|
35
|
-
/**
|
|
36
|
-
* @typescript-eslint/no-unused-vars is added because even though the props are not used in this component
|
|
37
|
-
* they are getting destructured into ...props and passed further down the tree
|
|
38
|
-
*/
|
|
39
35
|
render(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
40
36
|
}
|
|
41
37
|
export default FormField;
|
|
@@ -64,12 +64,7 @@ var FormField = /*#__PURE__*/function (_PureComponent) {
|
|
|
64
64
|
_inherits(FormField, _PureComponent);
|
|
65
65
|
return _createClass(FormField, [{
|
|
66
66
|
key: "render",
|
|
67
|
-
value:
|
|
68
|
-
/**
|
|
69
|
-
* @typescript-eslint/no-unused-vars is added because even though the props are not used in this component
|
|
70
|
-
* they are getting destructured into ...props and passed further down the tree
|
|
71
|
-
*/
|
|
72
|
-
function render() {
|
|
67
|
+
value: function render() {
|
|
73
68
|
var _this$props = this.props,
|
|
74
69
|
addOnClassName = _this$props.addOnClassName,
|
|
75
70
|
className = _this$props.className,
|
|
@@ -31,7 +31,7 @@ var StyledForm = /*#__PURE__*/(0, _base["default"])('form', process.env.NODE_ENV
|
|
|
31
31
|
} : {
|
|
32
32
|
name: "cjeekl",
|
|
33
33
|
styles: "display:flex;fl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hYmVsPXtjYW5jZWxMYWJlbH1cbiAgICAgICAgY29uZmlybUxhYmVsPXtjb25maXJtTGFiZWx9XG4gICAgICAgIGRlc3RydWN0aXZlPXtkZXN0cnVjdGl2ZX1cbiAgICAgICAgZHluYW1pdGU9e2R5bmFtaXRlfVxuICAgICAgICBoaWRlQ2FuY2VsPXtoaWRlQ2FuY2VsfVxuICAgICAgICBsZWZ0QWN0aW9uPXtsZWZ0QWN0aW9ufVxuICAgICAgICBvbkNhbmNlbD17b25DYW5jZWx9XG4gICAgICAgIG9uQ29uZmlybT17b25Db25maXJtfVxuICAgICAgLz5cbiAgICA8L0Zvcm0+XG4gIDwvTW9kYWw+XG4pXG5cbkZvcm1Nb2RhbC5kZWZhdWx0UHJvcHMgPSB7XG4gICdkYXRhLWluc3RydW1lbnRhdGlvbic6ICdmb3JtbW9kYWwnXG59XG5cbmV4cG9ydCBkZWZhdWx0IEZvcm1Nb2RhbFxuIl19 */",
|
|
35
35
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
36
36
|
});
|
|
37
37
|
var Form = function Form(_ref) {
|
|
@@ -77,68 +77,65 @@ var FormModal = function FormModal(_ref2) {
|
|
|
77
77
|
subtitle = _ref2.subtitle,
|
|
78
78
|
title = _ref2.title,
|
|
79
79
|
props = _objectWithoutProperties(_ref2, _excluded);
|
|
80
|
-
return (
|
|
81
|
-
|
|
82
|
-
(
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
80
|
+
return (0, _jsxRuntime.jsxs)(_Modal["default"], _objectSpread(_objectSpread({
|
|
81
|
+
"data-gs-c": gsC(title, subtitle),
|
|
82
|
+
"data-gs": gs("src", "formmodal", "formmodal.tsx", "modal"),
|
|
83
|
+
show: show,
|
|
84
|
+
size: size,
|
|
85
|
+
onHide: onHide,
|
|
86
|
+
dialogIdentifier: dialogIdentifier,
|
|
87
|
+
"data-instrumentation": dataInstrumentation
|
|
88
|
+
}, props), {}, {
|
|
89
|
+
children: [(0, _jsxRuntime.jsx)(_Modal["default"].Header, {
|
|
90
|
+
"data-gs-c": gsC(subtitle, title),
|
|
91
|
+
"data-gs": gs("src", "formmodal", "formmodal.tsx", "modal", "modal-header"),
|
|
92
|
+
closeTitle: closeTitle,
|
|
93
|
+
destructive: destructive,
|
|
94
|
+
disableCancel: disableCancel,
|
|
95
|
+
dynamite: dynamite,
|
|
96
|
+
id: headerId,
|
|
87
97
|
onHide: onHide,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
98
|
+
smallFont: smallFont,
|
|
99
|
+
subtitle: subtitle,
|
|
100
|
+
title: title
|
|
101
|
+
}), (0, _jsxRuntime.jsxs)(Form, {
|
|
102
|
+
"data-gs-c": gsC(formName),
|
|
103
|
+
"data-gs": gs("src", "formmodal", "formmodal.tsx", "modal", "form"),
|
|
104
|
+
id: formName,
|
|
105
|
+
name: formName,
|
|
106
|
+
onSubmit: function onSubmit(event) {
|
|
107
|
+
event.preventDefault();
|
|
108
|
+
if (!submitDisabled) {
|
|
109
|
+
_onSubmit(event);
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
children: [(0, _jsxRuntime.jsx)(_Modal["default"].Body, {
|
|
113
|
+
"data-gs-c": gsC(children),
|
|
114
|
+
"data-gs": gs("src", "formmodal", "formmodal.tsx", "modal", "form", "modal-body"),
|
|
115
|
+
children: children
|
|
116
|
+
}), (0, _jsxRuntime.jsx)(_Modal["default"].Footer, {
|
|
117
|
+
"data-gs": gs("src", "formmodal", "formmodal.tsx", "modal", "form", "modal-footer"),
|
|
118
|
+
cancelProps: _objectSpread({
|
|
119
|
+
disabled: submitDisabled,
|
|
120
|
+
onClick: onCancel
|
|
121
|
+
}, cancelProps),
|
|
122
|
+
confirmProps: _objectSpread({
|
|
123
|
+
autofocus: !!submitAutoFocus,
|
|
124
|
+
disabled: submitDisabled,
|
|
125
|
+
type: 'submit'
|
|
126
|
+
}, confirmProps),
|
|
127
|
+
"data-instrumentaiton": dataInstrumentation,
|
|
128
|
+
cancelLabel: cancelLabel,
|
|
129
|
+
confirmLabel: confirmLabel,
|
|
95
130
|
destructive: destructive,
|
|
96
|
-
disableCancel: disableCancel,
|
|
97
131
|
dynamite: dynamite,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
title: title
|
|
103
|
-
}), (0, _jsxRuntime.jsxs)(Form, {
|
|
104
|
-
"data-gs-c": gsC(formName),
|
|
105
|
-
"data-gs": gs("src", "formmodal", "formmodal.tsx", "modal", "form"),
|
|
106
|
-
id: formName,
|
|
107
|
-
name: formName,
|
|
108
|
-
onSubmit: function onSubmit(event) {
|
|
109
|
-
event.preventDefault();
|
|
110
|
-
if (!submitDisabled) {
|
|
111
|
-
_onSubmit(event);
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
children: [(0, _jsxRuntime.jsx)(_Modal["default"].Body, {
|
|
115
|
-
"data-gs-c": gsC(children),
|
|
116
|
-
"data-gs": gs("src", "formmodal", "formmodal.tsx", "modal", "form", "modal-body"),
|
|
117
|
-
children: children
|
|
118
|
-
}), (0, _jsxRuntime.jsx)(_Modal["default"].Footer, {
|
|
119
|
-
"data-gs": gs("src", "formmodal", "formmodal.tsx", "modal", "form", "modal-footer"),
|
|
120
|
-
cancelProps: _objectSpread({
|
|
121
|
-
disabled: submitDisabled,
|
|
122
|
-
onClick: onCancel
|
|
123
|
-
}, cancelProps),
|
|
124
|
-
confirmProps: _objectSpread({
|
|
125
|
-
autofocus: !!submitAutoFocus,
|
|
126
|
-
disabled: submitDisabled,
|
|
127
|
-
type: 'submit'
|
|
128
|
-
}, confirmProps),
|
|
129
|
-
"data-instrumentaiton": dataInstrumentation,
|
|
130
|
-
cancelLabel: cancelLabel,
|
|
131
|
-
confirmLabel: confirmLabel,
|
|
132
|
-
destructive: destructive,
|
|
133
|
-
dynamite: dynamite,
|
|
134
|
-
hideCancel: hideCancel,
|
|
135
|
-
leftAction: leftAction,
|
|
136
|
-
onCancel: onCancel,
|
|
137
|
-
onConfirm: onConfirm
|
|
138
|
-
})]
|
|
132
|
+
hideCancel: hideCancel,
|
|
133
|
+
leftAction: leftAction,
|
|
134
|
+
onCancel: onCancel,
|
|
135
|
+
onConfirm: onConfirm
|
|
139
136
|
})]
|
|
140
|
-
})
|
|
141
|
-
);
|
|
137
|
+
})]
|
|
138
|
+
}));
|
|
142
139
|
};
|
|
143
140
|
FormModal.defaultProps = {
|
|
144
141
|
'data-instrumentation': 'formmodal'
|
package/dist/es/Input/Input.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PureComponent } from 'react';
|
|
2
2
|
import type { InputHTMLAttributes, TextareaHTMLAttributes } from 'react';
|
|
3
|
-
type Variant = 'primary' | 'secondary' | {
|
|
3
|
+
type Variant = 'primary' | 'secondary' | 'neutral' | {
|
|
4
4
|
borderBottomColor: string;
|
|
5
5
|
color: string;
|
|
6
6
|
focusBorderColor: string;
|