softable-pixels-web 1.2.36 → 1.2.38

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 (70) hide show
  1. package/dist/{Breadcrumb--lRHi6sr.js → Breadcrumb-BjO7RVR0.js} +2 -2
  2. package/dist/{Breadcrumb--lRHi6sr.js.map → Breadcrumb-BjO7RVR0.js.map} +1 -1
  3. package/dist/{Button-QcKlQyM3.js → Button-CWZvWbMh.js} +2 -2
  4. package/dist/{Button-QcKlQyM3.js.map → Button-CWZvWbMh.js.map} +1 -1
  5. package/dist/{CheckItem-C2NriXyN.js → CheckItem-CE27veSs.js} +2 -2
  6. package/dist/{CheckItem-C2NriXyN.js.map → CheckItem-CE27veSs.js.map} +1 -1
  7. package/dist/{Checkbox-qoUWy3Nj.js → Checkbox-DWlmddP3.js} +2 -2
  8. package/dist/{Checkbox-qoUWy3Nj.js.map → Checkbox-DWlmddP3.js.map} +1 -1
  9. package/dist/{Chip-DJVwuXlv.js → Chip-0yO5bwim.js} +2 -2
  10. package/dist/{Chip-DJVwuXlv.js.map → Chip-0yO5bwim.js.map} +1 -1
  11. package/dist/{ChipList-D7J-hTLW.js → ChipList-CmO2ctak.js} +3 -3
  12. package/dist/{ChipList-D7J-hTLW.js.map → ChipList-CmO2ctak.js.map} +1 -1
  13. package/dist/{ColorPicker-sqs31Md7.js → ColorPicker-BBTuW0Bp.js} +2 -2
  14. package/dist/{ColorPicker-sqs31Md7.js.map → ColorPicker-BBTuW0Bp.js.map} +1 -1
  15. package/dist/{ContextMenu-CrVwvqGG.js → ContextMenu-_72bEVKL.js} +3 -3
  16. package/dist/{ContextMenu-CrVwvqGG.js.map → ContextMenu-_72bEVKL.js.map} +1 -1
  17. package/dist/{DatePicker-0xnJwcp2.js → DatePicker-znH0ZAdX.js} +4 -4
  18. package/dist/{DatePicker-0xnJwcp2.js.map → DatePicker-znH0ZAdX.js.map} +1 -1
  19. package/dist/{FileInput-CfUBqmTu.js → FileInput-BXK9H8Ar.js} +3 -3
  20. package/dist/{FileInput-CfUBqmTu.js.map → FileInput-BXK9H8Ar.js.map} +1 -1
  21. package/dist/{InfoSummary-B6k4_vpG.js → InfoSummary-D8x-t44q.js} +2 -2
  22. package/dist/{InfoSummary-B6k4_vpG.js.map → InfoSummary-D8x-t44q.js.map} +1 -1
  23. package/dist/{Input-BLnysNxN.js → Input-ChS1OoFI.js} +17 -7
  24. package/dist/Input-ChS1OoFI.js.map +1 -0
  25. package/dist/{Label-VE3hoSbt.js → Label-CBUa-x13.js} +2 -2
  26. package/dist/{Label-VE3hoSbt.js.map → Label-CBUa-x13.js.map} +1 -1
  27. package/dist/{Pagination-DV4VUQj_.js → Pagination-i2_x464D.js} +3 -3
  28. package/dist/{Pagination-DV4VUQj_.js.map → Pagination-i2_x464D.js.map} +1 -1
  29. package/dist/{SearchInput-vI-WcTPT.js → SearchInput-zePMheJK.js} +2 -2
  30. package/dist/{SearchInput-vI-WcTPT.js.map → SearchInput-zePMheJK.js.map} +1 -1
  31. package/dist/{Select-ChVwX-7Z.js → Select-C8JCFwDy.js} +4 -4
  32. package/dist/{Select-ChVwX-7Z.js.map → Select-C8JCFwDy.js.map} +1 -1
  33. package/dist/{Switch-DlZXMyGG.js → Switch-D3Eitmnj.js} +2 -2
  34. package/dist/{Switch-DlZXMyGG.js.map → Switch-D3Eitmnj.js.map} +1 -1
  35. package/dist/{TabSwitch-Co6kaDbi.js → TabSwitch-UPXOZTf4.js} +2 -2
  36. package/dist/{TabSwitch-Co6kaDbi.js.map → TabSwitch-UPXOZTf4.js.map} +1 -1
  37. package/dist/{TextArea-s6HdNSc5.js → TextArea-BMJWFF3y.js} +3 -3
  38. package/dist/{TextArea-s6HdNSc5.js.map → TextArea-BMJWFF3y.js.map} +1 -1
  39. package/dist/{Typography-u0BPHgCr.js → Typography-CcQTHV-F.js} +3 -3
  40. package/dist/Typography-CcQTHV-F.js.map +1 -0
  41. package/dist/breadcrumb.js +2 -2
  42. package/dist/button.js +2 -2
  43. package/dist/check-item.js +2 -2
  44. package/dist/checkbox.js +2 -2
  45. package/dist/chip-list.js +4 -4
  46. package/dist/chip.js +2 -2
  47. package/dist/color-picker.js +3 -3
  48. package/dist/context-menu.js +3 -3
  49. package/dist/date-picker.js +4 -4
  50. package/dist/file-input.js +3 -3
  51. package/dist/{index-j6W-PwB7.d.ts → index-BmFKokpv.d.ts} +2 -2
  52. package/dist/{index-qPJuO65u.d.ts → index-C22JJ_rW.d.ts} +2 -2
  53. package/dist/{index-Q90gI7Q2.d.ts → index-Ll44Zh-u.d.ts} +2 -2
  54. package/dist/index.d.ts +3 -3
  55. package/dist/index.js +20 -20
  56. package/dist/info-summary.js +2 -2
  57. package/dist/input.d.ts +1 -1
  58. package/dist/input.js +3 -3
  59. package/dist/pagination.js +3 -3
  60. package/dist/searchInput.js +3 -3
  61. package/dist/select.d.ts +1 -1
  62. package/dist/select.js +4 -4
  63. package/dist/switch.js +2 -2
  64. package/dist/tab-switch.js +2 -2
  65. package/dist/text-area.d.ts +1 -1
  66. package/dist/text-area.js +3 -3
  67. package/dist/typography.js +1 -1
  68. package/package.json +1 -1
  69. package/dist/Input-BLnysNxN.js.map +0 -1
  70. package/dist/Typography-u0BPHgCr.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea-s6HdNSc5.js","names":["value"],"sources":["../src/components/commons/inputs/TextArea/styles.ts","../src/components/commons/inputs/TextArea/index.tsx"],"sourcesContent":["// Types\nimport { styled } from '@hooks/useThemedStyles/types'\nimport type { TextAreaProps } from './types'\n\nexport function createTextAreaStyles(props: TextAreaProps) {\n const { height = '8rem', readOnly } = props\n\n return styled({\n container: {\n width: '100%',\n\n display: 'flex',\n flexDirection: 'column',\n\n rowGap: '0.375rem'\n },\n iconContainer: {\n position: 'absolute',\n left: '0.75rem',\n top: '1.375rem',\n transform: 'translateY(-50%)'\n },\n textArea: {\n height,\n width: '100%',\n paddingBlock: '0.75rem',\n paddingInline: '0.875rem',\n borderWidth: 1,\n borderRadius: '0.5rem',\n resize: 'none',\n\n fontWeight: '400',\n fontSize: '1rem',\n color: 'var(--px-text-primary)',\n\n borderColor: props.errorMessage\n ? 'var(--px-color-error)'\n : 'var(--px-border-primary)',\n outlineOffset: '-1px',\n\n cursor: readOnly ? 'default' : undefined,\n\n __rules: {\n '&::placeholder': {\n fontWeight: 400,\n color: 'var(--px-text-secondary)'\n },\n\n '&:focus-within': {\n outlineOffset: '-1px',\n outline: `2px solid var(${props.errorMessage ? '--px-color-error' : '--px-color-primary'})`\n }\n }\n }\n })\n}\n","// External Libraries\nimport { useId, useRef, useState } from 'react'\n\n// Types\nimport type { TextAreaProps } from './types'\n\n// Components\nimport { Label } from '@components/commons/toolkit/Label'\nimport { Typography } from '@components/commons/toolkit/Typography'\nimport { ErrorMessage } from '@components/commons/toolkit/ErrorMessage'\n\n// Hooks\nimport { useThemedStyles } from '@hooks/useThemedStyles'\n\n// Styles\nimport { createTextAreaStyles } from './styles'\n\nexport const TextArea = (props: TextAreaProps) => {\n const {\n value,\n delay,\n disabled,\n readOnly,\n maxLength,\n hideMaxLength,\n textMaxLength,\n placeholder,\n errorMessage,\n\n label,\n required,\n requiredColor,\n labelConfig,\n onChange\n } = props\n\n // Refs\n const timeoutRef = useRef<NodeJS.Timeout>(null)\n\n // States\n const [inputValue, setInputValue] = useState(value)\n\n // Hooks\n const inputId = useId()\n\n const { styles, classes } = useThemedStyles(props, createTextAreaStyles, {\n pick: p => [p.height, p.readOnly, p.placeholderColor, p.focusedRingColor],\n override: props.styles,\n applyCommonProps: true\n })\n\n // Functions\n function handleChange(e: React.ChangeEvent<HTMLTextAreaElement>) {\n if (disabled || readOnly) return\n\n const value = e.target.value\n\n setInputValue(value)\n\n if (timeoutRef.current) clearTimeout(timeoutRef.current)\n\n if (!delay) onChange?.(value)\n else {\n timeoutRef.current = setTimeout(() => onChange?.(value), delay)\n }\n }\n\n function renderLabel() {\n if (!label) return null\n\n return (\n <div>\n <Label\n label={label}\n htmlFor={inputId}\n required={required}\n requiredColor={requiredColor}\n {...labelConfig}\n />\n </div>\n )\n }\n\n return (\n <div style={styles.container}>\n {renderLabel()}\n\n <textarea\n value={inputValue}\n disabled={disabled}\n readOnly={readOnly}\n maxLength={maxLength}\n placeholder={placeholder}\n style={styles.textArea}\n className={classes.textArea}\n onChange={handleChange}\n />\n\n {maxLength && !hideMaxLength ? (\n <Typography variant=\"b2\" styles={{ text: { marginLeft: 'auto' } }}>\n {value?.length}/{maxLength} {textMaxLength}\n </Typography>\n ) : null}\n\n {errorMessage ? <ErrorMessage message={errorMessage} /> : null}\n </div>\n )\n}\n"],"mappings":";;;;;;;;AAIA,SAAgB,qBAAqB,OAAsB;CACzD,MAAM,EAAE,SAAS,QAAQ,aAAa;AAEtC,QAAO,OAAO;EACZ,WAAW;GACT,OAAO;GAEP,SAAS;GACT,eAAe;GAEf,QAAQ;GACT;EACD,eAAe;GACb,UAAU;GACV,MAAM;GACN,KAAK;GACL,WAAW;GACZ;EACD,UAAU;GACR;GACA,OAAO;GACP,cAAc;GACd,eAAe;GACf,aAAa;GACb,cAAc;GACd,QAAQ;GAER,YAAY;GACZ,UAAU;GACV,OAAO;GAEP,aAAa,MAAM,eACf,0BACA;GACJ,eAAe;GAEf,QAAQ,WAAW,YAAY;GAE/B,SAAS;IACP,kBAAkB;KAChB,YAAY;KACZ,OAAO;KACR;IAED,kBAAkB;KAChB,eAAe;KACf,SAAS,iBAAiB,MAAM,eAAe,qBAAqB,qBAAqB;KAC1F;IACF;GACF;EACF,CAAC;;;;;ACrCJ,MAAa,YAAY,UAAyB;CAChD,MAAM,EACJ,OACA,OACA,UACA,UACA,WACA,eACA,eACA,aACA,cAEA,OACA,UACA,eACA,aACA,aACE;CAGJ,MAAM,aAAa,OAAuB,KAAK;CAG/C,MAAM,CAAC,YAAY,iBAAiB,SAAS,MAAM;CAGnD,MAAM,UAAU,OAAO;CAEvB,MAAM,EAAE,QAAQ,YAAY,gBAAgB,OAAO,sBAAsB;EACvE,OAAM,MAAK;GAAC,EAAE;GAAQ,EAAE;GAAU,EAAE;GAAkB,EAAE;GAAiB;EACzE,UAAU,MAAM;EAChB,kBAAkB;EACnB,CAAC;CAGF,SAAS,aAAa,GAA2C;AAC/D,MAAI,YAAY,SAAU;EAE1B,MAAMA,UAAQ,EAAE,OAAO;AAEvB,gBAAcA,QAAM;AAEpB,MAAI,WAAW,QAAS,cAAa,WAAW,QAAQ;AAExD,MAAI,CAAC,MAAO,YAAWA,QAAM;MAE3B,YAAW,UAAU,iBAAiB,WAAWA,QAAM,EAAE,MAAM;;CAInE,SAAS,cAAc;AACrB,MAAI,CAAC,MAAO,QAAO;AAEnB,SACE,oBAAC,mBACC,oBAAC;GACQ;GACP,SAAS;GACC;GACK;GACf,GAAI;IACJ,GACE;;AAIV,QACE,qBAAC;EAAI,OAAO,OAAO;;GAChB,aAAa;GAEd,oBAAC;IACC,OAAO;IACG;IACA;IACC;IACE;IACb,OAAO,OAAO;IACd,WAAW,QAAQ;IACnB,UAAU;KACV;GAED,aAAa,CAAC,gBACb,qBAAC;IAAW,SAAQ;IAAK,QAAQ,EAAE,MAAM,EAAE,YAAY,QAAQ,EAAE;;KAC9D,OAAO;KAAO;KAAE;KAAU;KAAE;;KAClB,GACX;GAEH,eAAe,oBAAC,gBAAa,SAAS,eAAgB,GAAG;;GACtD"}
