@orion-ds/react 4.6.6 → 4.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blocks/index.d 2.ts +9 -0
- package/dist/blocks/index.d.ts 2.map +1 -0
- package/dist/blocks 2.css +76 -0
- package/dist/components/index.d 4.ts +151 -0
- package/dist/components/index.d.ts 4.map +1 -0
- package/dist/contexts/ThemeContext.d 4.ts +70 -0
- package/dist/contexts/ThemeContext.d.ts 4.map +1 -0
- package/dist/contexts/index.d 4.ts +8 -0
- package/dist/contexts/index.d.ts 4.map +1 -0
- package/dist/dnd.d 2.ts +16 -0
- package/dist/dnd.d.ts 2.map +1 -0
- package/dist/docs/DocComponents.d 3.ts +61 -0
- package/dist/docs/DocComponents.d.ts 3.map +1 -0
- package/dist/editor.d 2.ts +13 -0
- package/dist/editor.d.ts 2.map +1 -0
- package/dist/examples/LandingPage.example.d 4.ts +47 -0
- package/dist/examples/LandingPage.example.d.ts 4.map +1 -0
- package/dist/examples/index.d 4.ts +22 -0
- package/dist/examples/index.d.ts 4.map +1 -0
- package/dist/hooks/index.d 4.ts +20 -0
- package/dist/hooks/index.d.ts 4.map +1 -0
- package/dist/hooks/useClickOutside.d 4.ts +19 -0
- package/dist/hooks/useClickOutside.d.ts 4.map +1 -0
- package/dist/hooks/useCopyToClipboard.d 4.ts +72 -0
- package/dist/hooks/useCopyToClipboard.d.ts 4.map +1 -0
- package/dist/hooks/useDebounce.d 4.ts +58 -0
- package/dist/hooks/useDebounce.d.ts 4.map +1 -0
- package/dist/hooks/useDisclosure.d 4.ts +86 -0
- package/dist/hooks/useDisclosure.d.ts 4.map +1 -0
- package/dist/hooks/useKeyboard.d 4.ts +101 -0
- package/dist/hooks/useKeyboard.d.ts 4.map +1 -0
- package/dist/hooks/useLocalStorage.d 4.ts +48 -0
- package/dist/hooks/useLocalStorage.d.ts 4.map +1 -0
- package/dist/hooks/useMediaQuery.d 4.ts +43 -0
- package/dist/hooks/useMediaQuery.d.ts 4.map +1 -0
- package/dist/hooks/useTheme.d 4.ts +73 -0
- package/dist/hooks/useTheme.d.ts 4.map +1 -0
- package/dist/index 3.mjs +275 -0
- package/dist/index 4.cjs +1 -0
- package/dist/index.d 2.ts +171 -0
- package/dist/index.d.ts 2.map +1 -0
- package/dist/index10 2.mjs +58 -0
- package/dist/index10 3.cjs +1 -0
- package/dist/index100 3.cjs +1 -0
- package/dist/index100 3.mjs +23 -0
- package/dist/index101 2.mjs +29 -0
- package/dist/index101 3.cjs +1 -0
- package/dist/index102 2.mjs +45 -0
- package/dist/index102 3.cjs +1 -0
- package/dist/index103 3.cjs +1 -0
- package/dist/index103 3.mjs +67 -0
- package/dist/index104 2.cjs +1 -0
- package/dist/index104 2.mjs +65 -0
- package/dist/index105 2.cjs +1 -0
- package/dist/index105 3.mjs +27 -0
- package/dist/index106 2.cjs +1 -0
- package/dist/index106 2.mjs +39 -0
- package/dist/index107 2.cjs +1 -0
- package/dist/index107 3.mjs +21 -0
- package/dist/index108 2.mjs +33 -0
- package/dist/index108 4.cjs +1 -0
- package/dist/index109 2.cjs +1 -0
- package/dist/index109 4.mjs +39 -0
- package/dist/index11 2.mjs +20 -0
- package/dist/index11 4.cjs +1 -0
- package/dist/index110 2.cjs +1 -0
- package/dist/index110 2.mjs +31 -0
- package/dist/index111 2.mjs +49 -0
- package/dist/index111 3.cjs +1 -0
- package/dist/index112 2.cjs +1 -0
- package/dist/index112 2.mjs +36 -0
- package/dist/index113 2.cjs +1 -0
- package/dist/index113 2.mjs +43 -0
- package/dist/index114 2.cjs +1 -0
- package/dist/index114 2.mjs +27 -0
- package/dist/index115 3.mjs +237 -0
- package/dist/index115 4.cjs +1 -0
- package/dist/index116 3.cjs +1 -0
- package/dist/index116 3.mjs +36 -0
- package/dist/index117 2.mjs +46 -0
- package/dist/index117 4.cjs +1 -0
- package/dist/index118 2.cjs +1 -0
- package/dist/index118 2.mjs +173 -0
- package/dist/index119 2.cjs +1 -0
- package/dist/index119 2.mjs +188 -0
- package/dist/index120 2.mjs +31 -0
- package/dist/index120 3.cjs +1 -0
- package/dist/index121 2.cjs +1 -0
- package/dist/index121 2.mjs +93 -0
- package/dist/index122 2.mjs +55 -0
- package/dist/index122 4.cjs +1 -0
- package/dist/index123 2.cjs +1 -0
- package/dist/index123 3.mjs +69 -0
- package/dist/index124 2.mjs +127 -0
- package/dist/index124 4.cjs +1 -0
- package/dist/index125 3.mjs +111 -0
- package/dist/index125 4.cjs +1 -0
- package/dist/index126 4.cjs +1 -0
- package/dist/index126 4.mjs +114 -0
- package/dist/index127 2.mjs +125 -0
- package/dist/index127 4.cjs +1 -0
- package/dist/index128 2.cjs +1 -0
- package/dist/index128 2.mjs +217 -0
- package/dist/index129 2.cjs +1 -0
- package/dist/index129 2.mjs +109 -0
- package/dist/index13 2.mjs +84 -0
- package/dist/index13 4.cjs +1 -0
- package/dist/index130 2.cjs +1 -0
- package/dist/index130 2.mjs +68 -0
- package/dist/index131 2.cjs +1 -0
- package/dist/index131 3.mjs +45 -0
- package/dist/index132 3.cjs +1 -0
- package/dist/index132 4.mjs +31 -0
- package/dist/index133 3.mjs +33 -0
- package/dist/index133 4.cjs +1 -0
- package/dist/index134 2.mjs +49 -0
- package/dist/index134 3.cjs +1 -0
- package/dist/index135 3.cjs +1 -0
- package/dist/index135 4.mjs +15 -0
- package/dist/index136 2.mjs +47 -0
- package/dist/index136 3.cjs +1 -0
- package/dist/index137 2.mjs +58 -0
- package/dist/index137 3.cjs +1 -0
- package/dist/index138 2.mjs +23 -0
- package/dist/index138 4.cjs +1 -0
- package/dist/index139 2.mjs +21 -0
- package/dist/index139 3.cjs +1 -0
- package/dist/index14 2.mjs +71 -0
- package/dist/index14 4.cjs +1 -0
- package/dist/index140 2.cjs +1 -0
- package/dist/index140 4.mjs +27 -0
- package/dist/index141 2.cjs +1 -0
- package/dist/index141 2.mjs +27 -0
- package/dist/index142 3.mjs +56 -0
- package/dist/index142 4.cjs +1 -0
- package/dist/index143 2.mjs +47 -0
- package/dist/index143 3.cjs +1 -0
- package/dist/index144 2.mjs +31 -0
- package/dist/index144 4.cjs +1 -0
- package/dist/index145 2.cjs +1 -0
- package/dist/index145 3.mjs +70 -0
- package/dist/index146 2.cjs +1 -0
- package/dist/index146 3.mjs +36 -0
- package/dist/index147 2.mjs +23 -0
- package/dist/index147 4.cjs +1 -0
- package/dist/index148 2.mjs +25 -0
- package/dist/index148 4.cjs +1 -0
- package/dist/index149 2.cjs +1 -0
- package/dist/index149 3.mjs +55 -0
- package/dist/index15 2.cjs +1 -0
- package/dist/index15 3.mjs +135 -0
- package/dist/index150 2.cjs +1 -0
- package/dist/index150 3.mjs +57 -0
- package/dist/index151 3.cjs +1 -0
- package/dist/index151 3.mjs +49 -0
- package/dist/index152 2.cjs +1 -0
- package/dist/index152 2.mjs +79 -0
- package/dist/index153 2.mjs +17 -0
- package/dist/index153 3.cjs +1 -0
- package/dist/index154 2.mjs +45 -0
- package/dist/index154 3.cjs +1 -0
- package/dist/index155 2.cjs +1 -0
- package/dist/index155 3.mjs +43 -0
- package/dist/index156 2.cjs +1 -0
- package/dist/index156 3.mjs +38 -0
- package/dist/index157 2.cjs +1 -0
- package/dist/index157 3.mjs +31 -0
- package/dist/index158 2.cjs +1 -0
- package/dist/index158 2.mjs +43 -0
- package/dist/index159 2.mjs +23 -0
- package/dist/index159 3.cjs +1 -0
- package/dist/index16 3.cjs +1 -0
- package/dist/index16 3.mjs +106 -0
- package/dist/index160 2.cjs +1 -0
- package/dist/index160 3.mjs +15 -0
- package/dist/index161 2.cjs +1 -0
- package/dist/index161 3.mjs +60 -0
- package/dist/index162 2.cjs +1 -0
- package/dist/index162 3.mjs +35 -0
- package/dist/index163 2.cjs +1 -0
- package/dist/index163 2.mjs +19 -0
- package/dist/index164 2.cjs +1 -0
- package/dist/index164 2.mjs +31 -0
- package/dist/index165 2.mjs +21 -0
- package/dist/index165 3.cjs +1 -0
- package/dist/index166 2.cjs +1 -0
- package/dist/index166 2.mjs +48 -0
- package/dist/index167 3.cjs +1 -0
- package/dist/index167 3.mjs +55 -0
- package/dist/index168 3.mjs +65 -0
- package/dist/index168 4.cjs +1 -0
- package/dist/index169 2.cjs +1 -0
- package/dist/index169 2.mjs +39 -0
- package/dist/index17 2.cjs +1 -0
- package/dist/index17 2.mjs +178 -0
- package/dist/index170 2.mjs +33 -0
- package/dist/index170 3.cjs +1 -0
- package/dist/index171 3.cjs +1 -0
- package/dist/index171 3.mjs +31 -0
- package/dist/index172 2.cjs +1 -0
- package/dist/index172 4.mjs +35 -0
- package/dist/index173 2.cjs +1 -0
- package/dist/index173 2.mjs +31 -0
- package/dist/index174 2.cjs +1 -0
- package/dist/index174 2.mjs +33 -0
- package/dist/index175 2.cjs +1 -0
- package/dist/index175 2.mjs +67 -0
- package/dist/index176 2.cjs +1 -0
- package/dist/index176 2.mjs +30 -0
- package/dist/index177 2.mjs +41 -0
- package/dist/index177 4.cjs +1 -0
- package/dist/index178 2.mjs +33 -0
- package/dist/index178 3.cjs +1 -0
- package/dist/index179 2.cjs +1 -0
- package/dist/index179 2.mjs +33 -0
- package/dist/index18 2.mjs +38 -0
- package/dist/index18 3.cjs +1 -0
- package/dist/index180 2.cjs +1 -0
- package/dist/index180 3.mjs +53 -0
- package/dist/index181 2.cjs +1 -0
- package/dist/index181 2.mjs +59 -0
- package/dist/index182 2.mjs +21 -0
- package/dist/index182 3.cjs +1 -0
- package/dist/index183 2.cjs +1 -0
- package/dist/index183 3.mjs +21 -0
- package/dist/index184 2.cjs +1 -0
- package/dist/index184 2.mjs +12 -0
- package/dist/index185 2.cjs +1 -0
- package/dist/index185 2.mjs +57 -0
- package/dist/index19 2.cjs +1 -0
- package/dist/index19 2.mjs +103 -0
- package/dist/index20 2.cjs +1 -0
- package/dist/index20 2.mjs +56 -0
- package/dist/index21 2.cjs +1 -0
- package/dist/index21 3.mjs +84 -0
- package/dist/index22 2.cjs +1 -0
- package/dist/index22 2.mjs +86 -0
- package/dist/index23 2.cjs +6 -0
- package/dist/index23 4.mjs +255 -0
- package/dist/index24 2.mjs +114 -0
- package/dist/index24 3.cjs +1 -0
- package/dist/index25 2.cjs +1 -0
- package/dist/index25 4.mjs +196 -0
- package/dist/index26 3.mjs +271 -0
- package/dist/index26 4.cjs +1 -0
- package/dist/index27 2.cjs +1 -0
- package/dist/index27 2.mjs +248 -0
- package/dist/index28 2.cjs +1 -0
- package/dist/index28 2.mjs +193 -0
- package/dist/index29 2.cjs +1 -0
- package/dist/index29 2.mjs +26 -0
- package/dist/index3 2.cjs +1 -0
- package/dist/index3 2.mjs +600 -0
- package/dist/index30 2.cjs +1 -0
- package/dist/index30 2.mjs +339 -0
- package/dist/index31 2.cjs +1 -0
- package/dist/index31 4.mjs +104 -0
- package/dist/index32 2.mjs +103 -0
- package/dist/index32 3.cjs +1 -0
- package/dist/index33 2.cjs +1 -0
- package/dist/index33 4.mjs +48 -0
- package/dist/index34 2.cjs +1 -0
- package/dist/index34 3.mjs +132 -0
- package/dist/index35 2.cjs +1 -0
- package/dist/index35 2.mjs +176 -0
- package/dist/index36 2.cjs +1 -0
- package/dist/index36 2.mjs +30 -0
- package/dist/index37 2.cjs +1 -0
- package/dist/index37 2.mjs +43 -0
- package/dist/index38 2.cjs +1 -0
- package/dist/index38 2.mjs +107 -0
- package/dist/index39 2.cjs +1 -0
- package/dist/index39 4.mjs +202 -0
- package/dist/index4 2.mjs +59 -0
- package/dist/index4 3.cjs +3 -0
- package/dist/index40 2.mjs +164 -0
- package/dist/index40 3.cjs +1 -0
- package/dist/index41 3.cjs +1 -0
- package/dist/index41 3.mjs +47 -0
- package/dist/index42 2.cjs +1 -0
- package/dist/index42 2.mjs +84 -0
- package/dist/index43 2.cjs +1 -0
- package/dist/index43 3.mjs +54 -0
- package/dist/index44 2.mjs +205 -0
- package/dist/index44 3.cjs +3 -0
- package/dist/index45 3.cjs +1 -0
- package/dist/index45 3.mjs +104 -0
- package/dist/index46 2.cjs +1 -0
- package/dist/index46 4.mjs +143 -0
- package/dist/index47 2.cjs +1 -0
- package/dist/index47 2.mjs +190 -0
- package/dist/index48 2.mjs +106 -0
- package/dist/index48 3.cjs +1 -0
- package/dist/index49 2.cjs +1 -0
- package/dist/index49 2.mjs +82 -0
- package/dist/index5 2.cjs +1 -0
- package/dist/index5 2.mjs +94 -0
- package/dist/index50 2.mjs +95 -0
- package/dist/index50 3.cjs +1 -0
- package/dist/index51 2.cjs +1 -0
- package/dist/index51 2.mjs +125 -0
- package/dist/index52 2.cjs +1 -0
- package/dist/index52 3.mjs +72 -0
- package/dist/index53 2.cjs +1 -0
- package/dist/index53 3.mjs +273 -0
- package/dist/index54 2.cjs +1 -0
- package/dist/index54 3.mjs +129 -0
- package/dist/index55 2.cjs +1 -0
- package/dist/index55 2.mjs +172 -0
- package/dist/index56 2.cjs +1 -0
- package/dist/index56 3.mjs +105 -0
- package/dist/index57 2.cjs +1 -0
- package/dist/index57 3.mjs +136 -0
- package/dist/index58 2.cjs +1 -0
- package/dist/index58 2.mjs +191 -0
- package/dist/index59 2.cjs +1 -0
- package/dist/index59 3.mjs +54 -0
- package/dist/index6 2.cjs +1 -0
- package/dist/index6 2.mjs +128 -0
- package/dist/index60 2.mjs +148 -0
- package/dist/index60 3.cjs +1 -0
- package/dist/index61 2.cjs +1 -0
- package/dist/index61 2.mjs +76 -0
- package/dist/index62 2.cjs +1 -0
- package/dist/index62 2.mjs +87 -0
- package/dist/index63 2.cjs +1 -0
- package/dist/index63 2.mjs +36 -0
- package/dist/index64 2.cjs +1 -0
- package/dist/index64 3.mjs +78 -0
- package/dist/index65 3.mjs +153 -0
- package/dist/index65 4.cjs +1 -0
- package/dist/index66 2.cjs +1 -0
- package/dist/index66 2.mjs +54 -0
- package/dist/index67 2.cjs +1 -0
- package/dist/index67 2.mjs +109 -0
- package/dist/index68 2.cjs +1 -0
- package/dist/index68 3.mjs +28 -0
- package/dist/index69 2.cjs +1 -0
- package/dist/index69 2.mjs +133 -0
- package/dist/index7 2.mjs +120 -0
- package/dist/index7 3.cjs +1 -0
- package/dist/index70 2.cjs +1 -0
- package/dist/index70 2.mjs +80 -0
- package/dist/index71 2.cjs +1 -0
- package/dist/index71 2.mjs +101 -0
- package/dist/index72 2.mjs +97 -0
- package/dist/index72 3.cjs +1 -0
- package/dist/index73 2.cjs +1 -0
- package/dist/index73 2.mjs +118 -0
- package/dist/index74 2.cjs +1 -0
- package/dist/index74 2.mjs +389 -0
- package/dist/index75 2.cjs +38 -0
- package/dist/index75 2.mjs +98 -0
- package/dist/index76 2.mjs +225 -0
- package/dist/index76 3.cjs +1 -0
- package/dist/index77 2.cjs +1 -0
- package/dist/index77 3.mjs +48 -0
- package/dist/index78 2.cjs +1 -0
- package/dist/index78 2.mjs +101 -0
- package/dist/index79 2.cjs +1 -0
- package/dist/index79 3.mjs +39 -0
- package/dist/index8 2.cjs +1 -0
- package/dist/index8 3.mjs +51 -0
- package/dist/index80 2.cjs +1 -0
- package/dist/index80 2.mjs +161 -0
- package/dist/index81 3.cjs +1 -0
- package/dist/index81 3.mjs +119 -0
- package/dist/index82 2.cjs +1 -0
- package/dist/index82 3.mjs +33 -0
- package/dist/index83 2.cjs +1 -0
- package/dist/index83 3.mjs +249 -0
- package/dist/index84 2.mjs +50 -0
- package/dist/index84 4.cjs +1 -0
- package/dist/index85 2.cjs +1 -0
- package/dist/index85 2.mjs +44 -0
- package/dist/index86 2.mjs +33 -0
- package/dist/index86 3.cjs +1 -0
- package/dist/index87 2.cjs +1 -0
- package/dist/index87 3.mjs +41 -0
- package/dist/index88 2.mjs +39 -0
- package/dist/index88 3.cjs +1 -0
- package/dist/index89 3.cjs +1 -0
- package/dist/index89 3.mjs +26 -0
- package/dist/index9 2.cjs +1 -0
- package/dist/index9 2.mjs +91 -0
- package/dist/index90 2.cjs +1 -0
- package/dist/index90 2.mjs +35 -0
- package/dist/index91 2.cjs +1 -0
- package/dist/index91 2.mjs +99 -0
- package/dist/index92 2.mjs +103 -0
- package/dist/index92 3.cjs +1 -0
- package/dist/index93 2.cjs +1 -0
- package/dist/index93 2.mjs +21 -0
- package/dist/index94 2.cjs +1 -0
- package/dist/index94 2.mjs +55 -0
- package/dist/index95 2.cjs +1 -0
- package/dist/index95 2.mjs +74 -0
- package/dist/index96 2.cjs +97 -0
- package/dist/index96 2.mjs +206 -0
- package/dist/index97 2.mjs +157 -0
- package/dist/index97 3.cjs +1 -0
- package/dist/index98 2.cjs +1 -0
- package/dist/index98 3.mjs +221 -0
- package/dist/index99 2.cjs +1 -0
- package/dist/index99 2.mjs +21 -0
- package/dist/main.d 2.ts +2 -0
- package/dist/main.d.ts 3.map +1 -0
- package/dist/rich.d 2.ts +16 -0
- package/dist/rich.d.ts 2.map +1 -0
- package/dist/sections/index.d 2.ts +29 -0
- package/dist/sections/index.d.ts 2.map +1 -0
- package/dist/styles/marker 3.css +1 -0
- package/dist/styles 2.css +9055 -0
- package/dist/templates/index.d 2.ts +1 -0
- package/dist/test/a11y.d 3.ts +8 -0
- package/dist/test/a11y.d.ts 3.map +1 -0
- package/dist/test/performance.bench.d 3.ts +11 -0
- package/dist/test/performance.bench.d.ts 3.map +1 -0
- package/dist/test/setup.d 3.ts +2 -0
- package/dist/test/setup.d.ts 3.map +1 -0
- package/dist/theme 2.css +8871 -0
- package/dist/tokens/brands.d 3.ts +5 -0
- package/dist/tokens/brands.d.ts 3.map +1 -0
- package/dist/tokens/index.d 3.ts +11 -0
- package/dist/tokens/index.d.ts 3.map +1 -0
- package/dist/tokens/primitives.d 3.ts +5 -0
- package/dist/tokens/primitives.d.ts 3.map +1 -0
- package/dist/tokens/themes.d 3.ts +9 -0
- package/dist/tokens/themes.d.ts 3.map +1 -0
- package/dist/tokens/types.d 3.ts +365 -0
- package/dist/tokens/types.d.ts 3.map +1 -0
- package/dist/tokens/utils.d 3.ts +42 -0
- package/dist/tokens/utils.d.ts 3.map +1 -0
- package/dist/utils/fonts.d 3.ts +46 -0
- package/dist/utils/fonts.d.ts 3.map +1 -0
- package/dist/utils/icons.d 3.ts +61 -0
- package/dist/utils/icons.d.ts 3.map +1 -0
- package/dist/utils/index.d 3.ts +9 -0
- package/dist/utils/index.d.ts 3.map +1 -0
- package/dist/utils/validation.d 3.ts +94 -0
- package/dist/utils/validation.d.ts 3.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { useState as p, useRef as i, useCallback as a, useEffect as V } from "react";
|
|
2
|
+
function A(D = {}) {
|
|
3
|
+
const {
|
|
4
|
+
maxDuration: y = 300,
|
|
5
|
+
// 5 minutes default
|
|
6
|
+
mimeType: m = "audio/webm",
|
|
7
|
+
onRecordingComplete: h,
|
|
8
|
+
onError: u
|
|
9
|
+
} = D, [R, g] = p(!1), [E, w] = p(0), [I, b] = p(), [S, c] = p(), d = i(null), l = i(null), f = i([]), o = i(null), T = i(0), v = typeof window < "u" && "MediaRecorder" in window, t = a(() => {
|
|
10
|
+
o.current && (clearInterval(o.current), o.current = null), l.current && (l.current.getTracks().forEach((r) => r.stop()), l.current = null), d.current = null, f.current = [];
|
|
11
|
+
}, []), B = a(async () => {
|
|
12
|
+
if (!v) {
|
|
13
|
+
const r = "Voice recording is not supported in this browser";
|
|
14
|
+
c(r), u?.(r);
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
try {
|
|
18
|
+
c(void 0), b(void 0), w(0), f.current = [];
|
|
19
|
+
const r = await navigator.mediaDevices.getUserMedia({ audio: !0 });
|
|
20
|
+
l.current = r;
|
|
21
|
+
let n = m;
|
|
22
|
+
MediaRecorder.isTypeSupported(m) || (n = ["audio/webm", "audio/mp4", "audio/ogg"].find((C) => MediaRecorder.isTypeSupported(C)) || "");
|
|
23
|
+
const s = new MediaRecorder(r, {
|
|
24
|
+
mimeType: n || void 0
|
|
25
|
+
});
|
|
26
|
+
d.current = s, s.ondataavailable = (e) => {
|
|
27
|
+
e.data.size > 0 && f.current.push(e.data);
|
|
28
|
+
}, s.onstop = () => {
|
|
29
|
+
const e = new Blob(f.current, {
|
|
30
|
+
type: n || "audio/webm"
|
|
31
|
+
});
|
|
32
|
+
b(e), h?.(e), t();
|
|
33
|
+
}, s.onerror = () => {
|
|
34
|
+
const e = "Recording failed";
|
|
35
|
+
c(e), u?.(e), t();
|
|
36
|
+
}, s.start(100), g(!0), T.current = Date.now(), o.current = window.setInterval(() => {
|
|
37
|
+
const e = Math.floor((Date.now() - T.current) / 1e3);
|
|
38
|
+
w(e), e >= y && k();
|
|
39
|
+
}, 100);
|
|
40
|
+
} catch (r) {
|
|
41
|
+
const n = r instanceof Error ? r.message : "Failed to access microphone";
|
|
42
|
+
c(n), u?.(n), t();
|
|
43
|
+
}
|
|
44
|
+
}, [
|
|
45
|
+
v,
|
|
46
|
+
m,
|
|
47
|
+
y,
|
|
48
|
+
h,
|
|
49
|
+
u,
|
|
50
|
+
t
|
|
51
|
+
]), k = a(() => {
|
|
52
|
+
d.current && R && (d.current.stop(), g(!1), o.current && (clearInterval(o.current), o.current = null));
|
|
53
|
+
}, [R]), M = a(() => {
|
|
54
|
+
t(), g(!1), w(0), b(void 0);
|
|
55
|
+
}, [t]), x = a(() => {
|
|
56
|
+
M(), c(void 0);
|
|
57
|
+
}, [M]);
|
|
58
|
+
return V(() => () => {
|
|
59
|
+
t();
|
|
60
|
+
}, [t]), {
|
|
61
|
+
isRecording: R,
|
|
62
|
+
duration: E,
|
|
63
|
+
audioBlob: I,
|
|
64
|
+
error: S,
|
|
65
|
+
startRecording: B,
|
|
66
|
+
stopRecording: k,
|
|
67
|
+
cancelRecording: M,
|
|
68
|
+
reset: x,
|
|
69
|
+
isSupported: v
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
export {
|
|
73
|
+
A as useVoiceRecorder
|
|
74
|
+
};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=typeof process<"u"&&process.env?.NODE_ENV!=="production",a="color: #f59e0b; font-weight: bold;",s="color: #10b981;",r="background: #f3f4f6; padding: 2px 4px; border-radius: 3px;";function p(e,o,n){i&&o&&!n&&console.warn(`%c[Orion/${e}]%c Missing aria-label for icon-only component.
|
|
2
|
+
|
|
3
|
+
Screen readers cannot announce the purpose of this button.
|
|
4
|
+
|
|
5
|
+
%cFix:%c Add an aria-label prop:
|
|
6
|
+
%c<${e} iconOnly icon={<Icon />} aria-label="Description" />%c
|
|
7
|
+
|
|
8
|
+
Learn more: https://orion.design/accessibility`,a,"",s,"",r,"")}function m(e,o){i&&o&&console.warn(`%c[Orion/${e}]%c Brand is GLOBAL - set on ThemeProvider, not components.
|
|
9
|
+
|
|
10
|
+
Components automatically inherit the brand from the nearest ThemeProvider.
|
|
11
|
+
Passing brand as a prop has no effect.
|
|
12
|
+
|
|
13
|
+
%cFix:%c Set brand globally:
|
|
14
|
+
%c<ThemeProvider options={{ defaultBrand: 'red' }}>
|
|
15
|
+
<App />
|
|
16
|
+
</ThemeProvider>%c
|
|
17
|
+
|
|
18
|
+
Or change it dynamically:
|
|
19
|
+
%cconst { setBrand } = useThemeContext();
|
|
20
|
+
setBrand('deepblue');%c
|
|
21
|
+
|
|
22
|
+
Learn more: https://orion.design/theming`,a,"",s,"",r,"",r,"")}function h(e,o){i&&o&&console.warn(`%c[Orion/${e}]%c Theme is GLOBAL - set on ThemeProvider, not components.
|
|
23
|
+
|
|
24
|
+
Components automatically inherit the theme from the nearest ThemeProvider.
|
|
25
|
+
Passing theme as a prop has no effect.
|
|
26
|
+
|
|
27
|
+
%cFix:%c Set theme globally:
|
|
28
|
+
%c<ThemeProvider options={{ defaultTheme: 'dark' }}>
|
|
29
|
+
<App />
|
|
30
|
+
</ThemeProvider>%c
|
|
31
|
+
|
|
32
|
+
Or change it dynamically:
|
|
33
|
+
%cconst { setTheme, toggleTheme } = useThemeContext();
|
|
34
|
+
setTheme('dark');
|
|
35
|
+
toggleTheme();%c
|
|
36
|
+
|
|
37
|
+
Learn more: https://orion.design/theming`,a,"",s,"",r,"",r,"")}function f(e,o){if(i&&o==="glass"){const n=typeof document<"u"?document.documentElement.dataset.mode:void 0;n&&n!=="display"&&console.warn(`%c[Orion/${e}]%c Glass variant only works in Display mode.
|
|
38
|
+
|
|
39
|
+
Current mode is '%c${n}%c', but glass effects require '%cdisplay%c'.
|
|
40
|
+
The component will render but may not look as intended.
|
|
41
|
+
|
|
42
|
+
%cFix:%c Either:
|
|
43
|
+
1. Use a different variant for ${n} mode:
|
|
44
|
+
%c<${e} variant="elevated" />%c
|
|
45
|
+
|
|
46
|
+
2. Or switch to Display mode:
|
|
47
|
+
%c<html data-mode="display">%c
|
|
48
|
+
|
|
49
|
+
Learn more: https://orion.design/modes`,a,"",r,"",r,"",s,"",r,"",r,"")}}function u(e,o){if(!i||!o)return;const n=["color","backgroundColor","borderColor","background"],l=/#[0-9A-Fa-f]{3,8}/,d=/rgba?\s*\(/;for(const t of n){const c=o[t];if(typeof c=="string"&&(l.test(c)||d.test(c))){console.warn(`%c[Orion/${e}]%c Hardcoded color detected: ${t}="${c}"
|
|
50
|
+
|
|
51
|
+
Use CSS variables instead for theme compatibility.
|
|
52
|
+
|
|
53
|
+
%cFix:%c Replace hardcoded colors with tokens:
|
|
54
|
+
%c// Instead of:
|
|
55
|
+
style={{ ${t}: '${c}' }}
|
|
56
|
+
|
|
57
|
+
// Use:
|
|
58
|
+
style={{ ${t}: 'var(--text-primary)' }} // For text
|
|
59
|
+
style={{ ${t}: 'var(--surface-base)' }} // For backgrounds
|
|
60
|
+
style={{ ${t}: 'var(--border-subtle)' }} // For borders
|
|
61
|
+
style={{ ${t}: 'var(--interactive-primary)' }} // For interactive elements%c
|
|
62
|
+
|
|
63
|
+
Learn more: https://orion.design/tokens`,a,"",s,"",r,"");break}}}function b(e){i&&e&&console.warn(`%c[Orion/Field]%c Field is a self-contained component, not a wrapper.
|
|
64
|
+
|
|
65
|
+
Children passed to Field will be ignored.
|
|
66
|
+
|
|
67
|
+
%cFix:%c Use props instead of children:
|
|
68
|
+
%c// WRONG:
|
|
69
|
+
<Field label="Email">
|
|
70
|
+
<input type="email" />
|
|
71
|
+
</Field>
|
|
72
|
+
|
|
73
|
+
// CORRECT:
|
|
74
|
+
<Field
|
|
75
|
+
label="Email"
|
|
76
|
+
type="email"
|
|
77
|
+
placeholder="you@example.com"
|
|
78
|
+
/>%c
|
|
79
|
+
|
|
80
|
+
Learn more: https://orion.design/components/field`,a,"",s,"",r,"")}function g(e,o){i&&console.warn(`%c[Orion]%c Consider using the pre-built ${o} section instead of ${e}.
|
|
81
|
+
|
|
82
|
+
Orion provides ready-to-use sections that follow best practices.
|
|
83
|
+
|
|
84
|
+
%cAvailable sections:%c
|
|
85
|
+
Hero, Features, Pricing, Testimonials, FAQ, CTA, Footer,
|
|
86
|
+
Team, Contact, Newsletter, LogoCloud, Blog, Gallery,
|
|
87
|
+
Timeline, Comparison, Banner, SocialProof, AppDownload
|
|
88
|
+
|
|
89
|
+
%cUsage:%c
|
|
90
|
+
%cimport { ${o} } from '@orion/react';
|
|
91
|
+
|
|
92
|
+
<${o}
|
|
93
|
+
headline="Your Headline"
|
|
94
|
+
// ... other props
|
|
95
|
+
/>%c
|
|
96
|
+
|
|
97
|
+
Learn more: https://orion.design/sections`,a,"",s,"","","",r,"")}exports.warnBrandProp=m;exports.warnFieldChildren=b;exports.warnGlassVariant=f;exports.warnHardcodedColors=u;exports.warnMissingAriaLabel=p;exports.warnThemeProp=h;exports.warnUsePrebuiltSection=g;
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
const i = typeof process < "u" && process.env?.NODE_ENV !== "production", a = "color: #f59e0b; font-weight: bold;", s = "color: #10b981;", n = "background: #f3f4f6; padding: 2px 4px; border-radius: 3px;";
|
|
2
|
+
function p(e, o, r) {
|
|
3
|
+
i && o && !r && console.warn(
|
|
4
|
+
`%c[Orion/${e}]%c Missing aria-label for icon-only component.
|
|
5
|
+
|
|
6
|
+
Screen readers cannot announce the purpose of this button.
|
|
7
|
+
|
|
8
|
+
%cFix:%c Add an aria-label prop:
|
|
9
|
+
%c<${e} iconOnly icon={<Icon />} aria-label="Description" />%c
|
|
10
|
+
|
|
11
|
+
Learn more: https://orion.design/accessibility`,
|
|
12
|
+
a,
|
|
13
|
+
"",
|
|
14
|
+
s,
|
|
15
|
+
"",
|
|
16
|
+
n,
|
|
17
|
+
""
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
function m(e, o) {
|
|
21
|
+
i && o && console.warn(
|
|
22
|
+
`%c[Orion/${e}]%c Brand is GLOBAL - set on ThemeProvider, not components.
|
|
23
|
+
|
|
24
|
+
Components automatically inherit the brand from the nearest ThemeProvider.
|
|
25
|
+
Passing brand as a prop has no effect.
|
|
26
|
+
|
|
27
|
+
%cFix:%c Set brand globally:
|
|
28
|
+
%c<ThemeProvider options={{ defaultBrand: 'red' }}>
|
|
29
|
+
<App />
|
|
30
|
+
</ThemeProvider>%c
|
|
31
|
+
|
|
32
|
+
Or change it dynamically:
|
|
33
|
+
%cconst { setBrand } = useThemeContext();
|
|
34
|
+
setBrand('deepblue');%c
|
|
35
|
+
|
|
36
|
+
Learn more: https://orion.design/theming`,
|
|
37
|
+
a,
|
|
38
|
+
"",
|
|
39
|
+
s,
|
|
40
|
+
"",
|
|
41
|
+
n,
|
|
42
|
+
"",
|
|
43
|
+
n,
|
|
44
|
+
""
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
function h(e, o) {
|
|
48
|
+
i && o && console.warn(
|
|
49
|
+
`%c[Orion/${e}]%c Theme is GLOBAL - set on ThemeProvider, not components.
|
|
50
|
+
|
|
51
|
+
Components automatically inherit the theme from the nearest ThemeProvider.
|
|
52
|
+
Passing theme as a prop has no effect.
|
|
53
|
+
|
|
54
|
+
%cFix:%c Set theme globally:
|
|
55
|
+
%c<ThemeProvider options={{ defaultTheme: 'dark' }}>
|
|
56
|
+
<App />
|
|
57
|
+
</ThemeProvider>%c
|
|
58
|
+
|
|
59
|
+
Or change it dynamically:
|
|
60
|
+
%cconst { setTheme, toggleTheme } = useThemeContext();
|
|
61
|
+
setTheme('dark');
|
|
62
|
+
toggleTheme();%c
|
|
63
|
+
|
|
64
|
+
Learn more: https://orion.design/theming`,
|
|
65
|
+
a,
|
|
66
|
+
"",
|
|
67
|
+
s,
|
|
68
|
+
"",
|
|
69
|
+
n,
|
|
70
|
+
"",
|
|
71
|
+
n,
|
|
72
|
+
""
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
function f(e, o) {
|
|
76
|
+
if (i && o === "glass") {
|
|
77
|
+
const r = typeof document < "u" ? document.documentElement.dataset.mode : void 0;
|
|
78
|
+
r && r !== "display" && console.warn(
|
|
79
|
+
`%c[Orion/${e}]%c Glass variant only works in Display mode.
|
|
80
|
+
|
|
81
|
+
Current mode is '%c${r}%c', but glass effects require '%cdisplay%c'.
|
|
82
|
+
The component will render but may not look as intended.
|
|
83
|
+
|
|
84
|
+
%cFix:%c Either:
|
|
85
|
+
1. Use a different variant for ${r} mode:
|
|
86
|
+
%c<${e} variant="elevated" />%c
|
|
87
|
+
|
|
88
|
+
2. Or switch to Display mode:
|
|
89
|
+
%c<html data-mode="display">%c
|
|
90
|
+
|
|
91
|
+
Learn more: https://orion.design/modes`,
|
|
92
|
+
a,
|
|
93
|
+
"",
|
|
94
|
+
n,
|
|
95
|
+
"",
|
|
96
|
+
n,
|
|
97
|
+
"",
|
|
98
|
+
s,
|
|
99
|
+
"",
|
|
100
|
+
n,
|
|
101
|
+
"",
|
|
102
|
+
n,
|
|
103
|
+
""
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
function u(e, o) {
|
|
108
|
+
if (!i || !o) return;
|
|
109
|
+
const r = ["color", "backgroundColor", "borderColor", "background"], l = /#[0-9A-Fa-f]{3,8}/, d = /rgba?\s*\(/;
|
|
110
|
+
for (const t of r) {
|
|
111
|
+
const c = o[t];
|
|
112
|
+
if (typeof c == "string" && (l.test(c) || d.test(c))) {
|
|
113
|
+
console.warn(
|
|
114
|
+
`%c[Orion/${e}]%c Hardcoded color detected: ${t}="${c}"
|
|
115
|
+
|
|
116
|
+
Use CSS variables instead for theme compatibility.
|
|
117
|
+
|
|
118
|
+
%cFix:%c Replace hardcoded colors with tokens:
|
|
119
|
+
%c// Instead of:
|
|
120
|
+
style={{ ${t}: '${c}' }}
|
|
121
|
+
|
|
122
|
+
// Use:
|
|
123
|
+
style={{ ${t}: 'var(--text-primary)' }} // For text
|
|
124
|
+
style={{ ${t}: 'var(--surface-base)' }} // For backgrounds
|
|
125
|
+
style={{ ${t}: 'var(--border-subtle)' }} // For borders
|
|
126
|
+
style={{ ${t}: 'var(--interactive-primary)' }} // For interactive elements%c
|
|
127
|
+
|
|
128
|
+
Learn more: https://orion.design/tokens`,
|
|
129
|
+
a,
|
|
130
|
+
"",
|
|
131
|
+
s,
|
|
132
|
+
"",
|
|
133
|
+
n,
|
|
134
|
+
""
|
|
135
|
+
);
|
|
136
|
+
break;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
function b(e) {
|
|
141
|
+
i && e && console.warn(
|
|
142
|
+
`%c[Orion/Field]%c Field is a self-contained component, not a wrapper.
|
|
143
|
+
|
|
144
|
+
Children passed to Field will be ignored.
|
|
145
|
+
|
|
146
|
+
%cFix:%c Use props instead of children:
|
|
147
|
+
%c// WRONG:
|
|
148
|
+
<Field label="Email">
|
|
149
|
+
<input type="email" />
|
|
150
|
+
</Field>
|
|
151
|
+
|
|
152
|
+
// CORRECT:
|
|
153
|
+
<Field
|
|
154
|
+
label="Email"
|
|
155
|
+
type="email"
|
|
156
|
+
placeholder="you@example.com"
|
|
157
|
+
/>%c
|
|
158
|
+
|
|
159
|
+
Learn more: https://orion.design/components/field`,
|
|
160
|
+
a,
|
|
161
|
+
"",
|
|
162
|
+
s,
|
|
163
|
+
"",
|
|
164
|
+
n,
|
|
165
|
+
""
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
function g(e, o) {
|
|
169
|
+
i && console.warn(
|
|
170
|
+
`%c[Orion]%c Consider using the pre-built ${o} section instead of ${e}.
|
|
171
|
+
|
|
172
|
+
Orion provides ready-to-use sections that follow best practices.
|
|
173
|
+
|
|
174
|
+
%cAvailable sections:%c
|
|
175
|
+
Hero, Features, Pricing, Testimonials, FAQ, CTA, Footer,
|
|
176
|
+
Team, Contact, Newsletter, LogoCloud, Blog, Gallery,
|
|
177
|
+
Timeline, Comparison, Banner, SocialProof, AppDownload
|
|
178
|
+
|
|
179
|
+
%cUsage:%c
|
|
180
|
+
%cimport { ${o} } from '@orion/react';
|
|
181
|
+
|
|
182
|
+
<${o}
|
|
183
|
+
headline="Your Headline"
|
|
184
|
+
// ... other props
|
|
185
|
+
/>%c
|
|
186
|
+
|
|
187
|
+
Learn more: https://orion.design/sections`,
|
|
188
|
+
a,
|
|
189
|
+
"",
|
|
190
|
+
s,
|
|
191
|
+
"",
|
|
192
|
+
"",
|
|
193
|
+
"",
|
|
194
|
+
n,
|
|
195
|
+
""
|
|
196
|
+
);
|
|
197
|
+
}
|
|
198
|
+
export {
|
|
199
|
+
m as warnBrandProp,
|
|
200
|
+
b as warnFieldChildren,
|
|
201
|
+
f as warnGlassVariant,
|
|
202
|
+
u as warnHardcodedColors,
|
|
203
|
+
p as warnMissingAriaLabel,
|
|
204
|
+
h as warnThemeProp,
|
|
205
|
+
g as warnUsePrebuiltSection
|
|
206
|
+
};
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
const r = {
|
|
2
|
+
theme: "light",
|
|
3
|
+
semantic: {
|
|
4
|
+
surface: {
|
|
5
|
+
base: "{color.neutral.0}",
|
|
6
|
+
subtle: "{color.neutral.50}",
|
|
7
|
+
layer: "{color.neutral.100}",
|
|
8
|
+
primary: "{color.neutral.100}",
|
|
9
|
+
secondary: "{color.neutral.50}",
|
|
10
|
+
glass: "color-mix(in srgb, {color.neutral.0} 70%, transparent)",
|
|
11
|
+
sunken: "color-mix(in srgb, {color.neutral.0} 40%, transparent)",
|
|
12
|
+
overlay: "color-mix(in srgb, {color.neutral.1000} 50%, transparent)"
|
|
13
|
+
},
|
|
14
|
+
text: {
|
|
15
|
+
primary: "{color.neutral.900}",
|
|
16
|
+
secondary: "{color.neutral.500}",
|
|
17
|
+
tertiary: "{color.neutral.400}",
|
|
18
|
+
inverse: "{color.neutral.0}",
|
|
19
|
+
brand: "{color.brand.500}",
|
|
20
|
+
"on-brand": {
|
|
21
|
+
primary: "{color.neutral.0}",
|
|
22
|
+
secondary: "color-mix(in srgb, {color.neutral.0} 90%, transparent)",
|
|
23
|
+
tertiary: "color-mix(in srgb, {color.neutral.0} 70%, transparent)"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
border: {
|
|
27
|
+
subtle: "{color.neutral.200}",
|
|
28
|
+
strong: "{color.neutral.300}",
|
|
29
|
+
interactive: "{color.brand.500}"
|
|
30
|
+
},
|
|
31
|
+
interactive: {
|
|
32
|
+
primary: {
|
|
33
|
+
default: "{color.brand.500}",
|
|
34
|
+
hover: "{color.brand.700}",
|
|
35
|
+
text: "{color.neutral.0}"
|
|
36
|
+
},
|
|
37
|
+
secondary: {
|
|
38
|
+
default: "{color.neutral.100}",
|
|
39
|
+
hover: "{color.neutral.200}",
|
|
40
|
+
text: "{color.neutral.900}"
|
|
41
|
+
},
|
|
42
|
+
ghost: {
|
|
43
|
+
hover: "color-mix(in srgb, {color.neutral.1000} 5%, transparent)"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
status: {
|
|
47
|
+
error: "{color.error.500}",
|
|
48
|
+
success: "{color.success.500}",
|
|
49
|
+
warning: "{color.warning.500}",
|
|
50
|
+
info: "{color.info.500}"
|
|
51
|
+
},
|
|
52
|
+
soft: {
|
|
53
|
+
brand: "color-mix(in srgb, {color.brand.500} 10%, transparent)",
|
|
54
|
+
"brand-hover": "color-mix(in srgb, {color.brand.500} 20%, transparent)",
|
|
55
|
+
success: "color-mix(in srgb, {color.success.500} 10%, transparent)",
|
|
56
|
+
error: "color-mix(in srgb, {color.error.500} 10%, transparent)",
|
|
57
|
+
warning: "color-mix(in srgb, {color.warning.500} 10%, transparent)",
|
|
58
|
+
info: "color-mix(in srgb, {color.info.500} 10%, transparent)"
|
|
59
|
+
},
|
|
60
|
+
focus: {
|
|
61
|
+
ring: "0 0 0 3px color-mix(in srgb, {color.brand.500} 40%, transparent)"
|
|
62
|
+
},
|
|
63
|
+
gradient: {
|
|
64
|
+
start: "{color.brand.400}",
|
|
65
|
+
end: "{color.brand.600}"
|
|
66
|
+
},
|
|
67
|
+
chart: {
|
|
68
|
+
1: "{color.brand.500}",
|
|
69
|
+
2: "{color.brand.300}",
|
|
70
|
+
3: "{color.brand.700}",
|
|
71
|
+
4: "{color.success.500}",
|
|
72
|
+
5: "{color.warning.500}"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}, o = {
|
|
76
|
+
theme: "dark",
|
|
77
|
+
semantic: {
|
|
78
|
+
surface: {
|
|
79
|
+
base: "{color.neutral.900}",
|
|
80
|
+
subtle: "{color.neutral.950}",
|
|
81
|
+
layer: "{color.neutral.900}",
|
|
82
|
+
primary: "{color.neutral.900}",
|
|
83
|
+
secondary: "{color.neutral.900}",
|
|
84
|
+
glass: "color-mix(in srgb, {color.neutral.950} 60%, transparent)",
|
|
85
|
+
sunken: "color-mix(in srgb, {color.neutral.950} 40%, transparent)",
|
|
86
|
+
overlay: "color-mix(in srgb, {color.neutral.1000} 70%, transparent)"
|
|
87
|
+
},
|
|
88
|
+
text: {
|
|
89
|
+
primary: "{color.neutral.50}",
|
|
90
|
+
secondary: "{color.neutral.400}",
|
|
91
|
+
tertiary: "{color.neutral.600}",
|
|
92
|
+
inverse: "{color.neutral.950}",
|
|
93
|
+
brand: "{color.brand.400}",
|
|
94
|
+
"on-brand": {
|
|
95
|
+
primary: "{color.neutral.0}",
|
|
96
|
+
secondary: "color-mix(in srgb, {color.neutral.0} 90%, transparent)",
|
|
97
|
+
tertiary: "color-mix(in srgb, {color.neutral.0} 70%, transparent)"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
border: {
|
|
101
|
+
subtle: "{color.neutral.800}",
|
|
102
|
+
strong: "{color.neutral.700}",
|
|
103
|
+
interactive: "{color.brand.500}"
|
|
104
|
+
},
|
|
105
|
+
interactive: {
|
|
106
|
+
primary: {
|
|
107
|
+
default: "{color.brand.500}",
|
|
108
|
+
hover: "{color.brand.400}",
|
|
109
|
+
text: "{color.neutral.900}"
|
|
110
|
+
},
|
|
111
|
+
secondary: {
|
|
112
|
+
default: "{color.neutral.800}",
|
|
113
|
+
hover: "{color.neutral.700}",
|
|
114
|
+
text: "{color.neutral.50}"
|
|
115
|
+
},
|
|
116
|
+
ghost: {
|
|
117
|
+
hover: "color-mix(in srgb, {color.neutral.0} 10%, transparent)"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
status: {
|
|
121
|
+
error: "{color.error.500}",
|
|
122
|
+
success: "{color.success.500}",
|
|
123
|
+
warning: "{color.warning.500}",
|
|
124
|
+
info: "{color.info.500}"
|
|
125
|
+
},
|
|
126
|
+
soft: {
|
|
127
|
+
brand: "color-mix(in srgb, {color.brand.500} 15%, transparent)",
|
|
128
|
+
"brand-hover": "color-mix(in srgb, {color.brand.500} 25%, transparent)",
|
|
129
|
+
success: "color-mix(in srgb, {color.success.500} 15%, transparent)",
|
|
130
|
+
error: "color-mix(in srgb, {color.error.500} 15%, transparent)",
|
|
131
|
+
warning: "color-mix(in srgb, {color.warning.500} 15%, transparent)",
|
|
132
|
+
info: "color-mix(in srgb, {color.info.500} 15%, transparent)"
|
|
133
|
+
},
|
|
134
|
+
focus: {
|
|
135
|
+
ring: "0 0 0 3px color-mix(in srgb, {color.brand.500} 50%, transparent)"
|
|
136
|
+
},
|
|
137
|
+
gradient: {
|
|
138
|
+
start: "{color.brand.400}",
|
|
139
|
+
end: "{color.brand.600}"
|
|
140
|
+
},
|
|
141
|
+
chart: {
|
|
142
|
+
1: "{color.brand.400}",
|
|
143
|
+
2: "{color.brand.200}",
|
|
144
|
+
3: "{color.brand.600}",
|
|
145
|
+
4: "{color.success.500}",
|
|
146
|
+
5: "{color.warning.500}"
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}, n = {
|
|
150
|
+
light: r,
|
|
151
|
+
dark: o
|
|
152
|
+
};
|
|
153
|
+
export {
|
|
154
|
+
o as darkTheme,
|
|
155
|
+
r as lightTheme,
|
|
156
|
+
n as themes
|
|
157
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r={theme:"light",semantic:{surface:{base:"{color.neutral.0}",subtle:"{color.neutral.50}",layer:"{color.neutral.100}",primary:"{color.neutral.100}",secondary:"{color.neutral.50}",glass:"color-mix(in srgb, {color.neutral.0} 70%, transparent)",sunken:"color-mix(in srgb, {color.neutral.0} 40%, transparent)",overlay:"color-mix(in srgb, {color.neutral.1000} 50%, transparent)"},text:{primary:"{color.neutral.900}",secondary:"{color.neutral.500}",tertiary:"{color.neutral.400}",inverse:"{color.neutral.0}",brand:"{color.brand.500}","on-brand":{primary:"{color.neutral.0}",secondary:"color-mix(in srgb, {color.neutral.0} 90%, transparent)",tertiary:"color-mix(in srgb, {color.neutral.0} 70%, transparent)"}},border:{subtle:"{color.neutral.200}",strong:"{color.neutral.300}",interactive:"{color.brand.500}"},interactive:{primary:{default:"{color.brand.500}",hover:"{color.brand.700}",text:"{color.neutral.0}"},secondary:{default:"{color.neutral.100}",hover:"{color.neutral.200}",text:"{color.neutral.900}"},ghost:{hover:"color-mix(in srgb, {color.neutral.1000} 5%, transparent)"}},status:{error:"{color.error.500}",success:"{color.success.500}",warning:"{color.warning.500}",info:"{color.info.500}"},soft:{brand:"color-mix(in srgb, {color.brand.500} 10%, transparent)","brand-hover":"color-mix(in srgb, {color.brand.500} 20%, transparent)",success:"color-mix(in srgb, {color.success.500} 10%, transparent)",error:"color-mix(in srgb, {color.error.500} 10%, transparent)",warning:"color-mix(in srgb, {color.warning.500} 10%, transparent)",info:"color-mix(in srgb, {color.info.500} 10%, transparent)"},focus:{ring:"0 0 0 3px color-mix(in srgb, {color.brand.500} 40%, transparent)"},gradient:{start:"{color.brand.400}",end:"{color.brand.600}"},chart:{1:"{color.brand.500}",2:"{color.brand.300}",3:"{color.brand.700}",4:"{color.success.500}",5:"{color.warning.500}"}}},o={theme:"dark",semantic:{surface:{base:"{color.neutral.900}",subtle:"{color.neutral.950}",layer:"{color.neutral.900}",primary:"{color.neutral.900}",secondary:"{color.neutral.900}",glass:"color-mix(in srgb, {color.neutral.950} 60%, transparent)",sunken:"color-mix(in srgb, {color.neutral.950} 40%, transparent)",overlay:"color-mix(in srgb, {color.neutral.1000} 70%, transparent)"},text:{primary:"{color.neutral.50}",secondary:"{color.neutral.400}",tertiary:"{color.neutral.600}",inverse:"{color.neutral.950}",brand:"{color.brand.400}","on-brand":{primary:"{color.neutral.0}",secondary:"color-mix(in srgb, {color.neutral.0} 90%, transparent)",tertiary:"color-mix(in srgb, {color.neutral.0} 70%, transparent)"}},border:{subtle:"{color.neutral.800}",strong:"{color.neutral.700}",interactive:"{color.brand.500}"},interactive:{primary:{default:"{color.brand.500}",hover:"{color.brand.400}",text:"{color.neutral.900}"},secondary:{default:"{color.neutral.800}",hover:"{color.neutral.700}",text:"{color.neutral.50}"},ghost:{hover:"color-mix(in srgb, {color.neutral.0} 10%, transparent)"}},status:{error:"{color.error.500}",success:"{color.success.500}",warning:"{color.warning.500}",info:"{color.info.500}"},soft:{brand:"color-mix(in srgb, {color.brand.500} 15%, transparent)","brand-hover":"color-mix(in srgb, {color.brand.500} 25%, transparent)",success:"color-mix(in srgb, {color.success.500} 15%, transparent)",error:"color-mix(in srgb, {color.error.500} 15%, transparent)",warning:"color-mix(in srgb, {color.warning.500} 15%, transparent)",info:"color-mix(in srgb, {color.info.500} 15%, transparent)"},focus:{ring:"0 0 0 3px color-mix(in srgb, {color.brand.500} 50%, transparent)"},gradient:{start:"{color.brand.400}",end:"{color.brand.600}"},chart:{1:"{color.brand.400}",2:"{color.brand.200}",3:"{color.brand.600}",4:"{color.success.500}",5:"{color.warning.500}"}}},n={light:r,dark:o};exports.darkTheme=o;exports.lightTheme=r;exports.themes=n;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r={orion:{name:"Orion",description:"Default brand - Orion Blue, professional rounded corners",accent:{primary:"{color.brand.orion.500}",light:"{color.brand.orion.100}",dark:"{color.brand.orion.900}"},typography:{primary:"Libre Baskerville",secondary:"Inter",mono:"JetBrains Mono"},geometry:{radiusControl:"{radius.md}",radiusContainer:"{radius.lg}",buttonStyle:"pill"},semantic:{light:{interactivePrimary:"{color.brand.orion.500}",interactivePrimaryHover:"{color.brand.orion.700}",interactivePrimaryText:"{color.neutral.0}"},dark:{interactivePrimary:"{color.brand.orion.500}",interactivePrimaryHover:"{color.brand.orion.400}",interactivePrimaryText:"{color.neutral.0}"}},usage:{html:'<html data-theme="dark">',css:"/* No additional CSS needed - default */",attribute:null}},deepblue:{name:"Deepblue",description:"Deepblue brand - Deep Blue with Work Sans typography",accent:{primary:"{color.brand.deepblue.500}",light:"{color.brand.deepblue.100}",dark:"{color.brand.deepblue.800}"},typography:{primary:"Work Sans",secondary:"Work Sans",mono:"JetBrains Mono"},geometry:{radiusControl:"{radius.md}",radiusContainer:"{radius.lg}",buttonStyle:"rounded"},semantic:{light:{interactivePrimary:"{color.brand.deepblue.500}",interactivePrimaryHover:"{color.brand.deepblue.700}",interactivePrimaryText:"{color.neutral.0}"},dark:{interactivePrimary:"{color.brand.deepblue.500}",interactivePrimaryHover:"{color.brand.deepblue.400}",interactivePrimaryText:"{color.neutral.900}"}},usage:{html:'<html data-theme="dark" data-brand="deepblue">',css:'/* Included in theme.css via [data-brand="deepblue"] */',attribute:"deepblue"}},red:{name:"Red",description:"Red brand - Red with Poppins typography and pill buttons",accent:{primary:"{color.brand.red.500}",light:"{color.brand.red.100}",dark:"{color.brand.red.900}"},typography:{primary:"Poppins",secondary:"Inter",mono:"JetBrains Mono"},geometry:{radiusControl:"var(--radius-lg)",radiusContainer:"{radius.lg}",buttonStyle:"pill"},semantic:{light:{interactivePrimary:"{color.brand.red.500}",interactivePrimaryHover:"{color.brand.red.600}",interactivePrimaryText:"{color.neutral.0}"},dark:{interactivePrimary:"{color.brand.red.500}",interactivePrimaryHover:"{color.brand.red.400}",interactivePrimaryText:"{color.neutral.0}"}},usage:{html:'<html data-theme="dark" data-brand="red">',css:'/* Included in theme.css via [data-brand="red"] */',attribute:"red"}},orange:{name:"Orange",description:"Orange brand - Red-Orange with pill buttons",accent:{primary:"{color.brand.orange.500}",light:"{color.brand.orange.100}",dark:"{color.brand.orange.900}"},typography:{primary:"DM Sans",secondary:"Inter",mono:"JetBrains Mono"},geometry:{radiusControl:"{radius.full}",radiusContainer:"{radius.lg}",buttonStyle:"pill"},semantic:{light:{interactivePrimary:"{color.brand.orange.500}",interactivePrimaryHover:"{color.brand.orange.700}",interactivePrimaryText:"{color.neutral.0}"},dark:{interactivePrimary:"{color.brand.orange.500}",interactivePrimaryHover:"{color.brand.orange.400}",interactivePrimaryText:"{color.neutral.0}"}},usage:{html:'<html data-theme="dark" data-brand="orange">',css:'/* Included in theme.css via [data-brand="orange"] */',attribute:"orange"}},ember:{name:"Ember",description:"Ember brand — Orange accent with dark neutral buttons and rectangular geometry",accent:{primary:"{color.brand.orange.500}",light:"{color.brand.orange.100}",dark:"{color.brand.orange.900}"},typography:{primary:"DM Sans",secondary:"Inter",mono:"JetBrains Mono"},geometry:{radiusControl:"{radius.md}",radiusContainer:"{radius.xl}",buttonStyle:"rounded"},semantic:{light:{interactivePrimary:"{color.neutral.900}",interactivePrimaryHover:"{color.neutral.700}",interactivePrimaryText:"{color.neutral.0}"},dark:{interactivePrimary:"{color.neutral.100}",interactivePrimaryHover:"{color.neutral.0}",interactivePrimaryText:"{color.neutral.900}"}},usage:{html:'<html data-theme="light|dark" data-brand="ember">',css:'/* Included in theme.css via [data-brand="ember"] */',attribute:"ember"}},lemon:{name:"Lemon",description:"Lemon brand - Bright lime green with Anton typography and highly rounded design",accent:{primary:"{color.brand.lemon.600}",light:"{color.brand.lemon.100}",dark:"{color.brand.lemon.900}"},typography:{primary:"Anton",secondary:"Work Sans",mono:"JetBrains Mono"},geometry:{radiusControl:"{radius.lg}",radiusContainer:"{radius.lg}",buttonStyle:"pill"},semantic:{light:{interactivePrimary:"{color.brand.lemon.700}",interactivePrimaryHover:"{color.brand.lemon.800}",interactivePrimaryText:"{color.neutral.0}"},dark:{interactivePrimary:"{color.brand.lemon.500}",interactivePrimaryHover:"{color.brand.lemon.600}",interactivePrimaryText:"{color.neutral.900}"}},usage:{html:'<html data-theme="dark" data-brand="lemon">',css:'/* Included in theme.css via [data-brand="lemon"] */',attribute:"lemon"}}};exports.brands=r;
|