@solibo/solibo-ui 1.0.5 → 1.0.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.
Files changed (83) hide show
  1. package/dist/assets/index.css +1 -1
  2. package/dist/assets/index10.css +1 -1
  3. package/dist/assets/index11.css +1 -1
  4. package/dist/assets/index12.css +1 -1
  5. package/dist/assets/index13.css +1 -1
  6. package/dist/assets/index14.css +1 -1
  7. package/dist/assets/index15.css +1 -1
  8. package/dist/assets/index20.css +1 -1
  9. package/dist/assets/index26.css +1 -1
  10. package/dist/assets/index3.css +1 -1
  11. package/dist/assets/index32.css +1 -1
  12. package/dist/assets/index39.css +1 -1
  13. package/dist/assets/index4.css +1 -1
  14. package/dist/assets/index42.css +1 -1
  15. package/dist/assets/index5.css +1 -1
  16. package/dist/assets/index6.css +1 -1
  17. package/dist/assets/index7.css +1 -1
  18. package/dist/assets/index8.css +1 -1
  19. package/dist/assets/index9.css +1 -1
  20. package/dist/components/aside/index.cjs +1 -1
  21. package/dist/components/aside/index.js +15 -15
  22. package/dist/components/card/index.cjs +1 -1
  23. package/dist/components/card/index.js +38 -38
  24. package/dist/components/checkbox/index.cjs +1 -1
  25. package/dist/components/checkbox/index.js +1 -1
  26. package/dist/components/dropdown/index.cjs +1 -1
  27. package/dist/components/dropdown/index.js +101 -101
  28. package/dist/components/editor/index.cjs +1 -1
  29. package/dist/components/editor/index.js +1 -1
  30. package/dist/components/header/index.cjs +1 -1
  31. package/dist/components/header/index.js +10 -10
  32. package/dist/components/icon/index.cjs +1 -1
  33. package/dist/components/icon/index.js +1 -1
  34. package/dist/components/input/index.cjs +1 -1
  35. package/dist/components/input/index.js +2 -2
  36. package/dist/components/message/index.cjs +1 -1
  37. package/dist/components/message/index.js +20 -20
  38. package/dist/components/messages/index.cjs +1 -1
  39. package/dist/components/messages/index.cjs.map +1 -1
  40. package/dist/components/messages/index.js +34 -31
  41. package/dist/components/messages/index.js.map +1 -1
  42. package/dist/components/nav/index.cjs +1 -1
  43. package/dist/components/nav/index.js +22 -22
  44. package/dist/components/object/index.cjs +1 -1
  45. package/dist/components/object/index.js +1 -1
  46. package/dist/components/portal/index.cjs +1 -1
  47. package/dist/components/portal/index.js +17 -17
  48. package/dist/components/search/index.cjs +1 -1
  49. package/dist/components/search/index.js +37 -37
  50. package/dist/components/select/index.cjs +1 -1
  51. package/dist/components/select/index.js +2 -2
  52. package/dist/components/sortable/index.cjs +1 -1
  53. package/dist/components/sortable/index.js +1 -1
  54. package/dist/components/table/index.cjs +1 -1
  55. package/dist/components/table/index.js +1 -1
  56. package/dist/components/textarea/index.cjs +1 -1
  57. package/dist/components/textarea/index.js +1 -1
  58. package/dist/components/toast/index.cjs +1 -1
  59. package/dist/components/toast/index.js +1 -1
  60. package/dist/components/toasts/index.cjs +1 -1
  61. package/dist/components/toasts/index.js +1 -1
  62. package/dist/components/toggle/index.cjs +1 -1
  63. package/dist/components/toggle/index.js +1 -1
  64. package/dist/components/tooltip/index.cjs +1 -1
  65. package/dist/components/tooltip/index.js +6 -6
  66. package/dist/{icons-BROXUtPz.cjs → icons-BoBeAmLe.cjs} +2 -2
  67. package/dist/{icons-BROXUtPz.cjs.map → icons-BoBeAmLe.cjs.map} +1 -1
  68. package/dist/{icons-CH48JQqt.js → icons-Dhj9mAkR.js} +4 -1
  69. package/dist/{icons-CH48JQqt.js.map → icons-Dhj9mAkR.js.map} +1 -1
  70. package/dist/{index-CSYOtiWJ.cjs → index-Ct0mJ-KK.cjs} +2 -2
  71. package/dist/{index-CSYOtiWJ.cjs.map → index-Ct0mJ-KK.cjs.map} +1 -1
  72. package/dist/{index-BrGCs_7h.js → index-D4LZQ-JF.js} +2 -2
  73. package/dist/{index-BrGCs_7h.js.map → index-D4LZQ-JF.js.map} +1 -1
  74. package/dist/{index-CIugi8vq.cjs → index-D9Hq7ewF.cjs} +2 -2
  75. package/dist/{index-CIugi8vq.cjs.map → index-D9Hq7ewF.cjs.map} +1 -1
  76. package/dist/{index-CRAuAHow.js → index-uQRsVtP-.js} +2 -2
  77. package/dist/{index-CRAuAHow.js.map → index-uQRsVtP-.js.map} +1 -1
  78. package/dist/index.cjs +1 -1
  79. package/dist/index.d.ts +5 -1
  80. package/dist/index.js +2 -2
  81. package/dist/tokens.css +7 -2
  82. package/dist/tokens.json +105 -33
  83. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index-BrGCs_7h.js","sources":["../src/lib/text.ts","../src/components/input/index.tsx"],"sourcesContent":["export function capitalizeFirstLetter(value: string): string {\n return value ? `${value[0].toLocaleUpperCase()}${value.slice(1)}` : value;\n}\n\nexport function formatInlineLabel(value: string): string {\n const label = capitalizeFirstLetter(value);\n return label && !label.endsWith(':') ? `${label}:` : label;\n}\n","import cx from 'classix';\nimport { useEffect, useState } from 'react';\n\nimport { IconName, iconSVG } from '@/components/icon/icons.ts';\nimport { formatInlineLabel } from '@/lib/text';\nimport { useTouched } from '@/lib/use-touched';\n\nimport styles from './styles.module.css';\n\nexport type InputProps = React.ComponentPropsWithRef<'input'> & {\n defaultCountryCode?: string;\n disabled?: boolean;\n icon?: IconName;\n label?: string;\n onClick?: React.MouseEventHandler<HTMLInputElement>;\n placeholder?: string;\n variant?: 'default' | 'inline';\n type?:\n | 'date'\n | 'datetime-local'\n | 'email'\n | 'number'\n | 'password'\n | 'radio'\n | 'search'\n | 'tel'\n | 'text';\n};\n\nexport function Input({\n className,\n defaultCountryCode = '+47',\n disabled = false,\n icon,\n label,\n placeholder,\n ref,\n required,\n type = 'text',\n variant = 'default',\n ...props\n}: InputProps) {\n const [countryCode, setCountryCode] = useState('');\n const [phoneNumber, setPhoneNumber] = useState('');\n const { name, onChange, pattern, value, ...restProps } = props;\n const { touched, onBlur } = useTouched(value === '');\n const inputIcon = icon && type !== 'radio' && type !== 'datetime-local' ? icon : undefined;\n const displayLabel = label && variant === 'inline' ? formatInlineLabel(label) : label;\n\n type withVars =\n | (React.CSSProperties & {\n '--icon-svg'?: string;\n })\n | undefined;\n\n const withVars: withVars = inputIcon\n ? {\n '--icon-svg': iconSVG(inputIcon, true),\n }\n : undefined;\n\n useEffect(() => {\n if (onChange && type === 'tel') {\n const target = {\n name,\n value: phoneNumber\n ? (countryCode || defaultCountryCode).split(' ').join('') +\n phoneNumber.split(' ').join('')\n : undefined,\n } as unknown as HTMLInputElement;\n\n onChange({ target, currentTarget: target } as React.ChangeEvent<HTMLInputElement>);\n }\n }, [countryCode, defaultCountryCode, name, onChange, phoneNumber, type]);\n\n useEffect(() => {\n if (type === 'tel' && !value) {\n setPhoneNumber('');\n setCountryCode('');\n }\n }, [type, value]);\n\n const telephoneInput = (\n <>\n <input\n disabled={disabled}\n hidden\n onChange={onChange}\n pattern={undefined}\n placeholder={placeholder}\n ref={ref}\n type={type}\n value={value}\n />\n <input\n type='text'\n className={cx(styles.code, styles.input)}\n disabled={disabled}\n maxLength={5}\n onChange={(e) => setCountryCode(e.target.value)}\n placeholder={defaultCountryCode}\n value={countryCode}\n />\n <input\n type='tel'\n className={cx(styles.input, touched && styles.touched)}\n data-icon={inputIcon ? 'true' : undefined}\n disabled={disabled}\n maxLength={14}\n name={undefined}\n onChange={(e) => setPhoneNumber(e.target.value)}\n onBlur={onBlur}\n pattern={pattern}\n required={required}\n style={withVars}\n value={phoneNumber}\n {...restProps}\n />\n </>\n );\n\n return (\n <label className={cx(styles.label, variant === 'inline' && styles.inline)}>\n {displayLabel && <span data-required={required || undefined}>{displayLabel}</span>}\n {type === 'tel' ? (\n telephoneInput\n ) : (\n <input\n ref={ref}\n className={cx(styles.input, className, touched && styles.touched)}\n data-icon={inputIcon ? 'true' : undefined}\n disabled={disabled}\n onBlur={onBlur}\n placeholder={placeholder}\n required={required}\n style={withVars}\n type={type}\n {...props}\n />\n )}\n </label>\n );\n}\n"],"names":["capitalizeFirstLetter","value","toLocaleUpperCase","slice","formatInlineLabel","label","endsWith","Input","className","defaultCountryCode","disabled","icon","placeholder","ref","required","type","variant","props","countryCode","setCountryCode","useState","phoneNumber","setPhoneNumber","name","onChange","pattern","restProps","touched","onBlur","useTouched","inputIcon","undefined","displayLabel","withVars","iconSVG","useEffect","target","split","join","currentTarget","telephoneInput","jsxs","Fragment","jsx","cx","styles","code","input","e","inline"],"mappings":";;;;;AAAO,SAASA,EAAsBC,GAAuB;AAC3D,SAAOA,KAAQ,GAAGA,EAAM,CAAC,EAAEC,mBAAmB,GAAGD,EAAME,MAAM,CAAC,CAAC;AACjE;AAEO,SAASC,EAAkBH,GAAuB;AACvD,QAAMI,IAAQL,EAAsBC,CAAK;AACzC,SAAOI,KAAS,CAACA,EAAMC,SAAS,GAAG,IAAI,GAAGD,CAAK,MAAMA;AACvD;;;;;;;;ACsBO,SAASE,EAAM;AAAA,EACpBC,WAAAA;AAAAA,EACAC,oBAAAA,IAAqB;AAAA,EACrBC,UAAAA,IAAW;AAAA,EACXC,MAAAA;AAAAA,EACAN,OAAAA;AAAAA,EACAO,aAAAA;AAAAA,EACAC,KAAAA;AAAAA,EACAC,UAAAA;AAAAA,EACAC,MAAAA,IAAO;AAAA,EACPC,SAAAA,IAAU;AAAA,EACV,GAAGC;AACO,GAAG;AACb,QAAM,CAACC,GAAaC,CAAc,IAAIC,EAAS,EAAE,GAC3C,CAACC,GAAaC,CAAc,IAAIF,EAAS,EAAE,GAC3C;AAAA,IAAEG,MAAAA;AAAAA,IAAMC,UAAAA;AAAAA,IAAUC,SAAAA;AAAAA,IAASxB,OAAAA;AAAAA,IAAO,GAAGyB;AAAAA,EAAAA,IAAcT,GACnD;AAAA,IAAEU,SAAAA;AAAAA,IAASC,QAAAA;AAAAA,EAAAA,IAAWC,EAAW5B,MAAU,EAAE,GAC7C6B,IAAYnB,KAAQI,MAAS,WAAWA,MAAS,mBAAmBJ,IAAOoB,QAC3EC,IAAe3B,KAASW,MAAY,WAAWZ,EAAkBC,CAAK,IAAIA,GAQ1E4B,IAAqBH,IACvB;AAAA,IACE,cAAcI,EAAQJ,GAAW,EAAI;AAAA,EAAA,IAEvCC;AA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,OAAOZ,GACP,GAAIK,EAAAA,CAAU;AAAA,EAAA,GAElB;AAGF,SACE,gBAAAe,EAAC,SAAA,EAAM,WAAWG,EAAGC,EAAOxC,OAAOW,MAAY,YAAY6B,EAAOI,MAAM,GAAE,kBAAA,SACvEjB,UAAAA;AAAAA,IAAAA,KAAgB,gBAAAW,EAAC,QAAA,EAAK,iBAAe7B,KAAYiB,QAAYC,UAAAA,GAAa;AAAA,IAC1EjB,MAAS,QACRyB,IAEA,gBAAAG,EAAC,SAAA,EACC,KAAA9B,GACA,WAAW+B,EAAGC,EAAOE,OAAOvC,GAAWmB,KAAWkB,EAAOlB,OAAO,GAChE,aAAWG,IAAY,SAASC,QAChC,UAAArB,GACA,QAAAkB,GACA,aAAAhB,GACA,UAAAE,GACA,OAAOmB,GACP,MAAAlB,GACA,GAAIE,EAAAA,CAAM;AAAA,EAAA,GAGhB;AAEJ;"}