1
+ {"version":3,"file":"TextArea-BMJWFF3y.js","names":["value"],"sources":["../src/components/commons/inputs/TextArea/styles.ts","../src/components/commons/inputs/TextArea/index.tsx"],"sourcesContent":["// Types\nimport { styled } from '@hooks/useThemedStyles/types'\nimport type { TextAreaProps } from './types'\n\nexport function createTextAreaStyles(props: TextAreaProps) {\n const { height = '8rem', readOnly } = props\n\n return styled({\n container: {\n width: '100%',\n\n display: 'flex',\n flexDirection: 'column',\n\n rowGap: '0.375rem'\n },\n iconContainer: {\n position: 'absolute',\n left: '0.75rem',\n top: '1.375rem',\n transform: 'translateY(-50%)'\n },\n textArea: {\n height,\n width: '100%',\n paddingBlock: '0.75rem',\n paddingInline: '0.875rem',\n borderWidth: 1,\n borderRadius: '0.5rem',\n resize: 'none',\n\n fontWeight: '400',\n fontSize: '1rem',\n color: 'var(--px-text-primary)',\n\n borderColor: props.errorMessage\n ? 'var(--px-color-error)'\n : 'var(--px-border-primary)',\n outlineOffset: '-1px',\n\n cursor: readOnly ? 'default' : undefined,\n\n __rules: {\n '&::placeholder': {\n fontWeight: 400,\n color: 'var(--px-text-secondary)'\n },\n\n '&:focus-within': {\n outlineOffset: '-1px',\n outline: `2px solid var(${props.errorMessage ? '--px-color-error' : '--px-color-primary'})`\n }\n }\n }\n })\n}\n","// External Libraries\nimport { useId, useRef, useState } from 'react'\n\n// Types\nimport type { TextAreaProps } from './types'\n\n// Components\nimport { Label } from '@components/commons/toolkit/Label'\nimport { Typography } from '@components/commons/toolkit/Typography'\nimport { ErrorMessage } from '@components/commons/toolkit/ErrorMessage'\n\n// Hooks\nimport { useThemedStyles } from '@hooks/useThemedStyles'\n\n// Styles\nimport { createTextAreaStyles } from './styles'\n\nexport const TextArea = (props: TextAreaProps) => {\n const {\n value,\n delay,\n disabled,\n readOnly,\n maxLength,\n hideMaxLength,\n textMaxLength,\n placeholder,\n errorMessage,\n\n label,\n required,\n requiredColor,\n labelConfig,\n onChange\n } = props\n\n // Refs\n const timeoutRef = useRef<NodeJS.Timeout>(null)\n\n // States\n const [inputValue, setInputValue] = useState(value)\n\n // Hooks\n const inputId = useId()\n\n const { styles, classes } = useThemedStyles(props, createTextAreaStyles, {\n pick: p => [p.height, p.readOnly, p.placeholderColor, p.focusedRingColor],\n override: props.styles,\n applyCommonProps: true\n })\n\n // Functions\n function handleChange(e: React.ChangeEvent<HTMLTextAreaElement>) {\n if (disabled || readOnly) return\n\n const value = e.target.value\n\n setInputValue(value)\n\n if (timeoutRef.current) clearTimeout(timeoutRef.current)\n\n if (!delay) onChange?.(value)\n else {\n timeoutRef.current = setTimeout(() => onChange?.(value), delay)\n }\n }\n\n function renderLabel() {\n if (!label) return null\n\n return (\n <div>\n <Label\n label={label}\n htmlFor={inputId}\n required={required}\n requiredColor={requiredColor}\n {...labelConfig}\n />\n </div>\n )\n }\n\n return (\n <div style={styles.container}>\n {renderLabel()}\n\n <textarea\n value={inputValue}\n disabled={disabled}\n readOnly={readOnly}\n maxLength={maxLength}\n placeholder={placeholder}\n style={styles.textArea}\n className={classes.textArea}\n onChange={handleChange}\n />\n\n {maxLength && !hideMaxLength ? (\n <Typography variant=\"b2\" styles={{ text: { marginLeft: 'auto' } }}>\n {value?.length}/{maxLength} {textMaxLength}\n </Typography>\n ) : null}\n\n {errorMessage ? <ErrorMessage message={errorMessage} /> : null}\n </div>\n )\n}\n"],"mappings":";;;;;;;;AAIA,SAAgB,qBAAqB,OAAsB;CACzD,MAAM,EAAE,SAAS,QAAQ,aAAa;AAEtC,QAAO,OAAO;EACZ,WAAW;GACT,OAAO;GAEP,SAAS;GACT,eAAe;GAEf,QAAQ;GACT;EACD,eAAe;GACb,UAAU;GACV,MAAM;GACN,KAAK;GACL,WAAW;GACZ;EACD,UAAU;GACR;GACA,OAAO;GACP,cAAc;GACd,eAAe;GACf,aAAa;GACb,cAAc;GACd,QAAQ;GAER,YAAY;GACZ,UAAU;GACV,OAAO;GAEP,aAAa,MAAM,eACf,0BACA;GACJ,eAAe;GAEf,QAAQ,WAAW,YAAY;GAE/B,SAAS;IACP,kBAAkB;KAChB,YAAY;KACZ,OAAO;KACR;IAED,kBAAkB;KAChB,eAAe;KACf,SAAS,iBAAiB,MAAM,eAAe,qBAAqB,qBAAqB;KAC1F;IACF;GACF;EACF,CAAC;;;;;ACrCJ,MAAa,YAAY,UAAyB;CAChD,MAAM,EACJ,OACA,OACA,UACA,UACA,WACA,eACA,eACA,aACA,cAEA,OACA,UACA,eACA,aACA,aACE;CAGJ,MAAM,aAAa,OAAuB,KAAK;CAG/C,MAAM,CAAC,YAAY,iBAAiB,SAAS,MAAM;CAGnD,MAAM,UAAU,OAAO;CAEvB,MAAM,EAAE,QAAQ,YAAY,gBAAgB,OAAO,sBAAsB;EACvE,OAAM,MAAK;GAAC,EAAE;GAAQ,EAAE;GAAU,EAAE;GAAkB,EAAE;GAAiB;EACzE,UAAU,MAAM;EAChB,kBAAkB;EACnB,CAAC;CAGF,SAAS,aAAa,GAA2C;AAC/D,MAAI,YAAY,SAAU;EAE1B,MAAMA,UAAQ,EAAE,OAAO;AAEvB,gBAAcA,QAAM;AAEpB,MAAI,WAAW,QAAS,cAAa,WAAW,QAAQ;AAExD,MAAI,CAAC,MAAO,YAAWA,QAAM;MAE3B,YAAW,UAAU,iBAAiB,WAAWA,QAAM,EAAE,MAAM;;CAInE,SAAS,cAAc;AACrB,MAAI,CAAC,MAAO,QAAO;AAEnB,SACE,oBAAC,mBACC,oBAAC;GACQ;GACP,SAAS;GACC;GACK;GACf,GAAI;IACJ,GACE;;AAIV,QACE,qBAAC;EAAI,OAAO,OAAO;;GAChB,aAAa;GAEd,oBAAC;IACC,OAAO;IACG;IACA;IACC;IACE;IACb,OAAO,OAAO;IACd,WAAW,QAAQ;IACnB,UAAU;KACV;GAED,aAAa,CAAC,gBACb,qBAAC;IAAW,SAAQ;IAAK,QAAQ,EAAE,MAAM,EAAE,YAAY,QAAQ,EAAE;;KAC9D,OAAO;KAAO;KAAE;KAAU;KAAE;;KAClB,GACX;GAEH,eAAe,oBAAC,gBAAa,SAAS,eAAgB,GAAG;;GACtD"}
@@ -16,8 +16,8 @@ const secondaryColor = "var(--px-text-secondary)";
16
16
  const typographyVariants = {
17
17
  h1: {
18
18
  fontSize: "3rem",
19
- fontWeight: "700",
20
- lineHeight: WEIGHTS.bold,
19
+ fontWeight: WEIGHTS.bold,
20
+ lineHeight: "1",
21
21
  color: primaryColor
22
22
  },
23
23
  h2: {
@@ -172,4 +172,4 @@ const Typography = (props) => {
172
172
 
173
173
  //#endregion
174
174
  export { Typography as t };
175
- //# sourceMappingURL=Typography-u0BPHgCr.js.map
175
+ //# sourceMappingURL=Typography-CcQTHV-F.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Typography-CcQTHV-F.js","names":["typographyVariants: Record<TypographyVariant, SlotStyle>","variantToElement: Record<\n TypographyVariant,\n keyof JSX.IntrinsicElements\n>","alignText: Record<TextAlign, SlotStyle>","Typography: React.FC<TypographyProps>"],"sources":["../src/components/commons/toolkit/Typography/utils.ts","../src/components/commons/toolkit/Typography/config.ts","../src/components/commons/toolkit/Typography/style.ts","../src/components/commons/toolkit/Typography/index.tsx"],"sourcesContent":["export function getPlaceholder(content: React.ReactNode, size: number) {\n const contentSize = typeof content === 'string' ? content.length : 0\n const finalSize = Math.max(contentSize, size)\n\n if (finalSize === 0) return ''\n\n return '*'.repeat(finalSize)\n}\n","// External Libraries\nimport type { JSX } from 'react'\n\n// Types\nimport type { TextAlign, TypographyVariant } from './types'\nimport { type SlotStyle, WEIGHTS } from '@hooks/useThemedStyles/types'\n\nconst primaryColor = 'var(--px-text-primary)'\nconst secondaryColor = 'var(--px-text-secondary)'\n\nexport const typographyVariants: Record<TypographyVariant, SlotStyle> = {\n h1: {\n fontSize: '3rem',\n fontWeight: WEIGHTS.bold,\n lineHeight: '1',\n color: primaryColor\n },\n h2: {\n fontSize: '2.25rem',\n fontWeight: WEIGHTS.bold,\n lineHeight: 'calc(2.5 / 2.25)',\n color: primaryColor\n },\n h3: {\n fontSize: '1.875rem',\n fontWeight: WEIGHTS.bold,\n lineHeight: 'calc(2.25 / 1.875)',\n color: primaryColor\n },\n h4: {\n fontSize: '1.5rem',\n fontWeight: WEIGHTS.bold,\n lineHeight: 'calc(2 / 1.5)',\n color: primaryColor\n },\n h5: {\n fontSize: '1.25rem',\n fontWeight: WEIGHTS.bold,\n lineHeight: 'calc(1.75 / 1.25)',\n color: primaryColor\n },\n b1: {\n fontSize: '1rem',\n fontWeight: WEIGHTS.medium,\n lineHeight: '1.5',\n color: primaryColor\n },\n b2: {\n fontSize: '0.875rem',\n fontWeight: WEIGHTS.medium,\n lineHeight: 'calc(1.25 / 0.875)',\n color: secondaryColor\n },\n b3: {\n fontSize: '0.75rem',\n fontWeight: WEIGHTS.medium,\n lineHeight: 'calc(1 / 0.75)',\n color: secondaryColor\n },\n caption: {\n fontSize: '0.65rem',\n fontWeight: WEIGHTS.regular,\n lineHeight: 'calc(1 / 0.65)',\n color: secondaryColor\n },\n legal: {\n fontSize: '0.65rem',\n lineHeight: 'calc(1 / 0.65)',\n fontWeight: WEIGHTS.light,\n textTransform: 'uppercase',\n letterSpacing: '0.025em',\n color: secondaryColor\n }\n}\n\nexport const variantToElement: Record<\n TypographyVariant,\n keyof JSX.IntrinsicElements\n> = {\n h1: 'h1',\n h2: 'h2',\n h3: 'h3',\n h4: 'h4',\n h5: 'h5',\n b1: 'p',\n b2: 'p',\n b3: 'p',\n caption: 'span',\n legal: 'span'\n}\n\nexport const alignText: Record<TextAlign, SlotStyle> = {\n left: { textAlign: 'left' },\n center: { textAlign: 'center' },\n right: { textAlign: 'right' },\n justify: { textAlign: 'justify' }\n}\n","// Utils\nimport { alignText, typographyVariants } from './config'\n\n// Types\nimport type { TypographyProps } from './types'\nimport { type SlotStyle, styled } from '@hooks/useThemedStyles/types'\n\nexport function createTypographyStyles(props: TypographyProps) {\n const { variant, align = 'left', color, labelLineThrough = false } = props\n\n return styled({\n loading: {\n width: 'fit-content',\n display: 'inline-block',\n borderRadius: '0.25rem',\n\n background: 'var(--px-bg-skeleton)',\n backgroundSize: '400% 400%',\n animation: 'gradient 3s ease infinite',\n color: 'transparent',\n\n __keyframes: {\n gradient: {\n '0%': { backgroundPosition: '0% 50%' },\n '50%': { backgroundPosition: '100% 50%' },\n '100%': { backgroundPosition: '0% 50%' }\n }\n }\n },\n\n text: {\n ...alignText[align],\n ...typographyVariants[variant],\n color: color ?? typographyVariants[variant].color,\n ...(labelLineThrough && {\n textDecoration: 'line-through',\n opacity: 0.6\n })\n } as SlotStyle\n })\n}\n","// External Libraries\nimport type React from 'react'\n\n// Hooks\nimport { useThemedStyles } from '@hooks/useThemedStyles'\n\n// Utils\nimport { getPlaceholder } from './utils'\nimport { variantToElement } from './config'\n\n// Types\nimport type { TypographyProps } from './types'\n\n// Styles\nimport { createTypographyStyles } from './style'\n\nexport const Typography: React.FC<TypographyProps> = props => {\n const {\n id,\n as,\n href,\n variant,\n children,\n className,\n isLoading = false,\n placeholderSize = 5,\n styles: styleTypography\n } = props\n\n const { styles } = useThemedStyles(props, createTypographyStyles, {\n pick: p => [p.isLoading, p.variant, p.align, p.color, p.labelLineThrough],\n commonSlot: 'text',\n applyCommonProps: true,\n override: styleTypography\n })\n\n const Component = as ?? variantToElement[variant]\n\n if (isLoading) {\n return (\n <span\n id={id}\n aria-hidden=\"true\"\n role=\"presentation\"\n style={{ ...styles.text, ...styles.loading }}\n >\n {getPlaceholder(children, placeholderSize)}\n </span>\n )\n }\n\n const sharedProps = { id, style: styles.text, className }\n\n if (href) {\n return (\n <a href={href} {...sharedProps}>\n {children}\n </a>\n )\n }\n\n return <Component {...sharedProps}>{children}</Component>\n}\n"],"mappings":";;;;AAAA,SAAgB,eAAe,SAA0B,MAAc;CACrE,MAAM,cAAc,OAAO,YAAY,WAAW,QAAQ,SAAS;CACnE,MAAM,YAAY,KAAK,IAAI,aAAa,KAAK;AAE7C,KAAI,cAAc,EAAG,QAAO;AAE5B,QAAO,IAAI,OAAO,UAAU;;;;;ACC9B,MAAM,eAAe;AACrB,MAAM,iBAAiB;AAEvB,MAAaA,qBAA2D;CACtE,IAAI;EACF,UAAU;EACV,YAAY,QAAQ;EACpB,YAAY;EACZ,OAAO;EACR;CACD,IAAI;EACF,UAAU;EACV,YAAY,QAAQ;EACpB,YAAY;EACZ,OAAO;EACR;CACD,IAAI;EACF,UAAU;EACV,YAAY,QAAQ;EACpB,YAAY;EACZ,OAAO;EACR;CACD,IAAI;EACF,UAAU;EACV,YAAY,QAAQ;EACpB,YAAY;EACZ,OAAO;EACR;CACD,IAAI;EACF,UAAU;EACV,YAAY,QAAQ;EACpB,YAAY;EACZ,OAAO;EAC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,WACA,YAAY,OACZ,kBAAkB,GAClB,QAAQ,oBACN;CAEJ,MAAM,EAAE,WAAW,gBAAgB,OAAO,wBAAwB;EAChE,OAAM,MAAK;GAAC,EAAE;GAAW,EAAE;GAAS,EAAE;GAAO,EAAE;GAAO,EAAE;GAAiB;EACzE,YAAY;EACZ,kBAAkB;EAClB,UAAU;EACX,CAAC;CAEF,MAAM,YAAY,MAAM,iBAAiB;AAEzC,KAAI,UACF,QACE,oBAAC;EACK;EACJ,eAAY;EACZ,MAAK;EACL,OAAO;GAAE,GAAG,OAAO;GAAM,GAAG,OAAO;GAAS;YAE3C,eAAe,UAAU,gBAAgB;GACrC;CAIX,MAAM,cAAc;EAAE;EAAI,OAAO,OAAO;EAAM;EAAW;AAEzD,KAAI,KACF,QACE,oBAAC;EAAQ;EAAM,GAAI;EAChB;GACC;AAIR,QAAO,oBAAC;EAAU,GAAI;EAAc;GAAqB"}
@@ -1,6 +1,6 @@
1
1
  import "./useThemedStyles-Dco_54KA.js";
2
- import "./Typography-u0BPHgCr.js";
2
+ import "./Typography-CcQTHV-F.js";
3
3
  import "./Skeleton-pvWAx_gn.js";
4
- import { t as Breadcrumb } from "./Breadcrumb--lRHi6sr.js";
4
+ import { t as Breadcrumb } from "./Breadcrumb-BjO7RVR0.js";
5
5
 
6
6
  export { Breadcrumb };
package/dist/button.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./useThemedStyles-Dco_54KA.js";
2
- import "./Typography-u0BPHgCr.js";
2
+ import "./Typography-CcQTHV-F.js";
3
3
  import "./Loader-BTp8PCMz.js";
4
- import { t as Button } from "./Button-QcKlQyM3.js";
4
+ import { t as Button } from "./Button-CWZvWbMh.js";
5
5
 
6
6
  export { Button };
@@ -1,6 +1,6 @@
1
1
  import "./useThemedStyles-Dco_54KA.js";
2
- import "./Typography-u0BPHgCr.js";
2
+ import "./Typography-CcQTHV-F.js";
3
3
  import "./Icon-bV19y393.js";
4
- import { t as CheckItem } from "./CheckItem-C2NriXyN.js";
4
+ import { t as CheckItem } from "./CheckItem-CE27veSs.js";
5
5
 
6
6
  export { CheckItem };
package/dist/checkbox.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./useThemedStyles-Dco_54KA.js";
2
- import "./Typography-u0BPHgCr.js";
2
+ import "./Typography-CcQTHV-F.js";
3
3
  import "./Icon-bV19y393.js";
4
- import { t as Checkbox } from "./Checkbox-qoUWy3Nj.js";
4
+ import { t as Checkbox } from "./Checkbox-DWlmddP3.js";
5
5
 
6
6
  export { Checkbox };
package/dist/chip-list.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import "./useThemedStyles-Dco_54KA.js";
2
- import "./Typography-u0BPHgCr.js";
3
- import "./Chip-DJVwuXlv.js";
4
- import "./Label-VE3hoSbt.js";
2
+ import "./Typography-CcQTHV-F.js";
3
+ import "./Chip-0yO5bwim.js";
4
+ import "./Label-CBUa-x13.js";
5
5
  import "./ErrorMessage-6pG4hFId.js";
6
- import { t as ChipList } from "./ChipList-D7J-hTLW.js";
6
+ import { t as ChipList } from "./ChipList-CmO2ctak.js";
7
7
 
8
8
  export { ChipList };
package/dist/chip.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./useThemedStyles-Dco_54KA.js";
2
- import "./Typography-u0BPHgCr.js";
3
- import { n as types_exports, t as Chip } from "./Chip-DJVwuXlv.js";
2
+ import "./Typography-CcQTHV-F.js";
3
+ import { n as types_exports, t as Chip } from "./Chip-0yO5bwim.js";
4
4
 
5
5
  export { Chip, types_exports as ChipTypes };
@@ -1,8 +1,8 @@
1
1
  import "./useThemedStyles-Dco_54KA.js";
2
- import "./Typography-u0BPHgCr.js";
3
- import "./Label-VE3hoSbt.js";
2
+ import "./Typography-CcQTHV-F.js";
3
+ import "./Label-CBUa-x13.js";
4
4
  import "./ErrorMessage-6pG4hFId.js";
5
- import { n as types_exports, t as ColorPicker } from "./ColorPicker-sqs31Md7.js";
5
+ import { n as types_exports, t as ColorPicker } from "./ColorPicker-BBTuW0Bp.js";
6
6
  import "./Skeleton-pvWAx_gn.js";
7
7
 
8
8
  export { ColorPicker, types_exports as ColorPickerTypes };
@@ -1,10 +1,10 @@
1
1
  import "./useThemedStyles-Dco_54KA.js";
2
- import "./Typography-u0BPHgCr.js";
3
- import "./Switch-DlZXMyGG.js";
2
+ import "./Typography-CcQTHV-F.js";
3
+ import "./Switch-D3Eitmnj.js";
4
4
  import "./useDismiss-Dpzg5Xpf.js";
5
5
  import "./useFloating-D-2IDIWG.js";
6
6
  import "./Popover-BV_1hBez.js";
7
7
  import "./BasePopover-CY-9StFD.js";
8
- import { n as types_exports, t as ContextMenu } from "./ContextMenu-CrVwvqGG.js";
8
+ import { n as types_exports, t as ContextMenu } from "./ContextMenu-_72bEVKL.js";
9
9
 
10
10
  export { ContextMenu, types_exports as ContextMenuTypes };
@@ -1,15 +1,15 @@
1
1
  import "./useThemedStyles-Dco_54KA.js";
2
- import "./Typography-u0BPHgCr.js";
2
+ import "./Typography-CcQTHV-F.js";
3
3
  import "./useDismiss-Dpzg5Xpf.js";
4
4
  import "./useFloating-D-2IDIWG.js";
5
5
  import "./Popover-BV_1hBez.js";
6
6
  import "./Icon-bV19y393.js";
7
- import { n as types_exports, t as DatePicker } from "./DatePicker-0xnJwcp2.js";
7
+ import { n as types_exports, t as DatePicker } from "./DatePicker-znH0ZAdX.js";
8
8
  import "./BasePopover-CY-9StFD.js";
9
- import "./Label-VE3hoSbt.js";
9
+ import "./Label-CBUa-x13.js";
10
10
  import "./ErrorMessage-6pG4hFId.js";
11
11
  import "./Loader-BTp8PCMz.js";
12
- import "./Button-QcKlQyM3.js";
12
+ import "./Button-CWZvWbMh.js";
13
13
  import "./MaskModule-DZko7F_e.js";
14
14
 
15
15
  export { DatePicker, types_exports as DatePickerTypes };
@@ -1,8 +1,8 @@
1
1
  import "./useThemedStyles-Dco_54KA.js";
2
- import "./Typography-u0BPHgCr.js";
2
+ import "./Typography-CcQTHV-F.js";
3
3
  import "./Icon-bV19y393.js";
4
- import "./Label-VE3hoSbt.js";
4
+ import "./Label-CBUa-x13.js";
5
5
  import "./ErrorMessage-6pG4hFId.js";
6
- import { n as types_exports, t as FileInput } from "./FileInput-CfUBqmTu.js";
6
+ import { n as types_exports, t as FileInput } from "./FileInput-BXK9H8Ar.js";
7
7
 
8
8
  export { FileInput, types_exports as FileInputTypes };
@@ -27,7 +27,7 @@ declare function createSelectStyles(props: SelectProps): {
27
27
  opacity: number;
28
28
  cursor: "not-allowed" | "pointer" | "progress";
29
29
  boxShadow: "var(--px-shadow-default)";
30
- borderColor: "var(--px-color-error)" | "var(--px-border-primary)";
30
+ borderColor: "var(--px-border-primary)" | "var(--px-color-error)";
31
31
  __rules: {
32
32
  '&:focus-within': {
33
33
  outlineOffset: string;
@@ -106,4 +106,4 @@ interface SelectOption {
106
106
  declare const Select: React$1.FC<SelectProps>;
107
107
  //#endregion
108
108
  export { types_d_exports as n, Select as t };
109
- //# sourceMappingURL=index-j6W-PwB7.d.ts.map
109
+ //# sourceMappingURL=index-BmFKokpv.d.ts.map
@@ -22,7 +22,7 @@ declare function createInputStyles(props: InputProps): {
22
22
  padding: string;
23
23
  opacity: number;
24
24
  boxShadow: "var(--px-shadow-default)";
25
- borderColor: "var(--px-color-error)" | "var(--px-border-primary)";
25
+ borderColor: "var(--px-border-primary)" | "var(--px-color-error)";
26
26
  __rules: {
27
27
  '&:focus-within': {
28
28
  outlineOffset: string;
@@ -108,4 +108,4 @@ interface InputMethods {
108
108
  declare const Input: react0.ForwardRefExoticComponent<InputProps & react0.RefAttributes<InputMethods>>;
109
109
  //#endregion
110
110
  export { Input as t };
111
- //# sourceMappingURL=index-qPJuO65u.d.ts.map
111
+ //# sourceMappingURL=index-C22JJ_rW.d.ts.map
@@ -27,7 +27,7 @@ declare function createTextAreaStyles(props: TextAreaProps): {
27
27
  fontWeight: "400";
28
28
  fontSize: string;
29
29
  color: "var(--px-text-primary)";
30
- borderColor: "var(--px-color-error)" | "var(--px-border-primary)";
30
+ borderColor: "var(--px-border-primary)" | "var(--px-color-error)";
31
31
  outlineOffset: string;
32
32
  cursor: "default" | undefined;
33
33
  __rules: {
@@ -70,4 +70,4 @@ interface TextAreaProps {
70
70
  declare const TextArea: (props: TextAreaProps) => react_jsx_runtime0.JSX.Element;
71
71
  //#endregion
72
72
  export { TextArea as t };
73
- //# sourceMappingURL=index-Q90gI7Q2.d.ts.map
73
+ //# sourceMappingURL=index-Ll44Zh-u.d.ts.map
package/dist/index.d.ts CHANGED
@@ -6,11 +6,11 @@ import { n as types_d_exports$5 } from "./types-vfa_y8KH.js";
6
6
  import { n as types_d_exports$3, t as DatePicker } from "./index-BaTeJXMP.js";
7
7
  import { n as types_d_exports$4, t as FileInput } from "./index-DDF3jbpO.js";
8
8
  import { n as Locale, r as MaskType, t as MaskModule } from "./index-CSRzYxDc.js";
9
- import { t as Input } from "./index-qPJuO65u.js";
9
+ import { t as Input } from "./index-C22JJ_rW.js";
10
10
  import { t as SearchInput } from "./index-MyZ_XVsH.js";
11
- import { n as types_d_exports$6, t as Select } from "./index-j6W-PwB7.js";
11
+ import { n as types_d_exports$6, t as Select } from "./index-BmFKokpv.js";
12
12
  import { t as index_d_exports } from "./index-CriBmhqv.js";
13
- import { t as TextArea } from "./index-Q90gI7Q2.js";
13
+ import { t as TextArea } from "./index-Ll44Zh-u.js";
14
14
  import { t as Popover } from "./index-tivXt3ba.js";
15
15
  import { t as BasePopover } from "./index-BKsKKh1p.js";
16
16
  import { t as Breadcrumb } from "./index-CBHEtmuG.js";
package/dist/index.js CHANGED
@@ -1,36 +1,36 @@
1
1
  import "./useThemedStyles-Dco_54KA.js";
2
- import { t as Typography } from "./Typography-u0BPHgCr.js";
3
- import { t as Switch } from "./Switch-DlZXMyGG.js";
2
+ import { t as Typography } from "./Typography-CcQTHV-F.js";
3
+ import { t as Switch } from "./Switch-D3Eitmnj.js";
4
4
  import { t as useDismiss } from "./useDismiss-Dpzg5Xpf.js";
5
5
  import { t as useFloating } from "./useFloating-D-2IDIWG.js";
6
6
  import { n as types_exports$5, t as Popover } from "./Popover-BV_1hBez.js";
7
7
  import "./Icon-bV19y393.js";
8
- import { t as Checkbox } from "./Checkbox-qoUWy3Nj.js";
9
- import { n as types_exports$3, t as DatePicker } from "./DatePicker-0xnJwcp2.js";
8
+ import { t as Checkbox } from "./Checkbox-DWlmddP3.js";
9
+ import { n as types_exports$3, t as DatePicker } from "./DatePicker-znH0ZAdX.js";
10
10
  import { n as useTheme, t as ThemeProvider } from "./ThemeContext-CRVo1wLa.js";
11
- import { n as types_exports$7, t as Select } from "./Select-ChVwX-7Z.js";
12
- import { n as types_exports$8, t as TabSwitch } from "./TabSwitch-Co6kaDbi.js";
13
- import { t as CheckItem } from "./CheckItem-C2NriXyN.js";
14
- import { t as InfoSummary } from "./InfoSummary-B6k4_vpG.js";
11
+ import { n as types_exports$7, t as Select } from "./Select-C8JCFwDy.js";
12
+ import { n as types_exports$8, t as TabSwitch } from "./TabSwitch-UPXOZTf4.js";
13
+ import { t as CheckItem } from "./CheckItem-CE27veSs.js";
14
+ import { t as InfoSummary } from "./InfoSummary-D8x-t44q.js";
15
15
  import { t as BasePopover } from "./BasePopover-CY-9StFD.js";
16
- import { n as types_exports$2, t as ContextMenu } from "./ContextMenu-CrVwvqGG.js";
17
- import { n as types_exports, t as Chip } from "./Chip-DJVwuXlv.js";
18
- import "./Label-VE3hoSbt.js";
16
+ import { n as types_exports$2, t as ContextMenu } from "./ContextMenu-_72bEVKL.js";
17
+ import { n as types_exports, t as Chip } from "./Chip-0yO5bwim.js";
18
+ import "./Label-CBUa-x13.js";
19
19
  import "./ErrorMessage-6pG4hFId.js";
20
- import { t as ChipList } from "./ChipList-D7J-hTLW.js";
20
+ import { t as ChipList } from "./ChipList-CmO2ctak.js";
21
21
  import { t as IconButton } from "./IconButton-R8wpGZU_.js";
22
- import { t as Pagination } from "./Pagination-DV4VUQj_.js";
22
+ import { t as Pagination } from "./Pagination-i2_x464D.js";
23
23
  import "./Loader-BTp8PCMz.js";
24
- import { t as Button } from "./Button-QcKlQyM3.js";
24
+ import { t as Button } from "./Button-CWZvWbMh.js";
25
25
  import { n as types_exports$6, t as ScrollPaginationContainer } from "./ScrollPaginationContainer-isAA4BsG.js";
26
26
  import { c as MaskModule, o as Locale, s as MaskType } from "./MaskModule-DZko7F_e.js";
27
- import { t as Input } from "./Input-BLnysNxN.js";
28
- import { t as TextArea } from "./TextArea-s6HdNSc5.js";
29
- import { t as SearchInput } from "./SearchInput-vI-WcTPT.js";
30
- import { n as types_exports$1, t as ColorPicker } from "./ColorPicker-sqs31Md7.js";
27
+ import { t as Input } from "./Input-ChS1OoFI.js";
28
+ import { t as TextArea } from "./TextArea-BMJWFF3y.js";
29
+ import { t as SearchInput } from "./SearchInput-zePMheJK.js";
30
+ import { n as types_exports$1, t as ColorPicker } from "./ColorPicker-BBTuW0Bp.js";
31
31
  import { t as Skeleton } from "./Skeleton-pvWAx_gn.js";
32
- import { n as types_exports$4, t as FileInput } from "./FileInput-CfUBqmTu.js";
32
+ import { n as types_exports$4, t as FileInput } from "./FileInput-BXK9H8Ar.js";
33
33
  import { useVirtualAnchor } from "./use-virtual-anchor.js";
34
- import { t as Breadcrumb } from "./Breadcrumb--lRHi6sr.js";
34
+ import { t as Breadcrumb } from "./Breadcrumb-BjO7RVR0.js";
35
35
 
36
36
  export { BasePopover, Breadcrumb, Button, CheckItem, Checkbox, Chip, ChipList, types_exports as ChipTypes, ColorPicker, types_exports$1 as ColorPickerTypes, ContextMenu, types_exports$2 as ContextMenuTypes, DatePicker, types_exports$3 as DatePickerTypes, FileInput, types_exports$4 as FileInputTypes, IconButton, InfoSummary, Input, Locale, MaskModule, MaskType, Pagination, Popover, types_exports$5 as PopoverTypes, ScrollPaginationContainer, types_exports$6 as ScrollPaginationContainerTypes, SearchInput, Select, types_exports$7 as SelectTypes, Skeleton, Switch, TabSwitch, types_exports$8 as TabSwitchTypes, TextArea, ThemeProvider, Typography, useDismiss, useFloating, useTheme, useVirtualAnchor };
@@ -1,5 +1,5 @@
1
1
  import "./useThemedStyles-Dco_54KA.js";
2
- import "./Typography-u0BPHgCr.js";
3
- import { t as InfoSummary } from "./InfoSummary-B6k4_vpG.js";
2
+ import "./Typography-CcQTHV-F.js";
3
+ import { t as InfoSummary } from "./InfoSummary-D8x-t44q.js";
4
4
 
5
5
  export { InfoSummary };
package/dist/input.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { t as Input } from "./index-qPJuO65u.js";
1
+ import { t as Input } from "./index-C22JJ_rW.js";
2
2
  export { Input };
package/dist/input.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import "./useThemedStyles-Dco_54KA.js";
2
- import "./Typography-u0BPHgCr.js";
2
+ import "./Typography-CcQTHV-F.js";
3
3
  import "./Icon-bV19y393.js";
4
- import "./Label-VE3hoSbt.js";
4
+ import "./Label-CBUa-x13.js";
5
5
  import "./ErrorMessage-6pG4hFId.js";
6
6
  import "./MaskModule-DZko7F_e.js";
7
- import { t as Input } from "./Input-BLnysNxN.js";
7
+ import { t as Input } from "./Input-ChS1OoFI.js";
8
8
 
9
9
  export { Input };
@@ -1,9 +1,9 @@
1
1
  import "./useThemedStyles-Dco_54KA.js";
2
- import "./Typography-u0BPHgCr.js";
2
+ import "./Typography-CcQTHV-F.js";
3
3
  import "./Icon-bV19y393.js";
4
4
  import "./IconButton-R8wpGZU_.js";
5
- import { t as Pagination } from "./Pagination-DV4VUQj_.js";
5
+ import { t as Pagination } from "./Pagination-i2_x464D.js";
6
6
  import "./Loader-BTp8PCMz.js";
7
- import "./Button-QcKlQyM3.js";
7
+ import "./Button-CWZvWbMh.js";
8
8
 
9
9
  export { Pagination };
@@ -1,7 +1,7 @@
1
1
  import "./useThemedStyles-Dco_54KA.js";
2
- import "./Typography-u0BPHgCr.js";
2
+ import "./Typography-CcQTHV-F.js";
3
3
  import "./Icon-bV19y393.js";
4
- import "./Label-VE3hoSbt.js";
5
- import { t as SearchInput } from "./SearchInput-vI-WcTPT.js";
4
+ import "./Label-CBUa-x13.js";
5
+ import { t as SearchInput } from "./SearchInput-zePMheJK.js";
6
6
 
7
7
  export { SearchInput };
package/dist/select.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  import "./types-vfa_y8KH.js";
2
- import { n as types_d_exports, t as Select } from "./index-j6W-PwB7.js";
2
+ import { n as types_d_exports, t as Select } from "./index-BmFKokpv.js";
3
3
  import "./index-CriBmhqv.js";
4
4
  export { Select, types_d_exports as SelectTypes };
package/dist/select.js CHANGED
@@ -1,16 +1,16 @@
1
1
  import "./useThemedStyles-Dco_54KA.js";
2
- import "./Typography-u0BPHgCr.js";
2
+ import "./Typography-CcQTHV-F.js";
3
3
  import "./useDismiss-Dpzg5Xpf.js";
4
4
  import "./useFloating-D-2IDIWG.js";
5
5
  import "./Popover-BV_1hBez.js";
6
6
  import "./Icon-bV19y393.js";
7
- import { n as types_exports, t as Select } from "./Select-ChVwX-7Z.js";
7
+ import { n as types_exports, t as Select } from "./Select-C8JCFwDy.js";
8
8
  import "./BasePopover-CY-9StFD.js";
9
- import "./Label-VE3hoSbt.js";
9
+ import "./Label-CBUa-x13.js";
10
10
  import "./ErrorMessage-6pG4hFId.js";
11
11
  import "./Loader-BTp8PCMz.js";
12
12
  import "./ScrollPaginationContainer-isAA4BsG.js";
13
13
  import "./MaskModule-DZko7F_e.js";
14
- import "./Input-BLnysNxN.js";
14
+ import "./Input-ChS1OoFI.js";
15
15
 
16
16
  export { Select, types_exports as SelectTypes };
package/dist/switch.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./useThemedStyles-Dco_54KA.js";
2
- import "./Typography-u0BPHgCr.js";
3
- import { t as Switch } from "./Switch-DlZXMyGG.js";
2
+ import "./Typography-CcQTHV-F.js";
3
+ import { t as Switch } from "./Switch-D3Eitmnj.js";
4
4
 
5
5
  export { Switch };
@@ -1,5 +1,5 @@
1
1
  import "./useThemedStyles-Dco_54KA.js";
2
- import "./Typography-u0BPHgCr.js";
3
- import { n as types_exports, t as TabSwitch } from "./TabSwitch-Co6kaDbi.js";
2
+ import "./Typography-CcQTHV-F.js";
3
+ import { n as types_exports, t as TabSwitch } from "./TabSwitch-UPXOZTf4.js";
4
4
 
5
5
  export { TabSwitch, types_exports as TabSwitchTypes };
@@ -1,2 +1,2 @@
1
- import { t as TextArea } from "./index-Q90gI7Q2.js";
1
+ import { t as TextArea } from "./index-Ll44Zh-u.js";
2
2
  export { TextArea };
package/dist/text-area.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import "./useThemedStyles-Dco_54KA.js";
2
- import "./Typography-u0BPHgCr.js";
3
- import "./Label-VE3hoSbt.js";
2
+ import "./Typography-CcQTHV-F.js";
3
+ import "./Label-CBUa-x13.js";
4
4
  import "./ErrorMessage-6pG4hFId.js";
5
- import { t as TextArea } from "./TextArea-s6HdNSc5.js";
5
+ import { t as TextArea } from "./TextArea-BMJWFF3y.js";
6
6
 
7
7
  export { TextArea };
@@ -1,4 +1,4 @@
1
1
  import "./useThemedStyles-Dco_54KA.js";
2
- import { t as Typography } from "./Typography-u0BPHgCr.js";
2
+ import { t as Typography } from "./Typography-CcQTHV-F.js";
3
3
 
4
4
  export { Typography };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "softable-pixels-web",
3
- "version": "1.2.36",
3
+ "version": "1.2.38",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "author": "softable",
@@ -1 +0,0 @@
1
- {"version":3,"file":"Input-BLnysNxN.js","names":["value"],"sources":["../src/components/commons/inputs/Input/hooks/utils.ts","../src/components/commons/inputs/Input/hooks/useInput/index.ts","../src/components/commons/inputs/Input/styles.ts","../src/components/commons/inputs/Input/index.tsx"],"sourcesContent":["import type { FloatProps, InputProps } from '../types'\n\nexport function checkIsFloatConfig(props: InputProps): props is FloatProps {\n return props.mask === 'FLOAT'\n}\n","// External Libraries\nimport { useState, useRef, useMemo, useEffect } from 'react'\n\n// Services\nimport { Locale, MaskModule, MaskType } from 'src/services/MaskModule'\n\n// Utils\nimport { checkIsFloatConfig } from '../utils'\n\n// Types\nimport type { InputProps } from '../../types'\nimport { FloatMask } from '@services/MaskModule/locales/br/masks/FloatMask'\nimport { IntegerMask } from '@services/MaskModule/locales/br/masks/IntegerMask'\n\nexport function useInput(props: InputProps) {\n // Constants\n const { value, delay, mask, onChange, min, max, ...rest } = props\n // Refs\n const inputRef = useRef<HTMLInputElement>(null)\n const timeoutRef = useRef<NodeJS.Timeout>(null)\n\n // States\n const [inputValue, setInputValue] = useState(props.value)\n const [showPassword, setShowPassword] = useState(false)\n\n // Constants\n // biome-ignore lint/correctness/useExhaustiveDependencies: Not Needed\n const { minLength, maxLength } = useMemo(() => {\n const appliedMask = getMask()\n\n const minLength = rest.minLength ?? appliedMask?.minLength\n const maxLength = rest.maxLength ?? appliedMask?.maxLength\n\n return { minLength, maxLength }\n }, [mask, rest.minLength, rest.maxLength])\n\n // UseEffects\n useEffect(() => {\n setInputValue(value)\n }, [value])\n\n // Functions\n function getMask() {\n if (!mask) return undefined\n\n if (mask === MaskType.INTEGER) return new IntegerMask({ max, min })\n\n if (mask === MaskType.FLOAT && checkIsFloatConfig(props)) {\n return new FloatMask({ decimalDigits: props.decimalPlaces })\n }\n\n return MaskModule.getMask(Locale.BR, mask)\n }\n\n function togglePasswordVisibility() {\n setShowPassword(prev => !prev)\n }\n\n function handleRefMethods() {\n return { focus: handleFocus, blur: handleBlur }\n }\n\n function handleFocus() {\n inputRef.current?.focus()\n }\n\n function handleBlur() {\n inputRef.current?.blur()\n }\n\n function handleChange(e: React.ChangeEvent<HTMLInputElement>) {\n let value = e.target.value\n\n if (timeoutRef.current) clearTimeout(timeoutRef.current)\n\n if (mask) {\n const module = getMask()\n if (module) value = module.format(value)\n }\n\n if (!delay) onChange?.(value)\n else {\n timeoutRef.current = setTimeout(() => onChange?.(value), delay)\n }\n }\n\n return {\n inputRef,\n minLength,\n maxLength,\n inputValue,\n showPassword,\n handleChange,\n handleRefMethods,\n togglePasswordVisibility\n }\n}\n","// Hooks\nimport { styled } from '@hooks/useThemedStyles/types'\n\n// Types\nimport type { InputProps } from './types'\n\nexport function createInputStyles(props: InputProps) {\n return styled({\n container: {\n width: '100%',\n\n display: 'flex',\n flexDirection: 'column',\n\n rowGap: '0.375rem'\n },\n wrapper: {\n width: '100%',\n display: 'flex',\n alignItems: 'center',\n\n borderWidth: 1,\n columnGap: '0.25rem',\n borderRadius: '0.5rem',\n padding: '0.625rem 0.875rem',\n\n opacity: props.disabled ? 0.5 : 1,\n boxShadow: 'var(--px-shadow-default)',\n borderColor: props.errorMessage\n ? 'var(--px-color-error)'\n : 'var(--px-border-primary)',\n\n __rules: {\n '&:focus-within': {\n outlineOffset: '-1px',\n outline: `2px solid var(${props.errorMessage ? '--px-color-error' : '--px-color-primary'})`\n }\n }\n },\n\n input: {\n flex: 1,\n\n fontWeight: 500,\n fontSize: '1rem',\n lineHeight: '1.5rem',\n fontFamily: 'inherit',\n color: 'var(--px-text-primary)',\n\n __rules: {\n '&:disabled': {\n cursor: 'not-allowed'\n },\n\n '&:focus': {\n outline: 'none'\n },\n\n '&::placeholder': {\n fontWeight: 400,\n color: 'var(--px-text-secondary)'\n }\n }\n },\n\n button: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n\n cursor: 'pointer',\n padding: '0.25rem',\n borderRadius: '0.5rem',\n\n __rules: {\n '&:focus': {\n outline: '1px solid var(--px-border-primary)'\n }\n }\n }\n })\n}\n","/** biome-ignore-all lint/a11y/noAutofocus: It's a custom input component */\n// External Libraries\nimport { forwardRef, useId, useImperativeHandle, useMemo } from 'react'\n\n// Components\nimport { Label } from '../../toolkit/Label'\nimport { Icon } from '@components/commons/toolkit/Icon'\nimport { ErrorMessage } from '../../toolkit/ErrorMessage'\n\n// Types\nimport type { InputProps, InputMethods } from './types'\n\n// Hooks\nimport { useInput } from './hooks/useInput'\nimport { useThemedStyles } from '@hooks/useThemedStyles'\n\n// Styles\nimport { createInputStyles } from './styles'\n\nexport const Input = forwardRef<InputMethods, InputProps>((props, ref) => {\n // Constants\n const reactId = useId()\n const inputId = useMemo(() => {\n return props.id || `input-${reactId}`\n }, [props.id, reactId])\n\n // Hooks\n const {\n inputRef,\n minLength,\n maxLength,\n inputValue,\n showPassword,\n handleChange,\n handleRefMethods,\n togglePasswordVisibility\n } = useInput(props)\n useImperativeHandle(ref, handleRefMethods)\n\n // Hooks\n const { styles, classes } = useThemedStyles(props, createInputStyles, {\n pick: p => [p.disabled, p.errorMessage],\n override: props.styles,\n applyCommonProps: true,\n commonSlot: 'container'\n })\n\n // Functions\n function getType() {\n if (props.type === 'password' && showPassword) return 'text'\n return props.type\n }\n\n function renderEndContent() {\n if (props.type === 'password') {\n return (\n <button\n type=\"button\"\n style={styles.button}\n className={classes.button}\n onClick={togglePasswordVisibility}\n >\n <Icon\n size=\"sm\"\n name={showPassword ? 'general-eye-off' : 'general-eye'}\n />\n </button>\n )\n }\n\n return props.endIcon ?? null\n }\n\n return (\n <div style={styles.container}>\n {props.hideLabel ? null : (\n <Label\n htmlFor={inputId}\n label={props.label}\n required={props.required}\n requiredColor={props.requiredColor}\n {...props.labelConfig}\n />\n )}\n\n <div style={styles.wrapper} className={classes.wrapper}>\n {props.startIcon}\n\n <input\n ref={inputRef}\n id={inputId}\n type={getType()}\n value={inputValue}\n style={styles.input}\n minLength={minLength}\n maxLength={maxLength}\n required={props.required}\n disabled={props.disabled}\n className={classes.input}\n autoFocus={props.autoFocus}\n spellCheck={props.spellCheck}\n autoCorrect={props.autoCorrect}\n placeholder={props.placeholder}\n autoComplete={props.autoComplete}\n autoCapitalize={props.autoCapitalize}\n aria-label={!props.hideLabel ? undefined : props.label}\n onChange={handleChange}\n />\n\n {renderEndContent()}\n </div>\n\n {props.errorMessage ? (\n <ErrorMessage message={props.errorMessage} />\n ) : null}\n </div>\n )\n})\n\nInput.displayName = 'Input'\n"],"mappings":";;;;;;;;;AAEA,SAAgB,mBAAmB,OAAwC;AACzE,QAAO,MAAM,SAAS;;;;;ACWxB,SAAgB,SAAS,OAAmB;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jB,MAAI,MAAM,SAAS,cAAc,aAAc,QAAO;AACtD,SAAO,MAAM;;CAGf,SAAS,mBAAmB;AAC1B,MAAI,MAAM,SAAS,WACjB,QACE,oBAAC;GACC,MAAK;GACL,OAAO,OAAO;GACd,WAAW,QAAQ;GACnB,SAAS;aAET,oBAAC;IACC,MAAK;IACL,MAAM,eAAe,oBAAoB;KACzC;IACK;AAIb,SAAO,MAAM,WAAW;;AAG1B,QACE,qBAAC;EAAI,OAAO,OAAO;;GAChB,MAAM,YAAY,OACjB,oBAAC;IACC,SAAS;IACT,OAAO,MAAM;IACb,UAAU,MAAM;IAChB,eAAe,MAAM;IACrB,GAAI,MAAM;KACV;GAGJ,qBAAC;IAAI,OAAO,OAAO;IAAS,WAAW,QAAQ;;KAC5C,MAAM;KAEP,oBAAC;MACC,KAAK;MACL,IAAI;MACJ,MAAM,SAAS;MACf,OAAO;MACP,OAAO,OAAO;MACH;MACA;MACX,UAAU,MAAM;MAChB,UAAU,MAAM;MAChB,WAAW,QAAQ;MACnB,WAAW,MAAM;MACjB,YAAY,MAAM;MAClB,aAAa,MAAM;MACnB,aAAa,MAAM;MACnB,cAAc,MAAM;MACpB,gBAAgB,MAAM;MACtB,cAAY,CAAC,MAAM,YAAY,SAAY,MAAM;MACjD,UAAU;OACV;KAED,kBAAkB;;KACf;GAEL,MAAM,eACL,oBAAC,gBAAa,SAAS,MAAM,eAAgB,GAC3C;;GACA;EAER;AAEF,MAAM,cAAc"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Typography-u0BPHgCr.js","names":["typographyVariants: Record<TypographyVariant, SlotStyle>","variantToElement: Record<\n TypographyVariant,\n keyof JSX.IntrinsicElements\n>","alignText: Record<TextAlign, SlotStyle>","Typography: React.FC<TypographyProps>"],"sources":["../src/components/commons/toolkit/Typography/utils.ts","../src/components/commons/toolkit/Typography/config.ts","../src/components/commons/toolkit/Typography/style.ts","../src/components/commons/toolkit/Typography/index.tsx"],"sourcesContent":["export function getPlaceholder(content: React.ReactNode, size: number) {\n const contentSize = typeof content === 'string' ? content.length : 0\n const finalSize = Math.max(contentSize, size)\n\n if (finalSize === 0) return ''\n\n return '*'.repeat(finalSize)\n}\n","// External Libraries\nimport type { JSX } from 'react'\n\n// Types\nimport type { TextAlign, TypographyVariant } from './types'\nimport { type SlotStyle, WEIGHTS } from '@hooks/useThemedStyles/types'\n\nconst primaryColor = 'var(--px-text-primary)'\nconst secondaryColor = 'var(--px-text-secondary)'\n\nexport const typographyVariants: Record<TypographyVariant, SlotStyle> = {\n h1: {\n fontSize: '3rem',\n fontWeight: '700',\n lineHeight: WEIGHTS.bold,\n color: primaryColor\n },\n h2: {\n fontSize: '2.25rem',\n fontWeight: WEIGHTS.bold,\n lineHeight: 'calc(2.5 / 2.25)',\n color: primaryColor\n },\n h3: {\n fontSize: '1.875rem',\n fontWeight: WEIGHTS.bold,\n lineHeight: 'calc(2.25 / 1.875)',\n color: primaryColor\n },\n h4: {\n fontSize: '1.5rem',\n fontWeight: WEIGHTS.bold,\n lineHeight: 'calc(2 / 1.5)',\n color: primaryColor\n },\n h5: {\n fontSize: '1.25rem',\n fontWeight: WEIGHTS.bold,\n lineHeight: 'calc(1.75 / 1.25)',\n color: primaryColor\n },\n b1: {\n fontSize: '1rem',\n fontWeight: WEIGHTS.medium,\n lineHeight: '1.5',\n color: primaryColor\n },\n b2: {\n fontSize: '0.875rem',\n fontWeight: WEIGHTS.medium,\n lineHeight: 'calc(1.25 / 0.875)',\n color: secondaryColor\n },\n b3: {\n fontSize: '0.75rem',\n fontWeight: WEIGHTS.medium,\n lineHeight: 'calc(1 / 0.75)',\n color: secondaryColor\n },\n caption: {\n fontSize: '0.65rem',\n fontWeight: WEIGHTS.regular,\n lineHeight: 'calc(1 / 0.65)',\n color: secondaryColor\n },\n legal: {\n fontSize: '0.65rem',\n lineHeight: 'calc(1 / 0.65)',\n fontWeight: WEIGHTS.light,\n textTransform: 'uppercase',\n letterSpacing: '0.025em',\n color: secondaryColor\n }\n}\n\nexport const variantToElement: Record<\n TypographyVariant,\n keyof JSX.IntrinsicElements\n> = {\n h1: 'h1',\n h2: 'h2',\n h3: 'h3',\n h4: 'h4',\n h5: 'h5',\n b1: 'p',\n b2: 'p',\n b3: 'p',\n caption: 'span',\n legal: 'span'\n}\n\nexport const alignText: Record<TextAlign, SlotStyle> = {\n left: { textAlign: 'left' },\n center: { textAlign: 'center' },\n right: { textAlign: 'right' },\n justify: { textAlign: 'justify' }\n}\n","// Utils\nimport { alignText, typographyVariants } from './config'\n\n// Types\nimport type { TypographyProps } from './types'\nimport { type SlotStyle, styled } from '@hooks/useThemedStyles/types'\n\nexport function createTypographyStyles(props: TypographyProps) {\n const { variant, align = 'left', color, labelLineThrough = false } = props\n\n return styled({\n loading: {\n width: 'fit-content',\n display: 'inline-block',\n borderRadius: '0.25rem',\n\n background: 'var(--px-bg-skeleton)',\n backgroundSize: '400% 400%',\n animation: 'gradient 3s ease infinite',\n color: 'transparent',\n\n __keyframes: {\n gradient: {\n '0%': { backgroundPosition: '0% 50%' },\n '50%': { backgroundPosition: '100% 50%' },\n '100%': { backgroundPosition: '0% 50%' }\n }\n }\n },\n\n text: {\n ...alignText[align],\n ...typographyVariants[variant],\n color: color ?? typographyVariants[variant].color,\n ...(labelLineThrough && {\n textDecoration: 'line-through',\n opacity: 0.6\n })\n } as SlotStyle\n })\n}\n","// External Libraries\nimport type React from 'react'\n\n// Hooks\nimport { useThemedStyles } from '@hooks/useThemedStyles'\n\n// Utils\nimport { getPlaceholder } from './utils'\nimport { variantToElement } from './config'\n\n// Types\nimport type { TypographyProps } from './types'\n\n// Styles\nimport { createTypographyStyles } from './style'\n\nexport const Typography: React.FC<TypographyProps> = props => {\n const {\n id,\n as,\n href,\n variant,\n children,\n className,\n isLoading = false,\n placeholderSize = 5,\n styles: styleTypography\n } = props\n\n const { styles } = useThemedStyles(props, createTypographyStyles, {\n pick: p => [p.isLoading, p.variant, p.align, p.color, p.labelLineThrough],\n commonSlot: 'text',\n applyCommonProps: true,\n override: styleTypography\n })\n\n const Component = as ?? variantToElement[variant]\n\n if (isLoading) {\n return (\n <span\n id={id}\n aria-hidden=\"true\"\n role=\"presentation\"\n style={{ ...styles.text, ...styles.loading }}\n >\n {getPlaceholder(children, placeholderSize)}\n </span>\n )\n }\n\n const sharedProps = { id, style: styles.text, className }\n\n if (href) {\n return (\n <a href={href} {...sharedProps}>\n {children}\n </a>\n )\n }\n\n return <Component {...sharedProps}>{children}</Component>\n}\n"],"mappings":";;;;AAAA,SAAgB,eAAe,SAA0B,MAAc;CACrE,MAAM,cAAc,OAAO,YAAY,WAAW,QAAQ,SAAS;CACnE,MAAM,YAAY,KAAK,IAAI,aAAa,KAAK;AAE7C,KAAI,cAAc,EAAG,QAAO;AAE5B,QAAO,IAAI,OAAO,UAAU;;;;;ACC9B,MAAM,eAAe;AACrB,MAAM,iBAAiB;AAEvB,MAAaA,qBAA2D;CACtE,IAAI;EACF,UAAU;EACV,YAAY;EACZ,YAAY,QAAQ;EACpB,OAAO;EACR;CACD,IAAI;EACF,UAAU;EACV,YAAY,QAAQ;EACpB,YAAY;EACZ,OAAO;EACR;CACD,IAAI;EACF,UAAU;EACV,YAAY,QAAQ;EACpB,YAAY;EACZ,OAAO;EACR;CACD,IAAI;EACF,UAAU;EACV,YAAY,QAAQ;EACpB,YAAY;EACZ,OAAO;EACR;CACD,IAAI;EACF,UAAU;EACV,YAAY,QAAQ;EACpB,YAAY;EACZ,OAAO;EACR;CACD,IAAI;EACF,UAAU;EACV,YAAY,QAAQ;EACpB,YAAY;EACZ,OAAO;EACR;CACD,IAAI;EACF,UAAU;EACV,YAAY,QAAQ;EACpB,YAAY;EACZ,OAAO;EACR;CACD,IAAI;EACF,UAAU;EACV,YAAY,QAAQ;EACpB,YAAY;EACZ,OAAO;EACR;CACD,SAAS;EACP,UAAU;EACV,YAAY,QAAQ;EACpB,YAAY;EACZ,OAAO;EACR;CACD,OAAO;EACL,UAAU;EACV,YAAY;EACZ,YAAY,QAAQ;EACp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