@treeal/ds 0.1.4 → 0.1.6
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/assets/style.css +1 -1
- package/dist/components/Input/Input.d.ts +5 -2
- package/dist/components/Input/Input.d.ts.map +1 -1
- package/dist/components/Input/index.d.ts +1 -1
- package/dist/components/Input/index.d.ts.map +1 -1
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs12.js +1 -1
- package/dist/index.cjs13.js +1 -1
- package/dist/index.cjs14.js +1 -1
- package/dist/index.cjs15.js +1 -1
- package/dist/index.cjs16.js +1 -1
- package/dist/index.cjs18.js +1 -1
- package/dist/index.cjs19.js +1 -1
- package/dist/index.cjs20.js +1 -1
- package/dist/index.cjs21.js +1 -1
- package/dist/index.cjs22.js +1 -1
- package/dist/index.cjs23.js +1 -1
- package/dist/index.cjs24.js +1 -1
- package/dist/index.cjs25.js +1 -1
- package/dist/index.cjs26.js +1 -1
- package/dist/index.cjs27.js +1 -1
- package/dist/index.cjs28.js +1 -1
- package/dist/index.cjs6.js +1 -1
- package/dist/index.cjs7.js +1 -1
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.cjs9.js.map +1 -1
- package/dist/index.esm10.js +1 -1
- package/dist/index.esm11.js +1 -1
- package/dist/index.esm12.js +1 -1
- package/dist/index.esm13.js +1 -1
- package/dist/index.esm14.js +1 -1
- package/dist/index.esm15.js +1 -1
- package/dist/index.esm16.js +1 -1
- package/dist/index.esm18.js +22 -48
- package/dist/index.esm18.js.map +1 -1
- package/dist/index.esm19.js +12 -22
- package/dist/index.esm19.js.map +1 -1
- package/dist/index.esm20.js +22 -60
- package/dist/index.esm20.js.map +1 -1
- package/dist/index.esm21.js +60 -20
- package/dist/index.esm21.js.map +1 -1
- package/dist/index.esm22.js +48 -12
- package/dist/index.esm22.js.map +1 -1
- package/dist/index.esm23.js +102 -22
- package/dist/index.esm23.js.map +1 -1
- package/dist/index.esm24.js +22 -22
- package/dist/index.esm25.js +20 -36
- package/dist/index.esm25.js.map +1 -1
- package/dist/index.esm26.js +22 -102
- package/dist/index.esm26.js.map +1 -1
- package/dist/index.esm27.js +40 -22
- package/dist/index.esm27.js.map +1 -1
- package/dist/index.esm28.js +60 -60
- package/dist/index.esm6.js +1 -1
- package/dist/index.esm7.js +1 -1
- package/dist/index.esm8.js +1 -1
- package/dist/index.esm9.js +30 -28
- package/dist/index.esm9.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs9.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),x=require("react"),r=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),x=require("react"),r=require("./index.cjs27.js");function N(){return e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[e.jsx("path",{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("polyline",{points:"22,6 12,13 2,6",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})]})}function E(){return e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[e.jsx("circle",{cx:"11",cy:"11",r:"7",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"}),e.jsx("path",{d:"M16.5 16.5L21 21",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"})]})}function S(){return e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[e.jsx("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M16 2v4M8 2v4M3 10h18",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})]})}function y(){return e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[e.jsx("rect",{x:"5",y:"11",width:"14",height:"11",rx:"2",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M8 11V7a4 4 0 0 1 8 0v4",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})]})}function A(){return e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[e.jsx("path",{d:"M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7z",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("circle",{cx:"12",cy:"12",r:"3",stroke:"currentColor",strokeWidth:"1.75"})]})}function D(){return e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[e.jsx("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M1 1l22 22",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"})]})}function R({state:t="Default",size:j="md",inputType:o="text",label:l,placeholder:k,message:n,iconLabel:c,iconLeft:f,iconRight:v,value:p,onChange:w,onSearch:m,id:L,className:g,...b}){const C=x.useId(),s=L??C,[i,I]=x.useState(!1),d=t==="Disabled",a=t==="Error",B=o==="password"?i?"text":"password":o==="search"?"text":o,u=f??(o==="email"?e.jsx(N,{}):o==="password"?e.jsx(y,{}):void 0),h=v??(o==="password"?e.jsx("button",{type:"button",className:r.default.toggleBtn,onClick:()=>I(W=>!W),"aria-label":i?"Ocultar senha":"Mostrar senha",tabIndex:-1,children:i?e.jsx(A,{}):e.jsx(D,{})}):o==="date"?e.jsx(S,{}):o==="search"?e.jsx("button",{type:"button",className:r.default.searchBtn,onClick:m,"aria-label":"Buscar",tabIndex:-1,children:e.jsx(E,{})}):void 0),M=[r.default.field,j==="sm"?r.default.fieldSm:r.default.fieldMd,t==="Hover"?r.default.hover:"",t==="Active"?r.default.active:"",d?r.default.disabled:"",a?r.default.error:"",g].filter(Boolean).join(" ");return e.jsxs("div",{className:r.default.wrapper,children:[l&&e.jsxs("div",{className:r.default.labelRow,children:[e.jsx("label",{htmlFor:s,className:[r.default.label,d?r.default.labelDisabled:""].filter(Boolean).join(" "),children:l}),c&&e.jsx("span",{className:r.default.labelIcon,"aria-hidden":"true",children:c})]}),e.jsxs("div",{className:M,children:[u&&e.jsx("span",{className:r.default.icon,"aria-hidden":"true",children:u}),e.jsx("input",{id:s,type:B,className:r.default.input,placeholder:k,disabled:d,value:p,onChange:w,"aria-invalid":a,"aria-describedby":n?`${s}-message`:void 0,...b}),h&&e.jsx("span",{className:[r.default.icon,o==="search"||o==="password"?r.default.iconAction:""].filter(Boolean).join(" "),children:h})]}),n&&e.jsx("p",{id:`${s}-message`,className:[r.default.message,a?r.default.messageError:""].filter(Boolean).join(" "),children:n})]})}exports.Input=R;
|
|
2
2
|
//# sourceMappingURL=index.cjs9.js.map
|
package/dist/index.cjs9.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs9.js","sources":["../components/Input/Input.tsx"],"sourcesContent":["import React, { useId, useState } from 'react';\nimport styles from './Input.module.css';\n\nexport type InputState = 'Default' | 'Hover' | 'Active' | 'Disabled' | 'Error';\nexport type InputType = 'text' | 'email' | 'password' | 'search' | 'date';\n\n// ─── Built-in SVG icons ───────────────────────────────────────────────────────\n\nfunction IconEmail() {\n return (\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\n <path d=\"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <polyline points=\"22,6 12,13 2,6\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n </svg>\n );\n}\n\nfunction IconSearch() {\n return (\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\n <circle cx=\"11\" cy=\"11\" r=\"7\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\"/>\n <path d=\"M16.5 16.5L21 21\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\"/>\n </svg>\n );\n}\n\nfunction IconCalendar() {\n return (\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\n <rect x=\"3\" y=\"4\" width=\"18\" height=\"18\" rx=\"2\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <path d=\"M16 2v4M8 2v4M3 10h18\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n </svg>\n );\n}\n\nfunction IconLock() {\n return (\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\n <rect x=\"5\" y=\"11\" width=\"14\" height=\"11\" rx=\"2\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <path d=\"M8 11V7a4 4 0 0 1 8 0v4\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n </svg>\n );\n}\n\nfunction IconEye() {\n return (\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\n <path d=\"M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7z\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <circle cx=\"12\" cy=\"12\" r=\"3\" stroke=\"currentColor\" strokeWidth=\"1.75\"/>\n </svg>\n );\n}\n\nfunction IconEyeOff() {\n return (\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\n <path d=\"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <path d=\"M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <path d=\"M1 1l22 22\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\"/>\n </svg>\n );\n}\n\n// ─── Types ────────────────────────────────────────────────────────────────────\n\nexport interface InputProps\n extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'type'> {\n /** Visual/interaction state. Defaults to 'Default'. */\n state?: InputState;\n /**\n * Semantic input type. Sets the correct HTML type and auto-adds icons.\n * - email → envelope icon left\n * - password → lock icon left + show/hide toggle right\n * - search → search icon left + green search button right\n * - date → calendar icon right\n */\n inputType?: InputType;\n /** Label text rendered above the field. */\n label?: string;\n placeholder?: string;\n /** Helper or error message rendered below the field. */\n message?: string;\n /** Info icon rendered beside the label. */\n iconLabel?: React.ReactNode;\n /** Icon rendered inside the field, left side (24×24 slot). */\n iconLeft?: React.ReactNode;\n /** Icon rendered inside the field, right side (24×24 slot). */\n iconRight?: React.ReactNode;\n value?: string;\n onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;\n /** Called when search button is clicked (only for inputType=\"search\") */\n onSearch?: () => void;\n}\n\n// ─── Component ────────────────────────────────────────────────────────────────\n\nexport function Input({\n state = 'Default',\n inputType = 'text',\n label,\n placeholder,\n message,\n iconLabel,\n iconLeft,\n iconRight,\n value,\n onChange,\n onSearch,\n id: idProp,\n className,\n ...props\n}: InputProps) {\n const generatedId = useId();\n const id = idProp ?? generatedId;\n const [showPassword, setShowPassword] = useState(false);\n\n const isDisabled = state === 'Disabled';\n const isError = state === 'Error';\n\n // ── Resolve HTML type ──────────────────────────────────────────────────────\n const htmlType = inputType === 'password'\n ? (showPassword ? 'text' : 'password')\n : inputType === 'search'\n ? 'text'\n : inputType;\n\n // ── Resolve built-in icons ─────────────────────────────────────────────────\n const resolvedIconLeft: React.ReactNode =\n iconLeft ??\n (inputType === 'email' ? <IconEmail /> :\n inputType === 'password' ? <IconLock /> :\n undefined);\n\n const resolvedIconRight: React.ReactNode =\n iconRight ??\n (inputType === 'password'\n ? (\n <button\n type=\"button\"\n className={styles.toggleBtn}\n onClick={() => setShowPassword((v) => !v)}\n aria-label={showPassword ? 'Ocultar senha' : 'Mostrar senha'}\n tabIndex={-1}\n >\n {showPassword ? <IconEye /> : <IconEyeOff />}\n </button>\n )\n : inputType === 'date'\n ? <IconCalendar />\n : inputType === 'search'\n ? (\n <button\n type=\"button\"\n className={styles.searchBtn}\n onClick={onSearch}\n aria-label=\"Buscar\"\n tabIndex={-1}\n >\n <IconSearch />\n </button>\n )\n : undefined);\n\n const fieldClass = [\n styles.field,\n state === 'Hover' ? styles.hover : '',\n state === 'Active' ? styles.active : '',\n isDisabled ? styles.disabled : '',\n isError ? styles.error : '',\n className,\n ]\n .filter(Boolean)\n .join(' ');\n\n return (\n <div className={styles.wrapper}>\n {label && (\n <div className={styles.labelRow}>\n <label\n htmlFor={id}\n className={[styles.label, isDisabled ? styles.labelDisabled : '']\n .filter(Boolean)\n .join(' ')}\n >\n {label}\n </label>\n {iconLabel && (\n <span className={styles.labelIcon} aria-hidden=\"true\">\n {iconLabel}\n </span>\n )}\n </div>\n )}\n\n <div className={fieldClass}>\n {resolvedIconLeft && (\n <span className={styles.icon} aria-hidden=\"true\">\n {resolvedIconLeft}\n </span>\n )}\n <input\n id={id}\n type={htmlType}\n className={styles.input}\n placeholder={placeholder}\n disabled={isDisabled}\n value={value}\n onChange={onChange}\n aria-invalid={isError}\n aria-describedby={message ? `${id}-message` : undefined}\n {...props}\n />\n {resolvedIconRight && (\n <span className={[styles.icon, inputType === 'search' || inputType === 'password' ? styles.iconAction : ''].filter(Boolean).join(' ')}>\n {resolvedIconRight}\n </span>\n )}\n </div>\n\n {message && (\n <p\n id={`${id}-message`}\n className={[styles.message, isError ? styles.messageError : '']\n .filter(Boolean)\n .join(' ')}\n >\n {message}\n </p>\n )}\n </div>\n );\n}\n"],"names":["IconEmail","jsxs","jsx","IconSearch","IconCalendar","IconLock","IconEye","IconEyeOff","Input","state","inputType","label","placeholder","message","iconLabel","iconLeft","iconRight","value","onChange","onSearch","idProp","className","props","generatedId","useId","id","showPassword","setShowPassword","useState","isDisabled","isError","htmlType","resolvedIconLeft","resolvedIconRight","styles","v","fieldClass"],"mappings":"sKAQA,SAASA,GAAY,CACnB,OACEC,EAAAA,KAAC,MAAA,CAAI,MAAM,KAAK,OAAO,KAAK,QAAQ,YAAY,KAAK,OAAO,cAAY,OACtE,SAAA,CAAAC,EAAAA,IAAC,OAAA,CAAK,EAAE,8EAA8E,OAAO,eAAe,YAAY,OAAO,cAAc,QAAQ,eAAe,OAAA,CAAO,EAC3KA,EAAAA,IAAC,WAAA,CAAS,OAAO,iBAAiB,OAAO,eAAe,YAAY,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EAEF9B,EAAAA,IAAC,QAAA,CACC,GAAAuB,EACA,KAAMM,EACN,UAAWG,EAAAA,QAAO,MAClB,YAAAtB,EACA,SAAUiB,EACV,MAAAZ,EACA,SAAAC,EACA,eAAcY,EACd,mBAAkBjB,EAAU,GAAGY,CAAE,WAAa,OAC7C,GAAGH,CAAA,CAAA,EAELW,SACE,OAAA,CAAK,UAAW,CAACC,EAAAA,QAAO,KAAMxB,IAAc,UAAYA,IAAc,WAAawB,EAAAA,QAAO,WAAa,EAAE,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG,EACjI,SAAAD,CAAA,CACH,CAAA,EAEJ,EAECpB,GACCX,EAAAA,IAAC,IAAA,CACC,GAAI,GAAGuB,CAAE,WACT,UAAW,CAACS,EAAAA,QAAO,QAASJ,EAAUI,EAAAA,QAAO,aAAe,EAAE,EAC3D,OAAO,OAAO,EACd,KAAK,GAAG,EAEV,SAAArB,CAAA,CAAA,CACH,EAEJ,CAEJ"}
|
|
1
|
+
{"version":3,"file":"index.cjs9.js","sources":["../components/Input/Input.tsx"],"sourcesContent":["import React, { useId, useState } from 'react';\nimport styles from './Input.module.css';\n\nexport type InputState = 'Default' | 'Hover' | 'Active' | 'Disabled' | 'Error';\nexport type InputType = 'text' | 'email' | 'password' | 'search' | 'date';\nexport type InputSize = 'sm' | 'md';\n\n// ─── Built-in SVG icons ───────────────────────────────────────────────────────\n\nfunction IconEmail() {\n return (\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\n <path d=\"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <polyline points=\"22,6 12,13 2,6\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n </svg>\n );\n}\n\nfunction IconSearch() {\n return (\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\n <circle cx=\"11\" cy=\"11\" r=\"7\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\"/>\n <path d=\"M16.5 16.5L21 21\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\"/>\n </svg>\n );\n}\n\nfunction IconCalendar() {\n return (\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\n <rect x=\"3\" y=\"4\" width=\"18\" height=\"18\" rx=\"2\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <path d=\"M16 2v4M8 2v4M3 10h18\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n </svg>\n );\n}\n\nfunction IconLock() {\n return (\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\n <rect x=\"5\" y=\"11\" width=\"14\" height=\"11\" rx=\"2\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <path d=\"M8 11V7a4 4 0 0 1 8 0v4\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n </svg>\n );\n}\n\nfunction IconEye() {\n return (\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\n <path d=\"M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7z\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <circle cx=\"12\" cy=\"12\" r=\"3\" stroke=\"currentColor\" strokeWidth=\"1.75\"/>\n </svg>\n );\n}\n\nfunction IconEyeOff() {\n return (\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\n <path d=\"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <path d=\"M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>\n <path d=\"M1 1l22 22\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\"/>\n </svg>\n );\n}\n\n// ─── Types ────────────────────────────────────────────────────────────────────\n\nexport interface InputProps\n extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'type' | 'size'> {\n /** Visual/interaction state. Defaults to 'Default'. */\n state?: InputState;\n /** Size variant. sm = 36px height, md = 48px height. Defaults to 'md'. */\n size?: InputSize;\n /**\n * Semantic input type. Sets the correct HTML type and auto-adds icons.\n * - email → envelope icon left\n * - password → lock icon left + show/hide toggle right\n * - search → search icon left + green search button right\n * - date → calendar icon right\n */\n inputType?: InputType;\n /** Label text rendered above the field. */\n label?: string;\n placeholder?: string;\n /** Helper or error message rendered below the field. */\n message?: string;\n /** Info icon rendered beside the label. */\n iconLabel?: React.ReactNode;\n /** Icon rendered inside the field, left side (24×24 slot). */\n iconLeft?: React.ReactNode;\n /** Icon rendered inside the field, right side (24×24 slot). */\n iconRight?: React.ReactNode;\n value?: string;\n onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;\n /** Called when search button is clicked (only for inputType=\"search\") */\n onSearch?: () => void;\n}\n\n// ─── Component ────────────────────────────────────────────────────────────────\n\nexport function Input({\n state = 'Default',\n size = 'md',\n inputType = 'text',\n label,\n placeholder,\n message,\n iconLabel,\n iconLeft,\n iconRight,\n value,\n onChange,\n onSearch,\n id: idProp,\n className,\n ...props\n}: InputProps) {\n const generatedId = useId();\n const id = idProp ?? generatedId;\n const [showPassword, setShowPassword] = useState(false);\n\n const isDisabled = state === 'Disabled';\n const isError = state === 'Error';\n\n // ── Resolve HTML type ──────────────────────────────────────────────────────\n const htmlType = inputType === 'password'\n ? (showPassword ? 'text' : 'password')\n : inputType === 'search'\n ? 'text'\n : inputType;\n\n // ── Resolve built-in icons ─────────────────────────────────────────────────\n const resolvedIconLeft: React.ReactNode =\n iconLeft ??\n (inputType === 'email' ? <IconEmail /> :\n inputType === 'password' ? <IconLock /> :\n undefined);\n\n const resolvedIconRight: React.ReactNode =\n iconRight ??\n (inputType === 'password'\n ? (\n <button\n type=\"button\"\n className={styles.toggleBtn}\n onClick={() => setShowPassword((v) => !v)}\n aria-label={showPassword ? 'Ocultar senha' : 'Mostrar senha'}\n tabIndex={-1}\n >\n {showPassword ? <IconEye /> : <IconEyeOff />}\n </button>\n )\n : inputType === 'date'\n ? <IconCalendar />\n : inputType === 'search'\n ? (\n <button\n type=\"button\"\n className={styles.searchBtn}\n onClick={onSearch}\n aria-label=\"Buscar\"\n tabIndex={-1}\n >\n <IconSearch />\n </button>\n )\n : undefined);\n\n const fieldClass = [\n styles.field,\n size === 'sm' ? styles.fieldSm : styles.fieldMd,\n state === 'Hover' ? styles.hover : '',\n state === 'Active' ? styles.active : '',\n isDisabled ? styles.disabled : '',\n isError ? styles.error : '',\n className,\n ]\n .filter(Boolean)\n .join(' ');\n\n return (\n <div className={styles.wrapper}>\n {label && (\n <div className={styles.labelRow}>\n <label\n htmlFor={id}\n className={[styles.label, isDisabled ? styles.labelDisabled : '']\n .filter(Boolean)\n .join(' ')}\n >\n {label}\n </label>\n {iconLabel && (\n <span className={styles.labelIcon} aria-hidden=\"true\">\n {iconLabel}\n </span>\n )}\n </div>\n )}\n\n <div className={fieldClass}>\n {resolvedIconLeft && (\n <span className={styles.icon} aria-hidden=\"true\">\n {resolvedIconLeft}\n </span>\n )}\n <input\n id={id}\n type={htmlType}\n className={styles.input}\n placeholder={placeholder}\n disabled={isDisabled}\n value={value}\n onChange={onChange}\n aria-invalid={isError}\n aria-describedby={message ? `${id}-message` : undefined}\n {...props}\n />\n {resolvedIconRight && (\n <span className={[styles.icon, inputType === 'search' || inputType === 'password' ? styles.iconAction : ''].filter(Boolean).join(' ')}>\n {resolvedIconRight}\n </span>\n )}\n </div>\n\n {message && (\n <p\n id={`${id}-message`}\n className={[styles.message, isError ? styles.messageError : '']\n .filter(Boolean)\n .join(' ')}\n >\n {message}\n </p>\n )}\n </div>\n );\n}\n"],"names":["IconEmail","jsxs","jsx","IconSearch","IconCalendar","IconLock","IconEye","IconEyeOff","Input","state","size","inputType","label","placeholder","message","iconLabel","iconLeft","iconRight","value","onChange","onSearch","idProp","className","props","generatedId","useId","id","showPassword","setShowPassword","useState","isDisabled","isError","htmlType","resolvedIconLeft","resolvedIconRight","styles","v","fieldClass"],"mappings":"sKASA,SAASA,GAAY,CACnB,OACEC,EAAAA,KAAC,MAAA,CAAI,MAAM,KAAK,OAAO,KAAK,QAAQ,YAAY,KAAK,OAAO,cAAY,OACtE,SAAA,CAAAC,EAAAA,IAAC,OAAA,CAAK,EAAE,8EAA8E,OAAO,eAAe,YAAY,OAAO,cAAc,QAAQ,eAAe,OAAA,CAAO,EAC3KA,EAAAA,IAAC,WAAA,CAAS,OAAO,iBAAiB,OAAO,eAAe,YAAY,OAAO,cAAc,QAAQ,eAAe,OAAA,CAAO,CAAA,EACzH,CAEJ,CAEA,SAASC,GAAa,CACpB,OACEF,EAAAA,KAAC,MAAA,CAAI,MAAM,KAAK,OAAO,KAAK,QAAQ,YAAY,KAAK,OAAO,cAAY,OACtE,SAAA,CAAAC,EAAAA,IAAC,SAAA,CAAO,GAAG,KAAK,GAAG,KAAK,EAAE,IAAI,OAAO,eAAe,YAAY,OAAO,cAAc,QAAO,EAC5FA,EAAAA,IAAC,QAAK,EAAE,mBAAmB,OAAO,eAAe,YAAY,OAAO,cAAc,OAAA,CAAO,CAAA,EAC3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,WAAa,EAAE,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG,EACjI,SAAAD,CAAA,CACH,CAAA,EAEJ,EAECpB,GACCZ,EAAAA,IAAC,IAAA,CACC,GAAI,GAAGwB,CAAE,WACT,UAAW,CAACS,EAAAA,QAAO,QAASJ,EAAUI,EAAAA,QAAO,aAAe,EAAE,EAC3D,OAAO,OAAO,EACd,KAAK,GAAG,EAEV,SAAArB,CAAA,CAAA,CACH,EAEJ,CAEJ"}
|
package/dist/index.esm10.js
CHANGED
package/dist/index.esm11.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as l, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import e from "./index.
|
|
2
|
+
import e from "./index.esm23.js";
|
|
3
3
|
function m() {
|
|
4
4
|
return /* @__PURE__ */ a("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ a("path", { d: "M6 12l4-4-4-4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
5
5
|
}
|
package/dist/index.esm12.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as a, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import r from "./index.
|
|
2
|
+
import r from "./index.esm25.js";
|
|
3
3
|
const f = { xs: 12, md: 20, lg: 24 }, v = ({ s: i }) => /* @__PURE__ */ a("svg", { width: i, height: i, viewBox: "0 0 12 12", fill: "currentColor", "aria-hidden": "true", children: [
|
|
4
4
|
/* @__PURE__ */ n("circle", { cx: "2", cy: "6", r: "1.25" }),
|
|
5
5
|
/* @__PURE__ */ n("circle", { cx: "6", cy: "6", r: "1.25" }),
|
package/dist/index.esm13.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as n, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { useId as N } from "react";
|
|
3
|
-
import e from "./index.
|
|
3
|
+
import e from "./index.esm18.js";
|
|
4
4
|
function B() {
|
|
5
5
|
return /* @__PURE__ */ r("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ r("path", { d: "M5 7.5l5 5 5-5", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
6
6
|
}
|
package/dist/index.esm14.js
CHANGED
package/dist/index.esm15.js
CHANGED
package/dist/index.esm16.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as L, useState as w } from "react";
|
|
3
|
-
import r from "./index.
|
|
3
|
+
import r from "./index.esm28.js";
|
|
4
4
|
const y = () => /* @__PURE__ */ a("svg", { viewBox: "0 0 12 12", width: "12", height: "12", "aria-hidden": "true", children: [
|
|
5
5
|
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ a("linearGradient", { id: "fileGrad", x1: "0%", y1: "100%", x2: "100%", y2: "0%", children: [
|
|
6
6
|
/* @__PURE__ */ e("stop", { offset: "0%", stopColor: "#2970FF" }),
|
package/dist/index.esm18.js
CHANGED
|
@@ -1,52 +1,26 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
textLight: x,
|
|
13
|
-
label: k,
|
|
14
|
-
num: g,
|
|
15
|
-
checkIcon: l,
|
|
16
|
-
minified: p,
|
|
17
|
-
minDot: r,
|
|
18
|
-
minDefault: C,
|
|
19
|
-
minActive: D,
|
|
20
|
-
minComplete: f,
|
|
21
|
-
minConnector: u,
|
|
22
|
-
minConnectorDefault: v,
|
|
23
|
-
minConnectorActive: y,
|
|
24
|
-
minConnectorComplete: A
|
|
1
|
+
const e = "_wrapper_pivx7_3", s = "_label_pivx7_13", r = "_labelDisabled_pivx7_23", _ = "_field_pivx7_29", l = "_select_pivx7_36", o = "_placeholder_pivx7_75", a = "_error_pivx7_81", c = "_chevron_pivx7_93", p = "_message_pivx7_109", t = "_messageError_pivx7_123", i = {
|
|
2
|
+
wrapper: e,
|
|
3
|
+
label: s,
|
|
4
|
+
labelDisabled: r,
|
|
5
|
+
field: _,
|
|
6
|
+
select: l,
|
|
7
|
+
placeholder: o,
|
|
8
|
+
error: a,
|
|
9
|
+
chevron: c,
|
|
10
|
+
message: p,
|
|
11
|
+
messageError: t
|
|
25
12
|
};
|
|
26
13
|
export {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
r as minDot,
|
|
39
|
-
p as minified,
|
|
40
|
-
g as num,
|
|
41
|
-
s as stateActive,
|
|
42
|
-
m as stateComplete,
|
|
43
|
-
c as stateDefault,
|
|
44
|
-
i as stateHover,
|
|
45
|
-
t as steps,
|
|
46
|
-
a as textDark,
|
|
47
|
-
x as textLight,
|
|
48
|
-
o as typeEnd,
|
|
49
|
-
n as typeStart,
|
|
50
|
-
_ as typeStep
|
|
14
|
+
c as chevron,
|
|
15
|
+
i as default,
|
|
16
|
+
a as error,
|
|
17
|
+
_ as field,
|
|
18
|
+
s as label,
|
|
19
|
+
r as labelDisabled,
|
|
20
|
+
p as message,
|
|
21
|
+
t as messageError,
|
|
22
|
+
o as placeholder,
|
|
23
|
+
l as select,
|
|
24
|
+
e as wrapper
|
|
51
25
|
};
|
|
52
26
|
//# sourceMappingURL=index.esm18.js.map
|
package/dist/index.esm18.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm18.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.esm18.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|
package/dist/index.esm19.js
CHANGED
|
@@ -1,26 +1,16 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
placeholder: o,
|
|
8
|
-
error: a,
|
|
9
|
-
chevron: c,
|
|
10
|
-
message: p,
|
|
11
|
-
messageError: t
|
|
1
|
+
const t = "_tabList_dww9d_3", d = "_tab_dww9d_3", s = "_active_dww9d_40", _ = "_disabled_dww9d_40", a = "_icon_dww9d_65", c = {
|
|
2
|
+
tabList: t,
|
|
3
|
+
tab: d,
|
|
4
|
+
active: s,
|
|
5
|
+
disabled: _,
|
|
6
|
+
icon: a
|
|
12
7
|
};
|
|
13
8
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
p as message,
|
|
21
|
-
t as messageError,
|
|
22
|
-
o as placeholder,
|
|
23
|
-
l as select,
|
|
24
|
-
e as wrapper
|
|
9
|
+
s as active,
|
|
10
|
+
c as default,
|
|
11
|
+
_ as disabled,
|
|
12
|
+
a as icon,
|
|
13
|
+
d as tab,
|
|
14
|
+
t as tabList
|
|
25
15
|
};
|
|
26
16
|
//# sourceMappingURL=index.esm19.js.map
|
package/dist/index.esm19.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm19.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.esm19.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
package/dist/index.esm20.js
CHANGED
|
@@ -1,64 +1,26 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
dropzoneSubtitle: l,
|
|
13
|
-
fileList: d,
|
|
14
|
-
fileItem: c,
|
|
15
|
-
fileItemLg: z,
|
|
16
|
-
fileItemMd: k,
|
|
17
|
-
fileBadge: f,
|
|
18
|
-
fileContent: a,
|
|
19
|
-
fileHeader: I,
|
|
20
|
-
fileTexts: L,
|
|
21
|
-
fileName: m,
|
|
22
|
-
fileSize: w,
|
|
23
|
-
actions: T,
|
|
24
|
-
actionBtn: B,
|
|
25
|
-
progressRow: M,
|
|
26
|
-
progressTrack: b,
|
|
27
|
-
progressFill: C,
|
|
28
|
-
progressLabel: R,
|
|
29
|
-
spinner: S,
|
|
30
|
-
wrapper: u
|
|
1
|
+
const i = "_overlay_rzwii_24", t = "_modal_rzwii_43", n = "_heading_rzwii_64", o = "_title_rzwii_72", _ = "_description_rzwii_81", r = "_body_rzwii_92", s = "_actions_rzwii_101", a = "_btns_rzwii_108", c = "_btnSecondary_rzwii_115", e = "_btnPrimary_rzwii_137", d = {
|
|
2
|
+
overlay: i,
|
|
3
|
+
modal: t,
|
|
4
|
+
heading: n,
|
|
5
|
+
title: o,
|
|
6
|
+
description: _,
|
|
7
|
+
body: r,
|
|
8
|
+
actions: s,
|
|
9
|
+
btns: a,
|
|
10
|
+
btnSecondary: c,
|
|
11
|
+
btnPrimary: e
|
|
31
12
|
};
|
|
32
13
|
export {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
_ as
|
|
40
|
-
|
|
41
|
-
t as
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
l as dropzoneSubtitle,
|
|
45
|
-
i as dropzoneTitle,
|
|
46
|
-
g as dropzoneTitleRow,
|
|
47
|
-
f as fileBadge,
|
|
48
|
-
a as fileContent,
|
|
49
|
-
I as fileHeader,
|
|
50
|
-
c as fileItem,
|
|
51
|
-
z as fileItemLg,
|
|
52
|
-
k as fileItemMd,
|
|
53
|
-
d as fileList,
|
|
54
|
-
m as fileName,
|
|
55
|
-
w as fileSize,
|
|
56
|
-
L as fileTexts,
|
|
57
|
-
C as progressFill,
|
|
58
|
-
R as progressLabel,
|
|
59
|
-
M as progressRow,
|
|
60
|
-
b as progressTrack,
|
|
61
|
-
S as spinner,
|
|
62
|
-
u as wrapper
|
|
14
|
+
s as actions,
|
|
15
|
+
r as body,
|
|
16
|
+
e as btnPrimary,
|
|
17
|
+
c as btnSecondary,
|
|
18
|
+
a as btns,
|
|
19
|
+
d as default,
|
|
20
|
+
_ as description,
|
|
21
|
+
n as heading,
|
|
22
|
+
t as modal,
|
|
23
|
+
i as overlay,
|
|
24
|
+
o as title
|
|
63
25
|
};
|
|
64
26
|
//# sourceMappingURL=index.esm20.js.map
|
package/dist/index.esm20.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm20.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.esm20.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|
package/dist/index.esm21.js
CHANGED
|
@@ -1,24 +1,64 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
const a = "_header_1jw5v_25", e = "_variantDefault_1jw5v_36", t = "_variantMobile_1jw5v_37", o = "_variantMobileOpen_1jw5v_38", s = "_pageTitle_1jw5v_49", _ = "_pageTitleDesktop_1jw5v_63", n = "_pageTitleMobile_1jw5v_64", c = "_actions_1jw5v_68", r = "_actionsMobileOpen_1jw5v_76", w = "_workspace_1jw5v_86", v = "_workspaceFull_1jw5v_104", i = "_workspaceLeft_1jw5v_110", l = "_statusDot_1jw5v_118", p = "_workspaceCol_1jw5v_126", j = "_workspaceAccount_1jw5v_134", u = "_workspaceName_1jw5v_144", k = "_workspaceArrow_1jw5v_156", m = "_bellBtn_1jw5v_168", b = "_menuBtn_1jw5v_188", g = "_menuIcon_1jw5v_208", M = "_navUser_1jw5v_219", T = "_avatar_1jw5v_227", A = "_avatarImg_1jw5v_239", B = "_avatarInitials_1jw5v_248", D = "_userText_1jw5v_255", I = "_userName_1jw5v_262", f = "_userRole_1jw5v_271", N = "_ctaBtn_1jw5v_282", O = "_mainActions_1jw5v_307", d = {
|
|
2
|
+
header: a,
|
|
3
|
+
variantDefault: e,
|
|
4
|
+
variantMobile: t,
|
|
5
|
+
variantMobileOpen: o,
|
|
6
|
+
pageTitle: s,
|
|
7
|
+
pageTitleDesktop: _,
|
|
8
|
+
pageTitleMobile: n,
|
|
9
|
+
actions: c,
|
|
10
|
+
actionsMobileOpen: r,
|
|
11
|
+
workspace: w,
|
|
12
|
+
workspaceFull: v,
|
|
13
|
+
workspaceLeft: i,
|
|
14
|
+
statusDot: l,
|
|
15
|
+
workspaceCol: p,
|
|
16
|
+
workspaceAccount: j,
|
|
17
|
+
workspaceName: u,
|
|
18
|
+
workspaceArrow: k,
|
|
19
|
+
bellBtn: m,
|
|
20
|
+
menuBtn: b,
|
|
21
|
+
menuIcon: g,
|
|
22
|
+
navUser: M,
|
|
23
|
+
avatar: T,
|
|
24
|
+
avatarImg: A,
|
|
25
|
+
avatarInitials: B,
|
|
26
|
+
userText: D,
|
|
27
|
+
userName: I,
|
|
28
|
+
userRole: f,
|
|
29
|
+
ctaBtn: N,
|
|
30
|
+
mainActions: O
|
|
11
31
|
};
|
|
12
32
|
export {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
33
|
+
c as actions,
|
|
34
|
+
r as actionsMobileOpen,
|
|
35
|
+
T as avatar,
|
|
36
|
+
A as avatarImg,
|
|
37
|
+
B as avatarInitials,
|
|
38
|
+
m as bellBtn,
|
|
39
|
+
N as ctaBtn,
|
|
40
|
+
d as default,
|
|
41
|
+
a as header,
|
|
42
|
+
O as mainActions,
|
|
43
|
+
b as menuBtn,
|
|
44
|
+
g as menuIcon,
|
|
45
|
+
M as navUser,
|
|
46
|
+
s as pageTitle,
|
|
47
|
+
_ as pageTitleDesktop,
|
|
48
|
+
n as pageTitleMobile,
|
|
49
|
+
l as statusDot,
|
|
50
|
+
I as userName,
|
|
51
|
+
f as userRole,
|
|
52
|
+
D as userText,
|
|
53
|
+
e as variantDefault,
|
|
54
|
+
t as variantMobile,
|
|
55
|
+
o as variantMobileOpen,
|
|
56
|
+
w as workspace,
|
|
57
|
+
j as workspaceAccount,
|
|
58
|
+
k as workspaceArrow,
|
|
59
|
+
p as workspaceCol,
|
|
60
|
+
v as workspaceFull,
|
|
61
|
+
i as workspaceLeft,
|
|
62
|
+
u as workspaceName
|
|
23
63
|
};
|
|
24
64
|
//# sourceMappingURL=index.esm21.js.map
|
package/dist/index.esm21.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm21.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.esm21.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.esm22.js
CHANGED
|
@@ -1,16 +1,52 @@
|
|
|
1
|
-
const t = "
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
const t = "_steps_xg6k6_20", e = "_item_xg6k6_30", n = "_typeStart_xg6k6_51", _ = "_typeStep_xg6k6_66", o = "_typeEnd_xg6k6_82", c = "_stateDefault_xg6k6_94", i = "_stateHover_xg6k6_95", s = "_stateActive_xg6k6_96", m = "_stateComplete_xg6k6_97", a = "_textDark_xg6k6_101", x = "_textLight_xg6k6_102", k = "_label_xg6k6_106", g = "_num_xg6k6_119", l = "_checkIcon_xg6k6_132", p = "_minified_xg6k6_143", r = "_minDot_xg6k6_150", C = "_minDefault_xg6k6_156", D = "_minActive_xg6k6_162", f = "_minComplete_xg6k6_169", u = "_minConnector_xg6k6_176", v = "_minConnectorDefault_xg6k6_183", y = "_minConnectorActive_xg6k6_184", A = "_minConnectorComplete_xg6k6_185", d = {
|
|
2
|
+
steps: t,
|
|
3
|
+
item: e,
|
|
4
|
+
typeStart: n,
|
|
5
|
+
typeStep: _,
|
|
6
|
+
typeEnd: o,
|
|
7
|
+
stateDefault: c,
|
|
8
|
+
stateHover: i,
|
|
9
|
+
stateActive: s,
|
|
10
|
+
stateComplete: m,
|
|
11
|
+
textDark: a,
|
|
12
|
+
textLight: x,
|
|
13
|
+
label: k,
|
|
14
|
+
num: g,
|
|
15
|
+
checkIcon: l,
|
|
16
|
+
minified: p,
|
|
17
|
+
minDot: r,
|
|
18
|
+
minDefault: C,
|
|
19
|
+
minActive: D,
|
|
20
|
+
minComplete: f,
|
|
21
|
+
minConnector: u,
|
|
22
|
+
minConnectorDefault: v,
|
|
23
|
+
minConnectorActive: y,
|
|
24
|
+
minConnectorComplete: A
|
|
7
25
|
};
|
|
8
26
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
27
|
+
l as checkIcon,
|
|
28
|
+
d as default,
|
|
29
|
+
e as item,
|
|
30
|
+
k as label,
|
|
31
|
+
D as minActive,
|
|
32
|
+
f as minComplete,
|
|
33
|
+
u as minConnector,
|
|
34
|
+
y as minConnectorActive,
|
|
35
|
+
A as minConnectorComplete,
|
|
36
|
+
v as minConnectorDefault,
|
|
37
|
+
C as minDefault,
|
|
38
|
+
r as minDot,
|
|
39
|
+
p as minified,
|
|
40
|
+
g as num,
|
|
41
|
+
s as stateActive,
|
|
42
|
+
m as stateComplete,
|
|
43
|
+
c as stateDefault,
|
|
44
|
+
i as stateHover,
|
|
45
|
+
t as steps,
|
|
46
|
+
a as textDark,
|
|
47
|
+
x as textLight,
|
|
48
|
+
o as typeEnd,
|
|
49
|
+
n as typeStart,
|
|
50
|
+
_ as typeStep
|
|
15
51
|
};
|
|
16
52
|
//# sourceMappingURL=index.esm22.js.map
|
package/dist/index.esm22.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm22.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.esm22.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
|