1
+ {"version":3,"file":"index-D4LZQ-JF.js","sources":["../src/lib/text.ts","../src/components/input/index.tsx"],"sourcesContent":["export function capitalizeFirstLetter(value: string): string {\n return value ? `${value[0].toLocaleUpperCase()}${value.slice(1)}` : value;\n}\n\nexport function formatInlineLabel(value: string): string {\n const label = capitalizeFirstLetter(value);\n return label && !label.endsWith(':') ? `${label}:` : label;\n}\n","import cx from 'classix';\nimport { useEffect, useState } from 'react';\n\nimport { IconName, iconSVG } from '@/components/icon/icons.ts';\nimport { formatInlineLabel } from '@/lib/text';\nimport { useTouched } from '@/lib/use-touched';\n\nimport styles from './styles.module.css';\n\nexport type InputProps = React.ComponentPropsWithRef<'input'> & {\n defaultCountryCode?: string;\n disabled?: boolean;\n icon?: IconName;\n label?: string;\n onClick?: React.MouseEventHandler<HTMLInputElement>;\n placeholder?: string;\n variant?: 'default' | 'inline';\n type?:\n | 'date'\n | 'datetime-local'\n | 'email'\n | 'number'\n | 'password'\n | 'radio'\n | 'search'\n | 'tel'\n | 'text';\n};\n\nexport function Input({\n className,\n defaultCountryCode = '+47',\n disabled = false,\n icon,\n label,\n placeholder,\n ref,\n required,\n type = 'text',\n variant = 'default',\n ...props\n}: InputProps) {\n const [countryCode, setCountryCode] = useState('');\n const [phoneNumber, setPhoneNumber] = useState('');\n const { name, onChange, pattern, value, ...restProps } = props;\n const { touched, onBlur } = useTouched(value === '');\n const inputIcon = icon && type !== 'radio' && type !== 'datetime-local' ? icon : undefined;\n const displayLabel = label && variant === 'inline' ? formatInlineLabel(label) : label;\n\n type withVars =\n | (React.CSSProperties & {\n '--icon-svg'?: string;\n })\n | undefined;\n\n const withVars: withVars = inputIcon\n ? {\n '--icon-svg': iconSVG(inputIcon, true),\n }\n : undefined;\n\n useEffect(() => {\n if (onChange && type === 'tel') {\n const target = {\n name,\n value: phoneNumber\n ? (countryCode || defaultCountryCode).split(' ').join('') +\n phoneNumber.split(' ').join('')\n : undefined,\n } as unknown as HTMLInputElement;\n\n onChange({ target, currentTarget: target } as React.ChangeEvent<HTMLInputElement>);\n }\n }, [countryCode, defaultCountryCode, name, onChange, phoneNumber, type]);\n\n useEffect(() => {\n if (type === 'tel' && !value) {\n setPhoneNumber('');\n setCountryCode('');\n }\n }, [type, value]);\n\n const telephoneInput = (\n <>\n <input\n disabled={disabled}\n hidden\n onChange={onChange}\n pattern={undefined}\n placeholder={placeholder}\n ref={ref}\n type={type}\n value={value}\n />\n <input\n type='text'\n className={cx(styles.code, styles.input)}\n disabled={disabled}\n maxLength={5}\n onChange={(e) => setCountryCode(e.target.value)}\n placeholder={defaultCountryCode}\n value={countryCode}\n />\n <input\n type='tel'\n className={cx(styles.input, touched && styles.touched)}\n data-icon={inputIcon ? 'true' : undefined}\n disabled={disabled}\n maxLength={14}\n name={undefined}\n onChange={(e) => setPhoneNumber(e.target.value)}\n onBlur={onBlur}\n pattern={pattern}\n required={required}\n style={withVars}\n value={phoneNumber}\n {...restProps}\n />\n </>\n );\n\n return (\n <label className={cx(styles.label, variant === 'inline' && styles.inline)}>\n {displayLabel && <span data-required={required || undefined}>{displayLabel}</span>}\n {type === 'tel' ? (\n telephoneInput\n ) : (\n <input\n ref={ref}\n className={cx(styles.input, className, touched && styles.touched)}\n data-icon={inputIcon ? 'true' : undefined}\n disabled={disabled}\n onBlur={onBlur}\n placeholder={placeholder}\n required={required}\n style={withVars}\n type={type}\n {...props}\n />\n )}\n </label>\n );\n}\n"],"names":["capitalizeFirstLetter","value","toLocaleUpperCase","slice","formatInlineLabel","label","endsWith","Input","className","defaultCountryCode","disabled","icon","placeholder","ref","required","type","variant","props","countryCode","setCountryCode","useState","phoneNumber","setPhoneNumber","name","onChange","pattern","restProps","touched","onBlur","useTouched","inputIcon","undefined","displayLabel","withVars","iconSVG","useEffect","target","split","join","currentTarget","telephoneInput","jsxs","Fragment","jsx","cx","styles","code","input","e","inline"],"mappings":";;;;;AAAO,SAASA,EAAsBC,GAAuB;AAC3D,SAAOA,KAAQ,GAAGA,EAAM,CAAC,EAAEC,mBAAmB,GAAGD,EAAME,MAAM,CAAC,CAAC;AACjE;AAEO,SAASC,EAAkBH,GAAuB;AACvD,QAAMI,IAAQL,EAAsBC,CAAK;AACzC,SAAOI,KAAS,CAACA,EAAMC,SAAS,GAAG,IAAI,GAAGD,CAAK,MAAMA;AACvD;;;;;;;;ACsBO,SAASE,EAAM;AAAA,EACpBC,WAAAA;AAAAA,EACAC,oBAAAA,IAAqB;AAAA,EACrBC,UAAAA,IAAW;AAAA,EACXC,MAAAA;AAAAA,EACAN,OAAAA;AAAAA,EACAO,aAAAA;AAAAA,EACAC,KAAAA;AAAAA,EACAC,UAAAA;AAAAA,EACAC,MAAAA,IAAO;AAAA,EACPC,SAAAA,IAAU;AAAA,EACV,GAAGC;AACO,GAAG;AACb,QAAM,CAACC,GAAaC,CAAc,IAAIC,EAAS,EAAE,GAC3C,CAACC,GAAaC,CAAc,IAAIF,EAAS,EAAE,GAC3C;AAAA,IAAEG,MAAAA;AAAAA,IAAMC,UAAAA;AAAAA,IAAUC,SAAAA;AAAAA,IAASxB,OAAAA;AAAAA,IAAO,G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,OAAOnC,KAAK,GAC9C,aAAaQ,GACb,OAAOS,EAAAA,CAAY;AAAA,sBAEpB,SAAA,EACC,MAAK,OACL,WAAW0B,EAAGC,EAAOE,OAAOpB,KAAWkB,EAAOlB,OAAO,GACrD,aAAWG,IAAY,SAASC,QAChC,UAAArB,GACA,WAAW,IACX,MAAMqB,QACN,UAAWiB,CAAAA,MAAM1B,EAAe0B,EAAEZ,OAAOnC,KAAK,GAC9C,QAAA2B,GACA,SAAAH,GACA,UAAAX,GACA,OAAOmB,GACP,OAAOZ,GACP,GAAIK,EAAAA,CAAU;AAAA,EAAA,GAElB;AAGF,SACE,gBAAAe,EAAC,SAAA,EAAM,WAAWG,EAAGC,EAAOxC,OAAOW,MAAY,YAAY6B,EAAOI,MAAM,GAAE,kBAAA,SACvEjB,UAAAA;AAAAA,IAAAA,KAAgB,gBAAAW,EAAC,QAAA,EAAK,iBAAe7B,KAAYiB,QAAYC,UAAAA,GAAa;AAAA,IAC1EjB,MAAS,QACRyB,IAEA,gBAAAG,EAAC,SAAA,EACC,KAAA9B,GACA,WAAW+B,EAAGC,EAAOE,OAAOvC,GAAWmB,KAAWkB,EAAOlB,OAAO,GAChE,aAAWG,IAAY,SAASC,QAChC,UAAArB,GACA,QAAAkB,GACA,aAAAhB,GACA,UAAAE,GACA,OAAOmB,GACP,MAAAlB,GACA,GAAIE,EAAAA,CAAM;AAAA,EAAA,GAGhB;AAEJ;"}
@@ -1,2 +1,2 @@
1
- "use strict";require('./assets/index47.css');const o=require("react/jsx-runtime"),d=require("./classix-5H4IWnMA.cjs"),h=require("react"),F=require("./icons-BROXUtPz.cjs"),P=require("./use-touched-D_TJ8wDc.cjs");function R(e){return e&&`${e[0].toLocaleUpperCase()}${e.slice(1)}`}function S(e){const n=R(e);return n&&!n.endsWith(":")?`${n}:`:n}const V="_input_antyf_3",w="_touched_antyf_43",z="_label_antyf_48",B="_inline_antyf_57",G="_code_antyf_81",s={input:V,touched:w,label:z,inline:B,code:G};function U({className:e,defaultCountryCode:n="+47",disabled:c=!1,icon:_,label:p,placeholder:x,ref:g,required:m,type:t="text",variant:v="default",...j}){const[f,L]=h.useState(""),[a,b]=h.useState(""),{name:I,onChange:u,pattern:T,value:l,...$}=j,{touched:N,onBlur:q}=P.useTouched(l===""),r=_&&t!=="radio"&&t!=="datetime-local"?_:void 0,y=p&&v==="inline"?S(p):p,C=r?{"--icon-svg":F.iconSVG(r,!0)}:void 0;h.useEffect(()=>{if(u&&t==="tel"){const i={name:I,value:a?(f||n).split(" ").join("")+a.split(" ").join(""):void 0};u({target:i,currentTarget:i})}},[f,n,I,u,a,t]),h.useEffect(()=>{t==="tel"&&!l&&(b(""),L(""))},[t,l]);const E=o.jsxs(o.Fragment,{children:[o.jsx("input",{disabled:c,hidden:!0,onChange:u,pattern:void 0,placeholder:x,ref:g,type:t,value:l}),o.jsx("input",{type:"text",className:d.t(s.code,s.input),disabled:c,maxLength:5,onChange:i=>L(i.target.value),placeholder:n,value:f}),o.jsx("input",{type:"tel",className:d.t(s.input,N&&s.touched),"data-icon":r?"true":void 0,disabled:c,maxLength:14,name:void 0,onChange:i=>b(i.target.value),onBlur:q,pattern:T,required:m,style:C,value:a,...$})]});return o.jsxs("label",{className:d.t(s.label,v==="inline"&&s.inline),"data-component":"input",children:[y&&o.jsx("span",{"data-required":m||void 0,children:y}),t==="tel"?E:o.jsx("input",{ref:g,className:d.t(s.input,e,N&&s.touched),"data-icon":r?"true":void 0,disabled:c,onBlur:q,placeholder:x,required:m,style:C,type:t,...j})]})}exports.Input=U;exports.formatInlineLabel=S;
2
- //# sourceMappingURL=index-CIugi8vq.cjs.map
1
+ "use strict";require('./assets/index47.css');const o=require("react/jsx-runtime"),d=require("./classix-5H4IWnMA.cjs"),h=require("react"),F=require("./icons-BoBeAmLe.cjs"),P=require("./use-touched-D_TJ8wDc.cjs");function R(e){return e&&`${e[0].toLocaleUpperCase()}${e.slice(1)}`}function S(e){const n=R(e);return n&&!n.endsWith(":")?`${n}:`:n}const V="_input_antyf_3",w="_touched_antyf_43",z="_label_antyf_48",B="_inline_antyf_57",G="_code_antyf_81",s={input:V,touched:w,label:z,inline:B,code:G};function U({className:e,defaultCountryCode:n="+47",disabled:c=!1,icon:_,label:p,placeholder:x,ref:g,required:m,type:t="text",variant:v="default",...j}){const[f,L]=h.useState(""),[a,b]=h.useState(""),{name:I,onChange:u,pattern:T,value:l,...$}=j,{touched:N,onBlur:q}=P.useTouched(l===""),r=_&&t!=="radio"&&t!=="datetime-local"?_:void 0,y=p&&v==="inline"?S(p):p,C=r?{"--icon-svg":F.iconSVG(r,!0)}:void 0;h.useEffect(()=>{if(u&&t==="tel"){const i={name:I,value:a?(f||n).split(" ").join("")+a.split(" ").join(""):void 0};u({target:i,currentTarget:i})}},[f,n,I,u,a,t]),h.useEffect(()=>{t==="tel"&&!l&&(b(""),L(""))},[t,l]);const E=o.jsxs(o.Fragment,{children:[o.jsx("input",{disabled:c,hidden:!0,onChange:u,pattern:void 0,placeholder:x,ref:g,type:t,value:l}),o.jsx("input",{type:"text",className:d.t(s.code,s.input),disabled:c,maxLength:5,onChange:i=>L(i.target.value),placeholder:n,value:f}),o.jsx("input",{type:"tel",className:d.t(s.input,N&&s.touched),"data-icon":r?"true":void 0,disabled:c,maxLength:14,name:void 0,onChange:i=>b(i.target.value),onBlur:q,pattern:T,required:m,style:C,value:a,...$})]});return o.jsxs("label",{className:d.t(s.label,v==="inline"&&s.inline),"data-component":"input",children:[y&&o.jsx("span",{"data-required":m||void 0,children:y}),t==="tel"?E:o.jsx("input",{ref:g,className:d.t(s.input,e,N&&s.touched),"data-icon":r?"true":void 0,disabled:c,onBlur:q,placeholder:x,required:m,style:C,type:t,...j})]})}exports.Input=U;exports.formatInlineLabel=S;
2
+ //# sourceMappingURL=index-D9Hq7ewF.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-CIugi8vq.cjs","sources":["../src/lib/text.ts","../src/components/input/index.tsx"],"sourcesContent":["export function capitalizeFirstLetter(value: string): string {\n return value ? `${value[0].toLocaleUpperCase()}${value.slice(1)}` : value;\n}\n\nexport function formatInlineLabel(value: string): string {\n const label = capitalizeFirstLetter(value);\n return label && !label.endsWith(':') ? `${label}:` : label;\n}\n","import cx from 'classix';\nimport { useEffect, useState } from 'react';\n\nimport { IconName, iconSVG } from '@/components/icon/icons.ts';\nimport { formatInlineLabel } from '@/lib/text';\nimport { useTouched } from '@/lib/use-touched';\n\nimport styles from './styles.module.css';\n\nexport type InputProps = React.ComponentPropsWithRef<'input'> & {\n defaultCountryCode?: string;\n disabled?: boolean;\n icon?: IconName;\n label?: string;\n onClick?: React.MouseEventHandler<HTMLInputElement>;\n placeholder?: string;\n variant?: 'default' | 'inline';\n type?:\n | 'date'\n | 'datetime-local'\n | 'email'\n | 'number'\n | 'password'\n | 'radio'\n | 'search'\n | 'tel'\n | 'text';\n};\n\nexport function Input({\n className,\n defaultCountryCode = '+47',\n disabled = false,\n icon,\n label,\n placeholder,\n ref,\n required,\n type = 'text',\n variant = 'default',\n ...props\n}: InputProps) {\n const [countryCode, setCountryCode] = useState('');\n const [phoneNumber, setPhoneNumber] = useState('');\n const { name, onChange, pattern, value, ...restProps } = props;\n const { touched, onBlur } = useTouched(value === '');\n const inputIcon = icon && type !== 'radio' && type !== 'datetime-local' ? icon : undefined;\n const displayLabel = label && variant === 'inline' ? formatInlineLabel(label) : label;\n\n type withVars =\n | (React.CSSProperties & {\n '--icon-svg'?: string;\n })\n | undefined;\n\n const withVars: withVars = inputIcon\n ? {\n '--icon-svg': iconSVG(inputIcon, true),\n }\n : undefined;\n\n useEffect(() => {\n if (onChange && type === 'tel') {\n const target = {\n name,\n value: phoneNumber\n ? (countryCode || defaultCountryCode).split(' ').join('') +\n phoneNumber.split(' ').join('')\n : undefined,\n } as unknown as HTMLInputElement;\n\n onChange({ target, currentTarget: target } as React.ChangeEvent<HTMLInputElement>);\n }\n }, [countryCode, defaultCountryCode, name, onChange, phoneNumber, type]);\n\n useEffect(() => {\n if (type === 'tel' && !value) {\n setPhoneNumber('');\n setCountryCode('');\n }\n }, [type, value]);\n\n const telephoneInput = (\n <>\n <input\n disabled={disabled}\n hidden\n onChange={onChange}\n pattern={undefined}\n placeholder={placeholder}\n ref={ref}\n type={type}\n value={value}\n />\n <input\n type='text'\n className={cx(styles.code, styles.input)}\n disabled={disabled}\n maxLength={5}\n onChange={(e) => setCountryCode(e.target.value)}\n placeholder={defaultCountryCode}\n value={countryCode}\n />\n <input\n type='tel'\n className={cx(styles.input, touched && styles.touched)}\n data-icon={inputIcon ? 'true' : undefined}\n disabled={disabled}\n maxLength={14}\n name={undefined}\n onChange={(e) => setPhoneNumber(e.target.value)}\n onBlur={onBlur}\n pattern={pattern}\n required={required}\n style={withVars}\n value={phoneNumber}\n {...restProps}\n />\n </>\n );\n\n return (\n <label className={cx(styles.label, variant === 'inline' && styles.inline)}>\n {displayLabel && <span data-required={required || undefined}>{displayLabel}</span>}\n {type === 'tel' ? (\n telephoneInput\n ) : (\n <input\n ref={ref}\n className={cx(styles.input, className, touched && styles.touched)}\n data-icon={inputIcon ? 'true' : undefined}\n disabled={disabled}\n onBlur={onBlur}\n placeholder={placeholder}\n required={required}\n style={withVars}\n type={type}\n {...props}\n />\n )}\n </label>\n );\n}\n"],"names":["capitalizeFirstLetter","value","toLocaleUpperCase","slice","formatInlineLabel","label","endsWith","Input","className","defaultCountryCode","disabled","icon","placeholder","ref","required","type","variant","props","countryCode","setCountryCode","useState","phoneNumber","setPhoneNumber","name","onChange","pattern","restProps","touched","onBlur","useTouched","inputIcon","undefined","displayLabel","withVars","iconSVG","useEffect","target","split","join","currentTarget","telephoneInput","jsxs","Fragment","jsx","cx","styles","code","input","e","inline"],"mappings":"mLAAO,SAASA,EAAsBC,EAAuB,CAC3D,OAAOA,GAAQ,GAAGA,EAAM,CAAC,EAAEC,mBAAmB,GAAGD,EAAME,MAAM,CAAC,CAAC,EACjE,CAEO,SAASC,EAAkBH,EAAuB,CACvD,MAAMI,EAAQL,EAAsBC,CAA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 {"version":3,"file":"index-D9Hq7ewF.cjs","sources":["../src/lib/text.ts","../src/components/input/index.tsx"],"sourcesContent":["export function capitalizeFirstLetter(value: string): string {\n return value ? `${value[0].toLocaleUpperCase()}${value.slice(1)}` : value;\n}\n\nexport function formatInlineLabel(value: string): string {\n const label = capitalizeFirstLetter(value);\n return label && !label.endsWith(':') ? `${label}:` : label;\n}\n","import cx from 'classix';\nimport { useEffect, useState } from 'react';\n\nimport { IconName, iconSVG } from '@/components/icon/icons.ts';\nimport { formatInlineLabel } from '@/lib/text';\nimport { useTouched } from '@/lib/use-touched';\n\nimport styles from './styles.module.css';\n\nexport type InputProps = React.ComponentPropsWithRef<'input'> & {\n defaultCountryCode?: string;\n disabled?: boolean;\n icon?: IconName;\n label?: string;\n onClick?: React.MouseEventHandler<HTMLInputElement>;\n placeholder?: string;\n variant?: 'default' | 'inline';\n type?:\n | 'date'\n | 'datetime-local'\n | 'email'\n | 'number'\n | 'password'\n | 'radio'\n | 'search'\n | 'tel'\n | 'text';\n};\n\nexport function Input({\n className,\n defaultCountryCode = '+47',\n disabled = false,\n icon,\n label,\n placeholder,\n ref,\n required,\n type = 'text',\n variant = 'default',\n ...props\n}: InputProps) {\n const [countryCode, setCountryCode] = useState('');\n const [phoneNumber, setPhoneNumber] = useState('');\n const { name, onChange, pattern, value, ...restProps } = props;\n const { touched, onBlur } = useTouched(value === '');\n const inputIcon = icon && type !== 'radio' && type !== 'datetime-local' ? icon : undefined;\n const displayLabel = label && variant === 'inline' ? formatInlineLabel(label) : label;\n\n type withVars =\n | (React.CSSProperties & {\n '--icon-svg'?: string;\n })\n | undefined;\n\n const withVars: withVars = inputIcon\n ? {\n '--icon-svg': iconSVG(inputIcon, true),\n }\n : undefined;\n\n useEffect(() => {\n if (onChange && type === 'tel') {\n const target = {\n name,\n value: phoneNumber\n ? (countryCode || defaultCountryCode).split(' ').join('') +\n phoneNumber.split(' ').join('')\n : undefined,\n } as unknown as HTMLInputElement;\n\n onChange({ target, currentTarget: target } as React.ChangeEvent<HTMLInputElement>);\n }\n }, [countryCode, defaultCountryCode, name, onChange, phoneNumber, type]);\n\n useEffect(() => {\n if (type === 'tel' && !value) {\n setPhoneNumber('');\n setCountryCode('');\n }\n }, [type, value]);\n\n const telephoneInput = (\n <>\n <input\n disabled={disabled}\n hidden\n onChange={onChange}\n pattern={undefined}\n placeholder={placeholder}\n ref={ref}\n type={type}\n value={value}\n />\n <input\n type='text'\n className={cx(styles.code, styles.input)}\n disabled={disabled}\n maxLength={5}\n onChange={(e) => setCountryCode(e.target.value)}\n placeholder={defaultCountryCode}\n value={countryCode}\n />\n <input\n type='tel'\n className={cx(styles.input, touched && styles.touched)}\n data-icon={inputIcon ? 'true' : undefined}\n disabled={disabled}\n maxLength={14}\n name={undefined}\n onChange={(e) => setPhoneNumber(e.target.value)}\n onBlur={onBlur}\n pattern={pattern}\n required={required}\n style={withVars}\n value={phoneNumber}\n {...restProps}\n />\n </>\n );\n\n return (\n <label className={cx(styles.label, variant === 'inline' && styles.inline)}>\n {displayLabel && <span data-required={required || undefined}>{displayLabel}</span>}\n {type === 'tel' ? (\n telephoneInput\n ) : (\n <input\n ref={ref}\n className={cx(styles.input, className, touched && styles.touched)}\n data-icon={inputIcon ? 'true' : undefined}\n disabled={disabled}\n onBlur={onBlur}\n placeholder={placeholder}\n required={required}\n style={withVars}\n type={type}\n {...props}\n />\n )}\n </label>\n );\n}\n"],"names":["capitalizeFirstLetter","value","toLocaleUpperCase","slice","formatInlineLabel","label","endsWith","Input","className","defaultCountryCode","disabled","icon","placeholder","ref","required","type","variant","props","countryCode","setCountryCode","useState","phoneNumber","setPhoneNumber","name","onChange","pattern","restProps","touched","onBlur","useTouched","inputIcon","undefined","displayLabel","withVars","iconSVG","useEffect","target","split","join","currentTarget","telephoneInput","jsxs","Fragment","jsx","cx","styles","code","input","e","inline"],"mappings":"mLAAO,SAASA,EAAsBC,EAAuB,CAC3D,OAAOA,GAAQ,GAAGA,EAAM,CAAC,EAAEC,mBA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ACA,YAAAhB,EACA,SAAAE,EACA,MAAOmB,EACP,KAAAlB,EACA,GAAIE,CAAAA,CAAM,CAAA,EAGhB,CAEJ"}
@@ -1,6 +1,6 @@
1
1
  import { jsxs as m, jsx as p } from "react/jsx-runtime";
