softable-pixels-web 1.2.4 → 1.2.5

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 (137) hide show
  1. package/dist/{BasePopover-m1OfX3fO.js → BasePopover-Bcy5d1t5.js} +4 -4
  2. package/dist/BasePopover-Bcy5d1t5.js.map +1 -0
  3. package/dist/{Breadcrumb-Bxd_E7ov.js → Breadcrumb-Doo-Ajul.js} +4 -4
  4. package/dist/{Breadcrumb-Bxd_E7ov.js.map → Breadcrumb-Doo-Ajul.js.map} +1 -1
  5. package/dist/{Button-B8fUoKUH.js → Button-DSMdOqri.js} +4 -4
  6. package/dist/{Button-B8fUoKUH.js.map → Button-DSMdOqri.js.map} +1 -1
  7. package/dist/{CheckItem-BtcT3Qu0.js → CheckItem-CHkw5t6c.js} +4 -4
  8. package/dist/{CheckItem-BtcT3Qu0.js.map → CheckItem-CHkw5t6c.js.map} +1 -1
  9. package/dist/{Checkbox-Oy1RP6NR.js → Checkbox-DU8VoDgU.js} +4 -4
  10. package/dist/{Checkbox-Oy1RP6NR.js.map → Checkbox-DU8VoDgU.js.map} +1 -1
  11. package/dist/{Chip-DzHP3iyU.js → Chip-CINbb2Hf.js} +3 -3
  12. package/dist/{Chip-DzHP3iyU.js.map → Chip-CINbb2Hf.js.map} +1 -1
  13. package/dist/{ChipList-Csyg7DJ2.js → ChipList-Dspe8Tf9.js} +5 -4
  14. package/dist/{ChipList-Csyg7DJ2.js.map → ChipList-Dspe8Tf9.js.map} +1 -1
  15. package/dist/{ColorPicker-DSGLaSWK.js → ColorPicker-CdECHCbh.js} +5 -4
  16. package/dist/{ColorPicker-DSGLaSWK.js.map → ColorPicker-CdECHCbh.js.map} +1 -1
  17. package/dist/{ContextMenu-Dpmf4SgX.js → ContextMenu-CtRqfo8w.js} +5 -5
  18. package/dist/{ContextMenu-Dpmf4SgX.js.map → ContextMenu-CtRqfo8w.js.map} +1 -1
  19. package/dist/ErrorMessage-DOkrG22I.js +28 -0
  20. package/dist/ErrorMessage-DOkrG22I.js.map +1 -0
  21. package/dist/{Icon-CV5fAqK7.js → Icon-C_yI8e6Z.js} +21 -3
  22. package/dist/Icon-C_yI8e6Z.js.map +1 -0
  23. package/dist/{IconButton-BkwXYUL1.js → IconButton-DQaptukh.js} +2 -2
  24. package/dist/{IconButton-BkwXYUL1.js.map → IconButton-DQaptukh.js.map} +1 -1
  25. package/dist/{InfoSummary-BVOiGuug.js → InfoSummary-CQnTQYJJ.js} +3 -3
  26. package/dist/{InfoSummary-BVOiGuug.js.map → InfoSummary-CQnTQYJJ.js.map} +1 -1
  27. package/dist/{Input-CYBXA7Ju.js → Input-BKZ3l3ps.js} +6 -5
  28. package/dist/{Input-CYBXA7Ju.js.map → Input-BKZ3l3ps.js.map} +1 -1
  29. package/dist/Label-CPua_PPu.js +25 -0
  30. package/dist/Label-CPua_PPu.js.map +1 -0
  31. package/dist/{Loader-DUqRFMzl.js → Loader-DqDWamjq.js} +2 -2
  32. package/dist/{Loader-DUqRFMzl.js.map → Loader-DqDWamjq.js.map} +1 -1
  33. package/dist/{MaskModule-ChyYaHh2.js → MaskModule-CUFXLKZU.js} +1 -1
  34. package/dist/{MaskModule-ChyYaHh2.js.map → MaskModule-CUFXLKZU.js.map} +1 -1
  35. package/dist/{Popover-tzAZp6V7.js → Popover-DGYahpRI.js} +4 -4
  36. package/dist/{Popover-tzAZp6V7.js.map → Popover-DGYahpRI.js.map} +1 -1
  37. package/dist/SearchInput-Ol5FJDHS.js +107 -0
  38. package/dist/SearchInput-Ol5FJDHS.js.map +1 -0
  39. package/dist/{Select-hia3M0E1.js → Select-BO2A8Wdu.js} +8 -7
  40. package/dist/{Select-hia3M0E1.js.map → Select-BO2A8Wdu.js.map} +1 -1
  41. package/dist/{Skeleton-iCdZ2Gai.js → Skeleton-CixPhMzv.js} +2 -2
  42. package/dist/{Skeleton-iCdZ2Gai.js.map → Skeleton-CixPhMzv.js.map} +1 -1
  43. package/dist/{Switch-CiKBZRST.js → Switch-ySpoqwBk.js} +2 -2
  44. package/dist/{Switch-CiKBZRST.js.map → Switch-ySpoqwBk.js.map} +1 -1
  45. package/dist/{TabSwitch-CAxR1ipv.js → TabSwitch-B5deD9nz.js} +3 -3
  46. package/dist/{TabSwitch-CAxR1ipv.js.map → TabSwitch-B5deD9nz.js.map} +1 -1
  47. package/dist/{TextArea-B0rRWXsg.js → TextArea-Cne9IZEW.js} +5 -4
  48. package/dist/{TextArea-B0rRWXsg.js.map → TextArea-Cne9IZEW.js.map} +1 -1
  49. package/dist/{ThemeContext-C9llUBqb.js → ThemeContext-DDE631iU.js} +1 -1
  50. package/dist/{ThemeContext-C9llUBqb.js.map → ThemeContext-DDE631iU.js.map} +1 -1
  51. package/dist/{Typography-gvXwbYdT.js → Typography-CKSjnDPX.js} +2 -2
  52. package/dist/{Typography-gvXwbYdT.js.map → Typography-CKSjnDPX.js.map} +1 -1
  53. package/dist/base-popover.d.ts +3 -3
  54. package/dist/base-popover.js +5 -5
  55. package/dist/breadcrumb.d.ts +1 -1
  56. package/dist/breadcrumb.js +4 -4
  57. package/dist/button.d.ts +2 -2
  58. package/dist/button.js +4 -4
  59. package/dist/check-item.d.ts +1 -1
  60. package/dist/check-item.js +4 -4
  61. package/dist/checkbox.d.ts +2 -2
  62. package/dist/checkbox.js +4 -4
  63. package/dist/chip-list.d.ts +1 -1
  64. package/dist/chip-list.js +6 -5
  65. package/dist/chip.d.ts +1 -1
  66. package/dist/chip.js +3 -3
  67. package/dist/color-picker.d.ts +1 -1
  68. package/dist/color-picker.js +6 -5
  69. package/dist/context-menu.d.ts +1 -1
  70. package/dist/context-menu.js +8 -8
  71. package/dist/icon-button.d.ts +1 -1
  72. package/dist/icon-button.js +2 -2
  73. package/dist/{index-BEd1qAu7.d.ts → index-5eyvKw2O.d.ts} +1 -1
  74. package/dist/{index-IIjo6avX.d.ts → index-B9mLvqQT.d.ts} +1 -1
  75. package/dist/{index-CNPbAm9i.d.ts → index-BWN2i3t9.d.ts} +5 -5
  76. package/dist/{index-BwxZG9_q.d.ts → index-BXZ-OM5P.d.ts} +2 -2
  77. package/dist/{index-Bg-qBbvL.d.ts → index-BY5IQiDl.d.ts} +1 -1
  78. package/dist/{index-C2rKLkDO.d.ts → index-CAMj03qs.d.ts} +1 -1
  79. package/dist/index-CBfW89pi.d.ts +20 -0
  80. package/dist/{index-DsQyEI6l.d.ts → index-CEGANhbI.d.ts} +1 -1
  81. package/dist/{index-ChkulgEl.d.ts → index-CGPCzJ5m.d.ts} +2 -2
  82. package/dist/{index-XBmzyFW4.d.ts → index-CqmzOJc_.d.ts} +2 -2
  83. package/dist/{index-BbvC10jX.d.ts → index-D5OTHkPO.d.ts} +2 -2
  84. package/dist/{index-DCocNerH.d.ts → index-D5Zfkj5F.d.ts} +4 -4
  85. package/dist/{index-DvbYyCcE.d.ts → index-DEAzVsKY.d.ts} +2 -2
  86. package/dist/{index-B9Ooz6lk.d.ts → index-DLbeWu4b.d.ts} +4 -4
  87. package/dist/{index-B9PAov_V.d.ts → index-DVB1TrWc.d.ts} +2 -2
  88. package/dist/{index-BZ2ZYR1Y.d.ts → index-YN8kSeey.d.ts} +2 -2
  89. package/dist/{index-CehwJRt_.d.ts → index-butzJA6r.d.ts} +2 -2
  90. package/dist/{index-Du2b4ABa.d.ts → index-hJBCuHQu.d.ts} +3 -3
  91. package/dist/{index-v28FA4ph.d.ts → index-y7Z04PKd.d.ts} +3 -3
  92. package/dist/index.d.ts +23 -22
  93. package/dist/index.js +30 -28
  94. package/dist/info-summary.js +3 -3
  95. package/dist/input.d.ts +1 -1
  96. package/dist/input.js +7 -6
  97. package/dist/mask-modules.d.ts +1 -1
  98. package/dist/mask-modules.js +1 -1
  99. package/dist/popover.d.ts +2 -2
  100. package/dist/popover.js +4 -4
  101. package/dist/searchInput.d.ts +2 -0
  102. package/dist/searchInput.js +7 -0
  103. package/dist/select.d.ts +2 -2
  104. package/dist/select.js +11 -10
  105. package/dist/skeleton.d.ts +1 -1
  106. package/dist/skeleton.js +2 -2
  107. package/dist/{styleProps-CrD6h1FM.d.ts → styleProps-BTRkIoXb.d.ts} +1 -1
  108. package/dist/switch.d.ts +1 -1
  109. package/dist/switch.js +2 -2
  110. package/dist/tab-switch.d.ts +1 -1
  111. package/dist/tab-switch.js +3 -3
  112. package/dist/text-area.d.ts +1 -1
  113. package/dist/text-area.js +5 -4
  114. package/dist/theme-context.d.ts +1 -1
  115. package/dist/theme-context.js +1 -1
  116. package/dist/{types-B-zFTnqe.d.ts → types-C0u1I3AZ.d.ts} +3 -3
  117. package/dist/{types-Cr3L1i9Q.d.ts → types-CLnohr-1.d.ts} +1 -1
  118. package/dist/{types-B4Yk1AUa.d.ts → types-CTYkmfAB.d.ts} +1 -1
  119. package/dist/{types-oQ4y-S7G.d.ts → types-aSZkOYQF.d.ts} +3 -3
  120. package/dist/typography.d.ts +1 -1
  121. package/dist/typography.js +2 -2
  122. package/dist/use-dismiss.js +1 -1
  123. package/dist/use-floating.d.ts +1 -1
  124. package/dist/use-floating.js +1 -1
  125. package/dist/{useDismiss-w2spkFNN.js → useDismiss-D-z-tDnD.js} +1 -1
  126. package/dist/{useDismiss-w2spkFNN.js.map → useDismiss-D-z-tDnD.js.map} +1 -1
  127. package/dist/{useFloating-BkMrolmn.js → useFloating-CNaOVlhE.js} +1 -1
  128. package/dist/{useFloating-BkMrolmn.js.map → useFloating-CNaOVlhE.js.map} +1 -1
  129. package/dist/{useThemedStyles-0XwrILh9.d.ts → useThemedStyles-B4g2CRsn.d.ts} +1 -1
  130. package/dist/{useThemedStyles-CV4ryZLN.js → useThemedStyles-BJWB5BTH.js} +1 -1
  131. package/dist/{useThemedStyles-CV4ryZLN.js.map → useThemedStyles-BJWB5BTH.js.map} +1 -1
  132. package/package.json +8 -1
  133. package/dist/BasePopover-m1OfX3fO.js.map +0 -1
  134. package/dist/ErrorMessage-CGFZglzN.js +0 -49
  135. package/dist/ErrorMessage-CGFZglzN.js.map +0 -1
  136. package/dist/Icon-CV5fAqK7.js.map +0 -1
  137. /package/dist/{chunk-DBn-LkE6.js → chunk-BgJRG4ys.js} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeContext-C9llUBqb.js","names":["result: any","out: any","defaultThemes: ThemeRegistry","ThemeProvider: React.FC<ThemeProviderProps>"],"sources":["../src/utils/functions/deepMerge.ts","../src/contexts/ThemeContext/constants.ts","../src/contexts/ThemeContext/utils/general.ts","../src/contexts/ThemeContext/utils/themeToCSSVars.ts","../src/contexts/ThemeContext/index.tsx"],"sourcesContent":["/** biome-ignore-all lint/suspicious/noExplicitAny: <Not needed> */\nexport type DeepPartial<T> = {\n [P in keyof T]?: T[P] extends Array<infer U>\n ? Array<DeepPartial<U>>\n : T[P] extends object\n ? DeepPartial<T[P]>\n : T[P]\n}\n\nexport function deepMerge<T>(base: T, override?: DeepPartial<T>): T {\n if (override === undefined) return clone(base)\n\n if (!isPlainObject(base) || !isPlainObject(override)) {\n return clone(override as T)\n }\n\n const result: any = Array.isArray(base) ? [] : {}\n\n const baseKeys = Object.keys(base as any) as (keyof T)[]\n const overrideKeys = Object.keys(override as any) as (keyof T)[]\n\n const allKeys = Array.from(new Set([...baseKeys, ...overrideKeys]))\n\n for (const k of allKeys) {\n const baseVal = (base as any)[k]\n const overrideVal = (override as any)[k]\n\n if (overrideVal === undefined) {\n result[k] = clone(baseVal)\n continue\n }\n\n if (isPlainObject(baseVal) && isPlainObject(overrideVal)) {\n result[k] = deepMerge(baseVal, overrideVal)\n continue\n }\n\n result[k] = clone(overrideVal)\n }\n\n return result as T\n}\n\nfunction isPlainObject(x: any): x is Record<string, any> {\n return !!x && typeof x === 'object' && !Array.isArray(x)\n}\n\nfunction clone<T>(v: T): T {\n if (v === undefined || v === null) return v\n if (Array.isArray(v)) return v.map(item => clone(item)) as unknown as T\n if (isPlainObject(v)) {\n const out: any = {}\n for (const k of Object.keys(v)) out[k] = clone((v as any)[k])\n return out\n }\n return v\n}\n","// theme/defaultThemes.ts\nimport type { ThemeRegistry } from './types'\n\nconst COMMON_MAP = {\n spacing: {\n xs: '0.25rem', // 4px\n sm: '0.5rem', // 8px\n md: '1rem', // 16px\n lg: '1.5rem', // 24px\n xl: '2rem', // 32px\n '2xl': '3rem' // 48px\n },\n borderRadius: {\n none: '0rem', // 0px\n sm: '0.25rem', // 4px\n md: '0.375rem', // 6px\n lg: '0.5rem', // 8px\n xl: '0.75rem', // 12px\n full: '9999rem' // \"infinite\" radius equivalent\n },\n fontSize: {\n xs: '0.75rem', // 12px\n sm: '0.875rem', // 14px\n md: '1rem', // 16px\n lg: '1.125rem', // 18px\n xl: '1.25rem', // 20px\n '2xl': '1.5rem' // 24px\n },\n fontWeight: { normal: 400, medium: 500, semibold: 600, bold: 700 }\n} as const\n\nexport const defaultThemes: ThemeRegistry = {\n light: {\n colors: {\n scrollbar: '#0000001a',\n disabled: '#D5D7DA',\n\n primary: '#0EB24C',\n secondary: '#6C6C6C',\n success: '#0EB24C',\n warning: '#f59e0b',\n error: '#ef4444',\n destructive: '#ef4444',\n invalid: '#f87171',\n info: '#06b6d4',\n\n background: {\n primary: '#FFFFFF',\n skeleton: 'linear-gradient(-45deg, #ECECEC, #FAFAFA)',\n card: {\n primary: '#F4F4F4',\n secondary: '#F3F6F9',\n hover: '#f2f2f2'\n }\n },\n button: {\n filled: {\n label: '#FFFFFF',\n background: '#0EB24C'\n },\n\n outlined: {\n label: '#222222',\n borderColor: '#DDDDDD'\n },\n\n ghost: {\n label: '#6C6C6C'\n }\n },\n\n surface: '#FBFBFB',\n border: {\n primary: '#E8E8E9',\n secondary: '#E8E8E9'\n },\n\n text: {\n primary: '#222222',\n secondary: '#6C6C6C',\n disabled: '#A0A0A0',\n inverse: '#FFFFFF',\n error: '#EC3030'\n }\n },\n\n ...COMMON_MAP,\n\n shadows: {\n xs: '0px -1px 0px #0A0D120D inset, 0px 1px 2px #0A0D120D',\n sm: '0 1px 2px 0 rgba(0, 0, 0, 0.05)',\n md: '0 4px 6px -1px rgba(0, 0, 0, 0.10)',\n lg: '0 10px 15px -3px rgba(0, 0, 0, 0.10)',\n xl: '0 20px 25px -5px rgba(0, 0, 0, 0.10)',\n '2xl': '0 25px 50px -12px rgba(0, 0, 0, 0.25)',\n 'ring-1': '0 0 0 1px rgba(0, 0, 0, 0.05)',\n default: '0px 1px 2px 0px #0A0D120D'\n }\n },\n\n dark: {\n colors: {\n scrollbar: '#858585',\n disabled: '#D5D7DA',\n\n primary: '#0EB24C',\n secondary: '#C7CFD8',\n success: '#0EB24C',\n warning: '#f59e0b',\n error: '#ef4444',\n destructive: '#ef4444',\n invalid: '#f87171',\n info: '#06b6d4',\n\n background: {\n primary: '#090909',\n skeleton: 'linear-gradient(-45deg, #333333, #1F1F1F)',\n card: {\n primary: '#F4F4F4',\n secondary: '#202020',\n hover: '#e7e7e7'\n }\n },\n button: {\n filled: {\n label: '#FFFFFF',\n background: '#0EB24C'\n },\n\n outlined: {\n label: '#ECECEC',\n borderColor: '#DDDDDD'\n },\n\n ghost: {\n label: '#6C6C6C'\n }\n },\n\n surface: '#090909',\n\n border: {\n primary: '#27282D',\n secondary: '#27282D'\n },\n\n text: {\n primary: '#ECECEC',\n secondary: '#C7CFD8',\n disabled: '#8B93A0',\n inverse: '#090909',\n error: '#EC3030'\n }\n },\n\n ...COMMON_MAP,\n\n shadows: {\n xs: '0px -1px 0px #0A0D120D inset, 0px 1px 2px #0A0D120D',\n sm: '0 1px 2px 0 rgba(0, 0, 0, 0.35)',\n md: '0 4px 6px -1px rgba(0, 0, 0, 0.45)',\n lg: '0 10px 15px -3px rgba(0, 0, 0, 0.50)',\n xl: '0 20px 25px -5px rgba(0, 0, 0, 0.55)',\n '2xl': '0 25px 50px -12px rgba(0, 0, 0, 0.65)',\n 'ring-1': '0 0 0 1px rgba(0, 0, 0, 0.05)',\n default: '0px 1px 2px 0px #0A0D120D'\n }\n }\n}\n","// Utils\n/** biome-ignore-all lint/suspicious/noExplicitAny: <Not needed> */\nimport { deepMerge } from '@utils/functions'\nimport { defaultThemes } from '../constants'\n\n// Types\nimport type { ThemeMode, ThemeRegistry, ThemeTokens } from '../types'\n\n/**\n * Theme Utilities\n * ===============\n * Small DOM utilities used by the ThemeProvider to:\n * - toggle dark mode class for Tailwind compatibility\n * - inject CSS variables (`--px-*`) into the document root\n * - read/watch the OS/browser theme preference (`prefers-color-scheme`)\n *\n * These helpers are:\n * - **client-safe** (guarded for SSR)\n * - **framework-agnostic** (only touch `documentElement`)\n * - **tiny** (no dependencies)\n */\n\n/**\n * CSSVarMap\n * ---------\n * A map of CSS custom properties to be applied on the document root.\n *\n * Notes:\n * - Keys must be valid CSS variable names (e.g. `\"--px-bg\"`, `\"--px-text-primary\"`).\n * - Values can be strings or numbers.\n * - If you store numbers (e.g. 16), you decide at consumption time whether it means px.\n *\n * You can keep it generic:\n * Record<`--${string}`, string | number>\n *\n * Or restrict to your library prefix:\n * Record<`--px-${string}`, string | number>\n */\nexport type CSSVarMap = Partial<Record<`--${string}`, string | number>>\n\n/**\n * applyThemeClass(themeName)\n * -------------------------\n * Applies the light/dark mode class to the `<html>` element.\n *\n * Tailwind’s dark mode (in the common \"class\" strategy) typically relies on a\n * `.dark` class. This function toggles ONLY the `dark` class:\n *\n * - themeName `\"dark\"` => adds `.dark`\n * - themeName `\"light\"` => removes `.dark`\n *\n * SSR:\n * - No-op on the server (when `document` is undefined).\n */\nexport function applyThemeClass(themeName: 'light' | 'dark') {\n if (typeof document === 'undefined') return\n const root = document.documentElement\n root.classList.toggle('dark', themeName === 'dark')\n}\n\n/**\n * applyCssVars(vars)\n * ------------------\n * Injects CSS variables into the document root (`<html>`).\n *\n * This is how the library exposes theme tokens as CSS variables.\n * Components can then use `var(--px-...)` in styles.\n *\n * Example:\n * ```ts\n * applyCssVars({ '--px-bg': '#fff', '--px-text-primary': '#111' })\n * ```\n *\n * Behavior:\n * - Ignores `null` / `undefined` values.\n * - Converts all values to string before applying.\n *\n * SSR:\n * - No-op on the server (when `document` is undefined).\n */\nexport function applyCssVars(vars: CSSVarMap) {\n if (typeof document === 'undefined') return\n const root = document.documentElement\n\n for (const [key, value] of Object.entries(vars)) {\n if (value == null) continue\n root.style.setProperty(key, String(value))\n }\n}\n\n/**\n * getSystemThemeName()\n * --------------------\n * Returns the current OS/browser color scheme preference.\n *\n * It reads `prefers-color-scheme: dark` using `window.matchMedia`.\n *\n * Returns:\n * - `\"dark\"` if the user prefers dark mode\n * - `\"light\"` otherwise\n *\n * SSR:\n * - Returns `\"light\"` on the server (safe default).\n */\nexport function getSystemThemeName(): 'light' | 'dark' {\n if (typeof window === 'undefined') return 'light'\n const prefersDark =\n window.matchMedia?.('(prefers-color-scheme: dark)').matches ?? false\n return prefersDark ? 'dark' : 'light'\n}\n\n/**\n * watchSystemTheme(onChange)\n * --------------------------\n * Subscribes to changes in OS/browser theme preference.\n *\n * Use this when your selected mode is `\"system\"` so the app immediately reacts\n * when the user changes their OS theme.\n *\n * - Calls `onChange('light' | 'dark')` whenever the preference changes.\n * - Returns an `unsubscribe()` function.\n *\n * Implementation details:\n * - Uses `matchMedia('(prefers-color-scheme: dark)')`.\n * - Supports both modern `addEventListener('change', ...)` and legacy Safari\n * `addListener(...)` APIs.\n *\n * SSR:\n * - Returns a no-op unsubscribe function on the server.\n */\nexport function watchSystemTheme(onChange: (name: 'light' | 'dark') => void) {\n if (typeof window === 'undefined') return () => {}\n\n const mq = window.matchMedia('(prefers-color-scheme: dark)')\n\n const handler = () => onChange(mq.matches ? 'dark' : 'light')\n\n handler()\n\n if (mq.addEventListener) {\n mq.addEventListener('change', handler)\n return () => mq.removeEventListener('change', handler)\n }\n\n mq.addListener(handler as any)\n return () => mq.removeListener(handler as any)\n}\n\n/**\n * Resolves an effective theme name from a mode.\n */\nexport function resolveName(mode: ThemeMode): string {\n if (mode !== 'system') return mode\n return getSystemThemeName()\n}\n\n/**\n * Builds a registry of user theme patches.\n */\nexport function buildRegistry(\n userThemes?: Partial<ThemeRegistry>\n): ThemeRegistry {\n return {\n light: {},\n dark: {},\n ...(userThemes ?? {})\n } as ThemeRegistry\n}\n\n/**\n * Builds the final resolved theme tokens.\n */\nexport function buildTheme(\n registry: ThemeRegistry,\n resolvedName: string,\n override?: Partial<ThemeTokens>\n): ThemeTokens {\n const base: ThemeTokens =\n resolvedName === 'dark'\n ? (defaultThemes.dark as ThemeTokens)\n : (defaultThemes.light as ThemeTokens)\n\n const selectedPatch = (registry[resolvedName] ?? registry.light) as any\n\n const merged = deepMerge(base, selectedPatch)\n return deepMerge(merged, override)\n}\n\nexport function isThemeMode(value: unknown): value is ThemeMode {\n return typeof value === 'string' && value.length > 0\n}\n\nexport function getLocalStorageSafe(): Storage | null {\n if (typeof window === 'undefined') return null\n try {\n return window.localStorage\n } catch {\n return null\n }\n}\n","// Types\nimport type { CSSVarMap } from './general'\nimport type { ThemeTokens } from '../types'\n\n/**\n * themeToCssVars(theme)\n * ---------------------\n * Converts a resolved `ThemeTokens` object into a CSS variable map (`CSSVarMap`).\n *\n * The ThemeProvider uses this function to inject `--px-*` variables into the\n * document root (`<html>`). Components can then rely on stable CSS variables,\n * making them framework-agnostic and compatible with Tailwind (via `.dark`).\n *\n * Why CSS variables?\n * - They are fast (native to the browser)\n * - They work across any styling strategy (inline styles, CSS modules, Tailwind, etc.)\n * - They enable dynamic theme switching without rerendering every component\n *\n * Requirements / Assumptions:\n * - The input `theme` must be **fully resolved** (i.e. complete `ThemeTokens`).\n * The ThemeProvider is responsible for merging partial theme patches on top\n * of a complete base theme (light/dark defaults).\n *\n * Variable naming:\n * - All variables are prefixed with `--px-` to avoid collisions.\n * - Tokens are grouped by category (colors, surfaces, borders, text, spacing, radius, typography, shadows).\n *\n * Notes:\n * - Spacing/radius/fontSize tokens are stored as numbers (e.g. `16`), which is valid\n * for CSS variables. When consuming them, you can:\n * - append `px` in JS (`${var}px`), or\n * - store them as strings here (e.g. `\"16px\"`) if you prefer.\n *\n * Example usage (component styles):\n * ```ts\n * const styles = {\n * background: 'var(--px-bg)',\n * color: 'var(--px-text-primary)',\n * borderColor: 'var(--px-border-primary)',\n * }\n * ```\n *\n * Example usage (Tailwind config / CSS):\n * ```css\n * .card {\n * background: var(--px-surface);\n * color: var(--px-text-primary);\n * border: 1px solid var(--px-border-primary);\n * }\n * ```\n */\nexport function themeToCssVars(theme: ThemeTokens): CSSVarMap {\n return {\n /**\n * Brand & intent colors\n */\n '--px-color-primary': theme.colors.primary,\n '--px-color-secondary': theme.colors.secondary,\n '--px-color-success': theme.colors.success,\n '--px-color-warning': theme.colors.warning,\n '--px-color-error': theme.colors.error,\n '--px-color-destructive': theme.colors.destructive,\n '--px-color-invalid': theme.colors.invalid,\n '--px-color-info': theme.colors.info,\n '--px-color-disabled': theme.colors.disabled,\n\n /**\n * Scrollbar\n */\n '--px-scrollbar': theme.colors.scrollbar,\n\n /**\n * Surfaces / backgrounds\n */\n '--px-bg': theme.colors.background.primary,\n '--px-bg-skeleton': theme.colors.background.skeleton,\n '--px-surface': theme.colors.surface,\n '--px-background-card-primary': theme.colors.background.card.primary,\n '--px-background-card-secondary': theme.colors.background.card.secondary,\n '--px-background-card-hover': theme.colors.background.card.hover,\n\n /**\n * Borders\n * -------\n * Divider and outline colors.\n */\n '--px-border-primary': theme.colors.border.primary,\n '--px-border-secondary': theme.colors.border.secondary,\n\n /**\n * Text\n * ----\n * Text colors for different emphasis levels.\n */\n '--px-text-primary': theme.colors.text.primary,\n '--px-text-secondary': theme.colors.text.secondary,\n '--px-text-disabled': theme.colors.text.disabled,\n '--px-text-inverse': theme.colors.text.inverse,\n '--px-text-error': theme.colors.text.error,\n\n /**\n * Buttons – Filled\n * ----------------\n * Filled button colors\n */\n '--px-btn-filled-bg': theme.colors.button.filled.background,\n '--px-btn-filled-label': theme.colors.button.filled.label,\n\n /**\n * Buttons – Outlined\n * ------------------\n * Outlined button colors\n */\n '--px-btn-outlined-border': theme.colors.button.outlined.borderColor,\n '--px-btn-outlined-label': theme.colors.button.outlined.label,\n\n /**\n * Buttons – Ghost\n * --------------\n * Ghost button colors\n */\n '--px-btn-ghost-label': theme.colors.button.ghost.label,\n /**\n * Spacing\n * -------------\n * Numeric spacing tokens (commonly used as px).\n */\n '--px-space-xs': theme.spacing.xs,\n '--px-space-sm': theme.spacing.sm,\n '--px-space-md': theme.spacing.md,\n '--px-space-lg': theme.spacing.lg,\n '--px-space-xl': theme.spacing.xl,\n '--px-space-2xl': theme.spacing['2xl'],\n\n /**\n * Border radius scale\n * -------------------\n * Numeric radius tokens (commonly used as px).\n */\n '--px-radius-none': theme.borderRadius.none,\n '--px-radius-sm': theme.borderRadius.sm,\n '--px-radius-md': theme.borderRadius.md,\n '--px-radius-lg': theme.borderRadius.lg,\n '--px-radius-xl': theme.borderRadius.xl,\n '--px-radius-full': theme.borderRadius.full,\n\n /**\n * Typography scale\n * ----------------\n * Font sizes and font weights.\n */\n '--px-fs-xs': theme.fontSize.xs,\n '--px-fs-sm': theme.fontSize.sm,\n '--px-fs-md': theme.fontSize.md,\n '--px-fs-lg': theme.fontSize.lg,\n '--px-fs-xl': theme.fontSize.xl,\n '--px-fs-2xl': theme.fontSize['2xl'],\n\n '--px-fw-normal': theme.fontWeight.normal,\n '--px-fw-medium': theme.fontWeight.medium,\n '--px-fw-semibold': theme.fontWeight.semibold,\n '--px-fw-bold': theme.fontWeight.bold,\n\n /**\n * Shadows\n * -------\n * CSS shadow strings for elevation.\n */\n '--px-shadow-xs': theme.shadows.xs,\n '--px-shadow-sm': theme.shadows.sm,\n '--px-shadow-md': theme.shadows.md,\n '--px-shadow-lg': theme.shadows.lg,\n '--px-shadow-xl': theme.shadows.xl,\n '--px-shadow-2xl': theme.shadows['2xl'],\n '--px-ring-1': theme.shadows['ring-1'],\n '--px-shadow-default': theme.shadows.default\n }\n}\n","/** biome-ignore-all lint/suspicious/noExplicitAny: <Not needed> */\n\n'use client'\n\n// External Libraries\nimport {\n useMemo,\n useState,\n useEffect,\n useContext,\n createContext,\n useLayoutEffect\n} from 'react'\n\n// Utils\nimport {\n buildTheme,\n isThemeMode,\n resolveName,\n applyCssVars,\n buildRegistry,\n themeToCssVars,\n applyThemeClass,\n watchSystemTheme,\n getLocalStorageSafe\n} from './utils'\n\n// Types\nimport type { ThemeMode, ThemeContextData, ThemeProviderProps } from './types'\n\nexport * from './types'\n\nconst ThemeContext = createContext<ThemeContextData | null>(null)\n\n/**\n * useIsomorphicLayoutEffect\n * - On client: runs before paint (layout effect)\n * - On server: falls back to useEffect (no warnings)\n */\nconst useIsomorphicLayoutEffect =\n typeof window !== 'undefined' ? useLayoutEffect : useEffect\n\nexport const ThemeProvider: React.FC<ThemeProviderProps> = ({\n themes,\n children,\n override,\n persistence,\n persist = false,\n defaultMode = 'system',\n storageKey = 'px-theme',\n fallback = null\n}) => {\n const registry = useMemo(() => buildRegistry(themes), [themes])\n\n function makeInitialMode(): ThemeMode {\n if (persistence) {\n try {\n const saved = persistence.get()\n return (saved ?? defaultMode) as ThemeMode\n } catch {\n return defaultMode\n }\n }\n\n const ls = getLocalStorageSafe()\n if (!ls) return defaultMode\n const raw = ls.getItem(storageKey)?.replaceAll('\"', '')\n return isThemeMode(raw) ? raw : defaultMode\n }\n\n const [mode, setMode] = useState<ThemeMode>(makeInitialMode)\n\n /**\n * Gate: only render children after we applied class + vars at least once.\n * This prevents \"unstyled flash\" for your components.\n */\n const [isReady, setReady] = useState(false)\n\n const resolvedName = useMemo(() => {\n if (typeof window === 'undefined') return mode === 'system' ? 'light' : mode\n return resolveName(mode)\n }, [mode])\n\n const theme = useMemo(\n () => buildTheme(registry, resolvedName, override),\n [registry, resolvedName, override]\n )\n\n // keep in sync with OS when mode === \"system\"\n useEffect(() => {\n if (typeof window === 'undefined') return\n if (mode !== 'system') return\n\n return watchSystemTheme(() => {\n setMode('system')\n })\n }, [mode])\n\n /**\n * Apply theme BEFORE paint (client) and then unlock rendering.\n */\n useIsomorphicLayoutEffect(() => {\n if (typeof window === 'undefined') return\n\n applyThemeClass(resolvedName === 'dark' ? 'dark' : 'light')\n applyCssVars(themeToCssVars(theme))\n\n // unlock after first successful application\n setReady(true)\n }, [resolvedName, theme])\n\n /**\n * Persist mode changes (optional).\n */\n useEffect(() => {\n if (persistence) {\n try {\n persistence.set(mode)\n } catch {}\n return\n }\n\n if (!persist) return\n const ls = getLocalStorageSafe()\n if (!ls) return\n\n try {\n ls.setItem(storageKey, mode)\n } catch {}\n }, [mode, persist, storageKey, persistence])\n\n function setTheme(next: ThemeMode) {\n setMode(next)\n }\n\n function toggleTheme(a: string = 'light', b: string = 'dark') {\n setMode(resolvedName === a ? b : a)\n }\n\n // biome-ignore lint/correctness/useExhaustiveDependencies: <Not needed>\n const ctxValue = useMemo(\n () => ({\n mode,\n resolvedName,\n theme,\n isLoading: !isReady,\n setTheme,\n toggleTheme\n }),\n [mode, resolvedName, theme, isReady]\n )\n\n return (\n <ThemeContext.Provider value={ctxValue}>\n {isReady ? children : fallback}\n </ThemeContext.Provider>\n )\n}\n\nexport function useTheme(): ThemeContextData {\n const ctx = useContext(ThemeContext)\n if (!ctx) throw new Error('useTheme must be used within a ThemeProvider')\n return ctx\n}\n"],"mappings":";;;;AASA,SAAgB,UAAa,MAAS,UAA8B;AAClE,KAAI,aAAa,OAAW,QAAO,MAAM,KAAK;AAE9C,KAAI,CAAC,cAAc,KAAK,IAAI,CAAC,cAAc,SAAS,CAClD,QAAO,MAAM,SAAc;CAG7B,MAAMA,SAAc,MAAM,QAAQ,KAAK,GAAG,EAAE,GAAG,EAAE;CAEjD,MAAM,WAAW,OAAO,KAAK,KAAY;CACzC,MAAM,eAAe,OAAO,KAAK,SAAgB;CAEjD,MAAM,UAAU,MAAM,KAAK,IAAI,IAAI,CAAC,GAAG,UAAU,GAAG,aAAa,CAAC,CAAC;AAEnE,MAAK,MAAM,KAAK,SAAS;EACvB,MAAM,UAAW,KAAa;EAC9B,MAAM,cAAe,SAAiB;AAEtC,MAAI,gBAAgB,QAAW;AAC7B,UAAO,KAAK,MAAM,QAAQ;AAC1B;;AAGF,MAAI,cAAc,QAAQ,IAAI,cAAc,YAAY,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B,WAAQ,SAAS;IACjB;IACD,CAAC,KAAK,CAAC;;;;AAKV,iCAAgC;AAC9B,MAAI,OAAO,WAAW,YAAa;AAEnC,kBAAgB,iBAAiB,SAAS,SAAS,QAAQ;AAC3D,eAAa,eAAe,MAAM,CAAC;AAGnC,WAAS,KAAK;IACb,CAAC,cAAc,MAAM,CAAC;;;;AAKzB,iBAAgB;AACd,MAAI,aAAa;AACf,OAAI;AACF,gBAAY,IAAI,KAAK;WACf;AACR;;AAGF,MAAI,CAAC,QAAS;EACd,MAAM,KAAK,qBAAqB;AAChC,MAAI,CAAC,GAAI;AAET,MAAI;AACF,MAAG,QAAQ,YAAY,KAAK;UACtB;IACP;EAAC;EAAM;EAAS;EAAY;EAAY,CAAC;CAE5C,SAAS,SAAS,MAAiB;AACjC,UAAQ,KAAK;;CAGf,SAAS,YAAY,IAAY,SAAS,IAAY,QAAQ;AAC5D,UAAQ,iBAAiB,IAAI,IAAI,EAAE;;CAIrC,MAAM,WAAW,eACR;EACL;EACA;EACA;EACA,WAAW,CAAC;EACZ;EACA;EACD,GACD;EAAC;EAAM;EAAc;EAAO;EAAQ,CACrC;AAED,QACE,oBAAC,aAAa;EAAS,OAAO;YAC3B,UAAU,WAAW;GACA;;AAI5B,SAAgB,WAA6B;CAC3C,MAAM,MAAM,WAAW,aAAa;AACpC,KAAI,CAAC,IAAK,OAAM,IAAI,MAAM,+CAA+C;AACzE,QAAO"}
