@cleartrip/ct-design-text-area 1.1.0 → 1.2.0-beta.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/ct-design-text-area.browser.cjs.js +1 -1
- package/dist/ct-design-text-area.browser.cjs.js.map +1 -1
- package/dist/ct-design-text-area.browser.esm.js +1 -1
- package/dist/ct-design-text-area.browser.esm.js.map +1 -1
- package/dist/ct-design-text-area.cjs.js +11 -24
- package/dist/ct-design-text-area.cjs.js.map +1 -1
- package/dist/ct-design-text-area.esm.js +10 -22
- package/dist/ct-design-text-area.esm.js.map +1 -1
- package/dist/ct-design-text-area.umd.js +14 -27
- package/dist/ct-design-text-area.umd.js.map +1 -1
- package/dist/src/TextArea.d.ts.map +1 -1
- package/dist/src/style.d.ts +10 -3
- package/dist/src/style.d.ts.map +1 -1
- package/dist/src/type.d.ts +12 -3
- package/dist/src/type.d.ts.map +1 -1
- package/dist/stats.html +1 -1
- package/package.json +4 -5
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("tslib"),o=require("react/jsx-runtime"),i=require("react"),
|
|
1
|
+
"use strict";var e=require("tslib"),o=require("react/jsx-runtime"),i=require("react"),l=require("@cleartrip/ct-design-theme"),r=require("@cleartrip/ct-design-typography");function s(e){return e&&e.__esModule?e:{default:e}}var a=s(require("styled-components")),n=a.default.div((function(o){var i=o.theme,l=o.focused,r=o.disabled,s=void 0!==r&&r,a=o.color,n=o.width,d=o.height,t=o.rootCSS,c=o.css,u=void 0===c?{}:c,h=a||i.color.border.default,b=i.color.border.primary;return e.__assign(e.__assign({position:"relative",overflow:"hidden",background:s?i.color.background.disabled:i.color.background.neutral,outlineStyle:"solid",outlineColor:h,outlineWidth:s?0:l?i.border.width.md:i.border.width.sm,borderRadius:i.border.radius[12],cursor:s?"not-allowed":"text",boxSizing:"border-box","&:hover":{outlineColor:s?i.color.background.disabled:b,outlineWidth:i.border.width.md},width:n,height:d},t),u)})),d=a.default.textarea((function(o){var i=o.width,l=void 0===i?"100%":i,r=o.height,s=o.theme,a=o.hasLabel,n=o.css,d=o.isResizeable;return e.__assign({resize:d?"both":"none",width:l,height:r,padding:16,paddingTop:a?28:16,borderRadius:s.border.radius[8],outline:"none",border:"none",fontSize:16},n)})),t=a.default.label((function(e){return{display:"flex",alignItems:"flex-start",visibility:e.filled?"hidden":"visible",whiteSpace:"break-spaces",overflow:"hidden",textOverflow:"ellipsis",position:"absolute",top:14,left:16,zIndex:1,pointerEvents:"none",width:"90%",userSelect:"none"}})),c=a.default.label((function(o){var i=o.disabled,l=o.theme,r=o.css,s=void 0===r?{}:r;return e.__assign({display:"block",visibility:"visible",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",position:"absolute",padding:"4px 0 0 16px",width:"100%",background:i?l.color.background.disabled:l.color.background.neutral,zIndex:1,pointerEvents:"none",userSelect:"none"},s)})),u=i.forwardRef((function(s,a){var u=s.placeholder,h=void 0===u?"":u,b=s.value,g=void 0===b?"":b,v=s.onChange,p=s.label,f=void 0===p?"":p,m=s.onFocus,w=s.onBlur,y=s.css;s.rootCSS;var _=s.rows,x=void 0===_?4:_,C=s.disabled,S=void 0!==C&&C,k=s.height,T=void 0===k?100:k,N=s.width,j=void 0===N?"100%":N,B=s.styleConfig,q=void 0===B?{}:B,z=e.__rest(s,["placeholder","value","onChange","label","onFocus","onBlur","css","rootCSS","rows","disabled","height","width","styleConfig"]),I=l.useTheme(),A=q.root,D=q.labelContainer,E=q.labelTypography,L=q.placeholderContainer,R=q.placeholderTypography,F=q.textArea,O=i.useState(!1),W=O[0],M=O[1],G=!!f,H=g.length>=1,J=i.useCallback((function(e){v&&v(e)}),[v]),K=i.useCallback((function(e){M(!0),m&&m(e)}),[m]),P=i.useCallback((function(e){M(!1),w&&w(e)}),[w]);return o.jsxs(n,e.__assign({width:j,height:T,disabled:S,focused:W,theme:I,className:null==A?void 0:A.className,css:null==A?void 0:A.css},{children:[G&&o.jsx(c,e.__assign({theme:I,filled:H,disabled:S,className:null==D?void 0:D.className,css:null==D?void 0:D.css},{children:o.jsx(r.Typography,e.__assign({variant:"B2",color:r.TypographyColor.DISABLED,lineClamp:1,styleConfig:E},{children:f}))})),!!h&&o.jsx(t,e.__assign({filled:H,className:null==L?void 0:L.className,css:null==L?void 0:L.css},{children:o.jsx(r.Typography,e.__assign({variant:"B1",color:r.TypographyColor.DISABLED,styleConfig:R},{children:h}))})),o.jsx(d,e.__assign({ref:a,onFocus:K,onBlur:P,rows:x,onChange:J,theme:I,hasLabel:G,value:g,css:(null==F?void 0:F.css)||y,disabled:S,height:T},z,{className:null==F?void 0:F.className}))]}))})),h=i.memo(u);exports.TextArea=h;
|
|
2
2
|
//# sourceMappingURL=ct-design-text-area.browser.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ct-design-text-area.browser.cjs.js","sources":["../../packages/components/TextArea/src/style.ts","../../packages/components/TextArea/src/TextArea.tsx"],"sourcesContent":[null,null],"names":["TextAreaRoot","styled","default","div","_a","theme","focused","_b","disabled","color","width","height","rootCSS","outlineColor","border","focusColor","primary","__assign","position","overflow","background","neutral","outlineStyle","outlineWidth","md","sm","borderRadius","radius","cursor","boxSizing","StyledTextArea","textarea","hasLabel","
|
|
1
|
+
{"version":3,"file":"ct-design-text-area.browser.cjs.js","sources":["../../packages/components/TextArea/src/style.ts","../../packages/components/TextArea/src/TextArea.tsx"],"sourcesContent":[null,null],"names":["TextAreaRoot","styled","default","div","_a","theme","focused","_b","disabled","color","width","height","rootCSS","_c","css","outlineColor","border","focusColor","primary","__assign","position","overflow","background","neutral","outlineStyle","outlineWidth","md","sm","borderRadius","radius","cursor","boxSizing","StyledTextArea","textarea","hasLabel","isResizeable","resize","padding","paddingTop","outline","fontSize","StyledTextAreaPlaceHolder","label","display","alignItems","visibility","filled","whiteSpace","textOverflow","top","left","zIndex","pointerEvents","userSelect","StyledTextAreaLabel","TextArea","forwardRef","forwardedRef","placeholder","value","onChange","_d","onFocus","onBlur","_e","rows","_f","_g","_h","_j","styleConfig","rest","__rest","useTheme","root","labelContainer","labelTypography","placeholderContainer","placeholderTypography","textArea","_k","useState","setFocused","isFilled","length","onChangeCB","useCallback","event","onFocusCB","onBlurCB","_jsxs","jsxs","className","children","_jsx","Typography","variant","TypographyColor","DISABLED","lineClamp","jsx","ref","memo"],"mappings":"oQASaA,EAAeC,EAAMC,QAACC,KAAgD,SAACC,GAAE,IAAAC,EAAKD,EAAAC,MAAEC,EAAOF,EAAAE,QAAEC,EAAAH,EAAAI,SAAAA,OAAW,IAAAD,GAAKA,EAAEE,EAAKL,EAAAK,MAAEC,EAAKN,EAAAM,MAAEC,EAAMP,EAAAO,OAAEC,EAAOR,EAAAQ,QAAEC,EAAMT,EAAAU,IAANA,OAAG,IAAAD,EAAC,CAAE,EAAAA,EACtJE,EAAeN,GAASJ,EAAMI,MAAMO,OAAOd,QAC3Ce,EAAaZ,EAAMI,MAAMO,OAAOE,QAEtC,OACCC,EAAAA,SAAAA,WAAA,CAAAC,SAAU,WACVC,SAAU,SACVC,WAAYd,EAAWH,EAAMI,MAAMa,WAAWd,SAAWH,EAAMI,MAAMa,WAAWC,QAChFC,aAAc,QACdT,aAAcA,EACdU,aAAcjB,EAAW,EAAIF,EAAUD,EAAMW,OAAON,MAAMgB,GAAKrB,EAAMW,OAAON,MAAMiB,GAClFC,aAAcvB,EAAMW,OAAOa,OAAO,IAClCC,OAAQtB,EAAW,cAAgB,OACnCuB,UAAW,aACX,UAAW,CACVhB,aAAcP,EAAWH,EAAMI,MAAMa,WAAWd,SAAWS,EAC3DQ,aAAcpB,EAAMW,OAAON,MAAMgB,IAElChB,QACAC,UACGC,GACAE,EAEL,IAEakB,EAAiB/B,EAAMC,QAAC+B,UAA+B,SAAC7B,GAAE,IAAAG,EAAAH,EAAAM,MAAAA,OAAK,IAAAH,EAAG,OAAMA,EAAEI,EAAMP,EAAAO,OAAEN,EAAKD,EAAAC,MAAE6B,EAAQ9B,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WAAW5E,EAAAA,SAAA,CAAA6E,QAAQ,KAAKvF,MAAOwF,EAAAA,gBAAgBC,SAAUC,UAAW,EAAG7B,YAAaM,GAClF,CAAAiB,SAAAnD,UAKJgB,GACDoC,EAAAA,IAACrD,EAAyBtB,EAAAA,SAAA,CACxB2B,OAAQqC,EACRS,UAAWf,aAAoB,EAApBA,EAAsBe,UACjC9E,IAAK+D,aAAA,EAAAA,EAAsB/D,KAE3B,CAAA+E,SAAAC,EAAAM,IAACL,aAAU5E,EAAAA,SAAA,CAAC6E,QAAQ,KAAKvF,MAAOwF,kBAAgBC,SAAU5B,YAAaQ,GACpE,CAAAe,SAAAnC,QAKPoC,EAAAM,IAACpE,EAAcb,EAAAA,SAAA,CACbkF,IAAK5C,EACLK,QAAS0B,EACTzB,OAAQ0B,EACRxB,KAAMA,EACNL,SAAUyB,EACVhF,MAAOA,EACP6B,SAAUA,EACVyB,MAAOA,EACP7C,KAAKiE,aAAQ,EAARA,EAAUjE,MAAOA,EACtBN,SAAUA,EACVG,OAAQA,GACJ4D,GACJqB,UAAWb,aAAQ,EAARA,EAAUa,gBAI7B,IAGaU,EAAAA,EAAAA,KAAK/C"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e,__rest as o}from"tslib";import{jsxs as i,jsx as
|
|
1
|
+
import{__assign as e,__rest as o}from"tslib";import{jsxs as i,jsx as l}from"react/jsx-runtime";import{forwardRef as r,useState as t,useCallback as d,memo as n}from"react";import{useTheme as s}from"@cleartrip/ct-design-theme";import{Typography as a,TypographyColor as c}from"@cleartrip/ct-design-typography";import h from"styled-components";var u=h.div((function(o){var i=o.theme,l=o.focused,r=o.disabled,t=void 0!==r&&r,d=o.color,n=o.width,s=o.height,a=o.rootCSS,c=o.css,h=void 0===c?{}:c,u=d||i.color.border.default,b=i.color.border.primary;return e(e({position:"relative",overflow:"hidden",background:t?i.color.background.disabled:i.color.background.neutral,outlineStyle:"solid",outlineColor:u,outlineWidth:t?0:l?i.border.width.md:i.border.width.sm,borderRadius:i.border.radius[12],cursor:t?"not-allowed":"text",boxSizing:"border-box","&:hover":{outlineColor:t?i.color.background.disabled:b,outlineWidth:i.border.width.md},width:n,height:s},a),h)})),b=h.textarea((function(o){var i=o.width,l=void 0===i?"100%":i,r=o.height,t=o.theme,d=o.hasLabel,n=o.css,s=o.isResizeable;return e({resize:s?"both":"none",width:l,height:r,padding:16,paddingTop:d?28:16,borderRadius:t.border.radius[8],outline:"none",border:"none",fontSize:16},n)})),v=h.label((function(e){return{display:"flex",alignItems:"flex-start",visibility:e.filled?"hidden":"visible",whiteSpace:"break-spaces",overflow:"hidden",textOverflow:"ellipsis",position:"absolute",top:14,left:16,zIndex:1,pointerEvents:"none",width:"90%",userSelect:"none"}})),p=h.label((function(o){var i=o.disabled,l=o.theme,r=o.css,t=void 0===r?{}:r;return e({display:"block",visibility:"visible",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",position:"absolute",padding:"4px 0 0 16px",width:"100%",background:i?l.color.background.disabled:l.color.background.neutral,zIndex:1,pointerEvents:"none",userSelect:"none"},t)})),m=n(r((function(r,n){var h=r.placeholder,m=void 0===h?"":h,f=r.value,g=void 0===f?"":f,w=r.onChange,y=r.label,x=void 0===y?"":y,C=r.onFocus,S=r.onBlur,k=r.css;r.rootCSS;var N=r.rows,B=void 0===N?4:N,z=r.disabled,I=void 0!==z&&z,A=r.height,D=void 0===A?100:A,E=r.width,L=void 0===E?"100%":E,T=r.styleConfig,F=void 0===T?{}:T,R=o(r,["placeholder","value","onChange","label","onFocus","onBlur","css","rootCSS","rows","disabled","height","width","styleConfig"]),O=s(),W=F.root,j=F.labelContainer,q=F.labelTypography,G=F.placeholderContainer,H=F.placeholderTypography,J=F.textArea,K=t(!1),M=K[0],P=K[1],Q=!!x,U=g.length>=1,V=d((function(e){w&&w(e)}),[w]),X=d((function(e){P(!0),C&&C(e)}),[C]),Y=d((function(e){P(!1),S&&S(e)}),[S]);return i(u,e({width:L,height:D,disabled:I,focused:M,theme:O,className:null==W?void 0:W.className,css:null==W?void 0:W.css},{children:[Q&&l(p,e({theme:O,filled:U,disabled:I,className:null==j?void 0:j.className,css:null==j?void 0:j.css},{children:l(a,e({variant:"B2",color:c.DISABLED,lineClamp:1,styleConfig:q},{children:x}))})),!!m&&l(v,e({filled:U,className:null==G?void 0:G.className,css:null==G?void 0:G.css},{children:l(a,e({variant:"B1",color:c.DISABLED,styleConfig:H},{children:m}))})),l(b,e({ref:n,onFocus:X,onBlur:Y,rows:B,onChange:V,theme:O,hasLabel:Q,value:g,css:(null==J?void 0:J.css)||k,disabled:I,height:D},R,{className:null==J?void 0:J.className}))]}))})));export{m as TextArea};
|
|
2
2
|
//# sourceMappingURL=ct-design-text-area.browser.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ct-design-text-area.browser.esm.js","sources":["../../packages/components/TextArea/src/style.ts","../../packages/components/TextArea/src/TextArea.tsx"],"sourcesContent":[null,null],"names":["TextAreaRoot","styled","div","_a","theme","focused","_b","disabled","color","width","height","rootCSS","outlineColor","border","default","focusColor","primary","__assign","position","overflow","background","neutral","outlineStyle","outlineWidth","md","sm","borderRadius","radius","cursor","boxSizing","StyledTextArea","textarea","hasLabel","
|
|
1
|
+
{"version":3,"file":"ct-design-text-area.browser.esm.js","sources":["../../packages/components/TextArea/src/style.ts","../../packages/components/TextArea/src/TextArea.tsx"],"sourcesContent":[null,null],"names":["TextAreaRoot","styled","div","_a","theme","focused","_b","disabled","color","width","height","rootCSS","_c","css","outlineColor","border","default","focusColor","primary","__assign","position","overflow","background","neutral","outlineStyle","outlineWidth","md","sm","borderRadius","radius","cursor","boxSizing","StyledTextArea","textarea","hasLabel","isResizeable","resize","padding","paddingTop","outline","fontSize","StyledTextAreaPlaceHolder","label","display","alignItems","visibility","filled","whiteSpace","textOverflow","top","left","zIndex","pointerEvents","userSelect","StyledTextAreaLabel","TextArea$1","memo","forwardRef","forwardedRef","placeholder","value","onChange","_d","onFocus","onBlur","_e","rows","_f","_g","_h","_j","styleConfig","rest","__rest","useTheme","root","labelContainer","labelTypography","placeholderContainer","placeholderTypography","textArea","_k","useState","setFocused","isFilled","length","onChangeCB","useCallback","event","onFocusCB","onBlurCB","_jsxs","className","children","_jsx","Typography","variant","TypographyColor","DISABLED","lineClamp","ref"],"mappings":"oVASO,IAAMA,EAAeC,EAAOC,KAAgD,SAACC,GAAE,IAAAC,EAAKD,EAAAC,MAAEC,EAAOF,EAAAE,QAAEC,EAAAH,EAAAI,SAAAA,OAAW,IAAAD,GAAKA,EAAEE,EAAKL,EAAAK,MAAEC,EAAKN,EAAAM,MAAEC,EAAMP,EAAAO,OAAEC,EAAOR,EAAAQ,QAAEC,EAAMT,EAAAU,IAANA,OAAG,IAAAD,EAAC,CAAE,EAAAA,EACtJE,EAAeN,GAASJ,EAAMI,MAAMO,OAAOC,QAC3CC,EAAab,EAAMI,MAAMO,OAAOG,QAEtC,OACCC,EAAAA,EAAA,CAAAC,SAAU,WACVC,SAAU,SACVC,WAAYf,EAAWH,EAAMI,MAAMc,WAAWf,SAAWH,EAAMI,MAAMc,WAAWC,QAChFC,aAAc,QACdV,aAAcA,EACdW,aAAclB,EAAW,EAAIF,EAAUD,EAAMW,OAAON,MAAMiB,GAAKtB,EAAMW,OAAON,MAAMkB,GAClFC,aAAcxB,EAAMW,OAAOc,OAAO,IAClCC,OAAQvB,EAAW,cAAgB,OACnCwB,UAAW,aACX,UAAW,CACVjB,aAAcP,EAAWH,EAAMI,MAAMc,WAAWf,SAAWU,EAC3DQ,aAAcrB,EAAMW,OAAON,MAAMiB,IAElCjB,QACAC,UACGC,GACAE,EAEL,IAEamB,EAAiB/B,EAAOgC,UAA+B,SAAC9B,GAAE,IAAAG,EAAAH,EAAAM,MAAAA,OAAK,IAAAH,EAAG,OAAMA,EAAEI,EAAMP,EAAAO,OAAEN,EAAKD,EAAAC,MAAE8B,EAAQ/B,EAAA+B,SAAErB,EAAGV,EAAAU,IAAEsB,EAAYh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EAAyBtB,EAAA,CACxB2B,OAAQsC,EACRQ,UAAWd,aAAoB,EAApBA,EAAsBc,UACjC/E,IAAKiE,aAAA,EAAAA,EAAsBjE,KAE3B,CAAAgF,SAAAC,EAACC,EAAU5E,EAAA,CAAC6E,QAAQ,KAAKxF,MAAOyF,EAAgBC,SAAU3B,YAAaQ,GACpE,CAAAc,SAAAlC,QAKPmC,EAAC9D,EAAcb,EAAA,CACbiF,IAAK1C,EACLK,QAAS0B,EACTzB,OAAQ0B,EACRxB,KAAMA,EACNL,SAAUyB,EACVlF,MAAOA,EACP8B,SAAUA,EACV0B,MAAOA,EACP/C,KAAKmE,aAAQ,EAARA,EAAUnE,MAAOA,EACtBN,SAAUA,EACVG,OAAQA,GACJ8D,GACJoB,UAAWZ,aAAQ,EAARA,EAAUY,gBAI7B"}
|
|
@@ -3,23 +3,22 @@
|
|
|
3
3
|
var tslib = require('tslib');
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
5
|
var react = require('react');
|
|
6
|
-
var
|
|
6
|
+
var ctDesignTheme = require('@cleartrip/ct-design-theme');
|
|
7
7
|
var ctDesignTypography = require('@cleartrip/ct-design-typography');
|
|
8
8
|
var styled = require('styled-components');
|
|
9
9
|
|
|
10
10
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
11
|
|
|
12
|
-
var useTheme__default = /*#__PURE__*/_interopDefault(useTheme);
|
|
13
12
|
var styled__default = /*#__PURE__*/_interopDefault(styled);
|
|
14
13
|
|
|
15
14
|
var TextAreaRoot = styled__default.default.div(function (_a) {
|
|
16
|
-
var theme = _a.theme, focused = _a.focused, _b = _a.disabled, disabled = _b === void 0 ? false : _b, color = _a.color, width = _a.width, height = _a.height, rootCSS = _a.rootCSS;
|
|
15
|
+
var theme = _a.theme, focused = _a.focused, _b = _a.disabled, disabled = _b === void 0 ? false : _b, color = _a.color, width = _a.width, height = _a.height, rootCSS = _a.rootCSS, _c = _a.css, css = _c === void 0 ? {} : _c;
|
|
17
16
|
var outlineColor = color || theme.color.border.default;
|
|
18
17
|
var focusColor = theme.color.border.primary;
|
|
19
|
-
return tslib.__assign({ position: 'relative', overflow: 'hidden', background: disabled ? theme.color.background.disabled : theme.color.background.neutral, outlineStyle: 'solid', outlineColor: outlineColor, outlineWidth: disabled ? 0 : focused ? theme.border.width.md : theme.border.width.sm, borderRadius: theme.border.radius[12], cursor: disabled ? 'not-allowed' : 'text', boxSizing: 'border-box', '&:hover': {
|
|
18
|
+
return tslib.__assign(tslib.__assign({ position: 'relative', overflow: 'hidden', background: disabled ? theme.color.background.disabled : theme.color.background.neutral, outlineStyle: 'solid', outlineColor: outlineColor, outlineWidth: disabled ? 0 : focused ? theme.border.width.md : theme.border.width.sm, borderRadius: theme.border.radius[12], cursor: disabled ? 'not-allowed' : 'text', boxSizing: 'border-box', '&:hover': {
|
|
20
19
|
outlineColor: disabled ? theme.color.background.disabled : focusColor,
|
|
21
20
|
outlineWidth: theme.border.width.md,
|
|
22
|
-
}, width: width, height: height }, rootCSS);
|
|
21
|
+
}, width: width, height: height }, rootCSS), css);
|
|
23
22
|
});
|
|
24
23
|
var StyledTextArea = styled__default.default.textarea(function (_a) {
|
|
25
24
|
var _b = _a.width, width = _b === void 0 ? '100%' : _b, height = _a.height, theme = _a.theme, hasLabel = _a.hasLabel, css = _a.css, isResizeable = _a.isResizeable;
|
|
@@ -44,27 +43,15 @@ var StyledTextAreaPlaceHolder = styled__default.default.label(function (_a) {
|
|
|
44
43
|
};
|
|
45
44
|
});
|
|
46
45
|
var StyledTextAreaLabel = styled__default.default.label(function (_a) {
|
|
47
|
-
var disabled = _a.disabled, theme = _a.theme;
|
|
48
|
-
return {
|
|
49
|
-
display: 'block',
|
|
50
|
-
visibility: 'visible',
|
|
51
|
-
whiteSpace: 'nowrap',
|
|
52
|
-
overflow: 'hidden',
|
|
53
|
-
textOverflow: 'ellipsis',
|
|
54
|
-
position: 'absolute',
|
|
55
|
-
padding: '4px 0 0 16px',
|
|
56
|
-
width: '100%',
|
|
57
|
-
background: disabled ? theme.color.background.disabled : theme.color.background.neutral,
|
|
58
|
-
zIndex: 1,
|
|
59
|
-
pointerEvents: 'none',
|
|
60
|
-
userSelect: 'none',
|
|
61
|
-
};
|
|
46
|
+
var disabled = _a.disabled, theme = _a.theme, _b = _a.css, css = _b === void 0 ? {} : _b;
|
|
47
|
+
return tslib.__assign({ display: 'block', visibility: 'visible', whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', position: 'absolute', padding: '4px 0 0 16px', width: '100%', background: disabled ? theme.color.background.disabled : theme.color.background.neutral, zIndex: 1, pointerEvents: 'none', userSelect: 'none' }, css);
|
|
62
48
|
});
|
|
63
49
|
|
|
64
50
|
var TextArea = react.forwardRef(function (_a, forwardedRef) {
|
|
65
|
-
var _b = _a.placeholder, placeholder = _b === void 0 ? '' : _b, _c = _a.value, value = _c === void 0 ? '' : _c, onChange = _a.onChange, _d = _a.label, label = _d === void 0 ? '' : _d, onFocus = _a.onFocus, onBlur = _a.onBlur, css = _a.css; _a.rootCSS; var _e = _a.rows, rows = _e === void 0 ? 4 : _e, _f = _a.disabled, disabled = _f === void 0 ? false : _f, _g = _a.height, height = _g === void 0 ? 100 : _g, _h = _a.width, width = _h === void 0 ? '100%' : _h, rest = tslib.__rest(_a, ["placeholder", "value", "onChange", "label", "onFocus", "onBlur", "css", "rootCSS", "rows", "disabled", "height", "width"]);
|
|
66
|
-
var theme =
|
|
67
|
-
var
|
|
51
|
+
var _b = _a.placeholder, placeholder = _b === void 0 ? '' : _b, _c = _a.value, value = _c === void 0 ? '' : _c, onChange = _a.onChange, _d = _a.label, label = _d === void 0 ? '' : _d, onFocus = _a.onFocus, onBlur = _a.onBlur, css = _a.css; _a.rootCSS; var _e = _a.rows, rows = _e === void 0 ? 4 : _e, _f = _a.disabled, disabled = _f === void 0 ? false : _f, _g = _a.height, height = _g === void 0 ? 100 : _g, _h = _a.width, width = _h === void 0 ? '100%' : _h, _j = _a.styleConfig, styleConfig = _j === void 0 ? {} : _j, rest = tslib.__rest(_a, ["placeholder", "value", "onChange", "label", "onFocus", "onBlur", "css", "rootCSS", "rows", "disabled", "height", "width", "styleConfig"]);
|
|
52
|
+
var theme = ctDesignTheme.useTheme();
|
|
53
|
+
var root = styleConfig.root, labelContainer = styleConfig.labelContainer, labelTypography = styleConfig.labelTypography, placeholderContainer = styleConfig.placeholderContainer, placeholderTypography = styleConfig.placeholderTypography, textArea = styleConfig.textArea;
|
|
54
|
+
var _k = react.useState(false), focused = _k[0], setFocused = _k[1];
|
|
68
55
|
var hasLabel = !!label;
|
|
69
56
|
var isFilled = value.length >= 1;
|
|
70
57
|
var onChangeCB = react.useCallback(function (event) {
|
|
@@ -78,7 +65,7 @@ var TextArea = react.forwardRef(function (_a, forwardedRef) {
|
|
|
78
65
|
setFocused(false);
|
|
79
66
|
onBlur && onBlur(event);
|
|
80
67
|
}, [onBlur]);
|
|
81
|
-
return (jsxRuntime.jsxs(TextAreaRoot, tslib.__assign({ width: width, height: height, disabled: disabled, focused: focused, theme: theme }, { children: [hasLabel && (jsxRuntime.jsx(StyledTextAreaLabel, tslib.__assign({ theme: theme, filled: isFilled, disabled: disabled }, { children: jsxRuntime.jsx(ctDesignTypography.Typography, tslib.__assign({ variant: 'B2', color: ctDesignTypography.TypographyColor.DISABLED, lineClamp: 1 }, { children: label })) }))), !!placeholder && (jsxRuntime.jsx(StyledTextAreaPlaceHolder, tslib.__assign({ filled: isFilled }, { children: jsxRuntime.jsx(ctDesignTypography.Typography, tslib.__assign({ variant: 'B1', color: ctDesignTypography.TypographyColor.DISABLED }, { children: placeholder })) }))), jsxRuntime.jsx(StyledTextArea, tslib.__assign({ ref: forwardedRef, onFocus: onFocusCB, onBlur: onBlurCB, rows: rows, onChange: onChangeCB, theme: theme, hasLabel: hasLabel, value: value, css: css, disabled: disabled, height: height }, rest))] })));
|
|
68
|
+
return (jsxRuntime.jsxs(TextAreaRoot, tslib.__assign({ width: width, height: height, disabled: disabled, focused: focused, theme: theme, className: root === null || root === void 0 ? void 0 : root.className, css: root === null || root === void 0 ? void 0 : root.css }, { children: [hasLabel && (jsxRuntime.jsx(StyledTextAreaLabel, tslib.__assign({ theme: theme, filled: isFilled, disabled: disabled, className: labelContainer === null || labelContainer === void 0 ? void 0 : labelContainer.className, css: labelContainer === null || labelContainer === void 0 ? void 0 : labelContainer.css }, { children: jsxRuntime.jsx(ctDesignTypography.Typography, tslib.__assign({ variant: 'B2', color: ctDesignTypography.TypographyColor.DISABLED, lineClamp: 1, styleConfig: labelTypography }, { children: label })) }))), !!placeholder && (jsxRuntime.jsx(StyledTextAreaPlaceHolder, tslib.__assign({ filled: isFilled, className: placeholderContainer === null || placeholderContainer === void 0 ? void 0 : placeholderContainer.className, css: placeholderContainer === null || placeholderContainer === void 0 ? void 0 : placeholderContainer.css }, { children: jsxRuntime.jsx(ctDesignTypography.Typography, tslib.__assign({ variant: 'B1', color: ctDesignTypography.TypographyColor.DISABLED, styleConfig: placeholderTypography }, { children: placeholder })) }))), jsxRuntime.jsx(StyledTextArea, tslib.__assign({ ref: forwardedRef, onFocus: onFocusCB, onBlur: onBlurCB, rows: rows, onChange: onChangeCB, theme: theme, hasLabel: hasLabel, value: value, css: (textArea === null || textArea === void 0 ? void 0 : textArea.css) || css, disabled: disabled, height: height }, rest, { className: textArea === null || textArea === void 0 ? void 0 : textArea.className }))] })));
|
|
82
69
|
});
|
|
83
70
|
var TextArea$1 = react.memo(TextArea);
|
|
84
71
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ct-design-text-area.cjs.js","sources":["../../packages/components/TextArea/src/style.ts","../../packages/components/TextArea/src/TextArea.tsx"],"sourcesContent":[null,null],"names":["styled","__assign","forwardRef","__rest","useTheme","useState","useCallback","_jsxs","_jsx","Typography","TypographyColor","memo"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ct-design-text-area.cjs.js","sources":["../../packages/components/TextArea/src/style.ts","../../packages/components/TextArea/src/TextArea.tsx"],"sourcesContent":[null,null],"names":["styled","__assign","forwardRef","__rest","useTheme","useState","useCallback","_jsxs","_jsx","Typography","TypographyColor","memo"],"mappings":";;;;;;;;;;;;;AASO,IAAM,YAAY,GAAGA,uBAAM,CAAC,GAAG,CAA6C,UAAC,EAA2E,EAAA;AAAzE,IAAA,IAAA,KAAK,GAAA,EAAA,CAAA,KAAA,EAAE,OAAO,GAAA,EAAA,CAAA,OAAA,EAAE,EAAA,GAAA,EAAA,CAAA,QAAgB,EAAhB,QAAQ,GAAG,EAAA,KAAA,KAAA,CAAA,GAAA,KAAK,GAAA,EAAA,EAAE,KAAK,GAAA,EAAA,CAAA,KAAA,EAAE,KAAK,GAAA,EAAA,CAAA,KAAA,EAAE,MAAM,GAAA,EAAA,CAAA,MAAA,EAAE,OAAO,GAAA,EAAA,CAAA,OAAA,EAAE,EAAM,GAAA,EAAA,CAAA,GAAA,EAAN,GAAG,GAAA,EAAA,KAAA,KAAA,CAAA,GAAC,EAAE,GAAA,EAAA,CAAA;IAC5J,IAAM,YAAY,GAAG,KAAK,IAAI,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC;IACzD,IAAM,UAAU,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC;IAE9C,OACCC,cAAA,CAAAA,cAAA,CAAA,EAAA,QAAQ,EAAE,UAAU,EACpB,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,QAAQ,GAAG,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,QAAQ,GAAG,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,EACvF,YAAY,EAAE,OAAO,EACrB,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,QAAQ,GAAG,CAAC,GAAG,OAAO,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,EACpF,YAAY,EAAE,KAAK,CAAC,MAAM,C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Ae,CAAC,QAAQ,EAAE,WAAW,EAAE,qBAAqB,EACzF,EAAA,EAAA,QAAA,EAAA,WAAW,EACD,CAAA,CAAA,EAAA,CAAA,CACa,CAC7B,EAEDF,cAAA,CAAC,cAAc,EAAAP,cAAA,CAAA,EACb,GAAG,EAAE,YAAY,EACjB,OAAO,EAAE,SAAS,EAClB,MAAM,EAAE,QAAQ,EAChB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,UAAU,EACpB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,CAAA,QAAQ,KAAA,IAAA,IAAR,QAAQ,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAR,QAAQ,CAAE,GAAG,KAAI,GAAG,EACzB,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACV,EAAA,IAAI,IACR,SAAS,EAAE,QAAQ,KAAA,IAAA,IAAR,QAAQ,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAR,QAAQ,CAAE,SAAS,EAAA,CAAA,CAC9B,CACW,EAAA,CAAA,CAAA,EACf;AACJ,CAAC,CACqB,CAAC;AAEzB,iBAAeU,UAAI,CAAC,QAAQ,CAAC;;;;"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { __assign, __rest } from 'tslib';
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { forwardRef, useState, useCallback, memo } from 'react';
|
|
4
|
-
import useTheme from '@cleartrip/ct-design-
|
|
4
|
+
import { useTheme } from '@cleartrip/ct-design-theme';
|
|
5
5
|
import { Typography, TypographyColor } from '@cleartrip/ct-design-typography';
|
|
6
6
|
import styled from 'styled-components';
|
|
7
7
|
|
|
8
8
|
var TextAreaRoot = styled.div(function (_a) {
|
|
9
|
-
var theme = _a.theme, focused = _a.focused, _b = _a.disabled, disabled = _b === void 0 ? false : _b, color = _a.color, width = _a.width, height = _a.height, rootCSS = _a.rootCSS;
|
|
9
|
+
var theme = _a.theme, focused = _a.focused, _b = _a.disabled, disabled = _b === void 0 ? false : _b, color = _a.color, width = _a.width, height = _a.height, rootCSS = _a.rootCSS, _c = _a.css, css = _c === void 0 ? {} : _c;
|
|
10
10
|
var outlineColor = color || theme.color.border.default;
|
|
11
11
|
var focusColor = theme.color.border.primary;
|
|
12
|
-
return __assign({ position: 'relative', overflow: 'hidden', background: disabled ? theme.color.background.disabled : theme.color.background.neutral, outlineStyle: 'solid', outlineColor: outlineColor, outlineWidth: disabled ? 0 : focused ? theme.border.width.md : theme.border.width.sm, borderRadius: theme.border.radius[12], cursor: disabled ? 'not-allowed' : 'text', boxSizing: 'border-box', '&:hover': {
|
|
12
|
+
return __assign(__assign({ position: 'relative', overflow: 'hidden', background: disabled ? theme.color.background.disabled : theme.color.background.neutral, outlineStyle: 'solid', outlineColor: outlineColor, outlineWidth: disabled ? 0 : focused ? theme.border.width.md : theme.border.width.sm, borderRadius: theme.border.radius[12], cursor: disabled ? 'not-allowed' : 'text', boxSizing: 'border-box', '&:hover': {
|
|
13
13
|
outlineColor: disabled ? theme.color.background.disabled : focusColor,
|
|
14
14
|
outlineWidth: theme.border.width.md,
|
|
15
|
-
}, width: width, height: height }, rootCSS);
|
|
15
|
+
}, width: width, height: height }, rootCSS), css);
|
|
16
16
|
});
|
|
17
17
|
var StyledTextArea = styled.textarea(function (_a) {
|
|
18
18
|
var _b = _a.width, width = _b === void 0 ? '100%' : _b, height = _a.height, theme = _a.theme, hasLabel = _a.hasLabel, css = _a.css, isResizeable = _a.isResizeable;
|
|
@@ -37,27 +37,15 @@ var StyledTextAreaPlaceHolder = styled.label(function (_a) {
|
|
|
37
37
|
};
|
|
38
38
|
});
|
|
39
39
|
var StyledTextAreaLabel = styled.label(function (_a) {
|
|
40
|
-
var disabled = _a.disabled, theme = _a.theme;
|
|
41
|
-
return {
|
|
42
|
-
display: 'block',
|
|
43
|
-
visibility: 'visible',
|
|
44
|
-
whiteSpace: 'nowrap',
|
|
45
|
-
overflow: 'hidden',
|
|
46
|
-
textOverflow: 'ellipsis',
|
|
47
|
-
position: 'absolute',
|
|
48
|
-
padding: '4px 0 0 16px',
|
|
49
|
-
width: '100%',
|
|
50
|
-
background: disabled ? theme.color.background.disabled : theme.color.background.neutral,
|
|
51
|
-
zIndex: 1,
|
|
52
|
-
pointerEvents: 'none',
|
|
53
|
-
userSelect: 'none',
|
|
54
|
-
};
|
|
40
|
+
var disabled = _a.disabled, theme = _a.theme, _b = _a.css, css = _b === void 0 ? {} : _b;
|
|
41
|
+
return __assign({ display: 'block', visibility: 'visible', whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', position: 'absolute', padding: '4px 0 0 16px', width: '100%', background: disabled ? theme.color.background.disabled : theme.color.background.neutral, zIndex: 1, pointerEvents: 'none', userSelect: 'none' }, css);
|
|
55
42
|
});
|
|
56
43
|
|
|
57
44
|
var TextArea = forwardRef(function (_a, forwardedRef) {
|
|
58
|
-
var _b = _a.placeholder, placeholder = _b === void 0 ? '' : _b, _c = _a.value, value = _c === void 0 ? '' : _c, onChange = _a.onChange, _d = _a.label, label = _d === void 0 ? '' : _d, onFocus = _a.onFocus, onBlur = _a.onBlur, css = _a.css; _a.rootCSS; var _e = _a.rows, rows = _e === void 0 ? 4 : _e, _f = _a.disabled, disabled = _f === void 0 ? false : _f, _g = _a.height, height = _g === void 0 ? 100 : _g, _h = _a.width, width = _h === void 0 ? '100%' : _h, rest = __rest(_a, ["placeholder", "value", "onChange", "label", "onFocus", "onBlur", "css", "rootCSS", "rows", "disabled", "height", "width"]);
|
|
45
|
+
var _b = _a.placeholder, placeholder = _b === void 0 ? '' : _b, _c = _a.value, value = _c === void 0 ? '' : _c, onChange = _a.onChange, _d = _a.label, label = _d === void 0 ? '' : _d, onFocus = _a.onFocus, onBlur = _a.onBlur, css = _a.css; _a.rootCSS; var _e = _a.rows, rows = _e === void 0 ? 4 : _e, _f = _a.disabled, disabled = _f === void 0 ? false : _f, _g = _a.height, height = _g === void 0 ? 100 : _g, _h = _a.width, width = _h === void 0 ? '100%' : _h, _j = _a.styleConfig, styleConfig = _j === void 0 ? {} : _j, rest = __rest(_a, ["placeholder", "value", "onChange", "label", "onFocus", "onBlur", "css", "rootCSS", "rows", "disabled", "height", "width", "styleConfig"]);
|
|
59
46
|
var theme = useTheme();
|
|
60
|
-
var
|
|
47
|
+
var root = styleConfig.root, labelContainer = styleConfig.labelContainer, labelTypography = styleConfig.labelTypography, placeholderContainer = styleConfig.placeholderContainer, placeholderTypography = styleConfig.placeholderTypography, textArea = styleConfig.textArea;
|
|
48
|
+
var _k = useState(false), focused = _k[0], setFocused = _k[1];
|
|
61
49
|
var hasLabel = !!label;
|
|
62
50
|
var isFilled = value.length >= 1;
|
|
63
51
|
var onChangeCB = useCallback(function (event) {
|
|
@@ -71,7 +59,7 @@ var TextArea = forwardRef(function (_a, forwardedRef) {
|
|
|
71
59
|
setFocused(false);
|
|
72
60
|
onBlur && onBlur(event);
|
|
73
61
|
}, [onBlur]);
|
|
74
|
-
return (jsxs(TextAreaRoot, __assign({ width: width, height: height, disabled: disabled, focused: focused, theme: theme }, { children: [hasLabel && (jsx(StyledTextAreaLabel, __assign({ theme: theme, filled: isFilled, disabled: disabled }, { children: jsx(Typography, __assign({ variant: 'B2', color: TypographyColor.DISABLED, lineClamp: 1 }, { children: label })) }))), !!placeholder && (jsx(StyledTextAreaPlaceHolder, __assign({ filled: isFilled }, { children: jsx(Typography, __assign({ variant: 'B1', color: TypographyColor.DISABLED }, { children: placeholder })) }))), jsx(StyledTextArea, __assign({ ref: forwardedRef, onFocus: onFocusCB, onBlur: onBlurCB, rows: rows, onChange: onChangeCB, theme: theme, hasLabel: hasLabel, value: value, css: css, disabled: disabled, height: height }, rest))] })));
|
|
62
|
+
return (jsxs(TextAreaRoot, __assign({ width: width, height: height, disabled: disabled, focused: focused, theme: theme, className: root === null || root === void 0 ? void 0 : root.className, css: root === null || root === void 0 ? void 0 : root.css }, { children: [hasLabel && (jsx(StyledTextAreaLabel, __assign({ theme: theme, filled: isFilled, disabled: disabled, className: labelContainer === null || labelContainer === void 0 ? void 0 : labelContainer.className, css: labelContainer === null || labelContainer === void 0 ? void 0 : labelContainer.css }, { children: jsx(Typography, __assign({ variant: 'B2', color: TypographyColor.DISABLED, lineClamp: 1, styleConfig: labelTypography }, { children: label })) }))), !!placeholder && (jsx(StyledTextAreaPlaceHolder, __assign({ filled: isFilled, className: placeholderContainer === null || placeholderContainer === void 0 ? void 0 : placeholderContainer.className, css: placeholderContainer === null || placeholderContainer === void 0 ? void 0 : placeholderContainer.css }, { children: jsx(Typography, __assign({ variant: 'B1', color: TypographyColor.DISABLED, styleConfig: placeholderTypography }, { children: placeholder })) }))), jsx(StyledTextArea, __assign({ ref: forwardedRef, onFocus: onFocusCB, onBlur: onBlurCB, rows: rows, onChange: onChangeCB, theme: theme, hasLabel: hasLabel, value: value, css: (textArea === null || textArea === void 0 ? void 0 : textArea.css) || css, disabled: disabled, height: height }, rest, { className: textArea === null || textArea === void 0 ? void 0 : textArea.className }))] })));
|
|
75
63
|
});
|
|
76
64
|
var TextArea$1 = memo(TextArea);
|
|
77
65
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ct-design-text-area.esm.js","sources":["../../packages/components/TextArea/src/style.ts","../../packages/components/TextArea/src/TextArea.tsx"],"sourcesContent":[null,null],"names":["_jsxs","_jsx"],"mappings":";;;;;;;AASO,IAAM,YAAY,GAAG,MAAM,CAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"ct-design-text-area.esm.js","sources":["../../packages/components/TextArea/src/style.ts","../../packages/components/TextArea/src/TextArea.tsx"],"sourcesContent":[null,null],"names":["_jsxs","_jsx"],"mappings":";;;;;;;AASO,IAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAA6C,UAAC,EAA2E,EAAA;AAAzE,IAAA,IAAA,KAAK,GAAA,EAAA,CAAA,KAAA,EAAE,OAAO,GAAA,EAA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K,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,CAAA,QAAQ,KAAA,IAAA,IAAR,QAAQ,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAR,QAAQ,CAAE,GAAG,KAAI,GAAG,EACzB,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACV,EAAA,IAAI,IACR,SAAS,EAAE,QAAQ,KAAA,IAAA,IAAR,QAAQ,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAR,QAAQ,CAAE,SAAS,EAAA,CAAA,CAC9B,CACW,EAAA,CAAA,CAAA,EACf;AACJ,CAAC,CACqB,CAAC;AAEzB,iBAAe,IAAI,CAAC,QAAQ,CAAC;;;;"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react/jsx-runtime'), require('react'), require('@cleartrip/ct-design-
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', 'react/jsx-runtime', 'react', '@cleartrip/ct-design-
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.CTDesignSystemTextArea = {}, global.jsxRuntime, global.React, global.
|
|
5
|
-
})(this, (function (exports, jsxRuntime, react,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react/jsx-runtime'), require('react'), require('@cleartrip/ct-design-theme'), require('@cleartrip/ct-design-typography'), require('styled-components')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', 'react/jsx-runtime', 'react', '@cleartrip/ct-design-theme', '@cleartrip/ct-design-typography', 'styled-components'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.CTDesignSystemTextArea = {}, global.jsxRuntime, global.React, global.ctDesignTheme, global.ctDesignTypography, global.styled));
|
|
5
|
+
})(this, (function (exports, jsxRuntime, react, ctDesignTheme, ctDesignTypography, styled) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
8
8
|
|
|
9
|
-
var useTheme__default = /*#__PURE__*/_interopDefault(useTheme);
|
|
10
9
|
var styled__default = /*#__PURE__*/_interopDefault(styled);
|
|
11
10
|
|
|
12
11
|
/******************************************************************************
|
|
@@ -49,13 +48,13 @@
|
|
|
49
48
|
};
|
|
50
49
|
|
|
51
50
|
var TextAreaRoot = styled__default.default.div(function (_a) {
|
|
52
|
-
var theme = _a.theme, focused = _a.focused, _b = _a.disabled, disabled = _b === void 0 ? false : _b, color = _a.color, width = _a.width, height = _a.height, rootCSS = _a.rootCSS;
|
|
51
|
+
var theme = _a.theme, focused = _a.focused, _b = _a.disabled, disabled = _b === void 0 ? false : _b, color = _a.color, width = _a.width, height = _a.height, rootCSS = _a.rootCSS, _c = _a.css, css = _c === void 0 ? {} : _c;
|
|
53
52
|
var outlineColor = color || theme.color.border.default;
|
|
54
53
|
var focusColor = theme.color.border.primary;
|
|
55
|
-
return __assign({ position: 'relative', overflow: 'hidden', background: disabled ? theme.color.background.disabled : theme.color.background.neutral, outlineStyle: 'solid', outlineColor: outlineColor, outlineWidth: disabled ? 0 : focused ? theme.border.width.md : theme.border.width.sm, borderRadius: theme.border.radius[12], cursor: disabled ? 'not-allowed' : 'text', boxSizing: 'border-box', '&:hover': {
|
|
54
|
+
return __assign(__assign({ position: 'relative', overflow: 'hidden', background: disabled ? theme.color.background.disabled : theme.color.background.neutral, outlineStyle: 'solid', outlineColor: outlineColor, outlineWidth: disabled ? 0 : focused ? theme.border.width.md : theme.border.width.sm, borderRadius: theme.border.radius[12], cursor: disabled ? 'not-allowed' : 'text', boxSizing: 'border-box', '&:hover': {
|
|
56
55
|
outlineColor: disabled ? theme.color.background.disabled : focusColor,
|
|
57
56
|
outlineWidth: theme.border.width.md,
|
|
58
|
-
}, width: width, height: height }, rootCSS);
|
|
57
|
+
}, width: width, height: height }, rootCSS), css);
|
|
59
58
|
});
|
|
60
59
|
var StyledTextArea = styled__default.default.textarea(function (_a) {
|
|
61
60
|
var _b = _a.width, width = _b === void 0 ? '100%' : _b, height = _a.height, theme = _a.theme, hasLabel = _a.hasLabel, css = _a.css, isResizeable = _a.isResizeable;
|
|
@@ -80,27 +79,15 @@
|
|
|
80
79
|
};
|
|
81
80
|
});
|
|
82
81
|
var StyledTextAreaLabel = styled__default.default.label(function (_a) {
|
|
83
|
-
var disabled = _a.disabled, theme = _a.theme;
|
|
84
|
-
return {
|
|
85
|
-
display: 'block',
|
|
86
|
-
visibility: 'visible',
|
|
87
|
-
whiteSpace: 'nowrap',
|
|
88
|
-
overflow: 'hidden',
|
|
89
|
-
textOverflow: 'ellipsis',
|
|
90
|
-
position: 'absolute',
|
|
91
|
-
padding: '4px 0 0 16px',
|
|
92
|
-
width: '100%',
|
|
93
|
-
background: disabled ? theme.color.background.disabled : theme.color.background.neutral,
|
|
94
|
-
zIndex: 1,
|
|
95
|
-
pointerEvents: 'none',
|
|
96
|
-
userSelect: 'none',
|
|
97
|
-
};
|
|
82
|
+
var disabled = _a.disabled, theme = _a.theme, _b = _a.css, css = _b === void 0 ? {} : _b;
|
|
83
|
+
return __assign({ display: 'block', visibility: 'visible', whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', position: 'absolute', padding: '4px 0 0 16px', width: '100%', background: disabled ? theme.color.background.disabled : theme.color.background.neutral, zIndex: 1, pointerEvents: 'none', userSelect: 'none' }, css);
|
|
98
84
|
});
|
|
99
85
|
|
|
100
86
|
var TextArea = react.forwardRef(function (_a, forwardedRef) {
|
|
101
|
-
var _b = _a.placeholder, placeholder = _b === void 0 ? '' : _b, _c = _a.value, value = _c === void 0 ? '' : _c, onChange = _a.onChange, _d = _a.label, label = _d === void 0 ? '' : _d, onFocus = _a.onFocus, onBlur = _a.onBlur, css = _a.css; _a.rootCSS; var _e = _a.rows, rows = _e === void 0 ? 4 : _e, _f = _a.disabled, disabled = _f === void 0 ? false : _f, _g = _a.height, height = _g === void 0 ? 100 : _g, _h = _a.width, width = _h === void 0 ? '100%' : _h, rest = __rest(_a, ["placeholder", "value", "onChange", "label", "onFocus", "onBlur", "css", "rootCSS", "rows", "disabled", "height", "width"]);
|
|
102
|
-
var theme =
|
|
103
|
-
var
|
|
87
|
+
var _b = _a.placeholder, placeholder = _b === void 0 ? '' : _b, _c = _a.value, value = _c === void 0 ? '' : _c, onChange = _a.onChange, _d = _a.label, label = _d === void 0 ? '' : _d, onFocus = _a.onFocus, onBlur = _a.onBlur, css = _a.css; _a.rootCSS; var _e = _a.rows, rows = _e === void 0 ? 4 : _e, _f = _a.disabled, disabled = _f === void 0 ? false : _f, _g = _a.height, height = _g === void 0 ? 100 : _g, _h = _a.width, width = _h === void 0 ? '100%' : _h, _j = _a.styleConfig, styleConfig = _j === void 0 ? {} : _j, rest = __rest(_a, ["placeholder", "value", "onChange", "label", "onFocus", "onBlur", "css", "rootCSS", "rows", "disabled", "height", "width", "styleConfig"]);
|
|
88
|
+
var theme = ctDesignTheme.useTheme();
|
|
89
|
+
var root = styleConfig.root, labelContainer = styleConfig.labelContainer, labelTypography = styleConfig.labelTypography, placeholderContainer = styleConfig.placeholderContainer, placeholderTypography = styleConfig.placeholderTypography, textArea = styleConfig.textArea;
|
|
90
|
+
var _k = react.useState(false), focused = _k[0], setFocused = _k[1];
|
|
104
91
|
var hasLabel = !!label;
|
|
105
92
|
var isFilled = value.length >= 1;
|
|
106
93
|
var onChangeCB = react.useCallback(function (event) {
|
|
@@ -114,7 +101,7 @@
|
|
|
114
101
|
setFocused(false);
|
|
115
102
|
onBlur && onBlur(event);
|
|
116
103
|
}, [onBlur]);
|
|
117
|
-
return (jsxRuntime.jsxs(TextAreaRoot, __assign({ width: width, height: height, disabled: disabled, focused: focused, theme: theme }, { children: [hasLabel && (jsxRuntime.jsx(StyledTextAreaLabel, __assign({ theme: theme, filled: isFilled, disabled: disabled }, { children: jsxRuntime.jsx(ctDesignTypography.Typography, __assign({ variant: 'B2', color: ctDesignTypography.TypographyColor.DISABLED, lineClamp: 1 }, { children: label })) }))), !!placeholder && (jsxRuntime.jsx(StyledTextAreaPlaceHolder, __assign({ filled: isFilled }, { children: jsxRuntime.jsx(ctDesignTypography.Typography, __assign({ variant: 'B1', color: ctDesignTypography.TypographyColor.DISABLED }, { children: placeholder })) }))), jsxRuntime.jsx(StyledTextArea, __assign({ ref: forwardedRef, onFocus: onFocusCB, onBlur: onBlurCB, rows: rows, onChange: onChangeCB, theme: theme, hasLabel: hasLabel, value: value, css: css, disabled: disabled, height: height }, rest))] })));
|
|
104
|
+
return (jsxRuntime.jsxs(TextAreaRoot, __assign({ width: width, height: height, disabled: disabled, focused: focused, theme: theme, className: root === null || root === void 0 ? void 0 : root.className, css: root === null || root === void 0 ? void 0 : root.css }, { children: [hasLabel && (jsxRuntime.jsx(StyledTextAreaLabel, __assign({ theme: theme, filled: isFilled, disabled: disabled, className: labelContainer === null || labelContainer === void 0 ? void 0 : labelContainer.className, css: labelContainer === null || labelContainer === void 0 ? void 0 : labelContainer.css }, { children: jsxRuntime.jsx(ctDesignTypography.Typography, __assign({ variant: 'B2', color: ctDesignTypography.TypographyColor.DISABLED, lineClamp: 1, styleConfig: labelTypography }, { children: label })) }))), !!placeholder && (jsxRuntime.jsx(StyledTextAreaPlaceHolder, __assign({ filled: isFilled, className: placeholderContainer === null || placeholderContainer === void 0 ? void 0 : placeholderContainer.className, css: placeholderContainer === null || placeholderContainer === void 0 ? void 0 : placeholderContainer.css }, { children: jsxRuntime.jsx(ctDesignTypography.Typography, __assign({ variant: 'B1', color: ctDesignTypography.TypographyColor.DISABLED, styleConfig: placeholderTypography }, { children: placeholder })) }))), jsxRuntime.jsx(StyledTextArea, __assign({ ref: forwardedRef, onFocus: onFocusCB, onBlur: onBlurCB, rows: rows, onChange: onChangeCB, theme: theme, hasLabel: hasLabel, value: value, css: (textArea === null || textArea === void 0 ? void 0 : textArea.css) || css, disabled: disabled, height: height }, rest, { className: textArea === null || textArea === void 0 ? void 0 : textArea.className }))] })));
|
|
118
105
|
});
|
|
119
106
|
var TextArea$1 = react.memo(TextArea);
|
|
120
107
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ct-design-text-area.umd.js","sources":["../../../../node_modules/.pnpm/@rollup+plugin-typescript@9.0.2_rollup@3.29.4_tslib@2.6.2_typescript@4.9.5/node_modules/tslib/tslib.es6.js","../../packages/components/TextArea/src/style.ts","../../packages/components/TextArea/src/TextArea.tsx"],"sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n function next() {\r\n while (env.stack.length) {\r\n var rec = env.stack.pop();\r\n try {\r\n var result = rec.dispose && rec.dispose.call(rec.value);\r\n if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n};\r\n",null,null],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","SuppressedError","error","suppressed","message","Error","name","styled","forwardRef","useTheme","useState","useCallback","_jsxs","_jsx","Typography","TypographyColor","memo"],"mappings":";;;;;;;;;;;IAAA;IACA;AACA;IACA;IACA;AACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;IAiBO,IAAIA,QAAQ,GAAG,YAAW;MAC7BA,QAAQ,GAAGC,MAAM,CAACC,MAAM,IAAI,SAASF,QAAQA,CAACG,CAAC,EAAE;IAC7C,IAAA,KAAK,IAAIC,CAAC,EAAEC,CAAC,GAAG,CAAC,EAAEC,CAAC,GAAGC,SAAS,CAACC,MAAM,EAAEH,CAAC,GAAGC,CAAC,EAAED,CAAC,EAAE,EAAE;IACjDD,MAAAA,CAAC,GAAGG,SAAS,CAACF,CAAC,CAAC,CAAA;UAChB,KAAK,IAAII,CAAC,IAAIL,CAAC,EAAE,IAAIH,MAAM,CAACS,SAAS,CAACC,cAAc,CAACC,IAAI,CAACR,CAAC,EAAEK,CAAC,CAAC,EAAEN,CAAC,CAACM,CAAC,CAAC,GAAGL,CAAC,CAACK,CAAC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AQ,EAAA,EAAA,EAAA,QAAA,EACzCA,cAAC,CAAAC,6BAAU,aAAC,OAAO,EAAC,IAAI,EAAC,KAAK,EAAEC,kCAAe,CAAC,QAAQ,EACrD,EAAA,EAAA,QAAA,EAAA,WAAW,EACD,CAAA,CAAA,EAAA,CAAA,CACa,CAC7B,EAEDF,cAAC,CAAA,cAAc,aACb,GAAG,EAAE,YAAY,EACjB,OAAO,EAAE,SAAS,EAClB,MAAM,EAAE,QAAQ,EAChB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,UAAU,EACpB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,GAAG,EACR,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACV,EAAA,IAAI,CACR,CAAA,CAAA,EAAA,CAAA,CACW,EACf;IACJ,CAAC,CACqB,CAAC;AAEzB,qBAAeG,UAAI,CAAC,QAAQ,CAAC;;;;;;;;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"ct-design-text-area.umd.js","sources":["../../../../node_modules/.pnpm/@rollup+plugin-typescript@9.0.2_rollup@3.29.4_tslib@2.6.2_typescript@4.9.5/node_modules/tslib/tslib.es6.js","../../packages/components/TextArea/src/style.ts","../../packages/components/TextArea/src/TextArea.tsx"],"sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n function next() {\r\n while (env.stack.length) {\r\n var rec = env.stack.pop();\r\n try {\r\n var result = rec.dispose && rec.dispose.call(rec.value);\r\n if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n};\r\n",null,null],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","SuppressedError","error","suppressed","message","Error","name","styled","forwardRef","useTheme","useState","useCallback","_jsxs","_jsx","Typography","TypographyColor","memo"],"mappings":";;;;;;;;;;IAAA;IACA;AACA;IACA;IACA;AACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;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,SAAS,EAAA,CAAA,CAC9B,CACW,EAAA,CAAA,CAAA,EACf;IACJ,CAAC,CACqB,CAAC;AAEzB,qBAAeG,UAAI,CAAC,QAAQ,CAAC;;;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../packages/components/TextArea/src/TextArea.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,4BAA4B,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../packages/components/TextArea/src/TextArea.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,4BAA4B,EAAE,MAAM,4BAA4B,CAAC;AAK1E,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAExC,KAAK,mBAAmB,GAAG,4BAA4B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;;AAgHpF,wBAA8B"}
|
package/dist/src/style.d.ts
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
|
+
import { CSSProperties } from 'styled-components';
|
|
1
2
|
import { ITextAreaStyledPlaceHolderProps, ITextAreaRootProps, ITextAreaStyledLabelProps, IStyledTextAreaProps } from './type';
|
|
2
|
-
export declare const TextAreaRoot: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, ITextAreaRootProps
|
|
3
|
+
export declare const TextAreaRoot: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, ITextAreaRootProps & {
|
|
4
|
+
css?: CSSProperties | undefined;
|
|
5
|
+
}, never>;
|
|
3
6
|
export declare const StyledTextArea: import("styled-components").StyledComponent<"textarea", import("styled-components").DefaultTheme, IStyledTextAreaProps, never>;
|
|
4
|
-
export declare const StyledTextAreaPlaceHolder: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, ITextAreaStyledPlaceHolderProps
|
|
5
|
-
|
|
7
|
+
export declare const StyledTextAreaPlaceHolder: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, ITextAreaStyledPlaceHolderProps & {
|
|
8
|
+
css?: CSSProperties | undefined;
|
|
9
|
+
}, never>;
|
|
10
|
+
export declare const StyledTextAreaLabel: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, ITextAreaStyledLabelProps & {
|
|
11
|
+
css?: CSSProperties | undefined;
|
|
12
|
+
}, never>;
|
|
6
13
|
//# sourceMappingURL=style.d.ts.map
|
package/dist/src/style.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../packages/components/TextArea/src/style.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../packages/components/TextArea/src/style.ts"],"names":[],"mappings":"AAAA,OAAe,EAAa,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAErE,OAAO,EACN,+BAA+B,EAC/B,kBAAkB,EAClB,yBAAyB,EACzB,oBAAoB,EACpB,MAAM,QAAQ,CAAC;AAEhB,eAAO,MAAM,YAAY;;SAuBvB,CAAC;AAEH,eAAO,MAAM,cAAc,gIAazB,CAAC;AAEH,eAAO,MAAM,yBAAyB;;SAgBpC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;SAgB9B,CAAC"}
|
package/dist/src/type.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseStyleConfigProps, TypographyStyleConfigProps } from '@cleartrip/ct-design-types';
|
|
2
|
+
import { Theme } from '@cleartrip/ct-design-theme';
|
|
2
3
|
import { CSSProperties } from 'styled-components';
|
|
3
4
|
export interface ITextAreaProps extends HTMLTextAreaElement {
|
|
4
5
|
label?: string;
|
|
@@ -6,14 +7,22 @@ export interface ITextAreaProps extends HTMLTextAreaElement {
|
|
|
6
7
|
rootCSS?: CSSProperties;
|
|
7
8
|
width?: number;
|
|
8
9
|
height?: number;
|
|
10
|
+
styleConfig?: {
|
|
11
|
+
root?: BaseStyleConfigProps;
|
|
12
|
+
labelContainer?: BaseStyleConfigProps;
|
|
13
|
+
labelTypography?: TypographyStyleConfigProps;
|
|
14
|
+
placeholderContainer?: BaseStyleConfigProps;
|
|
15
|
+
placeholderTypography?: TypographyStyleConfigProps;
|
|
16
|
+
textArea?: BaseStyleConfigProps;
|
|
17
|
+
};
|
|
9
18
|
}
|
|
10
19
|
export interface ITextAreaRootProps {
|
|
11
20
|
rootCSS?: CSSProperties;
|
|
12
21
|
theme: Theme;
|
|
13
22
|
focused?: boolean;
|
|
14
23
|
disabled: boolean;
|
|
15
|
-
width?: number;
|
|
16
|
-
height?: number;
|
|
24
|
+
width?: number | string;
|
|
25
|
+
height?: number | string;
|
|
17
26
|
}
|
|
18
27
|
export interface ITextAreaStyledPlaceHolderProps {
|
|
19
28
|
theme: Theme;
|
package/dist/src/type.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../packages/components/TextArea/src/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../packages/components/TextArea/src/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAC9F,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,WAAW,cAAe,SAAQ,mBAAmB;IAIzD,KAAK,CAAC,EAAE,MAAM,CAAC;IAKf,YAAY,CAAC,EAAE,OAAO,CAAC;IAMvB,OAAO,CAAC,EAAE,aAAa,CAAC;IAKxB,KAAK,CAAC,EAAE,MAAM,CAAC;IAKf,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,WAAW,CAAC,EAAE;QAIZ,IAAI,CAAC,EAAE,oBAAoB,CAAC;QAK5B,cAAc,CAAC,EAAE,oBAAoB,CAAC;QAKtC,eAAe,CAAC,EAAE,0BAA0B,CAAC;QAK7C,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;QAK5C,qBAAqB,CAAC,EAAE,0BAA0B,CAAC;QAKnD,QAAQ,CAAC,EAAE,oBAAoB,CAAC;KACjC,CAAC;CACH;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,+BAA+B;IAC9C,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,oBAAoB;IACnC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,KAAK,EAAE,KAAK,CAAC;IACb,GAAG,CAAC,EAAE,aAAa,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
package/dist/stats.html
CHANGED
|
@@ -4818,7 +4818,7 @@ var drawChart = (function (exports) {
|
|
|
4818
4818
|
</script>
|
|
4819
4819
|
<script>
|
|
4820
4820
|
/*<!--*/
|
|
4821
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"ct-design-text-area.umd.js","children":[{"name":"Users/kanishk.gupta/Desktop/Cleartrip/ct-design-system/node_modules/.pnpm/@rollup+plugin-typescript@9.0.2_rollup@3.29.4_tslib@2.6.2_typescript@4.9.5/node_modules/tslib/tslib.es6.js","uid":"
|
|
4821
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"ct-design-text-area.umd.js","children":[{"name":"Users/kanishk.gupta/Desktop/Cleartrip/ct-design-system/node_modules/.pnpm/@rollup+plugin-typescript@9.0.2_rollup@3.29.4_tslib@2.6.2_typescript@4.9.5/node_modules/tslib/tslib.es6.js","uid":"2c8b-49"},{"name":"src","children":[{"uid":"2c8b-51","name":"style.ts"},{"uid":"2c8b-53","name":"TextArea.tsx"},{"uid":"2c8b-55","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"2c8b-49":{"renderedLength":1952,"gzipLength":878,"brotliLength":693,"metaUid":"2c8b-48"},"2c8b-51":{"renderedLength":2641,"gzipLength":852,"brotliLength":728,"metaUid":"2c8b-50"},"2c8b-53":{"renderedLength":3432,"gzipLength":996,"brotliLength":864,"metaUid":"2c8b-52"},"2c8b-55":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"2c8b-54"}},"nodeMetas":{"2c8b-48":{"id":"/Users/kanishk.gupta/Desktop/Cleartrip/ct-design-system/node_modules/.pnpm/@rollup+plugin-typescript@9.0.2_rollup@3.29.4_tslib@2.6.2_typescript@4.9.5/node_modules/tslib/tslib.es6.js","moduleParts":{"ct-design-text-area.umd.js":"2c8b-49"},"imported":[],"importedBy":[{"uid":"2c8b-52"},{"uid":"2c8b-50"}]},"2c8b-50":{"id":"/src/style.ts","moduleParts":{"ct-design-text-area.umd.js":"2c8b-51"},"imported":[{"uid":"2c8b-48"},{"uid":"2c8b-60"}],"importedBy":[{"uid":"2c8b-52"}]},"2c8b-52":{"id":"/src/TextArea.tsx","moduleParts":{"ct-design-text-area.umd.js":"2c8b-53"},"imported":[{"uid":"2c8b-48"},{"uid":"2c8b-56"},{"uid":"2c8b-57"},{"uid":"2c8b-58"},{"uid":"2c8b-59"},{"uid":"2c8b-50"}],"importedBy":[{"uid":"2c8b-54"}]},"2c8b-54":{"id":"/src/index.ts","moduleParts":{"ct-design-text-area.umd.js":"2c8b-55"},"imported":[{"uid":"2c8b-52"}],"importedBy":[],"isEntry":true},"2c8b-56":{"id":"react/jsx-runtime","moduleParts":{},"imported":[],"importedBy":[{"uid":"2c8b-52"}],"isExternal":true},"2c8b-57":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"2c8b-52"}],"isExternal":true},"2c8b-58":{"id":"@cleartrip/ct-design-theme","moduleParts":{},"imported":[],"importedBy":[{"uid":"2c8b-52"}],"isExternal":true},"2c8b-59":{"id":"@cleartrip/ct-design-typography","moduleParts":{},"imported":[],"importedBy":[{"uid":"2c8b-52"}],"isExternal":true},"2c8b-60":{"id":"styled-components","moduleParts":{},"imported":[],"importedBy":[{"uid":"2c8b-50"}],"isExternal":true}},"env":{"rollup":"3.29.4"},"options":{"gzip":true,"brotli":true,"sourcemap":false}};
|
|
4822
4822
|
|
|
4823
4823
|
const run = () => {
|
|
4824
4824
|
const width = window.innerWidth;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cleartrip/ct-design-text-area",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0-beta.0",
|
|
4
4
|
"description": "TextArea Component",
|
|
5
5
|
"types": "dist/src/index.d.ts",
|
|
6
6
|
"main": "dist/ct-design-text-area.cjs.js",
|
|
@@ -15,10 +15,9 @@
|
|
|
15
15
|
"dist"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@cleartrip/ct-design-
|
|
19
|
-
"@cleartrip/ct-design-
|
|
20
|
-
"@cleartrip/ct-design-typography": "1.
|
|
21
|
-
"@cleartrip/ct-design-types": "1.0.1-beta"
|
|
18
|
+
"@cleartrip/ct-design-theme": "1.2.0-beta.0",
|
|
19
|
+
"@cleartrip/ct-design-types": "1.2.0-beta.0",
|
|
20
|
+
"@cleartrip/ct-design-typography": "1.2.0-beta.0"
|
|
22
21
|
},
|
|
23
22
|
"devDependencies": {},
|
|
24
23
|
"peerDependencies": {
|