@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,106 @@
|
|
|
1
|
+
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { ThemeProvider as o } from "./index75.mjs";
|
|
3
|
+
import { Navbar as l } from "./index54.mjs";
|
|
4
|
+
import { Button as t } from "./index14.mjs";
|
|
5
|
+
import { Section as n } from "./index63.mjs";
|
|
6
|
+
import { Container as r } from "./index29.mjs";
|
|
7
|
+
function m() {
|
|
8
|
+
return /* @__PURE__ */ e(o, { children: /* @__PURE__ */ i(
|
|
9
|
+
"div",
|
|
10
|
+
{
|
|
11
|
+
style: { minHeight: "100vh", display: "flex", flexDirection: "column" },
|
|
12
|
+
children: [
|
|
13
|
+
/* @__PURE__ */ e(l, { children: /* @__PURE__ */ i(
|
|
14
|
+
"div",
|
|
15
|
+
{
|
|
16
|
+
style: {
|
|
17
|
+
display: "flex",
|
|
18
|
+
justifyContent: "space-between",
|
|
19
|
+
alignItems: "center",
|
|
20
|
+
width: "100%",
|
|
21
|
+
padding: "0 24px"
|
|
22
|
+
},
|
|
23
|
+
children: [
|
|
24
|
+
/* @__PURE__ */ e("strong", { children: "Orion" }),
|
|
25
|
+
/* @__PURE__ */ i("div", { style: { display: "flex", gap: "24px" }, children: [
|
|
26
|
+
/* @__PURE__ */ e(t, { variant: "ghost", children: "Features" }),
|
|
27
|
+
/* @__PURE__ */ e(t, { variant: "ghost", children: "Pricing" }),
|
|
28
|
+
/* @__PURE__ */ e(t, { variant: "ghost", children: "Docs" }),
|
|
29
|
+
/* @__PURE__ */ e(t, { variant: "primary", children: "Get Started" })
|
|
30
|
+
] })
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
) }),
|
|
34
|
+
/* @__PURE__ */ e(n, { children: /* @__PURE__ */ e(r, { children: /* @__PURE__ */ i(
|
|
35
|
+
"div",
|
|
36
|
+
{
|
|
37
|
+
style: {
|
|
38
|
+
textAlign: "center",
|
|
39
|
+
paddingTop: "60px",
|
|
40
|
+
paddingBottom: "60px"
|
|
41
|
+
},
|
|
42
|
+
children: [
|
|
43
|
+
/* @__PURE__ */ e(
|
|
44
|
+
"h1",
|
|
45
|
+
{
|
|
46
|
+
style: {
|
|
47
|
+
fontSize: "48px",
|
|
48
|
+
marginBottom: "16px",
|
|
49
|
+
fontWeight: "bold"
|
|
50
|
+
},
|
|
51
|
+
children: "Welcome to Orion Design System"
|
|
52
|
+
}
|
|
53
|
+
),
|
|
54
|
+
/* @__PURE__ */ e(
|
|
55
|
+
"p",
|
|
56
|
+
{
|
|
57
|
+
style: {
|
|
58
|
+
fontSize: "18px",
|
|
59
|
+
marginBottom: "32px",
|
|
60
|
+
color: "var(--text-secondary)"
|
|
61
|
+
},
|
|
62
|
+
children: "The AI-first design system for building beautiful, accessible interfaces"
|
|
63
|
+
}
|
|
64
|
+
),
|
|
65
|
+
/* @__PURE__ */ e(t, { variant: "primary", size: "lg", children: "Start Building" })
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
) }) }),
|
|
69
|
+
/* @__PURE__ */ e(n, { children: /* @__PURE__ */ e(r, { children: /* @__PURE__ */ i("div", { style: { textAlign: "center" }, children: [
|
|
70
|
+
/* @__PURE__ */ e(
|
|
71
|
+
"h2",
|
|
72
|
+
{
|
|
73
|
+
style: {
|
|
74
|
+
fontSize: "32px",
|
|
75
|
+
marginBottom: "16px",
|
|
76
|
+
fontWeight: "bold"
|
|
77
|
+
},
|
|
78
|
+
children: "Premium Sections Available"
|
|
79
|
+
}
|
|
80
|
+
),
|
|
81
|
+
/* @__PURE__ */ i(
|
|
82
|
+
"p",
|
|
83
|
+
{
|
|
84
|
+
style: { marginBottom: "24px", color: "var(--text-secondary)" },
|
|
85
|
+
children: [
|
|
86
|
+
"For pre-built marketing and app sections, templates, and advanced components, install ",
|
|
87
|
+
/* @__PURE__ */ e("strong", { children: "@orion-ds/blocks" })
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
),
|
|
91
|
+
/* @__PURE__ */ e(
|
|
92
|
+
t,
|
|
93
|
+
{
|
|
94
|
+
variant: "secondary",
|
|
95
|
+
onClick: () => window.open("https://github.com/anthropics/orion", "_blank"),
|
|
96
|
+
children: "Learn More"
|
|
97
|
+
}
|
|
98
|
+
)
|
|
99
|
+
] }) }) })
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
) });
|
|
103
|
+
}
|
|
104
|
+
export {
|
|
105
|
+
m as LandingPageExample
|
|
106
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("./index75.cjs"),s=require("./index54.cjs"),t=require("./index14.cjs"),n=require("./index63.cjs"),i=require("./index29.cjs");function o(){return e.jsx(r.ThemeProvider,{children:e.jsxs("div",{style:{minHeight:"100vh",display:"flex",flexDirection:"column"},children:[e.jsx(s.Navbar,{children:e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",padding:"0 24px"},children:[e.jsx("strong",{children:"Orion"}),e.jsxs("div",{style:{display:"flex",gap:"24px"},children:[e.jsx(t.Button,{variant:"ghost",children:"Features"}),e.jsx(t.Button,{variant:"ghost",children:"Pricing"}),e.jsx(t.Button,{variant:"ghost",children:"Docs"}),e.jsx(t.Button,{variant:"primary",children:"Get Started"})]})]})}),e.jsx(n.Section,{children:e.jsx(i.Container,{children:e.jsxs("div",{style:{textAlign:"center",paddingTop:"60px",paddingBottom:"60px"},children:[e.jsx("h1",{style:{fontSize:"48px",marginBottom:"16px",fontWeight:"bold"},children:"Welcome to Orion Design System"}),e.jsx("p",{style:{fontSize:"18px",marginBottom:"32px",color:"var(--text-secondary)"},children:"The AI-first design system for building beautiful, accessible interfaces"}),e.jsx(t.Button,{variant:"primary",size:"lg",children:"Start Building"})]})})}),e.jsx(n.Section,{children:e.jsx(i.Container,{children:e.jsxs("div",{style:{textAlign:"center"},children:[e.jsx("h2",{style:{fontSize:"32px",marginBottom:"16px",fontWeight:"bold"},children:"Premium Sections Available"}),e.jsxs("p",{style:{marginBottom:"24px",color:"var(--text-secondary)"},children:["For pre-built marketing and app sections, templates, and advanced components, install ",e.jsx("strong",{children:"@orion-ds/blocks"})]}),e.jsx(t.Button,{variant:"secondary",onClick:()=>window.open("https://github.com/anthropics/orion","_blank"),children:"Learn More"})]})})})]})})}exports.LandingPageExample=o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),w=require("react"),L=require("lucide-react"),e=require("./index176.cjs"),u=w.forwardRef(({variant:c="default",size:n="md",external:t=!1,underline:o=!0,showExternalIcon:d=!0,icon:a,iconRight:l,iconAnimation:s,className:f,children:h,...m},x)=>{const g=[e.default.link,e.default[c],e.default[n],o&&e.default.underline,f].filter(Boolean).join(" "),j=t?{target:"_blank",rel:"noopener noreferrer"}:{},p=()=>{switch(n){case"sm":return 12;case"lg":return 16;default:return 14}},i=k=>{if(!s)return k==="right"&&t?e.default.iconExternal:"";switch(s){case"arrow":return e.default.iconArrow;case"arrow-left":return e.default.iconArrowLeft;case"external":return e.default.iconExternal;default:return""}},$=()=>l?r.jsx("span",{className:`${e.default.icon} ${e.default.iconRight} ${i("right")}`,"aria-hidden":"true",children:l}):t&&d?r.jsx("span",{className:`${e.default.icon} ${e.default.iconRight} ${e.default.iconExternal}`,"aria-hidden":"true",children:r.jsx(L.ExternalLink,{size:p()})}):null;return r.jsxs("a",{ref:x,className:g,...j,...m,children:[a&&r.jsx("span",{className:`${e.default.icon} ${i("left")}`,"aria-hidden":"true",children:a}),r.jsx("span",{children:h}),$()]})});u.displayName="Link";exports.Link=u;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { jsxs as N, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as k } from "react";
|
|
3
|
+
import { ExternalLink as E } from "lucide-react";
|
|
4
|
+
import r from "./index176.mjs";
|
|
5
|
+
const L = k(
|
|
6
|
+
({
|
|
7
|
+
variant: c = "default",
|
|
8
|
+
size: t = "md",
|
|
9
|
+
external: n = !1,
|
|
10
|
+
underline: l = !0,
|
|
11
|
+
showExternalIcon: u = !0,
|
|
12
|
+
icon: a,
|
|
13
|
+
iconRight: i,
|
|
14
|
+
iconAnimation: s,
|
|
15
|
+
className: f,
|
|
16
|
+
children: d,
|
|
17
|
+
...m
|
|
18
|
+
}, h) => {
|
|
19
|
+
const p = [
|
|
20
|
+
r.link,
|
|
21
|
+
r[c],
|
|
22
|
+
r[t],
|
|
23
|
+
l && r.underline,
|
|
24
|
+
f
|
|
25
|
+
].filter(Boolean).join(" "), g = n ? {
|
|
26
|
+
target: "_blank",
|
|
27
|
+
rel: "noopener noreferrer"
|
|
28
|
+
} : {}, $ = () => {
|
|
29
|
+
switch (t) {
|
|
30
|
+
case "sm":
|
|
31
|
+
return 12;
|
|
32
|
+
case "lg":
|
|
33
|
+
return 16;
|
|
34
|
+
default:
|
|
35
|
+
return 14;
|
|
36
|
+
}
|
|
37
|
+
}, o = (x) => {
|
|
38
|
+
if (!s)
|
|
39
|
+
return x === "right" && n ? r.iconExternal : "";
|
|
40
|
+
switch (s) {
|
|
41
|
+
case "arrow":
|
|
42
|
+
return r.iconArrow;
|
|
43
|
+
case "arrow-left":
|
|
44
|
+
return r.iconArrowLeft;
|
|
45
|
+
case "external":
|
|
46
|
+
return r.iconExternal;
|
|
47
|
+
default:
|
|
48
|
+
return "";
|
|
49
|
+
}
|
|
50
|
+
}, w = () => i ? /* @__PURE__ */ e(
|
|
51
|
+
"span",
|
|
52
|
+
{
|
|
53
|
+
className: `${r.icon} ${r.iconRight} ${o("right")}`,
|
|
54
|
+
"aria-hidden": "true",
|
|
55
|
+
children: i
|
|
56
|
+
}
|
|
57
|
+
) : n && u ? /* @__PURE__ */ e(
|
|
58
|
+
"span",
|
|
59
|
+
{
|
|
60
|
+
className: `${r.icon} ${r.iconRight} ${r.iconExternal}`,
|
|
61
|
+
"aria-hidden": "true",
|
|
62
|
+
children: /* @__PURE__ */ e(E, { size: $() })
|
|
63
|
+
}
|
|
64
|
+
) : null;
|
|
65
|
+
return /* @__PURE__ */ N("a", { ref: h, className: p, ...g, ...m, children: [
|
|
66
|
+
a && /* @__PURE__ */ e(
|
|
67
|
+
"span",
|
|
68
|
+
{
|
|
69
|
+
className: `${r.icon} ${o("left")}`,
|
|
70
|
+
"aria-hidden": "true",
|
|
71
|
+
children: a
|
|
72
|
+
}
|
|
73
|
+
),
|
|
74
|
+
/* @__PURE__ */ e("span", { children: d }),
|
|
75
|
+
w()
|
|
76
|
+
] });
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
L.displayName = "Link";
|
|
80
|
+
export {
|
|
81
|
+
L as Link
|
|
82
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),c=require("react"),y=require("lucide-react"),e=require("./index112.cjs"),A=({item:a,isExpanded:s,onToggle:i,variant:f,animated:r})=>{const t=c.useId(),u=c.useId(),h=[e.default.item,e.default[f],s&&e.default.expanded,a.disabled&&e.default.disabled].filter(Boolean).join(" "),x=[e.default.content,r&&e.default.animated,s&&e.default.contentExpanded].filter(Boolean).join(" ");return n.jsxs("div",{className:h,children:[n.jsxs("button",{id:u,type:"button",className:e.default.header,onClick:i,disabled:a.disabled,"aria-expanded":s,"aria-controls":t,children:[a.icon&&n.jsx("span",{className:e.default.icon,"aria-hidden":"true",children:a.icon}),n.jsx("span",{className:e.default.title,children:a.title}),n.jsx("span",{className:`${e.default.chevron} ${s?e.default.chevronExpanded:""}`,"aria-hidden":"true",children:n.jsx(y.ChevronDown,{size:20})})]}),n.jsx("div",{id:t,role:"region","aria-labelledby":u,className:x,hidden:!s,children:n.jsx("div",{className:e.default.contentInner,children:a.content})})]})},p=c.forwardRef(({items:a,variant:s="default",allowMultiple:i=!1,defaultExpanded:f=[],expanded:r,onChange:t,animated:u=!0,className:h,...x},b)=>{const[N,v]=c.useState(f),j=r!==void 0,l=j?r:N,m=c.useCallback(d=>{let o;l.includes(d)?o=l.filter(g=>g!==d):i?o=[...l,d]:o=[d],j||v(o),t?.(o)},[l,i,j,t]),C=[e.default.accordion,e.default[s],h].filter(Boolean).join(" ");return n.jsx("div",{ref:b,className:C,...x,children:a.map(d=>n.jsx(A,{item:d,isExpanded:l.includes(d.id),onToggle:()=>m(d.id),variant:s,animated:u},d.id))})});p.displayName="Accordion";exports.Accordion=p;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { jsx as s, jsxs as u } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as y, useState as I, useCallback as A, useId as b } from "react";
|
|
3
|
+
import { ChevronDown as B } from "lucide-react";
|
|
4
|
+
import e from "./index112.mjs";
|
|
5
|
+
const k = ({
|
|
6
|
+
item: o,
|
|
7
|
+
isExpanded: a,
|
|
8
|
+
onToggle: r,
|
|
9
|
+
variant: h,
|
|
10
|
+
animated: i
|
|
11
|
+
}) => {
|
|
12
|
+
const d = b(), t = b(), p = [
|
|
13
|
+
e.item,
|
|
14
|
+
e[h],
|
|
15
|
+
a && e.expanded,
|
|
16
|
+
o.disabled && e.disabled
|
|
17
|
+
].filter(Boolean).join(" "), f = [
|
|
18
|
+
e.content,
|
|
19
|
+
i && e.animated,
|
|
20
|
+
a && e.contentExpanded
|
|
21
|
+
].filter(Boolean).join(" ");
|
|
22
|
+
return /* @__PURE__ */ u("div", { className: p, children: [
|
|
23
|
+
/* @__PURE__ */ u(
|
|
24
|
+
"button",
|
|
25
|
+
{
|
|
26
|
+
id: t,
|
|
27
|
+
type: "button",
|
|
28
|
+
className: e.header,
|
|
29
|
+
onClick: r,
|
|
30
|
+
disabled: o.disabled,
|
|
31
|
+
"aria-expanded": a,
|
|
32
|
+
"aria-controls": d,
|
|
33
|
+
children: [
|
|
34
|
+
o.icon && /* @__PURE__ */ s("span", { className: e.icon, "aria-hidden": "true", children: o.icon }),
|
|
35
|
+
/* @__PURE__ */ s("span", { className: e.title, children: o.title }),
|
|
36
|
+
/* @__PURE__ */ s(
|
|
37
|
+
"span",
|
|
38
|
+
{
|
|
39
|
+
className: `${e.chevron} ${a ? e.chevronExpanded : ""}`,
|
|
40
|
+
"aria-hidden": "true",
|
|
41
|
+
children: /* @__PURE__ */ s(B, { size: 20 })
|
|
42
|
+
}
|
|
43
|
+
)
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
),
|
|
47
|
+
/* @__PURE__ */ s(
|
|
48
|
+
"div",
|
|
49
|
+
{
|
|
50
|
+
id: d,
|
|
51
|
+
role: "region",
|
|
52
|
+
"aria-labelledby": t,
|
|
53
|
+
className: f,
|
|
54
|
+
hidden: !a,
|
|
55
|
+
children: /* @__PURE__ */ s("div", { className: e.contentInner, children: o.content })
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
] });
|
|
59
|
+
}, w = y(
|
|
60
|
+
({
|
|
61
|
+
items: o,
|
|
62
|
+
variant: a = "default",
|
|
63
|
+
allowMultiple: r = !1,
|
|
64
|
+
defaultExpanded: h = [],
|
|
65
|
+
expanded: i,
|
|
66
|
+
onChange: d,
|
|
67
|
+
animated: t = !0,
|
|
68
|
+
className: p,
|
|
69
|
+
...f
|
|
70
|
+
}, N) => {
|
|
71
|
+
const [x, v] = I(h), m = i !== void 0, c = m ? i : x, C = A(
|
|
72
|
+
(n) => {
|
|
73
|
+
let l;
|
|
74
|
+
c.includes(n) ? l = c.filter((g) => g !== n) : r ? l = [...c, n] : l = [n], m || v(l), d?.(l);
|
|
75
|
+
},
|
|
76
|
+
[c, r, m, d]
|
|
77
|
+
), j = [e.accordion, e[a], p].filter(Boolean).join(" ");
|
|
78
|
+
return /* @__PURE__ */ s("div", { ref: N, className: j, ...f, children: o.map((n) => /* @__PURE__ */ s(
|
|
79
|
+
k,
|
|
80
|
+
{
|
|
81
|
+
item: n,
|
|
82
|
+
isExpanded: c.includes(n.id),
|
|
83
|
+
onToggle: () => C(n.id),
|
|
84
|
+
variant: a,
|
|
85
|
+
animated: t
|
|
86
|
+
},
|
|
87
|
+
n.id
|
|
88
|
+
)) });
|
|
89
|
+
}
|
|
90
|
+
);
|
|
91
|
+
w.displayName = "Accordion";
|
|
92
|
+
export {
|
|
93
|
+
w as Accordion
|
|
94
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { jsx as d, jsxs as N } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as m, useCallback as k } from "react";
|
|
3
|
+
import { Check as t } from "lucide-react";
|
|
4
|
+
import a from "./index155.mjs";
|
|
5
|
+
const x = ({
|
|
6
|
+
item: s,
|
|
7
|
+
size: i,
|
|
8
|
+
interactive: n,
|
|
9
|
+
selectable: l,
|
|
10
|
+
onClick: c
|
|
11
|
+
}) => {
|
|
12
|
+
const r = k(() => {
|
|
13
|
+
!s.disabled && (n || l) && s.onClick && s.onClick(), c?.();
|
|
14
|
+
}, [s, n, l, c]), p = k(
|
|
15
|
+
(h) => {
|
|
16
|
+
(h.key === "Enter" || h.key === " ") && (n || l) && (h.preventDefault(), r());
|
|
17
|
+
},
|
|
18
|
+
[n, l, r]
|
|
19
|
+
), f = [
|
|
20
|
+
a.item,
|
|
21
|
+
a[i],
|
|
22
|
+
n && a.interactive,
|
|
23
|
+
l && a.selectable,
|
|
24
|
+
s.selected && a.selected,
|
|
25
|
+
s.disabled && a.disabled,
|
|
26
|
+
s.className
|
|
27
|
+
].filter(Boolean).join(" "), e = !s.disabled && (n || l || s.onClick);
|
|
28
|
+
return /* @__PURE__ */ N(
|
|
29
|
+
"li",
|
|
30
|
+
{
|
|
31
|
+
className: f,
|
|
32
|
+
role: l ? "option" : n ? "button" : void 0,
|
|
33
|
+
tabIndex: e ? 0 : void 0,
|
|
34
|
+
"aria-selected": l ? s.selected : void 0,
|
|
35
|
+
"aria-disabled": s.disabled,
|
|
36
|
+
onClick: e ? r : void 0,
|
|
37
|
+
onKeyDown: e ? p : void 0,
|
|
38
|
+
children: [
|
|
39
|
+
s.leading && /* @__PURE__ */ d("span", { className: a.leading, "aria-hidden": "true", children: s.leading }),
|
|
40
|
+
/* @__PURE__ */ N("div", { className: a.content, children: [
|
|
41
|
+
/* @__PURE__ */ d("span", { className: a.primary, children: s.primary }),
|
|
42
|
+
s.secondary && /* @__PURE__ */ d("span", { className: a.secondary, children: s.secondary })
|
|
43
|
+
] }),
|
|
44
|
+
s.trailing && /* @__PURE__ */ d("span", { className: a.trailing, children: s.trailing }),
|
|
45
|
+
l && s.selected && /* @__PURE__ */ d("span", { className: a.checkmark, "aria-hidden": "true", children: /* @__PURE__ */ d(t, { size: i === "sm" ? 14 : i === "lg" ? 20 : 16 }) })
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
}, b = m(
|
|
50
|
+
({
|
|
51
|
+
items: s,
|
|
52
|
+
size: i = "md",
|
|
53
|
+
variant: n = "default",
|
|
54
|
+
interactive: l = !1,
|
|
55
|
+
selectable: c = !1,
|
|
56
|
+
onSelect: r,
|
|
57
|
+
renderItem: p,
|
|
58
|
+
emptyContent: f,
|
|
59
|
+
className: e,
|
|
60
|
+
...h
|
|
61
|
+
}, u) => {
|
|
62
|
+
const y = k(
|
|
63
|
+
(o) => {
|
|
64
|
+
r && !o.disabled && r(o);
|
|
65
|
+
},
|
|
66
|
+
[r]
|
|
67
|
+
), C = [a.list, a[n], e].filter(Boolean).join(" ");
|
|
68
|
+
return s.length === 0 && f ? /* @__PURE__ */ d("div", { className: a.empty, children: f }) : /* @__PURE__ */ d(
|
|
69
|
+
"ul",
|
|
70
|
+
{
|
|
71
|
+
ref: u,
|
|
72
|
+
className: C,
|
|
73
|
+
role: c ? "listbox" : "list",
|
|
74
|
+
...h,
|
|
75
|
+
children: s.map(
|
|
76
|
+
(o, g) => p ? /* @__PURE__ */ d("li", { className: a.customItem, children: p(o, g) }, o.id) : /* @__PURE__ */ d(
|
|
77
|
+
x,
|
|
78
|
+
{
|
|
79
|
+
item: o,
|
|
80
|
+
size: i,
|
|
81
|
+
interactive: l,
|
|
82
|
+
selectable: c,
|
|
83
|
+
onClick: () => y(o)
|
|
84
|
+
},
|
|
85
|
+
o.id
|
|
86
|
+
)
|
|
87
|
+
)
|
|
88
|
+
}
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
b.displayName = "List";
|
|
93
|
+
export {
|
|
94
|
+
b as List
|
|
95
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),h=require("react"),y=require("lucide-react"),a=require("./index155.cjs"),N=({item:s,size:c,interactive:e,selectable:d,onClick:o})=>{const i=h.useCallback(()=>{!s.disabled&&(e||d)&&s.onClick&&s.onClick(),o?.()},[s,e,d,o]),t=h.useCallback(u=>{(u.key==="Enter"||u.key===" ")&&(e||d)&&(u.preventDefault(),i())},[e,d,i]),f=[a.default.item,a.default[c],e&&a.default.interactive,d&&a.default.selectable,s.selected&&a.default.selected,s.disabled&&a.default.disabled,s.className].filter(Boolean).join(" "),r=!s.disabled&&(e||d||s.onClick);return l.jsxs("li",{className:f,role:d?"option":e?"button":void 0,tabIndex:r?0:void 0,"aria-selected":d?s.selected:void 0,"aria-disabled":s.disabled,onClick:r?i:void 0,onKeyDown:r?t:void 0,children:[s.leading&&l.jsx("span",{className:a.default.leading,"aria-hidden":"true",children:s.leading}),l.jsxs("div",{className:a.default.content,children:[l.jsx("span",{className:a.default.primary,children:s.primary}),s.secondary&&l.jsx("span",{className:a.default.secondary,children:s.secondary})]}),s.trailing&&l.jsx("span",{className:a.default.trailing,children:s.trailing}),d&&s.selected&&l.jsx("span",{className:a.default.checkmark,"aria-hidden":"true",children:l.jsx(y.Check,{size:c==="sm"?14:c==="lg"?20:16})})]})},j=h.forwardRef(({items:s,size:c="md",variant:e="default",interactive:d=!1,selectable:o=!1,onSelect:i,renderItem:t,emptyContent:f,className:r,...u},k)=>{const x=h.useCallback(n=>{i&&!n.disabled&&i(n)},[i]),p=[a.default.list,a.default[e],r].filter(Boolean).join(" ");return s.length===0&&f?l.jsx("div",{className:a.default.empty,children:f}):l.jsx("ul",{ref:k,className:p,role:o?"listbox":"list",...u,children:s.map((n,C)=>t?l.jsx("li",{className:a.default.customItem,children:t(n,C)},n.id):l.jsx(N,{item:n,size:c,interactive:d,selectable:o,onClick:()=>x(n)},n.id))})});j.displayName="List";exports.List=j;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),M=require("react"),b=require("lucide-react"),s=require("./index136.cjs"),y=({data:a})=>{if(!a||a.length<2)return null;const c=Math.max(...a),d=Math.min(...a),u=c-d||1,t=a[0],l=a[a.length-1],i=24,r=64,n=r/(a.length-1),o=a.map((f,h)=>{const m=h*n,j=i-(f-d)/u*i;return`${m},${j}`}).join(" "),x=t!==void 0&&l!==void 0&&l>=t;return e.jsx("svg",{className:s.default.sparkline,width:r,height:i,viewBox:`0 0 ${r} ${i}`,children:e.jsx("polyline",{fill:"none",stroke:x?"var(--text-success)":"var(--text-error)",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",points:o})})},N=M.forwardRef(({metric:a,variant:c="default",loading:d=!1,className:u,...t},l)=>{const{label:i,value:r,change:n,icon:o,sparkline:x,href:f,onClick:h,description:m,loading:j}=a,p=d||j,C=f||h,v=[s.default.card,s.default[`variant-${c}`],C&&s.default.interactive,p&&s.default.loading,u].filter(Boolean).join(" "),g=e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:s.default.cardHeader,children:[o&&e.jsx("span",{className:s.default.cardIcon,children:o}),e.jsx("span",{className:s.default.label,children:i})]}),e.jsx("div",{className:s.default.cardBody,children:p?e.jsx("div",{className:s.default.skeleton}):e.jsxs(e.Fragment,{children:[e.jsx("span",{className:s.default.value,children:r}),x&&c==="detailed"&&e.jsx(y,{data:x})]})}),(n||m)&&!p&&e.jsxs("div",{className:s.default.cardFooter,children:[n&&e.jsxs("span",{className:`${s.default.change} ${n.positive?s.default.positive:s.default.negative}`,children:[n.positive?e.jsx(b.TrendingUp,{size:12}):e.jsx(b.TrendingDown,{size:12}),e.jsx("span",{children:n.value}),n.label&&e.jsx("span",{className:s.default.changeLabel,children:n.label})]}),m&&c==="detailed"&&e.jsx("span",{className:s.default.description,children:m})]})]});return f?e.jsx("a",{ref:l,href:f,className:v,...t,children:g}):h?e.jsx("button",{ref:l,type:"button",onClick:h,className:v,...t,children:g}):e.jsx("div",{ref:l,className:v,...t,children:g})});N.displayName="MetricCard";const k=M.forwardRef(({metrics:a,columns:c=4,variant:d="default",loading:u=!1,className:t,...l},i)=>{const r=[s.default.metricCards,s.default[`cols-${c}`],t].filter(Boolean).join(" ");return e.jsx("div",{ref:i,className:r,...l,children:a.map((n,o)=>e.jsx(N,{metric:n,variant:d,loading:u},n.id||n.label||o))})});k.displayName="MetricCards";exports.MetricCard=N;exports.MetricCards=k;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { jsxs as u, Fragment as b, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as $ } from "react";
|
|
3
|
+
import { TrendingUp as C, TrendingDown as M } from "lucide-react";
|
|
4
|
+
import e from "./index136.mjs";
|
|
5
|
+
const L = ({ data: s }) => {
|
|
6
|
+
if (!s || s.length < 2) return null;
|
|
7
|
+
const r = Math.max(...s), o = Math.min(...s), m = r - o || 1, a = s[0], l = s[s.length - 1], c = 24, t = 64, i = t / (s.length - 1), d = s.map((h, p) => {
|
|
8
|
+
const v = p * i, g = c - (h - o) / m * c;
|
|
9
|
+
return `${v},${g}`;
|
|
10
|
+
}).join(" "), N = a !== void 0 && l !== void 0 && l >= a;
|
|
11
|
+
return /* @__PURE__ */ n(
|
|
12
|
+
"svg",
|
|
13
|
+
{
|
|
14
|
+
className: e.sparkline,
|
|
15
|
+
width: t,
|
|
16
|
+
height: c,
|
|
17
|
+
viewBox: `0 0 ${t} ${c}`,
|
|
18
|
+
children: /* @__PURE__ */ n(
|
|
19
|
+
"polyline",
|
|
20
|
+
{
|
|
21
|
+
fill: "none",
|
|
22
|
+
stroke: N ? "var(--text-success)" : "var(--text-error)",
|
|
23
|
+
strokeWidth: "1.5",
|
|
24
|
+
strokeLinecap: "round",
|
|
25
|
+
strokeLinejoin: "round",
|
|
26
|
+
points: d
|
|
27
|
+
}
|
|
28
|
+
)
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
}, y = $(
|
|
32
|
+
({ metric: s, variant: r = "default", loading: o = !1, className: m, ...a }, l) => {
|
|
33
|
+
const {
|
|
34
|
+
label: c,
|
|
35
|
+
value: t,
|
|
36
|
+
change: i,
|
|
37
|
+
icon: d,
|
|
38
|
+
sparkline: N,
|
|
39
|
+
href: h,
|
|
40
|
+
onClick: p,
|
|
41
|
+
description: v,
|
|
42
|
+
loading: g
|
|
43
|
+
} = s, f = o || g, j = h || p, k = [
|
|
44
|
+
e.card,
|
|
45
|
+
e[`variant-${r}`],
|
|
46
|
+
j && e.interactive,
|
|
47
|
+
f && e.loading,
|
|
48
|
+
m
|
|
49
|
+
].filter(Boolean).join(" "), x = /* @__PURE__ */ u(b, { children: [
|
|
50
|
+
/* @__PURE__ */ u("div", { className: e.cardHeader, children: [
|
|
51
|
+
d && /* @__PURE__ */ n("span", { className: e.cardIcon, children: d }),
|
|
52
|
+
/* @__PURE__ */ n("span", { className: e.label, children: c })
|
|
53
|
+
] }),
|
|
54
|
+
/* @__PURE__ */ n("div", { className: e.cardBody, children: f ? /* @__PURE__ */ n("div", { className: e.skeleton }) : /* @__PURE__ */ u(b, { children: [
|
|
55
|
+
/* @__PURE__ */ n("span", { className: e.value, children: t }),
|
|
56
|
+
N && r === "detailed" && /* @__PURE__ */ n(L, { data: N })
|
|
57
|
+
] }) }),
|
|
58
|
+
(i || v) && !f && /* @__PURE__ */ u("div", { className: e.cardFooter, children: [
|
|
59
|
+
i && /* @__PURE__ */ u(
|
|
60
|
+
"span",
|
|
61
|
+
{
|
|
62
|
+
className: `${e.change} ${i.positive ? e.positive : e.negative}`,
|
|
63
|
+
children: [
|
|
64
|
+
i.positive ? /* @__PURE__ */ n(C, { size: 12 }) : /* @__PURE__ */ n(M, { size: 12 }),
|
|
65
|
+
/* @__PURE__ */ n("span", { children: i.value }),
|
|
66
|
+
i.label && /* @__PURE__ */ n("span", { className: e.changeLabel, children: i.label })
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
),
|
|
70
|
+
v && r === "detailed" && /* @__PURE__ */ n("span", { className: e.description, children: v })
|
|
71
|
+
] })
|
|
72
|
+
] });
|
|
73
|
+
return h ? /* @__PURE__ */ n(
|
|
74
|
+
"a",
|
|
75
|
+
{
|
|
76
|
+
ref: l,
|
|
77
|
+
href: h,
|
|
78
|
+
className: k,
|
|
79
|
+
...a,
|
|
80
|
+
children: x
|
|
81
|
+
}
|
|
82
|
+
) : p ? /* @__PURE__ */ n(
|
|
83
|
+
"button",
|
|
84
|
+
{
|
|
85
|
+
ref: l,
|
|
86
|
+
type: "button",
|
|
87
|
+
onClick: p,
|
|
88
|
+
className: k,
|
|
89
|
+
...a,
|
|
90
|
+
children: x
|
|
91
|
+
}
|
|
92
|
+
) : /* @__PURE__ */ n("div", { ref: l, className: k, ...a, children: x });
|
|
93
|
+
}
|
|
94
|
+
);
|
|
95
|
+
y.displayName = "MetricCard";
|
|
96
|
+
const w = $(
|
|
97
|
+
({
|
|
98
|
+
metrics: s,
|
|
99
|
+
columns: r = 4,
|
|
100
|
+
variant: o = "default",
|
|
101
|
+
loading: m = !1,
|
|
102
|
+
className: a,
|
|
103
|
+
...l
|
|
104
|
+
}, c) => {
|
|
105
|
+
const t = [
|
|
106
|
+
e.metricCards,
|
|
107
|
+
e[`cols-${r}`],
|
|
108
|
+
a
|
|
109
|
+
].filter(Boolean).join(" ");
|
|
110
|
+
return /* @__PURE__ */ n("div", { ref: c, className: t, ...l, children: s.map((i, d) => /* @__PURE__ */ n(
|
|
111
|
+
y,
|
|
112
|
+
{
|
|
113
|
+
metric: i,
|
|
114
|
+
variant: o,
|
|
115
|
+
loading: m
|
|
116
|
+
},
|
|
117
|
+
i.id || i.label || d
|
|
118
|
+
)) });
|
|
119
|
+
}
|
|
120
|
+
);
|
|
121
|
+
w.displayName = "MetricCards";
|
|
122
|
+
export {
|
|
123
|
+
y as MetricCard,
|
|
124
|
+
w as MetricCards
|
|
125
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),n=require("react"),o=require("./index132.cjs"),r=({open:e,onClose:a,size:t="md",closeOnBackdrop:m=!0,closeOnEscape:s=!0,showCloseButton:f=!0,children:y,className:v})=>{if(n.useEffect(()=>{if(!e||!s)return;const d=b=>{b.key==="Escape"&&a()};return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[e,s,a]),n.useEffect(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[e]),!e)return null;const N=[o.default.modal,o.default[t],v].filter(Boolean).join(" "),j=d=>{m&&d.target===d.currentTarget&&a()};return l.jsx("div",{className:o.default.backdrop,onClick:j,role:"dialog","aria-modal":"true",children:l.jsxs("div",{className:N,children:[f&&l.jsx("button",{type:"button",className:o.default.closeButton,onClick:a,"aria-label":"Close modal",style:{position:"absolute",top:"var(--spacing-4)",right:"var(--spacing-4)"},children:"×"}),y]})})},i=({className:e,children:a})=>{const t=[o.default.header,e].filter(Boolean).join(" ");return l.jsx("div",{className:t,children:a})},c=({className:e,children:a})=>{const t=[o.default.body,e].filter(Boolean).join(" ");return l.jsx("div",{className:t,children:a})},u=({className:e,children:a})=>{const t=[o.default.footer,e].filter(Boolean).join(" ");return l.jsx("div",{className:t,children:a})};r.Header=i;r.Body=c;r.Footer=u;r.displayName="Modal";i.displayName="Modal.Header";c.displayName="Modal.Body";u.displayName="Modal.Footer";exports.Modal=r;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { jsx as l, jsxs as B } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect as n } from "react";
|
|
3
|
+
import t from "./index132.mjs";
|
|
4
|
+
const s = ({
|
|
5
|
+
open: e,
|
|
6
|
+
onClose: o,
|
|
7
|
+
size: a = "md",
|
|
8
|
+
closeOnBackdrop: u = !0,
|
|
9
|
+
closeOnEscape: d = !0,
|
|
10
|
+
showCloseButton: y = !0,
|
|
11
|
+
children: f,
|
|
12
|
+
className: v
|
|
13
|
+
}) => {
|
|
14
|
+
if (n(() => {
|
|
15
|
+
if (!e || !d) return;
|
|
16
|
+
const r = (b) => {
|
|
17
|
+
b.key === "Escape" && o();
|
|
18
|
+
};
|
|
19
|
+
return document.addEventListener("keydown", r), () => document.removeEventListener("keydown", r);
|
|
20
|
+
}, [e, d, o]), n(() => (e ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
|
|
21
|
+
document.body.style.overflow = "";
|
|
22
|
+
}), [e]), !e) return null;
|
|
23
|
+
const N = [t.modal, t[a], v].filter(Boolean).join(" "), p = (r) => {
|
|
24
|
+
u && r.target === r.currentTarget && o();
|
|
25
|
+
};
|
|
26
|
+
return /* @__PURE__ */ l(
|
|
27
|
+
"div",
|
|
28
|
+
{
|
|
29
|
+
className: t.backdrop,
|
|
30
|
+
onClick: p,
|
|
31
|
+
role: "dialog",
|
|
32
|
+
"aria-modal": "true",
|
|
33
|
+
children: /* @__PURE__ */ B("div", { className: N, children: [
|
|
34
|
+
y && /* @__PURE__ */ l(
|
|
35
|
+
"button",
|
|
36
|
+
{
|
|
37
|
+
type: "button",
|
|
38
|
+
className: t.closeButton,
|
|
39
|
+
onClick: o,
|
|
40
|
+
"aria-label": "Close modal",
|
|
41
|
+
style: {
|
|
42
|
+
position: "absolute",
|
|
43
|
+
top: "var(--spacing-4)",
|
|
44
|
+
right: "var(--spacing-4)"
|
|
45
|
+
},
|
|
46
|
+
children: "×"
|
|
47
|
+
}
|
|
48
|
+
),
|
|
49
|
+
f
|
|
50
|
+
] })
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
}, i = ({ className: e, children: o }) => {
|
|
54
|
+
const a = [t.header, e].filter(Boolean).join(" ");
|
|
55
|
+
return /* @__PURE__ */ l("div", { className: a, children: o });
|
|
56
|
+
}, c = ({ className: e, children: o }) => {
|
|
57
|
+
const a = [t.body, e].filter(Boolean).join(" ");
|
|
58
|
+
return /* @__PURE__ */ l("div", { className: a, children: o });
|
|
59
|
+
}, m = ({ className: e, children: o }) => {
|
|
60
|
+
const a = [t.footer, e].filter(Boolean).join(" ");
|
|
61
|
+
return /* @__PURE__ */ l("div", { className: a, children: o });
|
|
62
|
+
};
|
|
63
|
+
s.Header = i;
|
|
64
|
+
s.Body = c;
|
|
65
|
+
s.Footer = m;
|
|
66
|
+
s.displayName = "Modal";
|
|
67
|
+
i.displayName = "Modal.Header";
|
|
68
|
+
c.displayName = "Modal.Body";
|
|
69
|
+
m.displayName = "Modal.Footer";
|
|
70
|
+
export {
|
|
71
|
+
s as Modal
|
|
72
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),N=require("react"),d=require("lucide-react"),z=require("./index92.cjs"),s=require("./index168.cjs"),S=require("./index14.cjs"),B=require("./index35.cjs"),y=require("./index24.cjs"),A=N.createContext(void 0);function R(){const n=N.useContext(A);if(!n)throw new Error("useNavTreeContext must be used within NavTree");return n}const k=N.forwardRef(({sections:n,activeNodeId:h,onNodeClick:f,actions:p,persistKey:m="orion-nav-tree",header:r,footer:u,width:l=240,className:a,headless:c=!1},i)=>{const j=N.useMemo(()=>n.filter(t=>t.defaultExpanded!==!1).map(t=>t.id),[n]),[x,C]=z.useLocalStorage(`${m}-sections`,j),[v,b]=z.useLocalStorage(`${m}-nodes`,[]),I={activeNodeId:h,openSectionIds:x,openNodeIds:v,toggleSection:t=>{C(g=>g.includes(t)?g.filter($=>$!==t):[...g,t])},toggleNode:t=>{b(g=>g.includes(t)?g.filter($=>$!==t):[...g,t])},isOpen:t=>t.startsWith("section-")?x.includes(t.replace("section-","")):v.includes(t),onNodeClick:f,actionConfig:p},w={width:typeof l=="number"?`${l}px`:l},O=c?n.flatMap(t=>t.nodes):[],M=c?O.length===0:n.length===0,q=c?"No nodes":"No sections";return e.jsxs("div",{ref:i,className:`${s.default.navTree} ${a||""}`,style:w,role:"tree",children:[r&&e.jsx("div",{className:s.default.header,children:r}),e.jsx("div",{className:s.default.treeContent,children:e.jsx(A.Provider,{value:I,children:M?e.jsx("div",{className:s.default.empty,children:q}):c?O.map(t=>e.jsx(T,{node:t,depth:0,sectionId:""},t.id)):n.map(t=>e.jsx(P,{section:t},t.id))})}),u&&e.jsx("div",{className:s.default.footer,children:u})]})});k.displayName="NavTree";function P({section:n}){const{isOpen:h,toggleSection:f,actionConfig:p}=R(),m=`section-${n.id}`,r=h(m),u=n.variant??"node",l=i=>{i.stopPropagation(),p?.onAdd?.(null,n.id)},a=u==="node"?s.default.sectionTitleNode:s.default.sectionTitle,c=`${s.default.sectionHeader} ${u==="node"?s.default.sectionHeaderNode:""}`.trim();return e.jsx("div",{className:s.default.section,role:"group",children:e.jsxs(y.Collapsible,{open:r,onOpenChange:()=>f(n.id),disabled:n.nodes.length===0,children:[e.jsx(y.Collapsible.Trigger,{asChild:!0,children:e.jsxs("div",{className:c,children:[n.icon?e.jsxs("div",{className:s.default.iconSlot,children:[e.jsx("span",{className:s.default.slotIcon,children:n.icon}),n.nodes.length>0&&e.jsx("div",{className:`${s.default.slotChevron} ${r?s.default.slotChevronOpen:""}`,children:e.jsx(d.ChevronRight,{size:16})})]}):n.nodes.length>0&&e.jsx(d.ChevronRight,{size:12,className:`${s.default.sectionChevron} ${r?s.default.sectionChevronOpen:""}`}),e.jsx("span",{className:a,children:n.title}),n.badge!==void 0&&e.jsx("span",{className:s.default.sectionBadge,children:n.badge}),e.jsx("div",{className:s.default.sectionActions,children:e.jsx(S.Button,{variant:"ghost",size:"sm",iconOnly:!0,icon:e.jsx(d.Plus,{size:12}),onClick:l,"aria-label":`Agregar página en ${n.title}`,title:`Agregar página en ${n.title}`})})]})}),e.jsx(y.Collapsible.Content,{children:e.jsx("div",{className:s.default.sectionBody,children:n.nodes.map(i=>e.jsx(T,{node:i,depth:0,sectionId:n.id},i.id))})})]})})}function T({node:n,depth:h,sectionId:f}){const{activeNodeId:p,isOpen:m,toggleNode:r,onNodeClick:u,actionConfig:l}=R(),a=n.type==="folder",c=a&&n.children&&n.children.length>0,i=m(n.id),j=p===n.id,x=()=>{a?r(n.id):u&&u(n)},C=o=>{o.stopPropagation(),l?.onAdd?.(a?n.id:null,f)},v=[{id:"rename",label:"Renombrar",icon:e.jsx(d.Pencil,{size:14}),onClick:()=>l?.onRename?.(n.id)},{id:"duplicate",label:"Duplicar",icon:e.jsx(d.Copy,{size:14}),onClick:()=>l?.onDuplicate?.(n.id)},{id:"move",label:"Mover a…",icon:e.jsx(d.FolderSymlink,{size:14}),onClick:()=>l?.onMove?.(n.id)},{id:"delete",label:"Eliminar",icon:e.jsx(d.Trash2,{size:14}),danger:!0,onClick:()=>l?.onDelete?.(n.id)}];if(l?.getCustomActions){const o=l.getCustomActions(n);v.push(...o)}const b={paddingLeft:`calc(var(--spacing-2) * ${h+1})`};return e.jsxs("div",{className:s.default.node,role:"treeitem","aria-expanded":a&&i,children:[e.jsxs("div",{className:`${s.default.nodeRow} ${j?s.default.nodeRowActive:""} ${h>0?s.default.nodeNested:""}`,onClick:x,style:b,tabIndex:0,onKeyDown:o=>{(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),x())},children:[n.icon?a?e.jsxs("div",{className:s.default.iconSlot,children:[e.jsx("span",{className:s.default.slotIcon,children:n.icon}),c&&e.jsx("div",{className:`${s.default.slotChevron} ${i?s.default.slotChevronOpen:""}`,children:e.jsx(d.ChevronRight,{size:16})})]}):e.jsx("div",{className:s.default.iconSlot,children:e.jsx("span",{className:s.default.slotIcon,children:n.icon})}):a?e.jsx(d.ChevronRight,{size:12,className:`${s.default.nodeChevron} ${i?s.default.nodeChevronOpen:""}`}):e.jsx("div",{className:s.default.nodeChevronHidden}),e.jsx("span",{className:s.default.nodeLabel,children:n.label}),n.badge!==void 0&&e.jsx("span",{className:s.default.nodeBadge,children:n.badge}),e.jsxs("div",{className:s.default.nodeActions,children:[e.jsx(S.Button,{variant:"ghost",size:"sm",iconOnly:!0,icon:e.jsx(d.Plus,{size:14}),onClick:C,"aria-label":`Agregar página en ${n.label}`,title:`Agregar página en ${n.label}`}),e.jsx(B.Dropdown,{trigger:e.jsx(S.Button,{variant:"ghost",size:"sm",iconOnly:!0,icon:e.jsx(d.MoreHorizontal,{size:14}),"aria-label":"Más acciones",title:"Más acciones"}),items:v,placement:"bottom-end",minWidth:160})]})]}),a&&i&&c&&e.jsx("div",{className:s.default.nodeChildren,children:n.children.map(o=>e.jsx(T,{node:o,depth:h+1,sectionId:f},o.id))})]})}exports.NavTree=k;
|