1
+ {"version":3,"file":"ThemeContext-DDE631iU.js","names":["result: any","out: any","defaultThemes: ThemeRegistry","ThemeProvider: React.FC<ThemeProviderProps>"],"sources":["../src/utils/functions/deepMerge.ts","../src/contexts/ThemeContext/constants.ts","../src/contexts/ThemeContext/utils/general.ts","../src/contexts/ThemeContext/utils/themeToCSSVars.ts","../src/contexts/ThemeContext/index.tsx"],"sourcesContent":["/** biome-ignore-all lint/suspicious/noExplicitAny: <Not needed> */\nexport type DeepPartial<T> = {\n [P in keyof T]?: T[P] extends Array<infer U>\n ? Array<DeepPartial<U>>\n : T[P] extends object\n ? DeepPartial<T[P]>\n : T[P]\n}\n\nexport function deepMerge<T>(base: T, override?: DeepPartial<T>): T {\n if (override === undefined) return clone(base)\n\n if (!isPlainObject(base) || !isPlainObject(override)) {\n return clone(override as T)\n }\n\n const result: any = Array.isArray(base) ? [] : {}\n\n const baseKeys = Object.keys(base as any) as (keyof T)[]\n const overrideKeys = Object.keys(override as any) as (keyof T)[]\n\n const allKeys = Array.from(new Set([...baseKeys, ...overrideKeys]))\n\n for (const k of allKeys) {\n const baseVal = (base as any)[k]\n const overrideVal = (override as any)[k]\n\n if (overrideVal === undefined) {\n result[k] = clone(baseVal)\n continue\n }\n\n if (isPlainObject(baseVal) && isPlainObject(overrideVal)) {\n result[k] = deepMerge(baseVal, overrideVal)\n continue\n }\n\n result[k] = clone(overrideVal)\n }\n\n return result as T\n}\n\nfunction isPlainObject(x: any): x is Record<string, any> {\n return !!x && typeof x === 'object' && !Array.isArray(x)\n}\n\nfunction clone<T>(v: T): T {\n if (v === undefined || v === null) return v\n if (Array.isArray(v)) return v.map(item => clone(item)) as unknown as T\n if (isPlainObject(v)) {\n const out: any = {}\n for (const k of Object.keys(v)) out[k] = clone((v as any)[k])\n return out\n }\n return v\n}\n","// theme/defaultThemes.ts\nimport type { ThemeRegistry } from './types'\n\nconst COMMON_MAP = {\n spacing: {\n xs: '0.25rem', // 4px\n sm: '0.5rem', // 8px\n md: '1rem', // 16px\n lg: '1.5rem', // 24px\n xl: '2rem', // 32px\n '2xl': '3rem' // 48px\n },\n borderRadius: {\n none: '0rem', // 0px\n sm: '0.25rem', // 4px\n md: '0.375rem', // 6px\n lg: '0.5rem', // 8px\n xl: '0.75rem', // 12px\n full: '9999rem' // \"infinite\" radius equivalent\n },\n fontSize: {\n xs: '0.75rem', // 12px\n sm: '0.875rem', // 14px\n md: '1rem', // 16px\n lg: '1.125rem', // 18px\n xl: '1.25rem', // 20px\n '2xl': '1.5rem' // 24px\n },\n fontWeight: { normal: 400, medium: 500, semibold: 600, bold: 700 }\n} as const\n\nexport const defaultThemes: ThemeRegistry = {\n light: {\n colors: {\n scrollbar: '#0000001a',\n disabled: '#D5D7DA',\n\n primary: '#0EB24C',\n secondary: '#6C6C6C',\n success: '#0EB24C',\n warning: '#f59e0b',\n error: '#ef4444',\n destructive: '#ef4444',\n invalid: '#f87171',\n info: '#06b6d4',\n\n background: {\n primary: '#FFFFFF',\n skeleton: 'linear-gradient(-45deg, #ECECEC, #FAFAFA)',\n card: {\n primary: '#F4F4F4',\n secondary: '#F3F6F9',\n hover: '#f2f2f2'\n }\n },\n button: {\n filled: {\n label: '#FFFFFF',\n background: '#0EB24C'\n },\n\n outlined: {\n label: '#222222',\n borderColor: '#DDDDDD'\n },\n\n ghost: {\n label: '#6C6C6C'\n }\n },\n\n surface: '#FBFBFB',\n border: {\n primary: '#E8E8E9',\n secondary: '#E8E8E9'\n },\n\n text: {\n primary: '#222222',\n secondary: '#6C6C6C',\n disabled: '#A0A0A0',\n inverse: '#FFFFFF',\n error: '#EC3030'\n }\n },\n\n ...COMMON_MAP,\n\n shadows: {\n xs: '0px -1px 0px #0A0D120D inset, 0px 1px 2px #0A0D120D',\n sm: '0 1px 2px 0 rgba(0, 0, 0, 0.05)',\n md: '0 4px 6px -1px rgba(0, 0, 0, 0.10)',\n lg: '0 10px 15px -3px rgba(0, 0, 0, 0.10)',\n xl: '0 20px 25px -5px rgba(0, 0, 0, 0.10)',\n '2xl': '0 25px 50px -12px rgba(0, 0, 0, 0.25)',\n 'ring-1': '0 0 0 1px rgba(0, 0, 0, 0.05)',\n default: '0px 1px 2px 0px #0A0D120D'\n }\n },\n\n dark: {\n colors: {\n scrollbar: '#858585',\n disabled: '#D5D7DA',\n\n primary: '#0EB24C',\n secondary: '#C7CFD8',\n success: '#0EB24C',\n warning: '#f59e0b',\n error: '#ef4444',\n destructive: '#ef4444',\n invalid: '#f87171',\n info: '#06b6d4',\n\n background: {\n primary: '#090909',\n skeleton: 'linear-gradient(-45deg, #333333, #1F1F1F)',\n card: {\n primary: '#F4F4F4',\n secondary: '#202020',\n hover: '#e7e7e7'\n }\n },\n button: {\n filled: {\n label: '#FFFFFF',\n background: '#0EB24C'\n },\n\n outlined: {\n label: '#ECECEC',\n borderColor: '#DDDDDD'\n },\n\n ghost: {\n label: '#6C6C6C'\n }\n },\n\n surface: '#090909',\n\n border: {\n primary: '#27282D',\n secondary: '#27282D'\n },\n\n text: {\n primary: '#ECECEC',\n secondary: '#C7CFD8',\n disabled: '#8B93A0',\n inverse: '#090909',\n error: '#EC3030'\n }\n },\n\n ...COMMON_MAP,\n\n shadows: {\n xs: '0px -1px 0px #0A0D120D inset, 0px 1px 2px #0A0D120D',\n sm: '0 1px 2px 0 rgba(0, 0, 0, 0.35)',\n md: '0 4px 6px -1px rgba(0, 0, 0, 0.45)',\n lg: '0 10px 15px -3px rgba(0, 0, 0, 0.50)',\n xl: '0 20px 25px -5px rgba(0, 0, 0, 0.55)',\n '2xl': '0 25px 50px -12px rgba(0, 0, 0, 0.65)',\n 'ring-1': '0 0 0 1px rgba(0, 0, 0, 0.05)',\n default: '0px 1px 2px 0px #0A0D120D'\n }\n }\n}\n","// Utils\n/** biome-ignore-all lint/suspicious/noExplicitAny: <Not needed> */\nimport { deepMerge } from '@utils/functions'\nimport { defaultThemes } from '../constants'\n\n// Types\nimport type { ThemeMode, ThemeRegistry, ThemeTokens } from '../types'\n\n/**\n * Theme Utilities\n * ===============\n * Small DOM utilities used by the ThemeProvider to:\n * - toggle dark mode class for Tailwind compatibility\n * - inject CSS variables (`--px-*`) into the document root\n * - read/watch the OS/browser theme preference (`prefers-color-scheme`)\n *\n * These helpers are:\n * - **client-safe** (guarded for SSR)\n * - **framework-agnostic** (only touch `documentElement`)\n * - **tiny** (no dependencies)\n */\n\n/**\n * CSSVarMap\n * ---------\n * A map of CSS custom properties to be applied on the document root.\n *\n * Notes:\n * - Keys must be valid CSS variable names (e.g. `\"--px-bg\"`, `\"--px-text-primary\"`).\n * - Values can be strings or numbers.\n * - If you store numbers (e.g. 16), you decide at consumption time whether it means px.\n *\n * You can keep it generic:\n * Record<`--${string}`, string | number>\n *\n * Or restrict to your library prefix:\n * Record<`--px-${string}`, string | number>\n */\nexport type CSSVarMap = Partial<Record<`--${string}`, string | number>>\n\n/**\n * applyThemeClass(themeName)\n * -------------------------\n * Applies the light/dark mode class to the `<html>` element.\n *\n * Tailwind’s dark mode (in the common \"class\" strategy) typically relies on a\n * `.dark` class. This function toggles ONLY the `dark` class:\n *\n * - themeName `\"dark\"` => adds `.dark`\n * - themeName `\"light\"` => removes `.dark`\n *\n * SSR:\n * - No-op on the server (when `document` is undefined).\n */\nexport function applyThemeClass(themeName: 'light' | 'dark') {\n if (typeof document === 'undefined') return\n const root = document.documentElement\n root.classList.toggle('dark', themeName === 'dark')\n}\n\n/**\n * applyCssVars(vars)\n * ------------------\n * Injects CSS variables into the document root (`<html>`).\n *\n * This is how the library exposes theme tokens as CSS variables.\n * Components can then use `var(--px-...)` in styles.\n *\n * Example:\n * ```ts\n * applyCssVars({ '--px-bg': '#fff', '--px-text-primary': '#111' })\n * ```\n *\n * Behavior:\n * - Ignores `null` / `undefined` values.\n * - Converts all values to string before applying.\n *\n * SSR:\n * - No-op on the server (when `document` is undefined).\n */\nexport function applyCssVars(vars: CSSVarMap) {\n if (typeof document === 'undefined') return\n const root = document.documentElement\n\n for (const [key, value] of Object.entries(vars)) {\n if (value == null) continue\n root.style.setProperty(key, String(value))\n }\n}\n\n/**\n * getSystemThemeName()\n * --------------------\n * Returns the current OS/browser color scheme preference.\n *\n * It reads `prefers-color-scheme: dark` using `window.matchMedia`.\n *\n * Returns:\n * - `\"dark\"` if the user prefers dark mode\n * - `\"light\"` otherwise\n *\n * SSR:\n * - Returns `\"light\"` on the server (safe default).\n */\nexport function getSystemThemeName(): 'light' | 'dark' {\n if (typeof window === 'undefined') return 'light'\n const prefersDark =\n window.matchMedia?.('(prefers-color-scheme: dark)').matches ?? false\n return prefersDark ? 'dark' : 'light'\n}\n\n/**\n * watchSystemTheme(onChange)\n * --------------------------\n * Subscribes to changes in OS/browser theme preference.\n *\n * Use this when your selected mode is `\"system\"` so the app immediately reacts\n * when the user changes their OS theme.\n *\n * - Calls `onChange('light' | 'dark')` whenever the preference changes.\n * - Returns an `unsubscribe()` function.\n *\n * Implementation details:\n * - Uses `matchMedia('(prefers-color-scheme: dark)')`.\n * - Supports both modern `addEventListener('change', ...)` and legacy Safari\n * `addListener(...)` APIs.\n *\n * SSR:\n * - Returns a no-op unsubscribe function on the server.\n */\nexport function watchSystemTheme(onChange: (name: 'light' | 'dark') => void) {\n if (typeof window === 'undefined') return () => {}\n\n const mq = window.matchMedia('(prefers-color-scheme: dark)')\n\n const handler = () => onChange(mq.matches ? 'dark' : 'light')\n\n handler()\n\n if (mq.addEventListener) {\n mq.addEventListener('change', handler)\n return () => mq.removeEventListener('change', handler)\n }\n\n mq.addListener(handler as any)\n return () => mq.removeListener(handler as any)\n}\n\n/**\n * Resolves an effective theme name from a mode.\n */\nexport function resolveName(mode: ThemeMode): string {\n if (mode !== 'system') return mode\n return getSystemThemeName()\n}\n\n/**\n * Builds a registry of user theme patches.\n */\nexport function buildRegistry(\n userThemes?: Partial<ThemeRegistry>\n): ThemeRegistry {\n return {\n light: {},\n dark: {},\n ...(userThemes ?? {})\n } as ThemeRegistry\n}\n\n/**\n * Builds the final resolved theme tokens.\n */\nexport function buildTheme(\n registry: ThemeRegistry,\n resolvedName: string,\n override?: Partial<ThemeTokens>\n): ThemeTokens {\n const base: ThemeTokens =\n resolvedName === 'dark'\n ? (defaultThemes.dark as ThemeTokens)\n : (defaultThemes.light as ThemeTokens)\n\n const selectedPatch = (registry[resolvedName] ?? registry.light) as any\n\n const merged = deepMerge(base, selectedPatch)\n return deepMerge(merged, override)\n}\n\nexport function isThemeMode(value: unknown): value is ThemeMode {\n return typeof value === 'string' && value.length > 0\n}\n\nexport function getLocalStorageSafe(): Storage | null {\n if (typeof window === 'undefined') return null\n try {\n return window.localStorage\n } catch {\n return null\n }\n}\n","// Types\nimport type { CSSVarMap } from './general'\nimport type { ThemeTokens } from '../types'\n\n/**\n * themeToCssVars(theme)\n * ---------------------\n * Converts a resolved `ThemeTokens` object into a CSS variable map (`CSSVarMap`).\n *\n * The ThemeProvider uses this function to inject `--px-*` variables into the\n * document root (`<html>`). Components can then rely on stable CSS variables,\n * making them framework-agnostic and compatible with Tailwind (via `.dark`).\n *\n * Why CSS variables?\n * - They are fast (native to the browser)\n * - They work across any styling strategy (inline styles, CSS modules, Tailwind, etc.)\n * - They enable dynamic theme switching without rerendering every component\n *\n * Requirements / Assumptions:\n * - The input `theme` must be **fully resolved** (i.e. complete `ThemeTokens`).\n * The ThemeProvider is responsible for merging partial theme patches on top\n * of a complete base theme (light/dark defaults).\n *\n * Variable naming:\n * - All variables are prefixed with `--px-` to avoid collisions.\n * - Tokens are grouped by category (colors, surfaces, borders, text, spacing, radius, typography, shadows).\n *\n * Notes:\n * - Spacing/radius/fontSize tokens are stored as numbers (e.g. `16`), which is valid\n * for CSS variables. When consuming them, you can:\n * - append `px` in JS (`${var}px`), or\n * - store them as strings here (e.g. `\"16px\"`) if you prefer.\n *\n * Example usage (component styles):\n * ```ts\n * const styles = {\n * background: 'var(--px-bg)',\n * color: 'var(--px-text-primary)',\n * borderColor: 'var(--px-border-primary)',\n * }\n * ```\n *\n * Example usage (Tailwind config / CSS):\n * ```css\n * .card {\n * background: var(--px-surface);\n * color: var(--px-text-primary);\n * border: 1px solid var(--px-border-primary);\n * }\n * ```\n */\nexport function themeToCssVars(theme: ThemeTokens): CSSVarMap {\n return {\n /**\n * Brand & intent colors\n */\n '--px-color-primary': theme.colors.primary,\n '--px-color-secondary': theme.colors.secondary,\n '--px-color-success': theme.colors.success,\n '--px-color-warning': theme.colors.warning,\n '--px-color-error': theme.colors.error,\n '--px-color-destructive': theme.colors.destructive,\n '--px-color-invalid': theme.colors.invalid,\n '--px-color-info': theme.colors.info,\n '--px-color-disabled': theme.colors.disabled,\n\n /**\n * Scrollbar\n */\n '--px-scrollbar': theme.colors.scrollbar,\n\n /**\n * Surfaces / backgrounds\n */\n '--px-bg': theme.colors.background.primary,\n '--px-bg-skeleton': theme.colors.background.skeleton,\n '--px-surface': theme.colors.surface,\n '--px-background-card-primary': theme.colors.background.card.primary,\n '--px-background-card-secondary': theme.colors.background.card.secondary,\n '--px-background-card-hover': theme.colors.background.card.hover,\n\n /**\n * Borders\n * -------\n * Divider and outline colors.\n */\n '--px-border-primary': theme.colors.border.primary,\n '--px-border-secondary': theme.colors.border.secondary,\n\n /**\n * Text\n * ----\n * Text colors for different emphasis levels.\n */\n '--px-text-primary': theme.colors.text.primary,\n '--px-text-secondary': theme.colors.text.secondary,\n '--px-text-disabled': theme.colors.text.disabled,\n '--px-text-inverse': theme.colors.text.inverse,\n '--px-text-error': theme.colors.text.error,\n\n /**\n * Buttons – Filled\n * ----------------\n * Filled button colors\n */\n '--px-btn-filled-bg': theme.colors.button.filled.background,\n '--px-btn-filled-label': theme.colors.button.filled.label,\n\n /**\n * Buttons – Outlined\n * ------------------\n * Outlined button colors\n */\n '--px-btn-outlined-border': theme.colors.button.outlined.borderColor,\n '--px-btn-outlined-label': theme.colors.button.outlined.label,\n\n /**\n * Buttons – Ghost\n * --------------\n * Ghost button colors\n */\n '--px-btn-ghost-label': theme.colors.button.ghost.label,\n /**\n * Spacing\n * -------------\n * Numeric spacing tokens (commonly used as px).\n */\n '--px-space-xs': theme.spacing.xs,\n '--px-space-sm': theme.spacing.sm,\n '--px-space-md': theme.spacing.md,\n '--px-space-lg': theme.spacing.lg,\n '--px-space-xl': theme.spacing.xl,\n '--px-space-2xl': theme.spacing['2xl'],\n\n /**\n * Border radius scale\n * -------------------\n * Numeric radius tokens (commonly used as px).\n */\n '--px-radius-none': theme.borderRadius.none,\n '--px-radius-sm': theme.borderRadius.sm,\n '--px-radius-md': theme.borderRadius.md,\n '--px-radius-lg': theme.borderRadius.lg,\n '--px-radius-xl': theme.borderRadius.xl,\n '--px-radius-full': theme.borderRadius.full,\n\n /**\n * Typography scale\n * ----------------\n * Font sizes and font weights.\n */\n '--px-fs-xs': theme.fontSize.xs,\n '--px-fs-sm': theme.fontSize.sm,\n '--px-fs-md': theme.fontSize.md,\n '--px-fs-lg': theme.fontSize.lg,\n '--px-fs-xl': theme.fontSize.xl,\n '--px-fs-2xl': theme.fontSize['2xl'],\n\n '--px-fw-normal': theme.fontWeight.normal,\n '--px-fw-medium': theme.fontWeight.medium,\n '--px-fw-semibold': theme.fontWeight.semibold,\n '--px-fw-bold': theme.fontWeight.bold,\n\n /**\n * Shadows\n * -------\n * CSS shadow strings for elevation.\n */\n '--px-shadow-xs': theme.shadows.xs,\n '--px-shadow-sm': theme.shadows.sm,\n '--px-shadow-md': theme.shadows.md,\n '--px-shadow-lg': theme.shadows.lg,\n '--px-shadow-xl': theme.shadows.xl,\n '--px-shadow-2xl': theme.shadows['2xl'],\n '--px-ring-1': theme.shadows['ring-1'],\n '--px-shadow-default': theme.shadows.default\n }\n}\n","/** biome-ignore-all lint/suspicious/noExplicitAny: <Not needed> */\n\n'use client'\n\n// External Libraries\nimport {\n useMemo,\n useState,\n useEffect,\n useContext,\n createContext,\n useLayoutEffect\n} from 'react'\n\n// Utils\nimport {\n buildTheme,\n isThemeMode,\n resolveName,\n applyCssVars,\n buildRegistry,\n themeToCssVars,\n applyThemeClass,\n watchSystemTheme,\n getLocalStorageSafe\n} from './utils'\n\n// Types\nimport type { ThemeMode, ThemeContextData, ThemeProviderProps } from './types'\n\nexport * from './types'\n\nconst ThemeContext = createContext<ThemeContextData | null>(null)\n\n/**\n * useIsomorphicLayoutEffect\n * - On client: runs before paint (layout effect)\n * - On server: falls back to useEffect (no warnings)\n */\nconst useIsomorphicLayoutEffect =\n typeof window !== 'undefined' ? useLayoutEffect : useEffect\n\nexport const ThemeProvider: React.FC<ThemeProviderProps> = ({\n themes,\n children,\n override,\n persistence,\n persist = false,\n defaultMode = 'system',\n storageKey = 'px-theme',\n fallback = null\n}) => {\n const registry = useMemo(() => buildRegistry(themes), [themes])\n\n function makeInitialMode(): ThemeMode {\n if (persistence) {\n try {\n const saved = persistence.get()\n return (saved ?? defaultMode) as ThemeMode\n } catch {\n return defaultMode\n }\n }\n\n const ls = getLocalStorageSafe()\n if (!ls) return defaultMode\n const raw = ls.getItem(storageKey)?.replaceAll('\"', '')\n return isThemeMode(raw) ? raw : defaultMode\n }\n\n const [mode, setMode] = useState<ThemeMode>(makeInitialMode)\n\n /**\n * Gate: only render children after we applied class + vars at least once.\n * This prevents \"unstyled flash\" for your components.\n */\n const [isReady, setReady] = useState(false)\n\n const resolvedName = useMemo(() => {\n if (typeof window === 'undefined') return mode === 'system' ? 'light' : mode\n return resolveName(mode)\n }, [mode])\n\n const theme = useMemo(\n () => buildTheme(registry, resolvedName, override),\n [registry, resolvedName, override]\n )\n\n // keep in sync with OS when mode === \"system\"\n useEffect(() => {\n if (typeof window === 'undefined') return\n if (mode !== 'system') return\n\n return watchSystemTheme(() => {\n setMode('system')\n })\n }, [mode])\n\n /**\n * Apply theme BEFORE paint (client) and then unlock rendering.\n */\n useIsomorphicLayoutEffect(() => {\n if (typeof window === 'undefined') return\n\n applyThemeClass(resolvedName === 'dark' ? 'dark' : 'light')\n applyCssVars(themeToCssVars(theme))\n\n // unlock after first successful application\n setReady(true)\n }, [resolvedName, theme])\n\n /**\n * Persist mode changes (optional).\n */\n useEffect(() => {\n if (persistence) {\n try {\n persistence.set(mode)\n } catch {}\n return\n }\n\n if (!persist) return\n const ls = getLocalStorageSafe()\n if (!ls) return\n\n try {\n ls.setItem(storageKey, mode)\n } catch {}\n }, [mode, persist, storageKey, persistence])\n\n function setTheme(next: ThemeMode) {\n setMode(next)\n }\n\n function toggleTheme(a: string = 'light', b: string = 'dark') {\n setMode(resolvedName === a ? b : a)\n }\n\n // biome-ignore lint/correctness/useExhaustiveDependencies: <Not needed>\n const ctxValue = useMemo(\n () => ({\n mode,\n resolvedName,\n theme,\n isLoading: !isReady,\n setTheme,\n toggleTheme\n }),\n [mode, resolvedName, theme, isReady]\n )\n\n return (\n <ThemeContext.Provider value={ctxValue}>\n {isReady ? children : fallback}\n </ThemeContext.Provider>\n )\n}\n\nexport function useTheme(): ThemeContextData {\n const ctx = useContext(ThemeContext)\n if (!ctx) throw new Error('useTheme must be used within a ThemeProvider')\n return ctx\n}\n"],"mappings":";;;;AASA,SAAgB,UAAa,MAAS,UAA8B;AAClE,KAAI,aAAa,OAAW,QAAO,MAAM,KAAK;AAE9C,KAAI,CAAC,cAAc,KAAK,IAAI,CAAC,cAAc,SAAS,CAClD,QAAO,MAAM,SAAc;CAG7B,MAAMA,SAAc,MAAM,QAAQ,KAAK,GAAG,EAAE,GAAG,EAAE;CAEjD,MAAM,WAAW,OAAO,KAAK,KAAY;CACzC,MAAM,eAAe,OAAO,KAAK,SAAgB;CAEjD,MAAM,UAAU,MAAM,KAAK,IAAI,IAAI,CAAC,GAAG,UAAU,GAAG,aAAa,CAAC,CAAC;AAEnE,MAAK,MAAM,KAAK,SAAS;EACvB,MAAM,UAAW,KAAa;EAC9B,MAAM,cAAe,SAAiB;AAEtC,MAAI,gBAAgB,QAAW;AAC7B,UAAO,KAAK,MAAM,QAAQ;AAC1B;;AAGF,MAAI,cAAc,QAAQ,IAAI,cAAc,YAAY,EAAE;AACxD,UAAO,KAAK,UAAU,SAAS,YAAY;AAC3C;;AAGF,SAAO,KAAK,MAAM,YAAY;;AAGhC,QAAO;;AAGT,SAAS,cAAc,GAAkC;AACvD,QAAO,CAAC,CAAC,KAAK,OAAO,MAAM,YAAY,CAAC,MAAM,QAAQ,EAAE;;AAG1D,SAAS,MAAS,GAAS;AACzB,KAAI,MAAM,UAAa,MAAM,KAAM,QAAO;AAC1C,KAAI,MAAM,QAAQ,EAAE,CAAE,QAAO,EAAE,KAAI,SAAQ,MAAM,KAAK,CAAC;AACvD,KAAI,cAAc,EAAE,EAAE;EACpB,MAAMC,MAAW,EAAE;AACnB,OAAK,MAAM,KAAK,OAAO,KAAK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EAAS;EAAY;EAAY,CAAC;CAE5C,SAAS,SAAS,MAAiB;AACjC,UAAQ,KAAK;;CAGf,SAAS,YAAY,IAAY,SAAS,IAAY,QAAQ;AAC5D,UAAQ,iBAAiB,IAAI,IAAI,EAAE;;CAIrC,MAAM,WAAW,eACR;EACL;EACA;EACA;EACA,WAAW,CAAC;EACZ;EACA;EACD,GACD;EAAC;EAAM;EAAc;EAAO;EAAQ,CACrC;AAED,QACE,oBAAC,aAAa;EAAS,OAAO;YAC3B,UAAU,WAAW;GACA;;AAI5B,SAAgB,WAA6B;CAC3C,MAAM,MAAM,WAAW,aAAa;AACpC,KAAI,CAAC,IAAK,OAAM,IAAI,MAAM,+CAA+C;AACzE,QAAO"}
@@ -1,4 +1,4 @@
1
- import { n as styled, r as WEIGHTS, t as useThemedStyles } from "./useThemedStyles-CV4ryZLN.js";
1
+ import { n as styled, r as WEIGHTS, t as useThemedStyles } from "./useThemedStyles-BJWB5BTH.js";
2
2
  import { jsx } from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/commons/toolkit/Typography/utils.ts
