carbon-react 154.13.2 → 154.13.3

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.
@@ -0,0 +1,83 @@
1
+ export interface CommonTextboxArgs {
2
+ prefix: string;
3
+ fieldHelp: string;
4
+ label: string;
5
+ labelHelp: string;
6
+ placeholder: string;
7
+ }
8
+ export declare const getCommonTextboxArgs: (isNewValidation?: boolean, autoFocusDefault?: boolean, disabledDefault?: boolean) => {
9
+ size: string;
10
+ inputIcon: undefined;
11
+ required: boolean;
12
+ characterLimit: undefined;
13
+ error: string;
14
+ warning: string;
15
+ fieldHelp?: string | undefined;
16
+ labelInline?: boolean | undefined;
17
+ labelWidth?: number | undefined;
18
+ inputWidth?: number | undefined;
19
+ labelAlign?: undefined;
20
+ tooltipId?: string | undefined;
21
+ disabled: boolean;
22
+ readOnly: boolean;
23
+ autoFocus: boolean;
24
+ prefix: string;
25
+ label: string;
26
+ labelHelp: string;
27
+ placeholder: string;
28
+ adaptiveLabelBreakpoint: undefined;
29
+ };
30
+ export declare const getCommonTextboxArgsWithSpecialCharacters: (args: CommonTextboxArgs) => {
31
+ prefix: string;
32
+ fieldHelp: string;
33
+ label: string;
34
+ labelHelp: string;
35
+ helpAriaLabel: string;
36
+ placeholder: string;
37
+ };
38
+ export declare const commonTextboxArgTypes: (isNewValidation?: boolean) => {
39
+ adaptiveLabelBreakpoint: {
40
+ control: {
41
+ type: string;
42
+ };
43
+ };
44
+ labelWidth?: {
45
+ control: {
46
+ type: string;
47
+ min: number;
48
+ max: number;
49
+ step: number;
50
+ };
51
+ } | undefined;
52
+ inputWidth?: {
53
+ control: {
54
+ type: string;
55
+ min: number;
56
+ max: number;
57
+ step: number;
58
+ };
59
+ } | undefined;
60
+ tooltipId?: {
61
+ control: {
62
+ type: string;
63
+ };
64
+ } | undefined;
65
+ size: {
66
+ options: string[];
67
+ control: {
68
+ type: string;
69
+ };
70
+ };
71
+ inputIcon: {
72
+ options: string[];
73
+ control: {
74
+ type: string;
75
+ };
76
+ };
77
+ labelAlign: {
78
+ options: string[];
79
+ control: {
80
+ type: string;
81
+ };
82
+ };
83
+ };
@@ -0,0 +1 @@
1
+ import{ICONS as e}from"../icon/icon-config.js";function t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r(e){for(var r=1;r<arguments.length;r++){var l=null!=arguments[r]?arguments[r]:{},o=Object.keys(l);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(l).filter((function(e){return Object.getOwnPropertyDescriptor(l,e).enumerable})))),o.forEach((function(r){t(e,r,l[r])}))}return e}function l(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const o=(e=!1,t=!1,o=!1)=>l(r({disabled:o,readOnly:o,autoFocus:t,prefix:"",label:e?"Label - new validation":"Label",labelHelp:"",placeholder:"",adaptiveLabelBreakpoint:void 0},!e&&{fieldHelp:"",labelInline:!1,labelWidth:30,inputWidth:70,labelAlign:void 0,tooltipId:""}),{size:"medium",inputIcon:void 0,required:!1,characterLimit:void 0,error:"",warning:""}),n=e=>{const{prefix:t,fieldHelp:o,label:n,labelHelp:i,placeholder:p}=e;return l(r({},e),{prefix:t,fieldHelp:o,label:n,labelHelp:i,helpAriaLabel:i,placeholder:p})},i=t=>l(r({size:{options:["small","medium","large"],control:{type:"select"}},inputIcon:{options:["",...e],control:{type:"select"}},labelAlign:{options:["left","right"],control:{type:"select"}}},!t&&{labelWidth:{control:{type:"range",min:0,max:100,step:1}},inputWidth:{control:{type:"range",min:0,max:100,step:1}},tooltipId:{control:{type:"text"}}}),{adaptiveLabelBreakpoint:{control:{type:"number"}}});export{i as commonTextboxArgTypes,o as getCommonTextboxArgs,n as getCommonTextboxArgsWithSpecialCharacters};
@@ -0,0 +1,83 @@
1
+ export interface CommonTextboxArgs {
2
+ prefix: string;
3
+ fieldHelp: string;
4
+ label: string;
5
+ labelHelp: string;
6
+ placeholder: string;
7
+ }
8
+ export declare const getCommonTextboxArgs: (isNewValidation?: boolean, autoFocusDefault?: boolean, disabledDefault?: boolean) => {
9
+ size: string;
10
+ inputIcon: undefined;
11
+ required: boolean;
12
+ characterLimit: undefined;
13
+ error: string;
14
+ warning: string;
15
+ fieldHelp?: string | undefined;
16
+ labelInline?: boolean | undefined;
17
+ labelWidth?: number | undefined;
18
+ inputWidth?: number | undefined;
19
+ labelAlign?: undefined;
20
+ tooltipId?: string | undefined;
21
+ disabled: boolean;
22
+ readOnly: boolean;
23
+ autoFocus: boolean;
24
+ prefix: string;
25
+ label: string;
26
+ labelHelp: string;
27
+ placeholder: string;
28
+ adaptiveLabelBreakpoint: undefined;
29
+ };
30
+ export declare const getCommonTextboxArgsWithSpecialCharacters: (args: CommonTextboxArgs) => {
31
+ prefix: string;
32
+ fieldHelp: string;
33
+ label: string;
34
+ labelHelp: string;
35
+ helpAriaLabel: string;
36
+ placeholder: string;
37
+ };
38
+ export declare const commonTextboxArgTypes: (isNewValidation?: boolean) => {
39
+ adaptiveLabelBreakpoint: {
40
+ control: {
41
+ type: string;
42
+ };
43
+ };
44
+ labelWidth?: {
45
+ control: {
46
+ type: string;
47
+ min: number;
48
+ max: number;
49
+ step: number;
50
+ };
51
+ } | undefined;
52
+ inputWidth?: {
53
+ control: {
54
+ type: string;
55
+ min: number;
56
+ max: number;
57
+ step: number;
58
+ };
59
+ } | undefined;
60
+ tooltipId?: {
61
+ control: {
62
+ type: string;
63
+ };
64
+ } | undefined;
65
+ size: {
66
+ options: string[];
67
+ control: {
68
+ type: string;
69
+ };
70
+ };
71
+ inputIcon: {
72
+ options: string[];
73
+ control: {
74
+ type: string;
75
+ };
76
+ };
77
+ labelAlign: {
78
+ options: string[];
79
+ control: {
80
+ type: string;
81
+ };
82
+ };
83
+ };
@@ -0,0 +1 @@
1
+ "use strict";var e=require("../icon/icon-config.js");function t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r(e){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{},l=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(o).filter((function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})))),l.forEach((function(r){t(e,r,o[r])}))}return e}function o(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}exports.commonTextboxArgTypes=t=>o(r({size:{options:["small","medium","large"],control:{type:"select"}},inputIcon:{options:["",...e.ICONS],control:{type:"select"}},labelAlign:{options:["left","right"],control:{type:"select"}}},!t&&{labelWidth:{control:{type:"range",min:0,max:100,step:1}},inputWidth:{control:{type:"range",min:0,max:100,step:1}},tooltipId:{control:{type:"text"}}}),{adaptiveLabelBreakpoint:{control:{type:"number"}}}),exports.getCommonTextboxArgs=(e=!1,t=!1,l=!1)=>o(r({disabled:l,readOnly:l,autoFocus:t,prefix:"",label:e?"Label - new validation":"Label",labelHelp:"",placeholder:"",adaptiveLabelBreakpoint:void 0},!e&&{fieldHelp:"",labelInline:!1,labelWidth:30,inputWidth:70,labelAlign:void 0,tooltipId:""}),{size:"medium",inputIcon:void 0,required:!1,characterLimit:void 0,error:"",warning:""}),exports.getCommonTextboxArgsWithSpecialCharacters=e=>{const{prefix:t,fieldHelp:l,label:n,labelHelp:i,placeholder:p}=e;return o(r({},e),{prefix:t,fieldHelp:l,label:n,labelHelp:i,helpAriaLabel:i,placeholder:p})};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "154.13.2",
3
+ "version": "154.13.3",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "files": [
6
6
  "lib",