softable-pixels-web 1.2.35 → 1.2.37

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 (78) 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-o_4n7GFO.js → Button-CWZvWbMh.js} +6 -6
  4. package/dist/Button-CWZvWbMh.js.map +1 -0
  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-FL9pUwup.js → DatePicker-znH0ZAdX.js} +4 -4
  18. package/dist/{DatePicker-FL9pUwup.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/{IconButton-C7nGG3_D.js → IconButton-R8wpGZU_.js} +11 -11
  22. package/dist/IconButton-R8wpGZU_.js.map +1 -0
  23. package/dist/{InfoSummary-B6k4_vpG.js → InfoSummary-D8x-t44q.js} +2 -2
  24. package/dist/{InfoSummary-B6k4_vpG.js.map → InfoSummary-D8x-t44q.js.map} +1 -1
  25. package/dist/{Input-BLnysNxN.js → Input-BbQajtvC.js} +2 -2
  26. package/dist/{Input-BLnysNxN.js.map → Input-BbQajtvC.js.map} +1 -1
  27. package/dist/{Label-VE3hoSbt.js → Label-CBUa-x13.js} +2 -2
  28. package/dist/{Label-VE3hoSbt.js.map → Label-CBUa-x13.js.map} +1 -1
  29. package/dist/{Pagination-D-eoDEIJ.js → Pagination-i2_x464D.js} +4 -4
  30. package/dist/{Pagination-D-eoDEIJ.js.map → Pagination-i2_x464D.js.map} +1 -1
  31. package/dist/{SearchInput-vI-WcTPT.js → SearchInput-zePMheJK.js} +2 -2
  32. package/dist/{SearchInput-vI-WcTPT.js.map → SearchInput-zePMheJK.js.map} +1 -1
  33. package/dist/{Select-ChVwX-7Z.js → Select-CTEWtbKT.js} +4 -4
  34. package/dist/{Select-ChVwX-7Z.js.map → Select-CTEWtbKT.js.map} +1 -1
  35. package/dist/{Switch-DlZXMyGG.js → Switch-D3Eitmnj.js} +2 -2
  36. package/dist/{Switch-DlZXMyGG.js.map → Switch-D3Eitmnj.js.map} +1 -1
  37. package/dist/{TabSwitch-Co6kaDbi.js → TabSwitch-UPXOZTf4.js} +2 -2
  38. package/dist/{TabSwitch-Co6kaDbi.js.map → TabSwitch-UPXOZTf4.js.map} +1 -1
  39. package/dist/{TextArea-s6HdNSc5.js → TextArea-BMJWFF3y.js} +3 -3
  40. package/dist/{TextArea-s6HdNSc5.js.map → TextArea-BMJWFF3y.js.map} +1 -1
  41. package/dist/{Typography-u0BPHgCr.js → Typography-CcQTHV-F.js} +3 -3
  42. package/dist/Typography-CcQTHV-F.js.map +1 -0
  43. package/dist/breadcrumb.js +2 -2
  44. package/dist/button.d.ts +1 -1
  45. package/dist/button.js +2 -2
  46. package/dist/check-item.js +2 -2
  47. package/dist/checkbox.js +2 -2
  48. package/dist/chip-list.js +4 -4
  49. package/dist/chip.js +2 -2
  50. package/dist/color-picker.js +3 -3
  51. package/dist/context-menu.js +3 -3
  52. package/dist/date-picker.js +4 -4
  53. package/dist/file-input.js +3 -3
  54. package/dist/icon-button.d.ts +1 -1
  55. package/dist/icon-button.js +1 -1
  56. package/dist/{index-j6W-PwB7.d.ts → index-BmFKokpv.d.ts} +2 -2
  57. package/dist/{index-D6on4J-S.d.ts → index-BxDK_Go8.d.ts} +2 -2
  58. package/dist/{index-qPJuO65u.d.ts → index-C22JJ_rW.d.ts} +2 -2
  59. package/dist/{index-2zCiMZnT.d.ts → index-DmtZ59pQ.d.ts} +3 -3
  60. package/dist/{index-CbJb0T-H.d.ts → index-qbGRvq3Q.d.ts} +6 -1
  61. package/dist/index.d.ts +5 -5
  62. package/dist/index.js +21 -21
  63. package/dist/info-summary.js +2 -2
  64. package/dist/input.d.ts +1 -1
  65. package/dist/input.js +3 -3
  66. package/dist/pagination.js +4 -4
  67. package/dist/searchInput.js +3 -3
  68. package/dist/select.d.ts +1 -1
  69. package/dist/select.js +4 -4
  70. package/dist/switch.js +2 -2
  71. package/dist/tab-switch.js +2 -2
  72. package/dist/text-area.d.ts +1 -1
  73. package/dist/text-area.js +3 -3
  74. package/dist/typography.js +1 -1
  75. package/package.json +1 -1
  76. package/dist/Button-o_4n7GFO.js.map +0 -1
  77. package/dist/IconButton-C7nGG3_D.js.map +0 -1
  78. 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,e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-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;EAC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oB,UAAU;IACtC,OAAO,EAAE,oBAAoB,YAAY;IACzC,QAAQ,EAAE,oBAAoB,UAAU;IACzC,EACF;GACF;EAED,MAAM;GACJ,GAAG,UAAU;GACb,GAAG,mBAAmB;GACtB,OAAO,SAAS,mBAAmB,SAAS;GAC5C,GAAI,oBAAoB;IACtB,gBAAgB;IAChB,SAAS;IACV;GACF;EACF,CAAC;;;;;ACvBJ,MAAaC,cAAwC,UAAS;CAC5D,MAAM,EACJ,IACA,IACA,MACA,SACA,UACA,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.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  import "./types-CT7e5nFJ.js";
2
- import { t as Button } from "./index-CbJb0T-H.js";
2
+ import { t as Button } from "./index-qbGRvq3Q.js";
3
3
  export { Button };
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-o_4n7GFO.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-FL9pUwup.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-o_4n7GFO.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 };
@@ -1,2 +1,2 @@
1
- import { t as IconButton } from "./index-2zCiMZnT.js";
1
+ import { t as IconButton } from "./index-DmtZ59pQ.js";
2
2
  export { IconButton };