@@ -167,4 +167,4 @@ const Typography = (props) => {
167
167
 
168
168
  //#endregion
169
169
  export { Typography as t };
170
- //# sourceMappingURL=Typography-gvXwbYdT.js.map
170
+ //# sourceMappingURL=Typography-CKSjnDPX.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Typography-gvXwbYdT.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 } = 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 } 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],\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;EACf,eAAe;EACf,OAAO;EACR;CACF;AAED,MAAaC,mBAGT;CACF,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,SAAS;CACT,O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file":"Typography-CKSjnDPX.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 } = 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 } 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],\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;E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Y;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,4 +1,4 @@
1
- import "./types-B-zFTnqe.js";
2
- import "./index-BbvC10jX.js";
3
- import { t as BasePopover } from "./index-DvbYyCcE.js";
1
+ import "./types-C0u1I3AZ.js";
2
+ import "./index-D5OTHkPO.js";
3
+ import { t as BasePopover } from "./index-DEAzVsKY.js";
4
4
  export { BasePopover };
@@ -1,7 +1,7 @@
1
- import "./useThemedStyles-CV4ryZLN.js";
2
- import "./useDismiss-w2spkFNN.js";
3
- import "./useFloating-BkMrolmn.js";
4
- import "./Popover-tzAZp6V7.js";
5
- import { t as BasePopover } from "./BasePopover-m1OfX3fO.js";
1
+ import "./useThemedStyles-BJWB5BTH.js";
2
+ import "./useDismiss-D-z-tDnD.js";
3
+ import "./useFloating-CNaOVlhE.js";
4
+ import "./Popover-DGYahpRI.js";
5
+ import { t as BasePopover } from "./BasePopover-Bcy5d1t5.js";
6
6
 
7
7
  export { BasePopover };
@@ -1,2 +1,2 @@
1
- import { t as Breadcrumb } from "./index-XBmzyFW4.js";
1
+ import { t as Breadcrumb } from "./index-CqmzOJc_.js";
2
2
  export { Breadcrumb };
@@ -1,6 +1,6 @@
1
- import "./useThemedStyles-CV4ryZLN.js";
2
- import "./Typography-gvXwbYdT.js";
3
- import "./Skeleton-iCdZ2Gai.js";
4
- import { t as Breadcrumb } from "./Breadcrumb-Bxd_E7ov.js";
1
+ import "./useThemedStyles-BJWB5BTH.js";
2
+ import "./Typography-CKSjnDPX.js";
3
+ import "./Skeleton-CixPhMzv.js";
4
+ import { t as Breadcrumb } from "./Breadcrumb-Doo-Ajul.js";
5
5
 
6
6
  export { Breadcrumb };
package/dist/button.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import "./types-oQ4y-S7G.js";
2
- import { t as Button } from "./index-DCocNerH.js";
1
+ import "./types-aSZkOYQF.js";
2
+ import { t as Button } from "./index-D5Zfkj5F.js";
3
3
  export { Button };
package/dist/button.js CHANGED
@@ -1,6 +1,6 @@
1
- import "./useThemedStyles-CV4ryZLN.js";
2
- import "./Typography-gvXwbYdT.js";
3
- import "./Loader-DUqRFMzl.js";
4
- import { t as Button } from "./Button-B8fUoKUH.js";
1
+ import "./useThemedStyles-BJWB5BTH.js";
2
+ import "./Typography-CKSjnDPX.js";
3
+ import "./Loader-DqDWamjq.js";
4
+ import { t as Button } from "./Button-DSMdOqri.js";
5
5
 
6
6
  export { Button };
@@ -1,2 +1,2 @@
1
- import { t as CheckItem } from "./index-IIjo6avX.js";
1
+ import { t as CheckItem } from "./index-B9mLvqQT.js";
2
2
  export { CheckItem };
@@ -1,6 +1,6 @@
1
- import "./useThemedStyles-CV4ryZLN.js";
2
- import "./Icon-CV5fAqK7.js";
3
- import "./Typography-gvXwbYdT.js";
4
- import { t as CheckItem } from "./CheckItem-BtcT3Qu0.js";
1
+ import "./useThemedStyles-BJWB5BTH.js";
2
+ import "./Icon-C_yI8e6Z.js";
3
+ import "./Typography-CKSjnDPX.js";
4
+ import { t as CheckItem } from "./CheckItem-CHkw5t6c.js";
5
5
 
6
6
  export { CheckItem };
@@ -1,3 +1,3 @@
1
- import "./types-oQ4y-S7G.js";
2
- import { t as Checkbox } from "./index-BwxZG9_q.js";
1
+ import "./types-aSZkOYQF.js";
2
+ import { t as Checkbox } from "./index-BXZ-OM5P.js";
3
3
  export { Checkbox };
package/dist/checkbox.js CHANGED
@@ -1,6 +1,6 @@
1
- import "./useThemedStyles-CV4ryZLN.js";
2
- import "./Icon-CV5fAqK7.js";
3
- import "./Typography-gvXwbYdT.js";
4
- import { t as Checkbox } from "./Checkbox-Oy1RP6NR.js";
1
+ import "./useThemedStyles-BJWB5BTH.js";
2
+ import "./Icon-C_yI8e6Z.js";
3
+ import "./Typography-CKSjnDPX.js";
4
+ import { t as Checkbox } from "./Checkbox-DU8VoDgU.js";
5
5
 
6
6
  export { Checkbox };
@@ -1,2 +1,2 @@
1
- import { t as ChipList } from "./index-Du2b4ABa.js";
1
+ import { t as ChipList } from "./index-hJBCuHQu.js";
2
2
  export { ChipList };
package/dist/chip-list.js CHANGED
@@ -1,7 +1,8 @@
1
- import "./useThemedStyles-CV4ryZLN.js";
2
- import "./Typography-gvXwbYdT.js";
3
- import "./Chip-DzHP3iyU.js";
4
- import "./ErrorMessage-CGFZglzN.js";
5
- import { t as ChipList } from "./ChipList-Csyg7DJ2.js";
1
+ import "./useThemedStyles-BJWB5BTH.js";
2
+ import "./Typography-CKSjnDPX.js";
3
+ import "./Chip-CINbb2Hf.js";
4
+ import "./Label-CPua_PPu.js";
5
+ import "./ErrorMessage-DOkrG22I.js";
6
+ import { t as ChipList } from "./ChipList-Dspe8Tf9.js";
6
7
 
7
8
  export { ChipList };
package/dist/chip.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as ChipProps, r as types_d_exports } from "./types-B4Yk1AUa.js";
1
+ import { n as ChipProps, r as types_d_exports } from "./types-CTYkmfAB.js";
2
2
  import React from "react";
