@wishket/design-system 0.7.1 → 0.7.2
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/Components/Atoms/ServiceLogo/Icons/JobsSymbol.d.ts +1 -1
- package/dist/Components/Atoms/ServiceLogo/Icons/JobsSymbol.js +1 -1
- package/dist/Components/Atoms/ServiceLogo/Icons/WishketSymbol.d.ts +1 -1
- package/dist/Components/Atoms/ServiceLogo/Icons/WishketSymbol.js +1 -1
- package/dist/Components/Atoms/ServiceLogo/Icons/YozmITSymbol.d.ts +1 -1
- package/dist/Components/Atoms/ServiceLogo/Icons/YozmITSymbol.js +1 -1
- package/dist/Components/Atoms/ServiceLogo/ServiceLogo.d.ts +2 -2
- package/dist/Components/Atoms/ServiceLogo/ServiceLogo.js +1 -1
- package/dist/Components/Atoms/ServiceLogo/ServiceLogo.types.d.ts +1 -1
- package/dist/Components/Atoms/TextInput/TextInput.d.ts +1 -1
- package/dist/Components/Atoms/TextInput/TextInput.js +1 -1
- package/dist/Components/Atoms/TextInput/TextInput.types.d.ts +1 -0
- package/dist/Components/Organisms/TextTab/TextTab.d.ts +1 -1
- package/dist/Components/Organisms/TextTab/TextTab.parts.d.ts +1 -1
- package/dist/Components/Organisms/TextTab/TextTab.parts.js +1 -1
- package/dist/Components/Organisms/TextTab/TextTab.types.d.ts +0 -1
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ServiceLogoPartProps } from '../ServiceLogo.types';
|
|
2
|
-
declare const JobsSymbol: ({
|
|
2
|
+
declare const JobsSymbol: ({ className, variant }: ServiceLogoPartProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default JobsSymbol;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var l=require("react/jsx-runtime");module.exports=function(e){var d=e.className,e=e.variant;return"disabled"===e?l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:d,"data-testid":"design-system-logo--jobs-symbol-disabled",children:[l.jsx("path",{opacity:"0.7",fillRule:"evenodd",clipRule:"evenodd",d:"M12.25 20.9975L5 16.1404V7.10889L12.25 11.804V20.9975Z",fill:"#BDBDBD"}),l.jsx("path",{opacity:"0.6",fillRule:"evenodd",clipRule:"evenodd",d:"M5 16.1725L12.25 11.8965V3L5 7.12171V16.1725Z",fill:"#BDBDBD"}),l.jsx("path",{opacity:"0.5",fillRule:"evenodd",clipRule:"evenodd",d:"M8.7407 18.6397L15.9142 14.2197L15.7588 5.32581L8.58276 9.59022L8.7407 18.6397Z",fill:"#BDBDBD"}),l.jsx("path",{opacity:"0.4",fillRule:"evenodd",clipRule:"evenodd",d:"M12.25 20.9999L19.5 16.1428V7.11133L12.25 11.8064V20.9999Z",fill:"#BDBDBD"})]}):"bluegray"===e?l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:d,"data-testid":"design-system-logo--jobs-symbol-bluegray",children:[l.jsx("path",{opacity:"0.7",fillRule:"evenodd",clipRule:"evenodd",d:"M12.25 20.9975L5 16.1404V7.10889L12.25 11.804V20.9975Z",fill:"#787D85"}),l.jsx("path",{opacity:"0.6",fillRule:"evenodd",clipRule:"evenodd",d:"M5 16.1725L12.25 11.8965V3L5 7.12171V16.1725Z",fill:"#787D85"}),l.jsx("path",{opacity:"0.5",fillRule:"evenodd",clipRule:"evenodd",d:"M8.74082 18.6397L15.9143 14.2197L15.7589 5.32581L8.58289 9.59022L8.74082 18.6397Z",fill:"#787D85"}),l.jsx("path",{opacity:"0.4",fillRule:"evenodd",clipRule:"evenodd",d:"M12.25 20.9999L19.5 16.1428V7.11133L12.25 11.8064V20.9999Z",fill:"#787D85"})]}):l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:d,"data-testid":"design-system-logo--jobs-symbol",children:[l.jsx("path",{opacity:"0.7",fillRule:"evenodd",clipRule:"evenodd",d:"M12.25 20.9975L5 16.1404V7.10889L12.25 11.804V20.9975Z",fill:"#006DFF"}),l.jsx("path",{opacity:"0.6",fillRule:"evenodd",clipRule:"evenodd",d:"M5 16.1725L12.25 11.8965V3L5 7.12171V16.1725Z",fill:"#006DFF"}),l.jsx("path",{opacity:"0.5",fillRule:"evenodd",clipRule:"evenodd",d:"M8.7407 18.6397L15.9142 14.2197L15.7588 5.32581L8.58276 9.59022L8.7407 18.6397Z",fill:"#006DFF"}),l.jsx("path",{opacity:"0.4",fillRule:"evenodd",clipRule:"evenodd",d:"M12.25 20.9999L19.5 16.1428V7.11133L12.25 11.8064V20.9999Z",fill:"#006DFF"})]})};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ServiceLogoPartProps } from '../ServiceLogo.types';
|
|
2
|
-
declare const WishketSymbol: ({
|
|
2
|
+
declare const WishketSymbol: ({ className, variant }: ServiceLogoPartProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default WishketSymbol;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime");module.exports=function(l){var d=l.
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime");module.exports=function(l){var d=l.className,l=l.variant;return"disabled"===l?e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:d,"data-testid":"design-system-logo--wishket-symbol-disabled",children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7187 9.45926L14.9588 11.604L14.9094 12L10.2935 14.6912L10.2948 19.6569C10.2948 20.2047 10.9375 20.7125 10.9375 20.7125C11.5948 21.0957 12.4041 21.0957 13.0614 20.7125L18.9374 17.2846C19.5947 16.9014 20.0001 16.1943 20.0001 15.4266V8.57335C20.0001 8.31876 19.9521 8.07446 19.8694 7.84302C19.6707 8.90766 19.1641 9.16096 18.7187 9.45926Z",fill:"#BDBDBD"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5454 19.6262V9.18422L6.66673 6.82607C5.95473 6.29118 5.0614 6.71421 5.0614 6.71421C4.73408 6.91009 4.46452 7.18389 4.27865 7.50928C4.09278 7.83467 3.99685 8.2007 4.00008 8.57218V15.428C4.00008 16.1944 4.40408 16.9028 5.0614 17.286L10.9387 20.7127C11.116 20.8168 11.3067 20.8901 11.5014 20.9377C11.2198 20.843 10.9761 20.6655 10.8046 20.4302C10.6331 20.195 10.5424 19.9137 10.5454 19.6262Z",fill:"#D1D1D1"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.19066 6.91461L14.9093 11.9999L19.2652 9.4592C19.7906 9.15318 20.0372 8.53857 19.9119 7.96768C19.7636 7.44607 19.4158 6.99807 18.9386 6.71402L13.0613 3.28738C12.7413 3.09942 12.3739 3 11.9993 3C11.6246 3 11.2572 3.09942 10.9373 3.28738L5.06133 6.71402C4.88495 6.8182 4.72508 6.94639 4.58667 7.09462C4.79532 6.89753 5.06597 6.77289 5.35608 6.74031C5.64618 6.70772 5.94062 6.76904 6.19066 6.91461Z",fill:"#E0E0E0"})]}):"bluegray"===l?e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:d,"data-testid":"design-system-logo--wishket-symbol-bluegray",children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7187 9.45926L14.9588 11.604L14.9094 12L10.2935 14.6912L10.2948 19.6569C10.2948 20.2047 10.9375 20.7125 10.9375 20.7125C11.5948 21.0957 12.4041 21.0957 13.0614 20.7125L18.9374 17.2846C19.5947 16.9014 20.0001 16.1943 20.0001 15.4266V8.57335C20.0001 8.31876 19.9521 8.07446 19.8694 7.84302C19.6707 8.90766 19.1641 9.16096 18.7187 9.45926Z",fill:"#4D525C"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5454 19.6262V9.18422L6.66673 6.82607C5.95473 6.29118 5.0614 6.71421 5.0614 6.71421C4.73408 6.91009 4.46452 7.18389 4.27865 7.50928C4.09278 7.83467 3.99685 8.2007 4.00008 8.57218V15.428C4.00008 16.1944 4.40408 16.9028 5.0614 17.286L10.9387 20.7127C11.116 20.8168 11.3067 20.8901 11.5014 20.9377C11.2198 20.843 10.9761 20.6655 10.8046 20.4302C10.6331 20.195 10.5424 19.9137 10.5454 19.6262Z",fill:"#8C929C"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.19066 6.91461L14.9093 11.9999L19.2652 9.4592C19.7906 9.15318 20.0372 8.53857 19.9119 7.96768C19.7636 7.44607 19.4158 6.99807 18.9386 6.71402L13.0613 3.28738C12.7413 3.09942 12.3739 3 11.9993 3C11.6246 3 11.2572 3.09942 10.9373 3.28738L5.06133 6.71402C4.88495 6.8182 4.72508 6.94639 4.58667 7.09462C4.79532 6.89753 5.06597 6.77289 5.35608 6.74031C5.64618 6.70772 5.94062 6.76904 6.19066 6.91461Z",fill:"#787D85"})]}):e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:d,"data-testid":"design-system-logo--wishket-symbol",children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7187 9.45926L14.9588 11.604L14.9094 12L10.2935 14.6912L10.2948 19.6569C10.2948 20.2047 10.9375 20.7125 10.9375 20.7125C11.5948 21.0957 12.4041 21.0957 13.0614 20.7125L18.9374 17.2846C19.5947 16.9014 20.0001 16.1943 20.0001 15.4266V8.57335C20.0001 8.31876 19.9521 8.07446 19.8694 7.84302C19.6707 8.90766 19.1641 9.16096 18.7187 9.45926Z",fill:"#0055B8"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5454 19.6262V9.18422L6.66673 6.82607C5.95473 6.29118 5.0614 6.71421 5.0614 6.71421C4.73408 6.91009 4.46452 7.18389 4.27865 7.50928C4.09278 7.83467 3.99685 8.2007 4.00008 8.57218V15.428C4.00008 16.1944 4.40408 16.9028 5.0614 17.286L10.9387 20.7127C11.116 20.8168 11.3067 20.8901 11.5014 20.9377C11.2198 20.843 10.9761 20.6655 10.8046 20.4302C10.6331 20.195 10.5424 19.9137 10.5454 19.6262Z",fill:"#00A7E1"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.19066 6.91461L14.9093 11.9999L19.2652 9.4592C19.7906 9.15318 20.0372 8.53857 19.9119 7.96768C19.7636 7.44607 19.4158 6.99807 18.9386 6.71402L13.0613 3.28738C12.7413 3.09942 12.3739 3 11.9993 3C11.6246 3 11.2572 3.09942 10.9373 3.28738L5.06133 6.71402C4.88495 6.8182 4.72508 6.94639 4.58667 7.09462C4.79532 6.89753 5.06597 6.77289 5.35608 6.74031C5.64618 6.70772 5.94062 6.76904 6.19066 6.91461Z",fill:"#00B551"})]})};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ServiceLogoPartProps } from '../ServiceLogo.types';
|
|
2
|
-
declare const YozmITSymbol: ({
|
|
2
|
+
declare const YozmITSymbol: ({ className, variant }: ServiceLogoPartProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default YozmITSymbol;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime");module.exports=function(
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime");module.exports=function(l){var s=l.className,l=l.variant;return"disabled"===l?e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:s,"data-testid":"design-system-logo--yozmIT-symbol-disabled",children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.87702 4C7.24578 4 6.66607 4.36093 6.36548 4.94107L1.08261 15.1667C1.02606 15.2753 0.997659 15.3971 1.00015 15.5204C1.00264 15.6437 1.03594 15.7642 1.09683 15.8703C1.15772 15.9764 1.24414 16.0645 1.34772 16.1261C1.4513 16.1877 1.56854 16.2206 1.68808 16.2218H9.69022L11.3327 13.042L8.81636 7.7964C8.79022 7.74206 8.77786 7.68178 8.78044 7.62118C8.78303 7.56058 8.80047 7.50164 8.83114 7.44989C8.86181 7.39813 8.90471 7.35524 8.95582 7.32522C9.00693 7.2952 9.06458 7.27905 9.1234 7.27825H11.0042C11.1322 7.27877 11.2575 7.31616 11.366 7.38619C11.4745 7.45622 11.5619 7.55611 11.6183 7.67461L12.8153 10.1712L15.4583 5.054C15.5152 4.94566 15.5439 4.82398 15.5417 4.70081C15.5395 4.57764 15.5064 4.45715 15.4457 4.35106C15.3849 4.24497 15.2986 4.15689 15.1951 4.09537C15.0916 4.03386 14.9745 4.001 14.855 4H7.87702Z",fill:"#BDBDBD"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.1396 7.27832L12.766 15.8421C12.7081 15.9561 12.6211 16.0518 12.5144 16.1187C12.4078 16.1856 12.2854 16.2212 12.1606 16.2218H9.69036L8.5406 18.4461C8.29476 18.9222 8.62648 19.5001 9.14607 19.5001H16.123C16.7542 19.5001 17.3339 19.1392 17.6334 18.559L22.9174 8.33343C22.9739 8.22488 23.0023 8.10313 22.9999 7.97995C22.9974 7.85677 22.9642 7.73633 22.9035 7.63025C22.8427 7.52417 22.7564 7.43605 22.653 7.3744C22.5496 7.31275 22.4325 7.27966 22.313 7.27832H17.1396Z",fill:"#BDBDBD"})]}):"bluegray"===l?e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:s,"data-testid":"design-system-logo--yozmIT-symbol-bluegray",children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.87702 4C7.24578 4 6.66607 4.36093 6.36548 4.94107L1.08261 15.1667C1.02606 15.2753 0.997659 15.3971 1.00015 15.5204C1.00264 15.6437 1.03594 15.7642 1.09683 15.8703C1.15772 15.9764 1.24414 16.0645 1.34772 16.1261C1.4513 16.1877 1.56854 16.2206 1.68808 16.2218H9.69022L11.3327 13.042L8.81636 7.7964C8.79022 7.74206 8.77786 7.68178 8.78044 7.62118C8.78303 7.56058 8.80047 7.50164 8.83114 7.44989C8.86181 7.39813 8.90471 7.35524 8.95582 7.32522C9.00693 7.2952 9.06458 7.27905 9.1234 7.27825H11.0042C11.1322 7.27877 11.2575 7.31616 11.366 7.38619C11.4745 7.45622 11.5619 7.55611 11.6183 7.67461L12.8153 10.1712L15.4583 5.054C15.5152 4.94566 15.5439 4.82398 15.5417 4.70081C15.5395 4.57764 15.5064 4.45715 15.4457 4.35106C15.3849 4.24497 15.2986 4.15689 15.1951 4.09537C15.0916 4.03386 14.9745 4.001 14.855 4H7.87702Z",fill:"#787D85"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.1396 7.27832L12.766 15.8421C12.7081 15.9561 12.6211 16.0518 12.5144 16.1187C12.4078 16.1856 12.2854 16.2212 12.1606 16.2218H9.69036L8.5406 18.4461C8.29476 18.9222 8.62648 19.5001 9.14607 19.5001H16.123C16.7542 19.5001 17.3339 19.1392 17.6334 18.559L22.9174 8.33343C22.9739 8.22488 23.0023 8.10313 22.9999 7.97995C22.9974 7.85677 22.9642 7.73633 22.9035 7.63025C22.8427 7.52417 22.7564 7.43605 22.653 7.3744C22.5496 7.31275 22.4325 7.27966 22.313 7.27832H17.1396Z",fill:"#787D85"})]}):e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:s,"data-testid":"design-system-logo--yozmIT-symbol",children:[e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.87702 4C7.24578 4 6.66607 4.36093 6.36548 4.94107L1.08261 15.1667C1.02606 15.2753 0.997659 15.3971 1.00015 15.5204C1.00264 15.6437 1.03594 15.7642 1.09683 15.8703C1.15772 15.9764 1.24414 16.0645 1.34772 16.1261C1.4513 16.1877 1.56854 16.2206 1.68808 16.2218H9.69022L11.3327 13.042L8.81636 7.7964C8.79022 7.74206 8.77786 7.68178 8.78044 7.62118C8.78303 7.56058 8.80047 7.50164 8.83114 7.44989C8.86181 7.39813 8.90471 7.35524 8.95582 7.32522C9.00693 7.2952 9.06458 7.27905 9.1234 7.27825H11.0042C11.1322 7.27877 11.2575 7.31616 11.366 7.38619C11.4745 7.45622 11.5619 7.55611 11.6183 7.67461L12.8153 10.1712L15.4583 5.054C15.5152 4.94566 15.5439 4.82398 15.5417 4.70081C15.5395 4.57764 15.5064 4.45715 15.4457 4.35106C15.3849 4.24497 15.2986 4.15689 15.1951 4.09537C15.0916 4.03386 14.9745 4.001 14.855 4H7.87702Z",fill:"url(#paint0_linear_3475_577)"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.1396 7.27832L12.766 15.8421C12.7081 15.9561 12.6211 16.0518 12.5144 16.1187C12.4078 16.1856 12.2854 16.2212 12.1606 16.2218H9.69036L8.5406 18.4461C8.29476 18.9222 8.62648 19.5001 9.14607 19.5001H16.123C16.7542 19.5001 17.3339 19.1392 17.6334 18.559L22.9174 8.33343C22.9739 8.22488 23.0023 8.10313 22.9999 7.97995C22.9974 7.85677 22.9642 7.73633 22.9035 7.63025C22.8427 7.52417 22.7564 7.43605 22.653 7.3744C22.5496 7.31275 22.4325 7.27966 22.313 7.27832H17.1396Z",fill:"url(#paint1_linear_3475_577)"}),e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"paint0_linear_3475_577",x1:"8.2709",y1:"4",x2:"8.2709",y2:"16.2218",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#8E2DE2"}),e.jsx("stop",{offset:"1",stopColor:"#5A00DB"})]}),e.jsxs("linearGradient",{id:"paint1_linear_3475_577",x1:"15.7289",y1:"7.27832",x2:"15.7289",y2:"19.5001",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#8E2DE2"}),e.jsx("stop",{offset:"1",stopColor:"#5A00DB"})]})]})]})};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ServiceLogoNames } from './ServiceLogo.types';
|
|
2
2
|
interface ServiceLogoProps {
|
|
3
3
|
name: ServiceLogoNames;
|
|
4
|
-
disabled?: boolean;
|
|
5
4
|
className?: string;
|
|
5
|
+
variant?: 'default' | 'disabled' | 'bluegray';
|
|
6
6
|
}
|
|
7
|
-
declare const ServiceLogo: ({ name,
|
|
7
|
+
declare const ServiceLogo: ({ name, className, variant, }: ServiceLogoProps) => import("react/jsx-runtime").JSX.Element | undefined;
|
|
8
8
|
export default ServiceLogo;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),a=require("./ServiceLogo.constants.js");module.exports=function(r){var t=r.name,s=r.className,r=r.variant,r=void 0===r?"default":r,t=a.LogoMap.get(t);return t&&e.jsx(t,{variant:r,className:s})};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type ServiceLogoNames = 'wishket_symbol' | 'wishket_symbol_text' | 'wishket_text' | 'yozmIT_symbol' | 'yozmIT_symbol_text' | 'yozmIT_text' | 'jobs_symbol';
|
|
2
2
|
export type ServiceLogoPartProps = {
|
|
3
|
-
disabled?: boolean;
|
|
4
3
|
className?: string;
|
|
4
|
+
variant?: 'default' | 'disabled' | 'bluegray';
|
|
5
5
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TextInputProps } from './TextInput.types';
|
|
2
|
-
declare const TextInput: ({ type, name, value, variant, placeholder, lable, startIcon, endIcon, maxLength, supportMessage, measure, isError, errorMessage, disabled, testId, onChange, }: TextInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const TextInput: ({ type, name, value, variant, placeholder, lable, startIcon, endIcon, maxLength, supportMessage, measure, isError, errorMessage, disabled, testId, onChange, isMaxLengthVisible, }: TextInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default TextInput;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
"use strict";var e=require("../../../_virtual/_tslib.js"),r=require("react/jsx-runtime"),a=require("react"),
|
|
2
|
+
"use strict";var e=require("../../../_virtual/_tslib.js"),r=require("react/jsx-runtime"),a=require("react"),s=require("tailwind-merge"),t=require("./parts/LabelContainer.js"),n=require("./parts/PasswordContainer.js"),i=require("./parts/SupportContainer.js");module.exports=function(o){var l=o.type,u=o.name,g=o.value,d=o.variant,d=void 0===d?"default":d,p=o.placeholder,c=o.lable,x=o.startIcon,h=o.endIcon,m=o.maxLength,w=o.supportMessage,b=o.measure,v=o.isError,f=o.errorMessage,j=o.disabled,j=void 0!==j&&j,y=o.testId,q=o.onChange,o=o.isMaxLengthVisible,o=void 0!==o&&o,L=a.useState(!1),M=L[0],_=L[1],L=a.useState(0),C=L[0],I=L[1],L={variant:d,type:l,name:u,value:g,placeholder:p,lable:c,maxLength:m,onChange:q,isFocused:M,isError:v,onFocus:function(){_(!0)},onBlur:function(){_(!1)},disabled:j};return a.useEffect(function(){"string"==typeof g&&m&&I(g.length)},[g,l,m]),r.jsxs("div",{className:"flex flex-col gap-2 bg-w-white","data-testid":y,children:[r.jsx("label",{role:"input-box",className:s.twMerge("flex shrink-0 cursor-text items-center gap-3 rounded-xl px-4 py-2.5 text-[16px] leading-[26px] text-w-gray-600 ring-1",j?"bg-w-gray-10":"bg-w-white",v?"ring-w-red-500":M?"ring-w-primary":"ring-w-gray-200 hover:ring-w-primary"),children:"password"===l?r.jsx(n,e.__assign({},L)):r.jsx(t,e.__assign({measure:b,startIcon:x,endIcon:h},L))}),(w||o||v)&&r.jsx(i,{isError:v,errorMessage:f,supportMessage:w,currentLength:C,maxLength:m})]})};
|
|
@@ -10,6 +10,7 @@ export interface TextInputProps extends ComponentPropsWithRef<'input'> {
|
|
|
10
10
|
measure?: string;
|
|
11
11
|
errorMessage?: string;
|
|
12
12
|
testId?: string;
|
|
13
|
+
isMaxLengthVisible?: boolean;
|
|
13
14
|
}
|
|
14
15
|
export interface InputContainerProps extends ComponentPropsWithRef<'input'> {
|
|
15
16
|
variant: variant;
|
|
@@ -5,6 +5,6 @@ declare const TextTab: {
|
|
|
5
5
|
children?: import("react").ReactNode;
|
|
6
6
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
Tab: ({ children, index, className, barColor, disabled, }: import("./TextTab.types").TabProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
Panel: ({ children, index
|
|
8
|
+
Panel: ({ children, index }: import("./TextTab.types").PanelProps) => false | import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
};
|
|
10
10
|
export default TextTab;
|
|
@@ -3,5 +3,5 @@ import { PanelProps, RootProps, TabProps } from './TextTab.types';
|
|
|
3
3
|
declare const Root: ({ children, defaultActive, isFit, hasPadding, onChange, }: RootProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare const Tabs: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare const Tab: ({ children, index, className, barColor, disabled, }: TabProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare const Panel: ({ children, index
|
|
6
|
+
declare const Panel: ({ children, index }: PanelProps) => false | import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export { Root, Tabs, Tab, Panel };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
"use strict";var e=require("react/jsx-runtime"),t=require("react"),i=require("tailwind-merge"),a=(require("../../../_virtual/_tslib.js"),require("../../Atoms/Box/Box.js")),
|
|
2
|
+
"use strict";var e=require("react/jsx-runtime"),t=require("react"),i=require("tailwind-merge"),a=(require("../../../_virtual/_tslib.js"),require("../../Atoms/Box/Box.js")),n=require("../../Atoms/Divider/Divider.js"),r=(require("next/image"),t.createContext({activeTab:0,defaultActive:0,animationDirection:"right",isFit:!0,hasPadding:!1,handleTabClick:function(e){}}));exports.Panel=function(i){var n=i.children,i=i.index;return t.useContext(r).activeTab===i&&e.jsx(a,{"data-testid":"design-system-textTab--content",children:n})},exports.Root=function(i){function a(e){if(e===d)return m(void 0);d<e&&m("right"),e<d&&m("left"),null!=c&&c(),u(e)}var n=i.children,s=i.defaultActive,o=void 0===s?0:s,s=i.isFit,s=void 0===s||s,l=i.hasPadding,l=void 0!==l&&l,c=i.onChange,i=t.useState(o),d=i[0],u=i[1],i=t.useState(void 0),x=i[0],m=i[1];return t.useEffect(function(){a(o)},[o]),e.jsx(r.Provider,{value:{activeTab:d,animationDirection:x,defaultActive:o,isFit:s,hasPadding:l,handleTabClick:a},children:n})},exports.Tab=function(n){var s=n.children,o=n.index,l=n.className,c=n.barColor,n=n.disabled,d=void 0!==n&&n,n=t.useContext(r),u=n.isFit,x=n.handleTabClick,m=n.activeTab,n=n.animationDirection,m=o===m;return e.jsx(a,{tabIndex:0,"data-testid":"design-system-textTab--item-".concat(o),className:i.twMerge("flex w-max cursor-pointer items-center rounded-xl hover:font-medium",d&&"cursor-not-allowed",l),onClick:function(){d||x(o)},children:e.jsxs(a,{className:i.twMerge("relative flex w-max items-center justify-center gap-2 py-3.5 text-w-gray-400",!u&&"px-[33.5px]",m&&"text-w-gray-900"),children:[s,e.jsx("span",{"data-testid":"design-system-textTab--underbar-".concat(o),className:i.twMerge("absolute -bottom-px left-0 h-0.5 w-full rounded-t-lg bg-transparent",m&&"bg-w-gray-900 transition duration-500 ease-out ".concat("right"===(n||"")?"-left-1/2 translate-x-1/2":"left-1/2 -translate-x-1/2"),c)})]})})},exports.Tabs=function(s){var s=s.children,o=t.useContext(r).hasPadding;return e.jsxs(e.Fragment,{children:[e.jsx(a,{className:i.twJoin("no-scrollbar block w-full items-start overflow-x-scroll text-center",o&&"px-9"),"data-testid":"design-system-textTab--container",children:e.jsx(a,{className:"mb-px inline-flex min-w-max gap-10",children:s})}),e.jsx(n,{className:"w-full"})]})};
|