2
2
  import { t as y } from "./classix-DG18itHa.js";
3
- import { i as b } from "./icons-CH48JQqt.js";
3
+ import { i as b } from "./icons-Dhj9mAkR.js";
4
4
  import { u as v } from "./use-touched-DXIJVVzz.js";
5
5
  import './assets/index51.css';const w = /* @__PURE__ */ new Set(["aria-activedescendant", "aria-autocomplete", "aria-busy", "aria-controls", "aria-describedby", "aria-details", "aria-disabled", "aria-errormessage", "aria-expanded", "aria-haspopup", "aria-hidden", "aria-invalid", "aria-keyshortcuts", "aria-label", "aria-labelledby", "aria-live", "aria-owns", "aria-required", "aria-roledescription", "autoComplete", "autoFocus", "className", "defaultValue", "dir", "disabled", "form", "id", "multiple", "name", "onBlur", "onChange", "onClick", "onFocus", "onInput", "onInvalid", "onKeyDown", "onKeyUp", "onMouseDown", "onMouseUp", "onPointerDown", "onPointerUp", "required", "role", "size", "style", "tabIndex", "title", "value"]);
6
6
  function C(n) {
@@ -69,4 +69,4 @@ export {
69
69
  z as r,
70
70
  C as s
71
71
  };
72
- //# sourceMappingURL=index-CRAuAHow.js.map
72
+ //# sourceMappingURL=index-uQRsVtP-.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-CRAuAHow.js","sources":["../src/components/select/sanitize-select-props.ts","../src/lib/color.ts","../src/components/select/index.tsx"],"sourcesContent":["const selectKeys = new Set([\n 'aria-activedescendant',\n 'aria-autocomplete',\n 'aria-busy',\n 'aria-controls',\n 'aria-describedby',\n 'aria-details',\n 'aria-disabled',\n 'aria-errormessage',\n 'aria-expanded',\n 'aria-haspopup',\n 'aria-hidden',\n 'aria-invalid',\n 'aria-keyshortcuts',\n 'aria-label',\n 'aria-labelledby',\n 'aria-live',\n 'aria-owns',\n 'aria-required',\n 'aria-roledescription',\n 'autoComplete',\n 'autoFocus',\n 'className',\n 'defaultValue',\n 'dir',\n 'disabled',\n 'form',\n 'id',\n 'multiple',\n 'name',\n 'onBlur',\n 'onChange',\n 'onClick',\n 'onFocus',\n 'onInput',\n 'onInvalid',\n 'onKeyDown',\n 'onKeyUp',\n 'onMouseDown',\n 'onMouseUp',\n 'onPointerDown',\n 'onPointerUp',\n 'required',\n 'role',\n 'size',\n 'style',\n 'tabIndex',\n 'title',\n 'value',\n]);\n\nexport function sanitizeSelectProps<T extends Record<string, unknown>>(props: T) {\n return Object.fromEntries(\n Object.entries(props).filter(\n ([key]) => key.startsWith('data-') || key.startsWith('aria-') || selectKeys.has(key)\n )\n ) as Partial<T>;\n}\n","const cssVariablePattern = /^--[\\w-]+$/;\nconst cssVariableReferencePattern = /^var\\(\\s*(--[\\w-]+)\\s*(?:,\\s*(.+))?\\)$/;\n\nconst unresolvedColorKeywords = new Set([\n 'currentcolor',\n 'inherit',\n 'initial',\n 'revert',\n 'revert-layer',\n 'unset',\n]);\n\nconst probe = typeof document !== 'undefined' ? document.createElement('span') : null;\n\nfunction normalizeColorValue(input: string): string {\n const value = input.trim();\n\n if (!value || !probe || unresolvedColorKeywords.has(value.toLowerCase())) {\n return value;\n }\n\n const mountNode = document.body ?? document.documentElement;\n\n if (!mountNode) {\n return value;\n }\n\n probe.style.color = value;\n\n if (!probe.style.color) {\n return value;\n }\n\n mountNode.appendChild(probe);\n\n const normalized = getComputedStyle(probe).color.trim();\n probe.remove();\n\n return normalized || value;\n}\n\nexport function resolveColor(input: `--${string}` | string, fallback = 'currentColor'): string {\n if (typeof document === 'undefined') {\n return fallback;\n }\n\n const styles = getComputedStyle(document.documentElement);\n const seen = new Set<string>();\n let current = input.trim();\n\n while (current) {\n const match = current.match(cssVariableReferencePattern);\n const variableName = match?.[1] ?? (cssVariablePattern.test(current) ? current : null);\n const nestedFallback = match?.[2]?.trim();\n\n if (!variableName) {\n return normalizeColorValue(current);\n }\n\n if (seen.has(variableName)) {\n current = nestedFallback ?? '';\n continue;\n }\n\n seen.add(variableName);\n\n current = styles.getPropertyValue(variableName).trim() || nestedFallback || '';\n }\n\n return normalizeColorValue(fallback);\n}\n","import cx from 'classix';\n\nimport { iconSVG } from '@/components/icon/icons.ts';\nimport { resolveColor } from '@/lib/color';\nimport { useTouched } from '@/lib/use-touched';\n\nimport { sanitizeSelectProps } from './sanitize-select-props';\nimport styles from './styles.module.css';\n\nexport type SelectProps = React.SelectHTMLAttributes<HTMLSelectElement> & {\n children: React.ReactNode;\n label?: string;\n placeholder?: string;\n};\n\ntype withVars = React.CSSProperties & {\n '--icon-svg'?: string;\n};\n\nexport const Select = ({ children, label, placeholder, ...props }: SelectProps) => {\n const { touched, onBlur } = useTouched(props.value === '');\n const selectProps = sanitizeSelectProps(props);\n const { style, ...restSelectProps } = selectProps;\n const withVars = {\n ...style,\n '--icon-svg': iconSVG('chevron').replace(\n 'currentColor',\n resolveColor('--colors-semantic-content-secondary')\n ),\n } satisfies withVars;\n\n const selectElement = (\n <select\n className={cx(styles.select, touched && styles.touched)}\n onBlur={onBlur}\n style={withVars}\n {...restSelectProps}\n >\n {placeholder && (\n <option\n key='placeholder'\n value={''}\n hidden\n >\n {placeholder}\n </option>\n )}\n {children}\n </select>\n );\n\n if (!label) {\n return selectElement;\n }\n\n return (\n <label>\n <span\n className={styles.label}\n data-required={props.required || undefined}\n >\n {label}\n </span>\n {selectElement}\n </label>\n );\n};\n"],"names":["selectKeys","Set","sanitizeSelectProps","props","Object","fromEntries","entries","filter","key","startsWith","has","cssVariablePattern","cssVariableReferencePattern","unresolvedColorKeywords","probe","document","createElement","normalizeColorValue","input","value","trim","toLowerCase","mountNode","body","documentElement","style","color","appendChild","normalized","getComputedStyle","remove","resolveColor","fallback","styles","seen","current","match","variableName","test","nestedFallback","add","getPropertyValue","Select","children","label","placeholder","touched","onBlur","useTouched","selectProps","restSelectProps","withVars","iconSVG","replace","selectElement","jsxs","cx","select","jsx","required","undefined"],"mappings":";;;;AAAA,MA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AAA,GACH;AAGF,SAAKC,IAKH,gBAAAW,EAAC,SAAA,EAAK,kBAAA,UACJ,UAAA;AAAA,IAAA,gBAAAG,EAAC,QAAA,EACC,WAAWzB,EAAOW,OAClB,iBAAezC,EAAMwD,YAAYC,QAEhChB,UAAAA,EAAAA,CACH;AAAA,IACCU;AAAAA,EAAAA,GACH,IAZOA;AAcX;"}
1
+ {"version":3,"file":"index-uQRsVtP-.js","sources":["../src/components/select/sanitize-select-props.ts","../src/lib/color.ts","../src/components/select/index.tsx"],"sourcesContent":["const selectKeys = new Set([\n 'aria-activedescendant',\n 'aria-autocomplete',\n 'aria-busy',\n 'aria-controls',\n 'aria-describedby',\n 'aria-details',\n 'aria-disabled',\n 'aria-errormessage',\n 'aria-expanded',\n 'aria-haspopup',\n 'aria-hidden',\n 'aria-invalid',\n 'aria-keyshortcuts',\n 'aria-label',\n 'aria-labelledby',\n 'aria-live',\n 'aria-owns',\n 'aria-required',\n 'aria-roledescription',\n 'autoComplete',\n 'autoFocus',\n 'className',\n 'defaultValue',\n 'dir',\n 'disabled',\n 'form',\n 'id',\n 'multiple',\n 'name',\n 'onBlur',\n 'onChange',\n 'onClick',\n 'onFocus',\n 'onInput',\n 'onInvalid',\n 'onKeyDown',\n 'onKeyUp',\n 'onMouseDown',\n 'onMouseUp',\n 'onPointerDown',\n 'onPointerUp',\n 'required',\n 'role',\n 'size',\n 'style',\n 'tabIndex',\n 'title',\n 'value',\n]);\n\nexport function sanitizeSelectProps<T extends Record<string, unknown>>(props: T) {\n return Object.fromEntries(\n Object.entries(props).filter(\n ([key]) => key.startsWith('data-') || key.startsWith('aria-') || selectKeys.has(key)\n )\n ) as Partial<T>;\n}\n","const cssVariablePattern = /^--[\\w-]+$/;\nconst cssVariableReferencePattern = /^var\\(\\s*(--[\\w-]+)\\s*(?:,\\s*(.+))?\\)$/;\n\nconst unresolvedColorKeywords = new Set([\n 'currentcolor',\n 'inherit',\n 'initial',\n 'revert',\n 'revert-layer',\n 'unset',\n]);\n\nconst probe = typeof document !== 'undefined' ? document.createElement('span') : null;\n\nfunction normalizeColorValue(input: string): string {\n const value = input.trim();\n\n if (!value || !probe || unresolvedColorKeywords.has(value.toLowerCase())) {\n return value;\n }\n\n const mountNode = document.body ?? document.documentElement;\n\n if (!mountNode) {\n return value;\n }\n\n probe.style.color = value;\n\n if (!probe.style.color) {\n return value;\n }\n\n mountNode.appendChild(probe);\n\n const normalized = getComputedStyle(probe).color.trim();\n probe.remove();\n\n return normalized || value;\n}\n\nexport function resolveColor(input: `--${string}` | string, fallback = 'currentColor'): string {\n if (typeof document === 'undefined') {\n return fallback;\n }\n\n const styles = getComputedStyle(document.documentElement);\n const seen = new Set<string>();\n let current = input.trim();\n\n while (current) {\n const match = current.match(cssVariableReferencePattern);\n const variableName = match?.[1] ?? (cssVariablePattern.test(current) ? current : null);\n const nestedFallback = match?.[2]?.trim();\n\n if (!variableName) {\n return normalizeColorValue(current);\n }\n\n if (seen.has(variableName)) {\n current = nestedFallback ?? '';\n continue;\n }\n\n seen.add(variableName);\n\n current = styles.getPropertyValue(variableName).trim() || nestedFallback || '';\n }\n\n return normalizeColorValue(fallback);\n}\n","import cx from 'classix';\n\nimport { iconSVG } from '@/components/icon/icons.ts';\nimport { resolveColor } from '@/lib/color';\nimport { useTouched } from '@/lib/use-touched';\n\nimport { sanitizeSelectProps } from './sanitize-select-props';\nimport styles from './styles.module.css';\n\nexport type SelectProps = React.SelectHTMLAttributes<HTMLSelectElement> & {\n children: React.ReactNode;\n label?: string;\n placeholder?: string;\n};\n\ntype withVars = React.CSSProperties & {\n '--icon-svg'?: string;\n};\n\nexport const Select = ({ children, label, placeholder, ...props }: SelectProps) => {\n const { touched, onBlur } = useTouched(props.value === '');\n const selectProps = sanitizeSelectProps(props);\n const { style, ...restSelectProps } = selectProps;\n const withVars = {\n ...style,\n '--icon-svg': iconSVG('chevron').replace(\n 'currentColor',\n resolveColor('--colors-semantic-content-secondary')\n ),\n } satisfies withVars;\n\n const selectElement = (\n <select\n className={cx(styles.select, touched && styles.touched)}\n onBlur={onBlur}\n style={withVars}\n {...restSelectProps}\n >\n {placeholder && (\n <option\n key='placeholder'\n value={''}\n hidden\n >\n {placeholder}\n </option>\n )}\n {children}\n </select>\n );\n\n if (!label) {\n return selectElement;\n }\n\n return (\n <label>\n <span\n className={styles.label}\n data-required={props.required || undefined}\n >\n {label}\n </span>\n {selectElement}\n </label>\n );\n};\n"],"names":["selectKeys","Set","sanitizeSelectProps","props","Object","fromEntries","entries","filter","key","startsWith","has","cssVariablePattern","cssVariableReferencePattern","unresolvedColorKeywords","probe","document","createElement","normalizeColorValue","input","value","trim","toLowerCase","mountNode","body","documentElement","style","color","appendChild","normalized","getComputedStyle","remove","resolveColor","fallback","styles","seen","current","match","variableName","test","nestedFallback","add","getPropertyValue","Select","children","label","placeholder","touched","onBlur","useTouched","selectProps","restSelectProps","withVars","iconSVG","replace","selectElement","jsxs","cx","select","jsx","required","undefined"],"mappings":";;;;AAAA,MAAMA,IAAa,oBAAIC,IAAI,CACzB,yBACA,qBACA,aACA,iBACA,oBACA,gBACA,iBACA,qBACA,iBACA,iBACA,eACA,gBACA,qBACA,cACA,mBACA,aACA,aACA,iBACA,wBACA,gBACA,aACA,aACA,gBACA,OACA,YACA,QACA,MACA,YACA,QACA,UACA,YACA,WACA,WACA,WACA,aACA,aACA,WACA,eACA,aACA,iBACA,eACA,YACA,QACA,QACA,SACA,YACA,SACA,OAAO,CACR;AAEM,SAASC,EAAuDC,GAAU;AAC/E,SAAOC,OAAOC,YACZD,OAAOE,QAAQH,CAAK,EAAEI,OACpB,CAAC,CAACC,CAAG,MAAMA,EAAIC,WAAW,OAAO,KAAKD,EAAIC,WAAW,OAAO,KAAKT,EAAWU,IAAIF,CAAG,CACrF,CACF;AACF;ACzDA,MAAMG,IAAqB,cACrBC,IAA8B,0CAE9BC,IAA0B,oBAAIZ,IAAI,CACtC,gBACA,WACA,WACA,UACA,gBACA,OAAO,CACR,GAEKa,IAAQ,OAAOC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AOC,aAAAA;AAAAA,EAAa,GAAG1C;AAAmB,MAAM;AACjF,QAAM;AAAA,IAAE2C,SAAAA;AAAAA,IAASC,QAAAA;AAAAA,EAAAA,IAAWC,EAAW7C,EAAMgB,UAAU,EAAE,GACnD8B,IAAc/C,EAAoBC,CAAK,GACvC;AAAA,IAAEsB,OAAAA;AAAAA,IAAO,GAAGyB;AAAAA,EAAAA,IAAoBD,GAChCE,IAAW;AAAA,IACf,GAAG1B;AAAAA,IACH,cAAc2B,EAAQ,SAAS,EAAEC,QAC/B,gBACAtB,EAAa,qCAAqC,CACpD;AAAA,EAAA,GAGIuB,IACJ,gBAAAC,EAAC,UAAA,EACC,WAAWC,EAAGvB,EAAOwB,QAAQX,KAAWb,EAAOa,OAAO,GACtD,QAAAC,GACA,OAAOI,GACP,GAAID,GAEHL,UAAAA;AAAAA,IAAAA,uBACE,UAAA,EAEC,OAAO,IACP,QAAM,IAELA,eAJG,aAKN;AAAA,IAEDF;AAAAA,EAAAA,GACH;AAGF,SAAKC,IAKH,gBAAAW,EAAC,SAAA,EAAK,kBAAA,UACJ,UAAA;AAAA,IAAA,gBAAAG,EAAC,QAAA,EACC,WAAWzB,EAAOW,OAClB,iBAAezC,EAAMwD,YAAYC,QAEhChB,UAAAA,EAAAA,CACH;AAAA,IACCU;AAAAA,EAAAA,GACH,IAZOA;AAcX;"}
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./assets/index.css');const n=require("./components/app-link/index.cjs"),o=require("./components/aside/index.cjs"),t=require("./components/avatar/index.cjs"),r=require("./components/badge/index.cjs"),i=require("./components/banner/index.cjs"),s=require("./components/branding/index.cjs"),c=require("./components/button/index.cjs"),_=require("./components/card/index.cjs"),p=require("./components/checkbox/index.cjs"),a=require("./components/chip/index.cjs"),d=require("./components/collapsible/index.cjs"),u=require("./components/controls/index.cjs"),m=require("./components/croppable/index.cjs"),x=require("./components/dialog/index.cjs"),l=require("./components/dropdown/index.cjs"),q=require("./components/dropzone/index.cjs"),g=require("./components/editor/index.cjs"),b=require("./components/empty-state/index.cjs"),T=require("./components/fieldset/index.cjs"),h=require("./components/figure/index.cjs"),v=require("./components/file/index.cjs"),C=require("./components/footer/index.cjs"),L=require("./components/form/index.cjs"),S=require("./components/graph/index.cjs"),F=require("./components/group/index.cjs"),f=require("./components/header/index.cjs"),k=require("./components/icon/index.cjs"),B=require("./components/iframe/index.cjs"),I=require("./components/image/index.cjs"),M=require("./index-CIugi8vq.cjs"),A=require("./components/link/index.cjs"),D=require("./components/list/index.cjs"),y=require("./components/loading/index.cjs"),P=require("./components/menu/index.cjs"),j=require("./components/message/index.cjs"),w=require("./components/messages/index.cjs"),e=require("./components/nav/index.cjs"),E=require("./components/object/index.cjs"),G=require("./components/popover/index.cjs"),N=require("./components/portal/index.cjs"),z=require("./components/search/index.cjs"),O=require("./index-CSYOtiWJ.cjs"),H=require("./components/sortable/index.cjs"),W=require("./components/table/index.cjs"),J=require("./components/textarea/index.cjs"),K=require("./components/toast/index.cjs"),Q=require("./components/toasts/index.cjs"),R=require("./components/toggle/index.cjs"),U=require("./components/toolbar/index.cjs"),V=require("./components/tooltip/index.cjs"),X=require("./components/widget/index.cjs");exports.AppLink=n.AppLink;exports.Aside=o.Aside;exports.Avatar=t.Avatar;exports.Badge=r.Badge;exports.Banner=i.Banner;exports.Branding=s.Branding;exports.Button=c.Button;exports.Card=_.Card;exports.Checkbox=p.Checkbox;exports.Chip=a.Chip;exports.Collapsible=d.Collapsible;exports.Controls=u.Controls;exports.Croppable=m.Croppable;exports.Dialog=x.Dialog;exports.Dropdown=l.Dropdown;exports.Dropzone=q.Dropzone;exports.Editor=g.Editor;exports.EmptyState=b.EmptyState;exports.Fieldset=T.Fieldset;exports.Figure=h.Figure;exports.File=v.File;exports.Footer=C.Footer;exports.Form=L.Form;exports.Graph=S.Graph;exports.Group=F.Group;exports.Header=f.Header;exports.Icon=k.Icon;exports.Iframe=B.Iframe;exports.Image=I.Image;exports.Input=M.Input;exports.Link=A.Link;exports.List=D.List;exports.Loading=y.Loading;exports.Menu=P.Menu;exports.Message=j.Message;exports.Messages=w.Messages;exports.Nav=e.Nav;exports.NavLabel=e.NavLabel;exports.Object=E.Object;exports.Popover=G.Popover;exports.Portal=N.Portal;exports.Search=z.Search;exports.Select=O.Select;exports.Sortable=H.Sortable;exports.Table=W.Table;exports.Textarea=J.Textarea;exports.Toast=K.Toast;exports.Toasts=Q.Toasts;exports.Toggle=R.Toggle;exports.Toolbar=U.Toolbar;exports.Tooltip=V.Tooltip;exports.Widget=X.Widget;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./assets/index.css');const n=require("./components/app-link/index.cjs"),o=require("./components/aside/index.cjs"),t=require("./components/avatar/index.cjs"),r=require("./components/badge/index.cjs"),i=require("./components/banner/index.cjs"),s=require("./components/branding/index.cjs"),c=require("./components/button/index.cjs"),_=require("./components/card/index.cjs"),p=require("./components/checkbox/index.cjs"),a=require("./components/chip/index.cjs"),d=require("./components/collapsible/index.cjs"),u=require("./components/controls/index.cjs"),m=require("./components/croppable/index.cjs"),x=require("./components/dialog/index.cjs"),l=require("./components/dropdown/index.cjs"),q=require("./components/dropzone/index.cjs"),g=require("./components/editor/index.cjs"),b=require("./components/empty-state/index.cjs"),T=require("./components/fieldset/index.cjs"),h=require("./components/figure/index.cjs"),v=require("./components/file/index.cjs"),C=require("./components/footer/index.cjs"),L=require("./components/form/index.cjs"),S=require("./components/graph/index.cjs"),F=require("./components/group/index.cjs"),f=require("./components/header/index.cjs"),k=require("./components/icon/index.cjs"),B=require("./components/iframe/index.cjs"),I=require("./components/image/index.cjs"),M=require("./index-D9Hq7ewF.cjs"),A=require("./components/link/index.cjs"),D=require("./components/list/index.cjs"),y=require("./components/loading/index.cjs"),P=require("./components/menu/index.cjs"),j=require("./components/message/index.cjs"),w=require("./components/messages/index.cjs"),e=require("./components/nav/index.cjs"),E=require("./components/object/index.cjs"),G=require("./components/popover/index.cjs"),N=require("./components/portal/index.cjs"),z=require("./components/search/index.cjs"),O=require("./index-Ct0mJ-KK.cjs"),H=require("./components/sortable/index.cjs"),W=require("./components/table/index.cjs"),J=require("./components/textarea/index.cjs"),K=require("./components/toast/index.cjs"),Q=require("./components/toasts/index.cjs"),R=require("./components/toggle/index.cjs"),U=require("./components/toolbar/index.cjs"),V=require("./components/tooltip/index.cjs"),X=require("./components/widget/index.cjs");exports.AppLink=n.AppLink;exports.Aside=o.Aside;exports.Avatar=t.Avatar;exports.Badge=r.Badge;exports.Banner=i.Banner;exports.Branding=s.Branding;exports.Button=c.Button;exports.Card=_.Card;exports.Checkbox=p.Checkbox;exports.Chip=a.Chip;exports.Collapsible=d.Collapsible;exports.Controls=u.Controls;exports.Croppable=m.Croppable;exports.Dialog=x.Dialog;exports.Dropdown=l.Dropdown;exports.Dropzone=q.Dropzone;exports.Editor=g.Editor;exports.EmptyState=b.EmptyState;exports.Fieldset=T.Fieldset;exports.Figure=h.Figure;exports.File=v.File;exports.Footer=C.Footer;exports.Form=L.Form;exports.Graph=S.Graph;exports.Group=F.Group;exports.Header=f.Header;exports.Icon=k.Icon;exports.Iframe=B.Iframe;exports.Image=I.Image;exports.Input=M.Input;exports.Link=A.Link;exports.List=D.List;exports.Loading=y.Loading;exports.Menu=P.Menu;exports.Message=j.Message;exports.Messages=w.Messages;exports.Nav=e.Nav;exports.NavLabel=e.NavLabel;exports.Object=E.Object;exports.Popover=G.Popover;exports.Portal=N.Portal;exports.Search=z.Search;exports.Select=O.Select;exports.Sortable=H.Sortable;exports.Table=W.Table;exports.Textarea=J.Textarea;exports.Toast=K.Toast;exports.Toasts=Q.Toasts;exports.Toggle=R.Toggle;exports.Toolbar=U.Toolbar;exports.Tooltip=V.Tooltip;exports.Widget=X.Widget;
2
2
  //# sourceMappingURL=index.cjs.map