3
3
 
4
4
  //#region src/components/commons/toolkit/Chip/index.d.ts
package/dist/chip.js CHANGED
@@ -1,5 +1,5 @@
1
- import "./useThemedStyles-CV4ryZLN.js";
2
- import "./Typography-gvXwbYdT.js";
3
- import { n as types_exports, t as Chip } from "./Chip-DzHP3iyU.js";
1
+ import "./useThemedStyles-BJWB5BTH.js";
2
+ import "./Typography-CKSjnDPX.js";
3
+ import { n as types_exports, t as Chip } from "./Chip-CINbb2Hf.js";
4
4
 
5
5
  export { Chip, types_exports as ChipTypes };
@@ -1,2 +1,2 @@
1
- import { n as types_d_exports, t as ColorPicker } from "./index-v28FA4ph.js";
1
+ import { n as types_d_exports, t as ColorPicker } from "./index-y7Z04PKd.js";
2
2
  export { ColorPicker, types_d_exports as ColorPickerTypes };
@@ -1,7 +1,8 @@
1
- import "./useThemedStyles-CV4ryZLN.js";
2
- import "./Typography-gvXwbYdT.js";
3
- import "./ErrorMessage-CGFZglzN.js";
4
- import { n as types_exports, t as ColorPicker } from "./ColorPicker-DSGLaSWK.js";
5
- import "./Skeleton-iCdZ2Gai.js";
1
+ import "./useThemedStyles-BJWB5BTH.js";
2
+ import "./Typography-CKSjnDPX.js";
3
+ import "./Label-CPua_PPu.js";
4
+ import "./ErrorMessage-DOkrG22I.js";
5
+ import { n as types_exports, t as ColorPicker } from "./ColorPicker-CdECHCbh.js";
6
+ import "./Skeleton-CixPhMzv.js";
6
7
 