@@ -1,4 +1,4 @@
1
1
  import "./useThemedStyles-Dco_54KA.js";
2
- import { t as IconButton } from "./IconButton-C7nGG3_D.js";
2
+ import { t as IconButton } from "./IconButton-R8wpGZU_.js";
3
3
 
4
4
  export { IconButton };
@@ -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
@@ -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_runtime1.JSX.Element;
71
71
  //#endregion
72
72
  export { TextArea as t };
73
- //# sourceMappingURL=index-D6on4J-S.d.ts.map
73
+ //# sourceMappingURL=index-BxDK_Go8.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
@@ -26,8 +26,8 @@ declare function createIconButtonStyles(props: IconButtonProps): {
26
26
  outline: string;
27
27
  };
28
28
  };
29
- minHeight: string;
30
- minWidth: string;
29
+ height: string;
30
+ width: string;
31
31
  };
32
32
  };
33
33
  //#endregion
@@ -51,4 +51,4 @@ type IconButtonVariant = 'filled' | 'outlined' | 'ghost';
51
51
  declare const IconButton: React.FC<IconButtonProps>;
52
52
  //#endregion
53
53
  export { IconButton as t };
54
- //# sourceMappingURL=index-2zCiMZnT.d.ts.map
54
+ //# sourceMappingURL=index-DmtZ59pQ.d.ts.map
@@ -10,6 +10,7 @@ declare function createButtonStyles({
10
10
  variant,
11
11
  fullWidth,
12
12
  textAlign,
13
+ borderRadius,
13
14
  outlineColor
14
15
  }: ButtonProps): {
15
16
  container: {
@@ -60,6 +61,10 @@ type ButtonSize = 'xs' | 'sm' | 'md' | 'lg';
60
61
  interface ButtonProps extends PaddingProps, LayoutProps {
61
62
  /** Text label displayed inside the button */
62
63
  label: string;
64
+ /** Border radius of the button */
65
+ borderRadius?: string;
66
+ /** className of the button */
67
+ className?: string;
63
68
  /** Text variant of the button label */
64
69
  labelVariant?: TypographyVariant;
65
70
  /** Size of the button */
@@ -122,4 +127,4 @@ interface ButtonProps extends PaddingProps, LayoutProps {
122
127
  declare const Button: React.FC<ButtonProps>;
123
128
  //#endregion
124
129
  export { Button as t };
125
- //# sourceMappingURL=index-CbJb0T-H.d.ts.map
130
+ //# sourceMappingURL=index-qbGRvq3Q.d.ts.map
package/dist/index.d.ts CHANGED
@@ -1,16 +1,16 @@
1
1
  import "./types-CT7e5nFJ.js";
2
- import { t as Button } from "./index-CbJb0T-H.js";
3
- import { t as IconButton } from "./index-2zCiMZnT.js";
2
+ import { t as Button } from "./index-qbGRvq3Q.js";
3
+ import { t as IconButton } from "./index-DmtZ59pQ.js";
4
4
  import { n as types_d_exports$1, t as ColorPicker } from "./index-CLDq1eQr.js";
5
5
  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-D6on4J-S.js";
13
+ import { t as TextArea } from "./index-BxDK_Go8.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-FL9pUwup.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-CTEWtbKT.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";
21
- import { t as IconButton } from "./IconButton-C7nGG3_D.js";
22
- import { t as Pagination } from "./Pagination-D-eoDEIJ.js";
20
+ import { t as ChipList } from "./ChipList-CmO2ctak.js";
21
+ import { t as IconButton } from "./IconButton-R8wpGZU_.js";
22
+ import { t as Pagination } from "./Pagination-i2_x464D.js";
23
23
  import "./Loader-BTp8PCMz.js";
24
- import { t as Button } from "./Button-o_4n7GFO.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-BbQajtvC.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-BbQajtvC.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
- import "./IconButton-C7nGG3_D.js";
5
- import { t as Pagination } from "./Pagination-D-eoDEIJ.js";
4
+ import "./IconButton-R8wpGZU_.js";
5
+ import { t as Pagination } from "./Pagination-i2_x464D.js";
6
6
  import "./Loader-BTp8PCMz.js";
7
- import "./Button-o_4n7GFO.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-CTEWtbKT.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-BbQajtvC.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-D6on4J-S.js";
1
+ import { t as TextArea } from "./index-BxDK_Go8.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.35",
3
+ "version": "1.2.37",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "author": "softable",
@@ -1 +0,0 @@
1
- {"version":3,"file":"Button-o_4n7GFO.js","names":["ButtonLoader: React.FC<Props>","Button: React.FC<ButtonProps>"],"sources":["../src/components/commons/buttons/Button/components/ButtonLoader/styles.ts","../src/components/commons/buttons/Button/components/ButtonLoader/index.tsx","../src/components/commons/buttons/Button/styles.ts","../src/components/commons/buttons/Button/index.tsx"],"sourcesContent":["// Types\nimport { styled, type StyleMap } from '@hooks/useThemedStyles/types'\n\nexport function createButtonLoaderStyles(): StyleMap {\n return styled({\n container: {\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n\n borderRadius: 'var(--px-border-radius-button)',\n backgroundColor: 'inherit'\n }\n })\n}\n","// External Libraries\nimport type React from 'react'\nimport { motion } from 'framer-motion'\n\n// Components\nimport { Loader } from '@components/commons/toolkit/Loader'\n\n// Hooks\nimport { useThemedStyles } from '@hooks/useThemedStyles'\n\n// Styles\nimport { createButtonLoaderStyles } from './styles'\n\ntype Props = {\n color: string\n}\n\nexport const ButtonLoader: React.FC<Props> = ({ color }) => {\n // Hooks\n const { styles } = useThemedStyles({}, createButtonLoaderStyles, {})\n\n return (\n <motion.div\n style={styles.container}\n initial={{ opacity: 0 }}\n animate={{ opacity: 1 }}\n exit={{ opacity: 0 }}\n >\n <Loader color={color} />\n </motion.div>\n )\n}\n","// Types\nimport { styled } from '@hooks/useThemedStyles/types'\nimport type { ButtonProps, ButtonSize, ButtonVariant } from './types'\n\nexport function createButtonStyles({\n size,\n color,\n variant,\n fullWidth,\n textAlign,\n outlineColor\n}: ButtonProps) {\n const finalVariant = variant ?? 'filled'\n\n return styled({\n container: {\n minHeight: getSize(size ?? 'md'),\n width: fullWidth ? '100%' : 'fit-content',\n\n position: 'relative',\n display: 'flex',\n justifyContent: textAlign || 'center',\n\n padding: '0.625rem var(--px-space-xl)',\n gap: 'var(--px-space-sm)',\n\n borderRadius: 'var(--px-radius-lg)',\n\n cursor: 'pointer',\n overflow: 'hidden',\n\n border: getBorder(finalVariant, outlineColor || color),\n backgroundColor: getBackgroundColor(finalVariant, color),\n boxShadow: variant === 'outlined' ? 'var(--px-shadow-xs)' : 'none',\n\n __rules: {\n '&:hover': {\n opacity: '0.85 !important'\n },\n\n '&:disabled': {\n opacity: '0.5 !important',\n cursor: 'not-allowed !important'\n },\n\n '&:focus': {\n outlineOffset: '2px',\n outline: '2px solid var(--px-color-primary) !important'\n }\n }\n },\n\n content: {\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n\n padding: '0',\n borderRadius: 'inherit',\n\n whiteSpace: 'nowrap',\n columnGap: 'var(--px-space-sm)',\n\n backgroundColor: 'inherit'\n }\n })\n}\n\nfunction getSize(size: ButtonSize | string): string {\n switch (size) {\n case 'lg':\n return '3.25rem'\n case 'md':\n return '2.75rem'\n case 'sm':\n return '2.25rem'\n case 'xs':\n return '1.75rem'\n default:\n return size\n }\n}\n\nfunction getBackgroundColor(variant: ButtonVariant, color?: string): string {\n if (color) return color\n\n if (variant === 'filled') return 'var(--px-btn-filled-bg)'\n\n if (variant === 'outlined') return 'transparent'\n\n if (variant === 'ghost') return 'transparent'\n\n return 'var(--px-btn-filled-bg)'\n}\n\nfunction getBorder(variant: ButtonVariant, color?: string): string {\n if (color) return `1px solid ${color}`\n\n if (variant === 'filled') return '1px solid var(--px-btn-filled-bg)'\n\n if (variant === 'outlined') return '1px solid var(--px-border-primary)'\n\n if (variant === 'ghost') return 'none'\n\n return '1px solid var(--px-color-primary)'\n}\n\nexport function getTextColor({ variant, labelColor }: ButtonProps): string {\n if (labelColor) return labelColor\n\n if (variant === 'filled') return 'var(--px-btn-filled-label)'\n\n if (variant === 'outlined') return 'var(--px-btn-outlined-label)'\n\n if (variant === 'ghost') return '--px-btn-ghost-label'\n\n return 'var(--px-btn-filled-label)'\n}\n","// External Libraries\nimport type React from 'react'\nimport type { MouseEvent } from 'react'\nimport { AnimatePresence } from 'framer-motion'\n\n// Components\nimport { ButtonLoader } from './components/ButtonLoader'\nimport { Typography } from '@components/commons/toolkit/Typography'\n\n// Hooks\nimport { useThemedStyles } from '@hooks/useThemedStyles'\n\n// Types\nimport type { ButtonProps } from './types'\n\n// Styles\nimport { createButtonStyles, getTextColor } from './styles'\n\nexport const Button: React.FC<ButtonProps> = ({\n type = 'button',\n variant = 'filled',\n ...rest\n}) => {\n // Constants\n const disabled = rest.disabled || rest.loading\n const resolvedProps = { type, variant, disabled, ...rest }\n const textColor = getTextColor(resolvedProps)\n const { label, endIcon, startIcon, loading } = resolvedProps\n\n // Hooks\n const { styles, classes } = useThemedStyles(\n resolvedProps,\n createButtonStyles,\n {\n override: rest.styles,\n applyCommonProps: true,\n commonSlot: 'container',\n pick: p => [p.disabled, p.loading, p.variant, p.label, p.color]\n }\n )\n\n // Functions\n function handleButtonClick(event: MouseEvent<HTMLButtonElement>) {\n if (disabled) return\n\n if (rest.onClick) rest.onClick(event)\n }\n\n return (\n <button\n type={type}\n form={rest.form}\n disabled={disabled}\n aria-busy={rest.loading}\n style={styles.container}\n className={classes.container}\n onClick={handleButtonClick}\n >\n <div style={styles.content}>\n {startIcon ?? null}\n\n <Typography\n color={textColor}\n fontSize={resolvedProps.fontSize}\n variant={rest.labelVariant || 'b1'}\n >\n {label}\n </Typography>\n\n {endIcon ?? null}\n\n {loading ? (\n <AnimatePresence>\n <ButtonLoader color={textColor} />\n </AnimatePresence>\n ) : null}\n </div>\n </button>\n )\n}\n"],"mappings":";;;;;;;AAGA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S,KAAK,gBAAgB;eAE7B;MACU;IAEZ,WAAW;IAEX,UACC,oBAAC,6BACC,oBAAC,gBAAa,OAAO,YAAa,GAClB,GAChB;;IACA;GACC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"IconButton-C7nGG3_D.js","names":["IconButton: React.FC<IconButtonProps>"],"sources":["../src/components/commons/buttons/IconButton/styles.ts","../src/components/commons/buttons/IconButton/index.tsx"],"sourcesContent":["// Types\nimport type {\n IconButtonSize,\n IconButtonProps,\n IconButtonVariant\n} from './types'\nimport { styled } from '@hooks/useThemedStyles/types'\n\nexport function createIconButtonStyles(props: IconButtonProps) {\n const {\n variant = 'outlined',\n size = 'md',\n borderColor,\n backgroundColor,\n rounded = 'var(--px-radius-lg)'\n } = props\n\n return styled({\n button: {\n ...getSize(size),\n\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n\n cursor: 'pointer',\n userSelect: 'none',\n\n borderRadius: rounded,\n border: getBorder(variant, borderColor),\n backgroundColor: getBackgroundColor(variant, backgroundColor),\n boxShadow: 'var(--px-shadow-xs)',\n\n __rules: {\n '&:not(:disabled):hover': {\n opacity: '0.85 !important'\n },\n\n '&:disabled': {\n opacity: '0.5 !important',\n cursor: 'not-allowed !important'\n },\n\n '&:focus': {\n outlineOffset: '2px',\n outline: '2px solid var(--px-color-primary) !important'\n }\n }\n }\n })\n}\n\nfunction getSize(size: IconButtonSize) {\n switch (size) {\n case 'lg':\n return { minHeight: '3.25rem', minWidth: '3.25rem' }\n case 'md':\n return { minHeight: '2.75rem', minWidth: '2.75rem' }\n case 'sm':\n return { minHeight: '2.25rem', minWidth: '2.25rem' }\n case 'xs':\n return { minHeight: '1.75rem', minWidth: '1.75rem' }\n default:\n return { minHeight: size, minWidth: size }\n }\n}\n\nfunction getBackgroundColor(\n variant?: IconButtonVariant,\n color?: string\n): string {\n if (color) return color\n\n if (variant === 'filled') return 'var(--px-btn-filled-bg)'\n\n if (variant === 'outlined') return 'transparent'\n\n if (variant === 'ghost') return 'transparent'\n\n return 'var(--px-btn-outlined-bg)'\n}\n\nfunction getBorder(variant?: IconButtonVariant, color?: string): string {\n if (color) return `1px solid ${color}`\n\n if (variant === 'filled') return '1px solid var(--px-btn-filled-bg)'\n\n if (variant === 'outlined') return '1px solid var(--px-border-primary)'\n\n if (variant === 'ghost') return 'none'\n\n return '1px solid var(--px-color-primary)'\n}\n","// Hooks\nimport { useThemedStyles } from '@hooks/useThemedStyles'\n\n// Types\nimport type { IconButtonProps } from './types'\n\n// Styles\nimport { createIconButtonStyles } from './styles'\n\nexport const IconButton: React.FC<IconButtonProps> = props => {\n // Constants\n const disabled = props.isDisabled || props.isLoading\n\n // Hooks\n const { styles, classes } = useThemedStyles(props, createIconButtonStyles, {\n pick: p => [p.size, p.variant, p.borderColor, p.backgroundColor],\n override: props.styles,\n applyCommonProps: true,\n commonSlot: 'button'\n })\n\n return (\n <button\n type=\"button\"\n disabled={disabled}\n style={styles.button}\n className={classes.button}\n aria-busy={props.isLoading}\n onClick={props.onClick}\n >\n {props.icon}\n </button>\n )\n}\n"],"mappings":";;;;AAQA,SAAgB,uBAAuB,OAAwB;CAC7D,MAAM,EACJ,UAAU,YACV,OAAO,MACP,aACA,iBACA,UAAU,0BACR;AAEJ,QAAO,OAAO,EACZ,QAAQ;EACN,GAAG,QAAQ,KAAK;EAEhB,SAAS;EACT,YAAY;EACZ,gBAAgB;EAEhB,QAAQ;EACR,YAAY;EAEZ,cAAc;EACd,QAAQ,UAAU,SAAS,YAAY;EACvC,iBAAiB,mBAAmB,SAAS,gBAAgB;EAC7D,WAAW;EAEX,SAAS;GACP,0BAA0B,EACxB,SAAS,mBACV;GAED,cAAc;IACZ,SAAS;IACT,QAAQ;IACT;GAED,WAAW;IACT,eAAe;IACf,SAAS;IACV;GACF;EACF,EACF,CAAC;;AAGJ,SAAS,QAAQ,MAAsB;AACrC,SAAQ,MAAR;EACE,KAAK,KACH,QAAO;GAAE,WAAW;GAAW,UAAU;GAAW;EACtD,KAAK,KACH,QAAO;GAAE,WAAW;GAAW,UAAU;GAAW;EACtD,KAAK,KACH,QAAO;GAAE,WAAW;GAAW,UAAU;GAAW;EACtD,KAAK,KACH,QAAO;GAAE,WAAW;GAAW,UAAU;GAAW;EACtD,QACE,QAAO;GAAE,WAAW;GAAM,UAAU;GAAM;;;AAIhD,SAAS,mBACP,SACA,OACQ;AACR,KAAI,MAAO,QAAO;AAElB,KAAI,YAAY,SAAU,QAAO;AAEjC,KAAI,YAAY,WAAY,QAAO;AAEnC,KAAI,YAAY,QAAS,QAAO;AAEhC,QAAO;;AAGT,SAAS,UAAU,SAA6B,OAAwB;AACtE,KAAI,MAAO,QAAO,aAAa;AAE/B,KAAI,YAAY,SAAU,QAAO;AAEjC,KAAI,YAAY,WAAY,QAAO;AAEnC,KAAI,YAAY,QAAS,QAAO;AAEhC,QAAO;;;;;AClFT,MAAaA,cAAwC,UAAS;CAE5D,MAAM,WAAW,MAAM,cAAc,MAAM;CAG3C,MAAM,EAAE,QAAQ,YAAY,gBAAgB,OAAO,wBAAwB;EACzE,OAAM,MAAK;GAAC,EAAE;GAAM,EAAE;GAAS,EAAE;GAAa,EAAE;GAAgB;EAChE,UAAU,MAAM;EAChB,kBAAkB;EAClB,YAAY;EACb,CAAC;AAEF,QACE,oBAAC;EACC,MAAK;EACK;EACV,OAAO,OAAO;EACd,WAAW,QAAQ;EACnB,aAAW,MAAM;EACjB,SAAS,MAAM;YAEd,MAAM;GACA"}
@@ -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;EACpB,eAAe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