package/dist/index.d.ts CHANGED
@@ -389,6 +389,9 @@ declare const iconPaths: {
389
389
  filled: string;
390
390
  outline: string;
391
391
  };
392
+ download: {
393
+ filled: string;
394
+ };
392
395
  draft: {
393
396
  filled: string;
394
397
  };
@@ -582,7 +585,7 @@ export declare type MessageOptions = {
582
585
  type?: 'default' | 'minimal' | 'system' | 'user';
583
586
  };
584
587
 
585
- export declare const Messages: ({ fill, files, handleUpload, maxEditorRows, message, messages, minEditorRows, onChange, onFilesChange, onSubmit, placeholder, sending, }: MessagesProps) => JSX.Element;
588
+ export declare const Messages: ({ fill, files, handleUpload, maxEditorRows, message, messages, minEditorRows, onChange, onFilesChange, onSubmit, placeholder, sending, tooltipLabel, }: MessagesProps) => JSX.Element;
586
589
 
587
590
  export declare type MessagesProps = {
588
591
  fill?: boolean;
@@ -597,6 +600,7 @@ export declare type MessagesProps = {
597
600
  onSubmit: () => Promise<void> | void;
598
601
  placeholder?: string;
599
602
  sending: boolean;
603
+ tooltipLabel?: string;
600
604
  };
601
605
 
602
606
  declare type MinimalCardProps = BaseCardProps & {
package/dist/index.js CHANGED
@@ -27,7 +27,7 @@ import { Header as _ } from "./components/header/index.js";
27
27
  import { Icon as oo } from "./components/icon/index.js";
28
28
  import { Iframe as eo } from "./components/iframe/index.js";
29
29
  import { Image as po } from "./components/image/index.js";
30
- import { I as xo } from "./index-BrGCs_7h.js";
30
+ import { I as xo } from "./index-D4LZQ-JF.js";
31
31
  import { Link as ao } from "./components/link/index.js";
32
32
  import { List as io } from "./components/list/index.js";
33
33
  import { Loading as no } from "./components/loading/index.js";
@@ -39,7 +39,7 @@ import { Object as ho } from "./components/object/index.js";
39
39
  import { Popover as Bo } from "./components/popover/index.js";
40
40
  import { Portal as Ao } from "./components/portal/index.js";
41
41
  import { Search as Mo } from "./components/search/index.js";
42
- import { S as Go } from "./index-CRAuAHow.js";
42
+ import { S as Go } from "./index-uQRsVtP-.js";
43
43
  import { Sortable as Po } from "./components/sortable/index.js";
44
44
  import { Table as wo } from "./components/table/index.js";
45
45
  import { Textarea as zo } from "./components/textarea/index.js";
package/dist/tokens.css CHANGED
@@ -1,7 +1,7 @@
1
1
  /* generated by `pnpm tokens:build` 🥷 */
2
2
 
3
3
  :root {
4
- --breakpoint-lg: 1280;
4
+ --breakpoint-lg: 1024;
5
5
  --breakpoint-md: 768;
6
6
  --breakpoint-sm: 480;
7
7
  --colors-blue-100: #c9dcff;
@@ -260,6 +260,8 @@
260
260
  --shape-spacing-sm: var(--scale-12);
261
261
  --shape-spacing-xl: var(--scale-32);
262
262
  --shape-spacing-xs: var(--scale-8);
263
+ --shape-width-max: 480px;
264
+ --shape-width-max-lg: 640px;
263
265
  --typography-font-sizes-body-lg: var(--scale-18);
264
266
  --typography-font-sizes-body-md: var(--scale-16);
265
267
  --typography-font-sizes-body-sm: var(--scale-14);
@@ -272,9 +274,12 @@
272
274
  --typography-font-sizes-h4: var(--scale-16);
273
275
  --typography-font-sizes-label-lg: var(--scale-16);
274
276
  --typography-font-sizes-label-sm: var(--scale-14);
277
+ --utils-tokens-blur-default: var(--scale-8);
275
278
  --utils-tokens-font-family: 'Figtree', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
276
279
  --utils-tokens-gradient: linear-gradient(180deg, rgb(255 255 255 / 100%), transparent 50%);
277
- --utils-tokens-icon-size: var(--scale-16);
280
+ --utils-tokens-icon-large: var(--scale-28);
281
+ --utils-tokens-icon-medium: var(--scale-24);
282
+ --utils-tokens-icon-small: var(--scale-16);
278
283
  --utils-tokens-negative-unit: var(--scale-negative-16);
279
284
  --utils-tokens-opacity-minimal: 0.5;
280
285
  --utils-tokens-transition-delay: 125ms;
package/dist/tokens.json CHANGED
@@ -2,13 +2,13 @@
2
2
  "$description": "Design tokens exported from Figma",
3
3
  "$extensions": {
4
4
  "com.figma": {
5
- "exportedAt": "2026-08-24T11:44:20.839Z",
5
+ "exportedAt": "2026-09-07T10:58:12.476Z",
6
6
  "history": [
7
7
  {
8
8
  "author": "Anne Cathrine",
9
9
  "changesSummary": "Export from Figma",
10
- "exportedAt": "2026-08-24T11:44:20.839Z",
11
- "variableCount": 281,
10
+ "exportedAt": "2026-09-07T10:58:12.476Z",
11
+ "variableCount": 286,
12
12
  "version": "1.0.0"
13
13
  }
14
14
  ],
@@ -330,6 +330,8 @@
330
330
  "shape.spacing.sm": "shape/spacing/sm",
331
331
  "shape.spacing.xl": "shape/spacing/xl",
332
332
  "shape.spacing.xs": "shape/spacing/xs",
333
+ "shape.width.max": "shape/width/max",
334
+ "shape.width.max-lg": "shape/width/max-lg",
333
335
  "typography.font-sizes.body-lg": "typography/font-sizes/body-lg",
334
336
  "typography.font-sizes.body-md": "typography/font-sizes/body-md",
335
337
  "typography.font-sizes.body-sm": "typography/font-sizes/body-sm",
@@ -342,9 +344,12 @@
342
344
  "typography.font-sizes.h4": "typography/font-sizes/h4",
343
345
  "typography.font-sizes.label-lg": "typography/font-sizes/label-lg",
344
346
  "typography.font-sizes.label-sm": "typography/font-sizes/label-sm",
347
+ "utils.tokens.blur.default": "utils/tokens/blur/default",
345
348
  "utils.tokens.font.family": "utils/tokens/font/family",
346
349
  "utils.tokens.gradient": "utils/tokens/gradient",
347
- "utils.tokens.icon.size": "utils/tokens/icon/size",
350
+ "utils.tokens.icon.large": "utils/tokens/icon/large",
351
+ "utils.tokens.icon.medium": "utils/tokens/icon/medium",
352
+ "utils.tokens.icon.small": "utils/tokens/icon/small",
348
353
  "utils.tokens.negative.unit": "utils/tokens/negative/unit",
349
354
  "utils.tokens.opacity.minimal": "utils/tokens/opacity/minimal",
350
355
  "utils.tokens.transition.delay": "utils/tokens/transition/delay",
@@ -358,7 +363,7 @@
358
363
  },
359
364
  "com.solibo": {
360
365
  "packageName": "@solibo/solibo-ui",
361
- "packageVersion": "1.0.5"
366
+ "packageVersion": "1.0.6"
362
367
  }
363
368
  },
364
369
  "$name": "Solibo UI Tokens",
@@ -372,7 +377,7 @@
372
377
  }
373
378
  },
374
379
  "$type": "number",
375
- "$value": 1280
380
+ "$value": 1024
376
381
  },
