@workday/canvas-kit-preview-react 14.0.0-alpha.1229-next.0 → 14.0.0-alpha.1233-next.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/commonjs/index.d.ts +0 -3
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +0 -3
- package/dist/es6/index.d.ts +0 -3
- package/dist/es6/index.d.ts.map +1 -1
- package/dist/es6/index.js +0 -3
- package/index.ts +0 -3
- package/package.json +4 -4
- package/dist/commonjs/text-area/index.d.ts +0 -2
- package/dist/commonjs/text-area/index.d.ts.map +0 -1
- package/dist/commonjs/text-area/index.js +0 -17
- package/dist/commonjs/text-area/lib/TextArea.d.ts +0 -67
- package/dist/commonjs/text-area/lib/TextArea.d.ts.map +0 -1
- package/dist/commonjs/text-area/lib/TextArea.js +0 -29
- package/dist/commonjs/text-area/lib/TextAreaField.d.ts +0 -21
- package/dist/commonjs/text-area/lib/TextAreaField.d.ts.map +0 -1
- package/dist/commonjs/text-area/lib/TextAreaField.js +0 -19
- package/dist/commonjs/text-input/index.d.ts +0 -3
- package/dist/commonjs/text-input/index.d.ts.map +0 -1
- package/dist/commonjs/text-input/index.js +0 -18
- package/dist/commonjs/text-input/lib/TextInput.d.ts +0 -75
- package/dist/commonjs/text-input/lib/TextInput.d.ts.map +0 -1
- package/dist/commonjs/text-input/lib/TextInput.js +0 -28
- package/dist/commonjs/text-input/lib/TextInputField.d.ts +0 -21
- package/dist/commonjs/text-input/lib/TextInputField.d.ts.map +0 -1
- package/dist/commonjs/text-input/lib/TextInputField.js +0 -31
- package/dist/commonjs/text-input/lib/hooks/index.d.ts +0 -3
- package/dist/commonjs/text-input/lib/hooks/index.d.ts.map +0 -1
- package/dist/commonjs/text-input/lib/hooks/index.js +0 -18
- package/dist/commonjs/text-input/lib/hooks/useTextInputField.d.ts +0 -17
- package/dist/commonjs/text-input/lib/hooks/useTextInputField.d.ts.map +0 -1
- package/dist/commonjs/text-input/lib/hooks/useTextInputField.js +0 -15
- package/dist/commonjs/text-input/lib/hooks/useTextInputModel.d.ts +0 -36
- package/dist/commonjs/text-input/lib/hooks/useTextInputModel.d.ts.map +0 -1
- package/dist/commonjs/text-input/lib/hooks/useTextInputModel.js +0 -8
- package/dist/es6/text-area/index.d.ts +0 -2
- package/dist/es6/text-area/index.d.ts.map +0 -1
- package/dist/es6/text-area/index.js +0 -1
- package/dist/es6/text-area/lib/TextArea.d.ts +0 -67
- package/dist/es6/text-area/lib/TextArea.d.ts.map +0 -1
- package/dist/es6/text-area/lib/TextArea.js +0 -26
- package/dist/es6/text-area/lib/TextAreaField.d.ts +0 -21
- package/dist/es6/text-area/lib/TextAreaField.d.ts.map +0 -1
- package/dist/es6/text-area/lib/TextAreaField.js +0 -16
- package/dist/es6/text-input/index.d.ts +0 -3
- package/dist/es6/text-input/index.d.ts.map +0 -1
- package/dist/es6/text-input/index.js +0 -2
- package/dist/es6/text-input/lib/TextInput.d.ts +0 -75
- package/dist/es6/text-input/lib/TextInput.d.ts.map +0 -1
- package/dist/es6/text-input/lib/TextInput.js +0 -25
- package/dist/es6/text-input/lib/TextInputField.d.ts +0 -21
- package/dist/es6/text-input/lib/TextInputField.d.ts.map +0 -1
- package/dist/es6/text-input/lib/TextInputField.js +0 -28
- package/dist/es6/text-input/lib/hooks/index.d.ts +0 -3
- package/dist/es6/text-input/lib/hooks/index.d.ts.map +0 -1
- package/dist/es6/text-input/lib/hooks/index.js +0 -2
- package/dist/es6/text-input/lib/hooks/useTextInputField.d.ts +0 -17
- package/dist/es6/text-input/lib/hooks/useTextInputField.d.ts.map +0 -1
- package/dist/es6/text-input/lib/hooks/useTextInputField.js +0 -12
- package/dist/es6/text-input/lib/hooks/useTextInputModel.d.ts +0 -36
- package/dist/es6/text-input/lib/hooks/useTextInputModel.d.ts.map +0 -1
- package/dist/es6/text-input/lib/hooks/useTextInputModel.js +0 -5
- package/text-area/index.ts +0 -1
- package/text-area/lib/TextArea.tsx +0 -47
- package/text-area/lib/TextAreaField.tsx +0 -26
- package/text-area/package.json +0 -6
- package/text-input/index.ts +0 -2
- package/text-input/lib/TextInput.tsx +0 -48
- package/text-input/lib/TextInputField.tsx +0 -39
- package/text-input/lib/hooks/index.ts +0 -2
- package/text-input/lib/hooks/useTextInputField.tsx +0 -13
- package/text-input/lib/hooks/useTextInputModel.ts +0 -6
- package/text-input/package.json +0 -6
package/dist/commonjs/index.d.ts
CHANGED
|
@@ -10,8 +10,5 @@ export * from './segmented-control';
|
|
|
10
10
|
export * from './select';
|
|
11
11
|
export * from './side-panel';
|
|
12
12
|
export * from './status-indicator';
|
|
13
|
-
export * from './text-area';
|
|
14
|
-
export * from './text-input';
|
|
15
|
-
export * from './information-highlight';
|
|
16
13
|
export { version } from './version';
|
|
17
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC"}
|
package/dist/commonjs/index.js
CHANGED
|
@@ -27,8 +27,5 @@ __exportStar(require("./segmented-control"), exports);
|
|
|
27
27
|
__exportStar(require("./select"), exports);
|
|
28
28
|
__exportStar(require("./side-panel"), exports);
|
|
29
29
|
__exportStar(require("./status-indicator"), exports);
|
|
30
|
-
__exportStar(require("./text-area"), exports);
|
|
31
|
-
__exportStar(require("./text-input"), exports);
|
|
32
|
-
__exportStar(require("./information-highlight"), exports);
|
|
33
30
|
var version_1 = require("./version");
|
|
34
31
|
Object.defineProperty(exports, "version", { enumerable: true, get: function () { return version_1.version; } });
|
package/dist/es6/index.d.ts
CHANGED
|
@@ -10,8 +10,5 @@ export * from './segmented-control';
|
|
|
10
10
|
export * from './select';
|
|
11
11
|
export * from './side-panel';
|
|
12
12
|
export * from './status-indicator';
|
|
13
|
-
export * from './text-area';
|
|
14
|
-
export * from './text-input';
|
|
15
|
-
export * from './information-highlight';
|
|
16
13
|
export { version } from './version';
|
|
17
14
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/es6/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC"}
|
package/dist/es6/index.js
CHANGED
|
@@ -10,7 +10,4 @@ export * from './segmented-control';
|
|
|
10
10
|
export * from './select';
|
|
11
11
|
export * from './side-panel';
|
|
12
12
|
export * from './status-indicator';
|
|
13
|
-
export * from './text-area';
|
|
14
|
-
export * from './text-input';
|
|
15
|
-
export * from './information-highlight';
|
|
16
13
|
export { version } from './version';
|
package/index.ts
CHANGED
|
@@ -10,7 +10,4 @@ export * from './segmented-control';
|
|
|
10
10
|
export * from './select';
|
|
11
11
|
export * from './side-panel';
|
|
12
12
|
export * from './status-indicator';
|
|
13
|
-
export * from './text-area';
|
|
14
|
-
export * from './text-input';
|
|
15
|
-
export * from './information-highlight';
|
|
16
13
|
export {version} from './version';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-preview-react",
|
|
3
|
-
"version": "14.0.0-alpha.
|
|
3
|
+
"version": "14.0.0-alpha.1233-next.0",
|
|
4
4
|
"description": "Canvas Kit Preview is made up of components that have the full design and a11y review, are part of the DS ecosystem and are approved for use in product. The API's could be subject to change, but not without strong communication and migration strategies.",
|
|
5
5
|
"author": "Workday, Inc. (https://www.workday.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@emotion/react": "^11.7.1",
|
|
50
50
|
"@emotion/styled": "^11.6.0",
|
|
51
|
-
"@workday/canvas-kit-react": "^14.0.0-alpha.
|
|
52
|
-
"@workday/canvas-kit-styling": "^14.0.0-alpha.
|
|
51
|
+
"@workday/canvas-kit-react": "^14.0.0-alpha.1233-next.0",
|
|
52
|
+
"@workday/canvas-kit-styling": "^14.0.0-alpha.1233-next.0",
|
|
53
53
|
"@workday/canvas-system-icons-web": "^3.0.35",
|
|
54
54
|
"@workday/canvas-tokens-web": "3.0.0-alpha.12",
|
|
55
55
|
"@workday/design-assets-types": "^0.2.10"
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"react-hook-form": "7.36.1",
|
|
61
61
|
"yup": "^0.32.11"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "7ed1570b966cb8473b3db07695fb2bc86af7739c"
|
|
64
64
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../text-area/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./lib/TextArea"), exports);
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ExtractProps } from '@workday/canvas-kit-react/common';
|
|
3
|
-
import { FormField } from '@workday/canvas-kit-react/form-field';
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated ⚠️ `TextAreaProps` in Preview has been deprecated and will be removed in a future major version. Please use [`TextArea` in Main](https://workday.github.io/canvas-kit/?path=/docs/components-inputs-textarea--docs) instead.
|
|
6
|
-
*/
|
|
7
|
-
export interface TextAreaProps extends ExtractProps<typeof FormField, never> {
|
|
8
|
-
/**
|
|
9
|
-
* Children of the Text Input. Should contain a `<TextArea.Field>`, a `<TextArea.Label>` and an optional `<TextArea.Hint>`
|
|
10
|
-
*/
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* @stencil formFieldStencil
|
|
15
|
-
* @deprecated ⚠️ `TextArea` in Preview has been deprecated and will be removed in a future major version. Please use [`TextArea` in Main](https://workday.github.io/canvas-kit/?path=/docs/components-inputs-textarea--docs) instead.
|
|
16
|
-
*/
|
|
17
|
-
export declare const TextArea: import("@workday/canvas-kit-react/common").ElementComponentM<"div", TextAreaProps & Partial<{
|
|
18
|
-
error: "error" | "alert" | undefined;
|
|
19
|
-
id: string;
|
|
20
|
-
isRequired: boolean;
|
|
21
|
-
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
22
|
-
}> & {} & {}, {
|
|
23
|
-
state: {
|
|
24
|
-
id: string;
|
|
25
|
-
error: "error" | "alert" | undefined;
|
|
26
|
-
isRequired: boolean;
|
|
27
|
-
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
28
|
-
};
|
|
29
|
-
events: {};
|
|
30
|
-
}> & {
|
|
31
|
-
Field: import("@workday/canvas-kit-react/common").ElementComponentM<"textarea", import("@workday/canvas-kit-react/layout").BackgroundStyleProps & import("@workday/canvas-kit-react/layout/lib/utils/border/color").BorderColorStyleProps & import("@workday/canvas-kit-react/layout/lib/utils/border/lineStyle").BorderLineStyleProps & import("@workday/canvas-kit-react/layout/lib/utils/border/radius").BorderRadiusStyleProps & import("@workday/canvas-kit-react/layout/lib/utils/border/shorthand").BorderShorthandStyleProps & import("@workday/canvas-kit-react/layout/lib/utils/border/width").BorderWidthStyleProps & import("@workday/canvas-kit-react/layout").ColorStyleProps & import("@workday/canvas-kit-react/layout").DepthStyleProps & import("@workday/canvas-kit-react/layout").FlexItemStyleProps & import("@workday/canvas-kit-react/layout").GridItemStyleProps & import("@workday/canvas-kit-react/layout").LayoutStyleProps & import("@workday/canvas-kit-react/layout").OtherStyleProps & import("@workday/canvas-kit-react/layout").PositionStyleProps & import("@workday/canvas-kit-react/layout").SpaceStyleProps & import("@workday/canvas-kit-react/layout").TextStyleProps & import("@workday/canvas-kit-styling").CSProps & import("@workday/canvas-kit-react/common").PropsWithModel<{
|
|
32
|
-
state: {
|
|
33
|
-
id: string;
|
|
34
|
-
error: "error" | "alert" | undefined;
|
|
35
|
-
isRequired: boolean;
|
|
36
|
-
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
37
|
-
};
|
|
38
|
-
events: {};
|
|
39
|
-
}, {}>, {
|
|
40
|
-
state: {
|
|
41
|
-
id: string;
|
|
42
|
-
error: "error" | "alert" | undefined;
|
|
43
|
-
isRequired: boolean;
|
|
44
|
-
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
45
|
-
};
|
|
46
|
-
events: {};
|
|
47
|
-
}>;
|
|
48
|
-
Label: import("@workday/canvas-kit-react/common").ElementComponentM<"label", import("@workday/canvas-kit-react/form-field").FormFieldLabelProps, {
|
|
49
|
-
state: {
|
|
50
|
-
id: string;
|
|
51
|
-
error: "error" | "alert" | undefined;
|
|
52
|
-
isRequired: boolean;
|
|
53
|
-
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
54
|
-
};
|
|
55
|
-
events: {};
|
|
56
|
-
}>;
|
|
57
|
-
Hint: import("@workday/canvas-kit-react/common").ElementComponentM<"p", import("@workday/canvas-kit-react/text").TextProps, {
|
|
58
|
-
state: {
|
|
59
|
-
id: string;
|
|
60
|
-
error: "error" | "alert" | undefined;
|
|
61
|
-
isRequired: boolean;
|
|
62
|
-
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
63
|
-
};
|
|
64
|
-
events: {};
|
|
65
|
-
}>;
|
|
66
|
-
};
|
|
67
|
-
//# sourceMappingURL=TextArea.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../text-area/lib/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAkB,YAAY,EAAC,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAC,SAAS,EAAmB,MAAM,sCAAsC,CAAC;AAKjF;;GAEG;AACH,MAAM,WAAW,aAAc,SAAQ,YAAY,CAAC,OAAO,SAAS,EAAE,KAAK,CAAC;IAC1E;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;;GAGG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwBnB,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TextArea = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const common_1 = require("@workday/canvas-kit-react/common");
|
|
6
|
-
const form_field_1 = require("@workday/canvas-kit-react/form-field");
|
|
7
|
-
const layout_1 = require("@workday/canvas-kit-react/layout");
|
|
8
|
-
const TextAreaField_1 = require("./TextAreaField");
|
|
9
|
-
const text_input_1 = require("@workday/canvas-kit-preview-react/text-input");
|
|
10
|
-
/**
|
|
11
|
-
* @stencil formFieldStencil
|
|
12
|
-
* @deprecated ⚠️ `TextArea` in Preview has been deprecated and will be removed in a future major version. Please use [`TextArea` in Main](https://workday.github.io/canvas-kit/?path=/docs/components-inputs-textarea--docs) instead.
|
|
13
|
-
*/
|
|
14
|
-
exports.TextArea = (0, common_1.createContainer)('div')({
|
|
15
|
-
displayName: 'TextArea',
|
|
16
|
-
modelHook: text_input_1.useTextInputModel,
|
|
17
|
-
subComponents: {
|
|
18
|
-
Field: TextAreaField_1.TextAreaField,
|
|
19
|
-
Label: form_field_1.FormField.Label,
|
|
20
|
-
Hint: form_field_1.FormField.Hint,
|
|
21
|
-
},
|
|
22
|
-
})(({ children, grow, orientation, ...elemProps }, Element, model) => {
|
|
23
|
-
return ((0, jsx_runtime_1.jsx)(Element, { ...(0, layout_1.mergeStyles)(elemProps, (0, form_field_1.formFieldStencil)({
|
|
24
|
-
grow,
|
|
25
|
-
orientation: orientation,
|
|
26
|
-
error: model.state.error,
|
|
27
|
-
required: model.state.isRequired,
|
|
28
|
-
})), children: children }));
|
|
29
|
-
});
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @deprecated ⚠️ `TextAreaField` in Preview has been deprecated and will be removed in a future major version. Please use [`FormField`](https://workday.github.io/canvas-kit/?path=/docs/components-inputs-form-field--docs) in Preview instead.
|
|
3
|
-
*/
|
|
4
|
-
export declare const TextAreaField: import("@workday/canvas-kit-react/common").ElementComponentM<"textarea", import("@workday/canvas-kit-react/layout").BackgroundStyleProps & import("@workday/canvas-kit-react/layout/lib/utils/border/color").BorderColorStyleProps & import("@workday/canvas-kit-react/layout/lib/utils/border/lineStyle").BorderLineStyleProps & import("@workday/canvas-kit-react/layout/lib/utils/border/radius").BorderRadiusStyleProps & import("@workday/canvas-kit-react/layout/lib/utils/border/shorthand").BorderShorthandStyleProps & import("@workday/canvas-kit-react/layout/lib/utils/border/width").BorderWidthStyleProps & import("@workday/canvas-kit-react/layout").ColorStyleProps & import("@workday/canvas-kit-react/layout").DepthStyleProps & import("@workday/canvas-kit-react/layout").FlexItemStyleProps & import("@workday/canvas-kit-react/layout").GridItemStyleProps & import("@workday/canvas-kit-react/layout").LayoutStyleProps & import("@workday/canvas-kit-react/layout").OtherStyleProps & import("@workday/canvas-kit-react/layout").PositionStyleProps & import("@workday/canvas-kit-react/layout").SpaceStyleProps & import("@workday/canvas-kit-react/layout").TextStyleProps & import("@workday/canvas-kit-styling").CSProps & import("@workday/canvas-kit-react/common").PropsWithModel<{
|
|
5
|
-
state: {
|
|
6
|
-
id: string;
|
|
7
|
-
error: "error" | "alert" | undefined;
|
|
8
|
-
isRequired: boolean;
|
|
9
|
-
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
10
|
-
};
|
|
11
|
-
events: {};
|
|
12
|
-
}, {}>, {
|
|
13
|
-
state: {
|
|
14
|
-
id: string;
|
|
15
|
-
error: "error" | "alert" | undefined;
|
|
16
|
-
isRequired: boolean;
|
|
17
|
-
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
18
|
-
};
|
|
19
|
-
events: {};
|
|
20
|
-
}>;
|
|
21
|
-
//# sourceMappingURL=TextAreaField.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TextAreaField.d.ts","sourceRoot":"","sources":["../../../../text-area/lib/TextAreaField.tsx"],"names":[],"mappings":"AAOA;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;EAexB,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TextAreaField = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const common_1 = require("@workday/canvas-kit-react/common");
|
|
6
|
-
const form_field_1 = require("@workday/canvas-kit-react/form-field");
|
|
7
|
-
const text_input_1 = require("@workday/canvas-kit-preview-react/text-input");
|
|
8
|
-
const text_area_1 = require("@workday/canvas-kit-react/text-area");
|
|
9
|
-
const canvas_tokens_web_1 = require("@workday/canvas-tokens-web");
|
|
10
|
-
const canvas_kit_styling_1 = require("@workday/canvas-kit-styling");
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated ⚠️ `TextAreaField` in Preview has been deprecated and will be removed in a future major version. Please use [`FormField`](https://workday.github.io/canvas-kit/?path=/docs/components-inputs-form-field--docs) in Preview instead.
|
|
13
|
-
*/
|
|
14
|
-
exports.TextAreaField = (0, common_1.createSubcomponent)('textarea')({
|
|
15
|
-
displayName: 'TextArea.Field',
|
|
16
|
-
modelHook: text_input_1.useTextInputModel,
|
|
17
|
-
})(({ ...elemProps }, Element, model) => {
|
|
18
|
-
return ((0, jsx_runtime_1.jsx)(form_field_1.FormField.Input, { as: text_area_1.TextArea, display: "block", minHeight: 64, minWidth: 280, padding: (0, canvas_kit_styling_1.cssVar)(canvas_tokens_web_1.system.space.x2), margin: 0, ...elemProps }));
|
|
19
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../text-input/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./lib/TextInput"), exports);
|
|
18
|
-
__exportStar(require("./lib/hooks"), exports);
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ExtractProps } from '@workday/canvas-kit-react/common';
|
|
3
|
-
import { FormField } from '@workday/canvas-kit-react/form-field';
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated ⚠️ `TextInputProps` in Preview has been deprecated and will be removed in a future major version. Please use [`TextInput` in Main](https://workday.github.io/canvas-kit/?path=/docs/components-inputs-text-input--docs) instead.
|
|
6
|
-
*/
|
|
7
|
-
export interface TextInputProps extends ExtractProps<typeof FormField, never> {
|
|
8
|
-
/**
|
|
9
|
-
* Children of the Text Input. Should contain a `<TextInput.Field>`, a `<TextInput.Label>` and an optional `<TextInput.Hint>`
|
|
10
|
-
*/
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* @stencil formFieldStencil
|
|
15
|
-
* @deprecated ⚠️ `TextInput` in Preview has been deprecated and will be removed in a future major version. Please use [`TextInput` in Main](https://workday.github.io/canvas-kit/?path=/docs/components-inputs-textinput--docs) instead.
|
|
16
|
-
*/
|
|
17
|
-
export declare const TextInput: import("@workday/canvas-kit-react/common").ElementComponentM<"div", import("@workday/canvas-kit-react/form-field").FormFieldProps & Partial<{
|
|
18
|
-
error: "error" | "alert" | undefined;
|
|
19
|
-
id: string;
|
|
20
|
-
isRequired: boolean;
|
|
21
|
-
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
22
|
-
}> & {} & {} & import("@workday/canvas-kit-react/common").PropsWithModel<{
|
|
23
|
-
state: {
|
|
24
|
-
id: string;
|
|
25
|
-
error: "error" | "alert" | undefined;
|
|
26
|
-
isRequired: boolean;
|
|
27
|
-
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
28
|
-
};
|
|
29
|
-
events: {};
|
|
30
|
-
}, {}>, {
|
|
31
|
-
state: {
|
|
32
|
-
id: string;
|
|
33
|
-
error: "error" | "alert" | undefined;
|
|
34
|
-
isRequired: boolean;
|
|
35
|
-
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
36
|
-
};
|
|
37
|
-
events: {};
|
|
38
|
-
}> & {
|
|
39
|
-
Field: import("@workday/canvas-kit-react/common").ElementComponentM<"input", import("@workday/canvas-kit-react/layout").BackgroundStyleProps & import("@workday/canvas-kit-react/layout/lib/utils/border/color").BorderColorStyleProps & import("@workday/canvas-kit-react/layout/lib/utils/border/lineStyle").BorderLineStyleProps & import("@workday/canvas-kit-react/layout/lib/utils/border/radius").BorderRadiusStyleProps & import("@workday/canvas-kit-react/layout/lib/utils/border/shorthand").BorderShorthandStyleProps & import("@workday/canvas-kit-react/layout/lib/utils/border/width").BorderWidthStyleProps & import("@workday/canvas-kit-react/layout").ColorStyleProps & import("@workday/canvas-kit-react/layout").DepthStyleProps & import("@workday/canvas-kit-react/layout").FlexItemStyleProps & import("@workday/canvas-kit-react/layout").GridItemStyleProps & import("@workday/canvas-kit-react/layout").LayoutStyleProps & import("@workday/canvas-kit-react/layout").OtherStyleProps & import("@workday/canvas-kit-react/layout").PositionStyleProps & import("@workday/canvas-kit-react/layout").SpaceStyleProps & import("@workday/canvas-kit-react/layout").TextStyleProps & import("@workday/canvas-kit-styling").CSProps & import("@workday/canvas-kit-react/common").PropsWithModel<{
|
|
40
|
-
state: {
|
|
41
|
-
id: string;
|
|
42
|
-
error: "error" | "alert" | undefined;
|
|
43
|
-
isRequired: boolean;
|
|
44
|
-
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
45
|
-
};
|
|
46
|
-
events: {};
|
|
47
|
-
}, {}>, {
|
|
48
|
-
state: {
|
|
49
|
-
id: string;
|
|
50
|
-
error: "error" | "alert" | undefined;
|
|
51
|
-
isRequired: boolean;
|
|
52
|
-
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
53
|
-
};
|
|
54
|
-
events: {};
|
|
55
|
-
}>;
|
|
56
|
-
Label: import("@workday/canvas-kit-react/common").ElementComponentM<"label", import("@workday/canvas-kit-react/form-field").FormFieldLabelProps, {
|
|
57
|
-
state: {
|
|
58
|
-
id: string;
|
|
59
|
-
error: "error" | "alert" | undefined;
|
|
60
|
-
isRequired: boolean;
|
|
61
|
-
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
62
|
-
};
|
|
63
|
-
events: {};
|
|
64
|
-
}>;
|
|
65
|
-
Hint: import("@workday/canvas-kit-react/common").ElementComponentM<"p", import("@workday/canvas-kit-react/text").TextProps, {
|
|
66
|
-
state: {
|
|
67
|
-
id: string;
|
|
68
|
-
error: "error" | "alert" | undefined;
|
|
69
|
-
isRequired: boolean;
|
|
70
|
-
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
71
|
-
};
|
|
72
|
-
events: {};
|
|
73
|
-
}>;
|
|
74
|
-
};
|
|
75
|
-
//# sourceMappingURL=TextInput.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../../text-input/lib/TextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAkB,YAAY,EAAC,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAC,SAAS,EAAsC,MAAM,sCAAsC,CAAC;AAKpG;;GAEG;AACH,MAAM,WAAW,cAAe,SAAQ,YAAY,CAAC,OAAO,SAAS,EAAE,KAAK,CAAC;IAC3E;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AACD;;;GAGG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BrB,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TextInput = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const common_1 = require("@workday/canvas-kit-react/common");
|
|
6
|
-
const form_field_1 = require("@workday/canvas-kit-react/form-field");
|
|
7
|
-
const layout_1 = require("@workday/canvas-kit-react/layout");
|
|
8
|
-
const TextInputField_1 = require("./TextInputField");
|
|
9
|
-
/**
|
|
10
|
-
* @stencil formFieldStencil
|
|
11
|
-
* @deprecated ⚠️ `TextInput` in Preview has been deprecated and will be removed in a future major version. Please use [`TextInput` in Main](https://workday.github.io/canvas-kit/?path=/docs/components-inputs-textinput--docs) instead.
|
|
12
|
-
*/
|
|
13
|
-
exports.TextInput = (0, common_1.createContainer)('div')({
|
|
14
|
-
displayName: 'TextInput',
|
|
15
|
-
modelHook: form_field_1.useFormFieldModel,
|
|
16
|
-
subComponents: {
|
|
17
|
-
Field: TextInputField_1.TextInputField,
|
|
18
|
-
Label: form_field_1.FormField.Label,
|
|
19
|
-
Hint: form_field_1.FormField.Hint,
|
|
20
|
-
},
|
|
21
|
-
})(({ children, orientation, grow, ...elemProps }, Element, model) => {
|
|
22
|
-
return ((0, jsx_runtime_1.jsx)(Element, { ...(0, layout_1.mergeStyles)(elemProps, (0, form_field_1.formFieldStencil)({
|
|
23
|
-
grow,
|
|
24
|
-
orientation: orientation,
|
|
25
|
-
error: model.state.error,
|
|
26
|
-
required: model.state.isRequired,
|
|
27
|
-
})), children: children }));
|
|
28
|
-
});
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @deprecated ⚠️ `TextInputField` in Preview has been deprecated and will be removed in a future major version. Please use [`FormField` in Preview](https://workday.github.io/canvas-kit/?path=/docs/components-inputs-form-field--docs) instead.
|
|
3
|
-
*/
|
|
4
|
-
export declare const TextInputField: import("@workday/canvas-kit-react/common").ElementComponentM<"input", import("@workday/canvas-kit-react/layout").BackgroundStyleProps & import("@workday/canvas-kit-react/layout/lib/utils/border/color").BorderColorStyleProps & import("@workday/canvas-kit-react/layout/lib/utils/border/lineStyle").BorderLineStyleProps & import("@workday/canvas-kit-react/layout/lib/utils/border/radius").BorderRadiusStyleProps & import("@workday/canvas-kit-react/layout/lib/utils/border/shorthand").BorderShorthandStyleProps & import("@workday/canvas-kit-react/layout/lib/utils/border/width").BorderWidthStyleProps & import("@workday/canvas-kit-react/layout").ColorStyleProps & import("@workday/canvas-kit-react/layout").DepthStyleProps & import("@workday/canvas-kit-react/layout").FlexItemStyleProps & import("@workday/canvas-kit-react/layout").GridItemStyleProps & import("@workday/canvas-kit-react/layout").LayoutStyleProps & import("@workday/canvas-kit-react/layout").OtherStyleProps & import("@workday/canvas-kit-react/layout").PositionStyleProps & import("@workday/canvas-kit-react/layout").SpaceStyleProps & import("@workday/canvas-kit-react/layout").TextStyleProps & import("@workday/canvas-kit-styling").CSProps & import("@workday/canvas-kit-react/common").PropsWithModel<{
|
|
5
|
-
state: {
|
|
6
|
-
id: string;
|
|
7
|
-
error: "error" | "alert" | undefined;
|
|
8
|
-
isRequired: boolean;
|
|
9
|
-
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
10
|
-
};
|
|
11
|
-
events: {};
|
|
12
|
-
}, {}>, {
|
|
13
|
-
state: {
|
|
14
|
-
id: string;
|
|
15
|
-
error: "error" | "alert" | undefined;
|
|
16
|
-
isRequired: boolean;
|
|
17
|
-
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
18
|
-
};
|
|
19
|
-
events: {};
|
|
20
|
-
}>;
|
|
21
|
-
//# sourceMappingURL=TextInputField.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TextInputField.d.ts","sourceRoot":"","sources":["../../../../text-input/lib/TextInputField.tsx"],"names":[],"mappings":"AAwBA;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;EAWzB,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TextInputField = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const common_1 = require("@workday/canvas-kit-react/common");
|
|
6
|
-
const form_field_1 = require("@workday/canvas-kit-react/form-field");
|
|
7
|
-
const canvas_tokens_web_1 = require("@workday/canvas-tokens-web");
|
|
8
|
-
const canvas_kit_styling_1 = require("@workday/canvas-kit-styling");
|
|
9
|
-
const layout_1 = require("@workday/canvas-kit-react/layout");
|
|
10
|
-
const hooks_1 = require("./hooks");
|
|
11
|
-
const text_input_1 = require("@workday/canvas-kit-react/text-input");
|
|
12
|
-
const textInputFieldStencil = (0, canvas_kit_styling_1.createStencil)({
|
|
13
|
-
extends: text_input_1.textInputStencil,
|
|
14
|
-
base: { name: "1h6l82", styles: "box-sizing:border-box;" },
|
|
15
|
-
modifiers: {
|
|
16
|
-
error: {
|
|
17
|
-
error: { name: "1y589u", styles: "background-color:var(--cnvs-brand-error-lightest);" },
|
|
18
|
-
alert: { name: "vll5z", styles: "background-color:var(--cnvs-brand-alert-lightest);" }
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}, "text-input-field-ef9db8");
|
|
22
|
-
/**
|
|
23
|
-
* @deprecated ⚠️ `TextInputField` in Preview has been deprecated and will be removed in a future major version. Please use [`FormField` in Preview](https://workday.github.io/canvas-kit/?path=/docs/components-inputs-form-field--docs) instead.
|
|
24
|
-
*/
|
|
25
|
-
exports.TextInputField = (0, common_1.createSubcomponent)('input')({
|
|
26
|
-
displayName: 'TextInput.Field',
|
|
27
|
-
modelHook: hooks_1.useTextInputModel,
|
|
28
|
-
elemPropsHook: hooks_1.useTextInputField,
|
|
29
|
-
})((elemProps, Element, model) => {
|
|
30
|
-
return ((0, jsx_runtime_1.jsx)(form_field_1.FormField.Input, { as: text_input_1.TextInput, ...(0, layout_1.mergeStyles)(elemProps, [textInputFieldStencil({ error: model.state.error })]) }));
|
|
31
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../text-input/lib/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./useTextInputField"), exports);
|
|
18
|
-
__exportStar(require("./useTextInputModel"), exports);
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Adds the necessary props to a `Field` component. Used by the TextInput.Field subcomponent.
|
|
3
|
-
*
|
|
4
|
-
* @deprecated ⚠️ `useTextInputField` in Preview has been deprecated and will be removed in a future major version. Please use [`FormField` in Preview](https://workday.github.io/canvas-kit/?path=/story/preview-inputs-form-field--basic) instead.
|
|
5
|
-
*/
|
|
6
|
-
export declare const useTextInputField: import("@workday/canvas-kit-react/common").BehaviorHook<{
|
|
7
|
-
state: {
|
|
8
|
-
id: string;
|
|
9
|
-
error: "error" | "alert" | undefined;
|
|
10
|
-
isRequired: boolean;
|
|
11
|
-
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
12
|
-
};
|
|
13
|
-
events: {};
|
|
14
|
-
}, {
|
|
15
|
-
readonly type: "text";
|
|
16
|
-
}>;
|
|
17
|
-
//# sourceMappingURL=useTextInputField.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useTextInputField.d.ts","sourceRoot":"","sources":["../../../../../text-input/lib/hooks/useTextInputField.tsx"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;EAI5B,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useTextInputField = void 0;
|
|
4
|
-
const common_1 = require("@workday/canvas-kit-react/common");
|
|
5
|
-
const useTextInputModel_1 = require("./useTextInputModel");
|
|
6
|
-
/**
|
|
7
|
-
* Adds the necessary props to a `Field` component. Used by the TextInput.Field subcomponent.
|
|
8
|
-
*
|
|
9
|
-
* @deprecated ⚠️ `useTextInputField` in Preview has been deprecated and will be removed in a future major version. Please use [`FormField` in Preview](https://workday.github.io/canvas-kit/?path=/story/preview-inputs-form-field--basic) instead.
|
|
10
|
-
*/
|
|
11
|
-
exports.useTextInputField = (0, common_1.createElemPropsHook)(useTextInputModel_1.useTextInputModel)(() => {
|
|
12
|
-
return {
|
|
13
|
-
type: 'text',
|
|
14
|
-
};
|
|
15
|
-
});
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @deprecated ⚠️ `useTextInputModel` in Preview has been deprecated and will be removed in a future major version. Please use [`FormField` in Preview](https://workday.github.io/canvas-kit/?path=/story/preview-inputs-form-field--basic) instead.
|
|
3
|
-
*/
|
|
4
|
-
export declare const useTextInputModel: (<TT_Special_Generic>(config?: (Partial<{
|
|
5
|
-
error: "error" | "alert" | undefined;
|
|
6
|
-
id: string;
|
|
7
|
-
isRequired: boolean;
|
|
8
|
-
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
9
|
-
}> & {} & {}) | undefined) => {
|
|
10
|
-
state: {
|
|
11
|
-
id: string;
|
|
12
|
-
error: "error" | "alert" | undefined;
|
|
13
|
-
isRequired: boolean;
|
|
14
|
-
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
15
|
-
};
|
|
16
|
-
events: {};
|
|
17
|
-
}) & import("@workday/canvas-kit-react/common").ModelExtras<{
|
|
18
|
-
error: "error" | "alert" | undefined;
|
|
19
|
-
id: string;
|
|
20
|
-
isRequired: boolean;
|
|
21
|
-
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
22
|
-
}, {}, {
|
|
23
|
-
id: string;
|
|
24
|
-
error: "error" | "alert" | undefined;
|
|
25
|
-
isRequired: boolean;
|
|
26
|
-
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
27
|
-
}, {}, {
|
|
28
|
-
state: {
|
|
29
|
-
id: string;
|
|
30
|
-
error: "error" | "alert" | undefined;
|
|
31
|
-
isRequired: boolean;
|
|
32
|
-
orientation: "vertical" | "horizontalEnd" | "horizontalStart";
|
|
33
|
-
};
|
|
34
|
-
events: {};
|
|
35
|
-
}>;
|
|
36
|
-
//# sourceMappingURL=useTextInputModel.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useTextInputModel.d.ts","sourceRoot":"","sources":["../../../../../text-input/lib/hooks/useTextInputModel.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAoB,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useTextInputModel = void 0;
|
|
4
|
-
const form_field_1 = require("@workday/canvas-kit-react/form-field");
|
|
5
|
-
/**
|
|
6
|
-
* @deprecated ⚠️ `useTextInputModel` in Preview has been deprecated and will be removed in a future major version. Please use [`FormField` in Preview](https://workday.github.io/canvas-kit/?path=/story/preview-inputs-form-field--basic) instead.
|
|
7
|
-
*/
|
|
8
|
-
exports.useTextInputModel = form_field_1.useFormFieldModel;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../text-area/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './lib/TextArea';
|