7
8
  export { ColorPicker, types_exports as ColorPickerTypes };
@@ -1,2 +1,2 @@
1
- import { n as types_d_exports, t as ContextMenu } from "./index-ChkulgEl.js";
1
+ import { n as types_d_exports, t as ContextMenu } from "./index-CGPCzJ5m.js";
2
2
  export { ContextMenu, types_d_exports as ContextMenuTypes };
@@ -1,10 +1,10 @@
1
- import "./useThemedStyles-CV4ryZLN.js";
2
- import "./Switch-CiKBZRST.js";
3
- import "./useDismiss-w2spkFNN.js";
4
- import "./useFloating-BkMrolmn.js";
5
- import "./Popover-tzAZp6V7.js";
6
- import "./Typography-gvXwbYdT.js";
7
- import "./BasePopover-m1OfX3fO.js";
8
- import { n as types_exports, t as ContextMenu } from "./ContextMenu-Dpmf4SgX.js";
1
+ import "./useThemedStyles-BJWB5BTH.js";
2
+ import "./Switch-ySpoqwBk.js";
3
+ import "./useDismiss-D-z-tDnD.js";
4
+ import "./useFloating-CNaOVlhE.js";
5
+ import "./Popover-DGYahpRI.js";
6
+ import "./Typography-CKSjnDPX.js";
7
+ import "./BasePopover-Bcy5d1t5.js";
8
+ import { n as types_exports, t as ContextMenu } from "./ContextMenu-CtRqfo8w.js";
9
9
 