377
382
  "md": {
378
383
  "$extensions": {
@@ -1235,7 +1240,7 @@
1235
1240
  "$value": {
1236
1241
  "Dark": "#fef2e6",
1237
1242
  "Light": "#fef2e6",
1238
- "New brand": "#fef2e6"
1243
+ "New brand": "#fff5ea"
1239
1244
  }
1240
1245
  },
1241
1246
  "100": {
@@ -1250,7 +1255,7 @@
1250
1255
  "$value": {
1251
1256
  "Dark": "#fdd7b0",
1252
1257
  "Light": "#fdd7b0",
1253
- "New brand": "#fdd7b0"
1258
+ "New brand": "#fbe7d3"
1254
1259
  }
1255
1260
  },
1256
1261
  "200": {
@@ -1265,7 +1270,7 @@
1265
1270
  "$value": {
1266
1271
  "Dark": "#fbc48a",
1267
1272
  "Light": "#fbc48a",
1268
- "New brand": "#fbc48a"
1273
+ "New brand": "#f1cda7"
1269
1274
  }
1270
1275
  },
1271
1276
  "300": {
@@ -1280,7 +1285,7 @@
1280
1285
  "$value": {
1281
1286
  "Dark": "#faa954",
1282
1287
  "Light": "#faa954",
1283
- "New brand": "#faa954"
1288
+ "New brand": "#e6b37a"
1284
1289
  }
1285
1290
  },
1286
1291
  "400": {
@@ -1295,7 +1300,7 @@
1295
1300
  "$value": {
1296
1301
  "Dark": "#f99933",
1297
1302
  "Light": "#f99933",
1298
- "New brand": "#f99933"
1303
+ "New brand": "#dc9c50"
1299
1304
  }
1300
1305
  },
1301
1306
  "500": {
@@ -1310,7 +1315,7 @@
1310
1315
  "$value": {
1311
1316
  "Dark": "#f77f00",
1312
1317
  "Light": "#f77f00",
1313
- "New brand": "#f77f00"
1318
+ "New brand": "#cf8a33"
1314
1319
  }
1315
1320
  },
1316
1321
  "600": {
@@ -1325,7 +1330,7 @@
1325
1330
  "$value": {
1326
1331
  "Dark": "#e17400",
1327
1332
  "Light": "#e17400",
1328
- "New brand": "#e17400"
1333
+ "New brand": "#a96f23"
1329
1334
  }
1330
1335
  },
1331
1336
  "700": {
@@ -1340,7 +1345,7 @@
1340
1345
  "$value": {
1341
1346
  "Dark": "#af5a00",
1342
1347
  "Light": "#af5a00",
1343
- "New brand": "#af5a00"
1348
+ "New brand": "#885716"
1344
1349
  }
1345
1350
  },
1346
1351
  "800": {
@@ -1355,7 +1360,7 @@
1355
1360
  "$value": {
1356
1361
  "Dark": "#884600",
1357
1362
  "Light": "#884600",
1358
- "New brand": "#884600"
1363
+ "New brand": "#633e0d"
1359
1364
  }
1360
1365
  },
1361
1366
  "900": {
@@ -1370,7 +1375,7 @@
1370
1375
  "$value": {
1371
1376
  "Dark": "#683500",
1372
1377
  "Light": "#683500",
1373
- "New brand": "#683500"
1378
+ "New brand": "#442a08"
1374
1379
  }
1375
1380
  }
1376
1381
  },
@@ -1539,7 +1544,7 @@
1539
1544
  "$value": {
1540
1545
  "Dark": "#f9e6e6",
1541
1546
  "Light": "#f9e6e6",
1542
- "New brand": "#f9e6e6"
1547
+ "New brand": "#fff4f2"
1543
1548
  }
1544
1549
  },
1545
1550
  "100": {
@@ -1554,7 +1559,7 @@
1554
1559
  "$value": {
1555
1560
  "Dark": "#ebb2b1",
1556
1561
  "Light": "#ebb2b1",
1557
- "New brand": "#ebb2b1"
1562
+ "New brand": "#f8e2de"
1558
1563
  }
1559
1564
  },
1560
1565
  "200": {
@@ -1569,7 +1574,7 @@
1569
1574
  "$value": {
1570
1575
  "Dark": "#e28c8b",
1571
1576
  "Light": "#e28c8b",
1572
- "New brand": "#e28c8b"
1577
+ "New brand": "#e9bbb3"
1573
1578
  }
1574
1579
  },
1575
1580
  "300": {
@@ -1584,7 +1589,7 @@
1584
1589
  "$value": {
1585
1590
  "Dark": "#d45856",
1586
1591
  "Light": "#d45856",
1587
- "New brand": "#d45856"
1592
+ "New brand": "#d1897e"
1588
1593
  }
1589
1594
  },