10
10
  export { ContextMenu, types_exports as ContextMenuTypes };
@@ -1,2 +1,2 @@
1
- import { t as IconButton } from "./index-DsQyEI6l.js";
1
+ import { t as IconButton } from "./index-CEGANhbI.js";
2
2
  export { IconButton };
@@ -1,4 +1,4 @@
1
- import "./useThemedStyles-CV4ryZLN.js";
2
- import { t as IconButton } from "./IconButton-BkwXYUL1.js";
1
+ import "./useThemedStyles-BJWB5BTH.js";
2
+ import { t as IconButton } from "./IconButton-DQaptukh.js";
3
3
 
4
4
  export { IconButton };
@@ -13,4 +13,4 @@ interface SwitchThumbProps {
13
13
  declare const Switch: React.FC<SwitchThumbProps>;
14
14
  //#endregion
15
15
  export { Switch as t };
16
- //# sourceMappingURL=index-BEd1qAu7.d.ts.map
16
+ //# sourceMappingURL=index-5eyvKw2O.d.ts.map
@@ -10,4 +10,4 @@ interface CheckItemProps {
10
10
  declare const CheckItem: React.FC<CheckItemProps>;
11
11
  //#endregion
12
12
  export { CheckItem as t };
13
- //# sourceMappingURL=index-IIjo6avX.d.ts.map
13
+ //# sourceMappingURL=index-B9mLvqQT.d.ts.map
@@ -1,7 +1,7 @@
1
- import { a as TextProps, n as LayoutProps, r as MarginProps } from "./styleProps-CrD6h1FM.js";
2
- import { r as StylesOf } from "./useThemedStyles-0XwrILh9.js";
3
- import { t as FloatingOptions } from "./types-Cr3L1i9Q.js";
4
- import { t as PopoverProps } from "./types-B-zFTnqe.js";
1
+ import { a as TextProps, n as LayoutProps, r as MarginProps } from "./styleProps-BTRkIoXb.js";
2
+ import { r as StylesOf } from "./useThemedStyles-B4g2CRsn.js";
3
+ import { t as FloatingOptions } from "./types-CLnohr-1.js";
4
+ import { t as PopoverProps } from "./types-C0u1I3AZ.js";
5
5
  import React$1 from "react";
6
6
 
7
7
  //#region src/components/commons/inputs/Select/styles.d.ts
@@ -84,4 +84,4 @@ interface SelectOption {
84
84
  declare const Select: React$1.FC<SelectProps>;
85
85
  //#endregion
86
86
  export { types_d_exports as n, Select as t };
87
- //# sourceMappingURL=index-CNPbAm9i.d.ts.map
87
+ //# sourceMappingURL=index-BWN2i3t9.d.ts.map
@@ -1,4 +1,4 @@
1
- import { n as TypographyVariant } from "./types-oQ4y-S7G.js";
1
+ import { n as TypographyVariant } from "./types-aSZkOYQF.js";
2
2
  import React$1 from "react";
3
3
 
4
4
  //#region src/components/commons/toolkit/Checkbox/types.d.ts
@@ -26,4 +26,4 @@ interface CheckboxProps {
26
26
  declare const Checkbox: React$1.FC<CheckboxProps>;
27
27
  //#endregion
28
28
  export { Checkbox as t };
29
- //# sourceMappingURL=index-BwxZG9_q.d.ts.map
29
+ //# sourceMappingURL=index-BXZ-OM5P.d.ts.map
@@ -294,4 +294,4 @@ declare const ThemeProvider: React.FC<ThemeProviderProps>;
294
294
  declare function useTheme(): ThemeContextData;
295
295
  //#endregion
296
296
  export { ThemeName as a, ThemeRegistry as c, ThemeMode as i, ThemeTokens as l, useTheme as n, ThemePersistence as o, ThemeContextData as r, ThemeProviderProps as s, ThemeProvider as t };
297
- //# sourceMappingURL=index-Bg-qBbvL.d.ts.map
297
+ //# sourceMappingURL=index-BY5IQiDl.d.ts.map
@@ -142,4 +142,4 @@ declare const MaskModule: {
142
142
  };
143
143
  //#endregion
144
144
  export { Locale as n, MaskType as r, MaskModule as t };
145
- //# sourceMappingURL=index-C2rKLkDO.d.ts.map
145
+ //# sourceMappingURL=index-CAMj03qs.d.ts.map
@@ -0,0 +1,20 @@
1
+ import { n as LayoutProps } from "./styleProps-BTRkIoXb.js";
2
+ import React from "react";
3
+
4
+ //#region src/components/commons/inputs/SearchInput/types.d.ts
5
+ interface SearchInputProps extends LayoutProps {
6
+ value?: string;
7
+ label: string;
8
+ delay?: number;
9
+ hideLabel?: boolean;
10
+ placeholder?: string;
11
+ autoFocus?: boolean;
12
+ hasSearchIcon?: boolean;
13
+ onChange: (value: string) => void;
14
+ }
15
+ //#endregion
16
+ //#region src/components/commons/inputs/SearchInput/index.d.ts
17
+ declare const SearchInput: React.FC<SearchInputProps>;
18
+ //#endregion
19
+ export { SearchInput as t };
20
+ //# sourceMappingURL=index-CBfW89pi.d.ts.map
@@ -49,4 +49,4 @@ type IconButtonVariant = 'filled' | 'outlined' | 'ghost';
49
49
  declare const IconButton: React.FC<IconButtonProps>;
50
50
  //#endregion
51
51
  export { IconButton as t };
52
- //# sourceMappingURL=index-DsQyEI6l.d.ts.map
52
+ //# sourceMappingURL=index-CEGANhbI.d.ts.map
@@ -1,4 +1,4 @@
1
- import { n as Placement } from "./types-Cr3L1i9Q.js";
1
+ import { n as Placement } from "./types-CLnohr-1.js";
2
2
  import { ReactNode } from "react";
3
3
  import * as react_jsx_runtime0 from "react/jsx-runtime";
4
4
 
@@ -70,4 +70,4 @@ interface ContextMenuProps<T> {
70
70
  declare const ContextMenu: <T extends string>(props: ContextMenuProps<T>) => react_jsx_runtime0.JSX.Element;
71
71
  //#endregion
72
72
  export { types_d_exports as n, ContextMenu as t };
73
- //# sourceMappingURL=index-ChkulgEl.d.ts.map
73
+ //# sourceMappingURL=index-CGPCzJ5m.d.ts.map
@@ -1,4 +1,4 @@
1
- import { n as StyleMap } from "./useThemedStyles-0XwrILh9.js";
1
+ import { n as StyleMap } from "./useThemedStyles-B4g2CRsn.js";
2
2
  import React$1 from "react";
3
3
 
4
4
  //#region src/components/commons/structure/Breadcrumb/styles.d.ts
@@ -26,4 +26,4 @@ interface PageOption {
26
26
  declare const Breadcrumb: React$1.FC<BreadcrumbProps>;
27
27
  //#endregion
28
28
  export { Breadcrumb as t };
29
- //# sourceMappingURL=index-XBmzyFW4.d.ts.map
29
+ //# sourceMappingURL=index-CqmzOJc_.d.ts.map
@@ -1,8 +1,8 @@
1
- import { t as PopoverProps } from "./types-B-zFTnqe.js";
1
+ import { t as PopoverProps } from "./types-C0u1I3AZ.js";
2
2
  import React from "react";
3
3
 
4
4
  //#region src/components/commons/toolkit/Popover/index.d.ts
5
5
  declare const Popover: React.FC<PopoverProps>;
6
6
  //#endregion
7
7
  export { Popover as t };
8
- //# sourceMappingURL=index-BbvC10jX.d.ts.map
8
+ //# sourceMappingURL=index-D5OTHkPO.d.ts.map
@@ -1,6 +1,6 @@
1
- import { i as PaddingProps, n as LayoutProps } from "./styleProps-CrD6h1FM.js";
2
- import { i as TypeStyles } from "./useThemedStyles-0XwrILh9.js";
3
- import { n as TypographyVariant } from "./types-oQ4y-S7G.js";
1
+ import { i as PaddingProps, n as LayoutProps } from "./styleProps-BTRkIoXb.js";
2
+ import { i as TypeStyles } from "./useThemedStyles-B4g2CRsn.js";
3
+ import { n as TypographyVariant } from "./types-aSZkOYQF.js";
4
4
  import React, { MouseEvent, ReactNode } from "react";
5
5
 
6
6
  //#region src/components/commons/buttons/Button/styles.d.ts
@@ -123,4 +123,4 @@ interface ButtonProps extends PaddingProps, LayoutProps {
123
123
  declare const Button: React.FC<ButtonProps>;
124
124
  //#endregion
125
125
  export { Button as t };
126
- //# sourceMappingURL=index-DCocNerH.d.ts.map
126
+ //# sourceMappingURL=index-D5Zfkj5F.d.ts.map
@@ -1,4 +1,4 @@
1
- import { t as PopoverProps } from "./types-B-zFTnqe.js";
1
+ import { t as PopoverProps } from "./types-C0u1I3AZ.js";
2
2
  import React, { PropsWithChildren } from "react";
3
3
 
4
4
  //#region src/components/commons/structure/BasePopover/types.d.ts
@@ -19,4 +19,4 @@ interface BasePopoverProps extends Omit<PopoverProps, 'content' | 'hideShadow'>,
19
19
  declare const BasePopover: React.FC<BasePopoverProps>;
20
20
  //#endregion
21
21
  export { BasePopover as t };
22
- //# sourceMappingURL=index-DvbYyCcE.d.ts.map
22
+ //# sourceMappingURL=index-DEAzVsKY.d.ts.map
@@ -1,6 +1,6 @@
1
- import { a as TextProps, n as LayoutProps, r as MarginProps } from "./styleProps-CrD6h1FM.js";
2
- import { r as StylesOf } from "./useThemedStyles-0XwrILh9.js";
3
- import { r as MaskType } from "./index-C2rKLkDO.js";
1
+ import { a as TextProps, n as LayoutProps, r as MarginProps } from "./styleProps-BTRkIoXb.js";
2
+ import { r as StylesOf } from "./useThemedStyles-B4g2CRsn.js";
3
+ import { r as MaskType } from "./index-CAMj03qs.js";
4
4
  import * as react0 from "react";
5
5
  import { HTMLInputTypeAttribute, InputHTMLAttributes, ReactNode } from "react";
6
6
 
@@ -100,4 +100,4 @@ interface InputMethods {
100
100
  declare const Input: react0.ForwardRefExoticComponent<InputProps & react0.RefAttributes<InputMethods>>;
101
101
  //#endregion
102
102
  export { Input as t };
103
- //# sourceMappingURL=index-B9Ooz6lk.d.ts.map
103
+ //# sourceMappingURL=index-DLbeWu4b.d.ts.map
@@ -1,4 +1,4 @@
1
- import { n as StyleMap } from "./useThemedStyles-0XwrILh9.js";
1
+ import { n as StyleMap } from "./useThemedStyles-B4g2CRsn.js";
2
2
  import React from "react";
3
3
 
4
4
  //#region src/components/commons/structure/Skeleton/styles.d.ts
@@ -16,4 +16,4 @@ interface SkeletonProps {
16
16
  declare const Skeleton: React.FC<SkeletonProps>;
17
17
  //#endregion
18
18
  export { Skeleton as t };
19
- //# sourceMappingURL=index-B9PAov_V.d.ts.map
19
+ //# sourceMappingURL=index-DVB1TrWc.d.ts.map
@@ -1,4 +1,4 @@
1
- import { t as CommonStyleProps } from "./styleProps-CrD6h1FM.js";
1
+ import { t as CommonStyleProps } from "./styleProps-BTRkIoXb.js";
2
2
  import { ReactNode } from "react";
3
3
  import * as react_jsx_runtime0 from "react/jsx-runtime";
4
4
 
@@ -44,4 +44,4 @@ interface TabSwitchProps<T> extends CommonStyleProps {
44
44
  declare const TabSwitch: <T>(props: TabSwitchProps<T>) => react_jsx_runtime0.JSX.Element;
45
45
  //#endregion
46
46
  export { SwitchOption as n, TabSwitchProps as r, TabSwitch as t };
47
- //# sourceMappingURL=index-BZ2ZYR1Y.d.ts.map
47
+ //# sourceMappingURL=index-YN8kSeey.d.ts.map