1590
1595
  "400": {
@@ -1599,7 +1604,7 @@
1599
1604
  "$value": {
1600
1605
  "Dark": "#cc3835",
1601
1606
  "Light": "#cc3835",
1602
- "New brand": "#cc3835"
1607
+ "New brand": "#aa5449"
1603
1608
  }
1604
1609
  },
1605
1610
  "500": {
@@ -1614,7 +1619,7 @@
1614
1619
  "$value": {
1615
1620
  "Dark": "#bf0603",
1616
1621
  "Light": "#bf0603",
1617
- "New brand": "#bf0603"
1622
+ "New brand": "#862b22"
1618
1623
  }
1619
1624
  },
1620
1625
  "600": {
@@ -1629,7 +1634,7 @@
1629
1634
  "$value": {
1630
1635
  "Dark": "#ae0503",
1631
1636
  "Light": "#ae0503",
1632
- "New brand": "#ae0503"
1637
+ "New brand": "#702018"
1633
1638
  }
1634
1639
  },
1635
1640
  "700": {
@@ -1644,7 +1649,7 @@
1644
1649
  "$value": {
1645
1650
  "Dark": "#880402",
1646
1651
  "Light": "#880402",
1647
- "New brand": "#880402"
1652
+ "New brand": "#5a1610"
1648
1653
  }
1649
1654
  },
1650
1655
  "800": {
@@ -1659,7 +1664,7 @@
1659
1664
  "$value": {
1660
1665
  "Dark": "#690302",
1661
1666
  "Light": "#690302",
1662
- "New brand": "#690302"
1667
+ "New brand": "#43100b"
1663
1668
  }
1664
1669
  },
1665
1670
  "900": {
@@ -1674,7 +1679,7 @@
1674
1679
  "$value": {
1675
1680
  "Dark": "#500301",
1676
1681
  "Light": "#500301",
1677
- "New brand": "#500301"
1682
+ "New brand": "#2d0906"
1678
1683
  }
1679
1684
  }
1680
1685
  },
@@ -2009,7 +2014,7 @@
2009
2014
  "$value": {
2010
2015
  "Dark": "{colors.neutral.0}",
2011
2016
  "Light": "{colors.neutral.0}",
2012
- "New brand": "{colors.neutral.0}"
2017
+ "New brand": "{colors.semantic.primary.on-primary}"
2013
2018
  }
2014
2019
  },
2015
2020
  "primary": {
@@ -2077,7 +2082,7 @@
2077
2082
  "$value": {
2078
2083
  "Dark": "{colors.red.600}",
2079
2084
  "Light": "{colors.red.600}",
2080
- "New brand": "{colors.red.600}"
2085
+ "New brand": "{colors.red.500}"
2081
2086
  }
2082
2087
  },
2083
2088
  "destructive-disabled": {
@@ -2107,7 +2112,7 @@
2107
2112
  "$value": {
2108
2113
  "Dark": "{colors.red.700}",
2109
2114
  "Light": "{colors.red.700}",
2110
- "New brand": "{colors.red.700}"
2115
+ "New brand": "{colors.red.600}"
2111
2116
  }
2112
2117
  },
2113
2118
  "disabled": {
@@ -2222,7 +2227,7 @@
2222
2227
  "$value": {
2223
2228
  "Dark": "{colors.neutral.600}",
2224
2229
  "Light": "{colors.neutral.100}",
2225
- "New brand": "{colors.neutral.100}"
2230
+ "New brand": "{colors.solibo green.100}"
2226
2231
  }
2227
2232
  },
2228
2233
  "secondary-destructive-hover": {
@@ -2252,7 +2257,7 @@
2252
2257
  "$value": {
2253
2258
  "Dark": "{colors.neutral.500}",
2254
2259
  "Light": "{colors.neutral.200}",
2255
- "New brand": "{colors.neutral.200}"
2260
+ "New brand": "{colors.solibo green.200}"
2256
2261
  }
2257
2262
  },
2258
2263
  "selected": {
@@ -4179,6 +4184,36 @@
4179
4184
  "New brand": "{scale.8}"
4180
4185
  }
4181
4186
  }
4187
+ },
4188
+ "width": {
4189
+ "max": {
4190
+ "$extensions": {
4191
+ "com.figma": {
4192
+ "scopes": [
4193
+ "ALL_SCOPES"
4194
+ ]
4195
+ }
4196
+ },
4197
+ "$type": "number",
4198
+ "$value": {
4199
+ "Desktop": 480,
4200
+ "New brand": 480
4201
+ }
4202
+ },
4203
+ "max-lg": {
4204
+ "$extensions": {
4205
+ "com.figma": {
4206
+ "scopes": [
4207
+ "ALL_SCOPES"
4208
+ ]
4209
+ }
4210
+ },
4211
+ "$type": "number",
4212
+ "$value": {
4213
+ "Desktop": 640,
4214
+ "New brand": 640
4215
+ }
4216
+ }
4182
4217
  }
4183
4218
  },
4184
4219
  "typography": {
@@ -4367,6 +4402,19 @@
4367
4402
  },
4368
4403
  "utils": {
4369
4404
  "tokens": {
4405
+ "blur": {
4406
+ "default": {
4407
+ "$extensions": {
4408
+ "com.figma": {
4409
+ "scopes": [
4410
+ "ALL_SCOPES"
4411
+ ]
4412
+ }
4413
+ },
4414
+ "$type": "number",
4415
+ "$value": "{scale.8}"
4416
+ }
4417
+ },
4370
4418
  "font": {
4371
4419
  "family": {
4372
4420
  "$extensions": {
@@ -4388,10 +4436,34 @@
4388
4436
  "$value": "linear-gradient(180deg, rgb(255 255 255 / 100%), transparent 50%)"
4389
4437
  },
4390
4438
  "icon": {
4391
- "size": {
4439
+ "large": {
4392
4440
  "$extensions": {
4393
4441
  "com.figma": {
4394
- "scopes": []
4442
+ "scopes": [
4443
+ "WIDTH_HEIGHT"
4444
+ ]
4445
+ }
4446
+ },
4447
+ "$type": "number",
4448
+ "$value": "{scale.28}"
4449
+ },
4450
+ "medium": {
4451
+ "$extensions": {
4452
+ "com.figma": {
4453
+ "scopes": [
4454
+ "WIDTH_HEIGHT"
4455
+ ]
4456
+ }
4457
+ },
4458
+ "$type": "number",
4459
+ "$value": "{scale.24}"
4460
+ },
4461
+ "small": {
4462
+ "$extensions": {
4463
+ "com.figma": {
4464
+ "scopes": [
4465
+ "WIDTH_HEIGHT"
4466
+ ]
4395
4467
  }
4396
4468
  },
4397
4469
  "$type": "number",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solibo/solibo-ui",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "pnpm run tokens:build && vite build --watch",