From 4bce6dd47ee4e938e08477219cc768d1b5f00db7 Mon Sep 17 00:00:00 2001 From: folinhilo Date: Sat, 21 Nov 2026 22:57:24 +0800 Subject: [PATCH] mm --- .devcontainer/Dockerfile | 37 + .devcontainer/build.sh | 1 + .devcontainer/devcontainer.json | 12 + .devcontainer/setup.sh | 5 + .gitignore | 24 + .npmrc | 1 + apps/infrastructure/建筑规划.md | 25 + apps/infrastructure/道路规划.md | 41 + apps/refugee-home/cloth/服装行业原则.md | 23 + apps/refugee-home/code/服务器面板.md | 59 + .../cook/乙基麦芽酚风味失衡排查.md | 53 + apps/refugee-home/cook/卤味鸭货.md | 41 + apps/refugee-home/cook/工厂肉类处理.md | 11 + apps/refugee-home/cook/透骨增香剂AAA配方.md | 26 + apps/refugee-home/cook/酸嘢.md | 5 + .../refugee-home/electric/太阳能电池板套件.md | 25 + apps/refugee-home/electric/核电原理.md | 32 + apps/refugee-home/electric/水底涡轮发电机.md | 3 + apps/refugee-home/electric/电瓶.md | 33 + .../refugee-home/electric/简易太阳能电池板.md | 11 + .../refugee-home/electric/纳米金刚石核电池.md | 3 + apps/refugee-home/finance/Hawala Hundi.md | 49 + apps/refugee-home/finance/先生存再发展.md | 13 + apps/refugee-home/finance/公开信息都是假的.md | 11 + apps/refugee-home/finance/存款结构.md | 22 + .../finance/经济俱乐部得目的是排外掩护.md | 19 + .../finance/计划经济与自由市场经济.md | 9 + .../finance/赚发展中国家经济增量的钱.md | 23 + apps/refugee-home/finance/集团公司架构.md | 5 + apps/refugee-home/food/硫磺熏蒸防腐.md | 25 + .../refugee-home/internet/互联网的价值在哪.md | 19 + apps/refugee-home/market/地区差异福利.md | 17 + apps/refugee-home/market/城市经济结构.md | 42 + apps/refugee-home/market/如何从流浪汉起步.md | 13 + apps/refugee-home/market/如何获得优势.md | 9 + apps/refugee-home/market/独占性竞争.md | 19 + .../refugee-home/market/身份认同和文化差异.md | 7 + apps/refugee-home/politic/产业建设.md | 17 + apps/refugee-home/politic/以结果判断正确性.md | 29 + apps/refugee-home/politic/公司制兼容奴隶制.md | 23 + .../politic/利用困境倒逼科技升级.md | 21 + .../politic/发达国家的穷人不需要同情.md | 9 + apps/refugee-home/politic/新闻解读.md | 21 + .../politic/独裁政权统治需要什么.md | 13 + .../politic/社会的真相是奴隶制.md | 73 + .../politic/革命的必备条件有哪些.md | 31 + apps/refugee-home/study/冲劲与斗志与知情.md | 27 + apps/refugee-home/study/哲学书和历史书.md | 3 + apps/refugee-home/study/财富与货币.md | 7 + apps/refugee-home/truck/卡车运货.md | 17 + apps/refugee-home/truck/走私.md | 3 + apps/refugee-home/workshop/园艺工具.md | 41 + apps/refugee-home/workshop/塑料五金小商品.md | 41 + .../chapter_1 强者压迫弱者的世界.md | 84 + .../chapter_2 灵性与认知的觉醒.md | 135 + .../chapter_3 经济就是世界的运作规律.md | 24 + .../军队管理就是公司管理.md | 24 + .../第二册,谋生小生意/chapter_1 科技科普.md | 80 + .../chapter_10 谋生小工坊_塑料工具.md | 26 + .../第二册,谋生小生意/chapter_2 酸嘢.md | 48 + .../第二册,谋生小生意/chapter_3 卤鸭.md | 237 + .../chapter_4 谋生小生意_盐焗鸡.md | 44 + .../chapter_5 谋生小生意_凉拌菜.md | 60 + .../chapter_6 谋生小生意_炸鸡.md | 0 .../chapter_7 谋生小生意_臭豆腐.md | 0 .../chapter_8 谋生小生意_烧烤.md | 0 .../chapter_9 谋生小工坊_调味粉.md | 5 + package-lock.json | 4195 +++++++++++++++++ package.json | 6 + packages/ui-react/.gitignore | 24 + packages/ui-react/.npmrc | 1 + packages/ui-react/eslint.config.js | 22 + packages/ui-react/gallery/app.tsx | 14 + packages/ui-react/gallery/button-gallery.tsx | 109 + packages/ui-react/gallery/iw.tsx | 15 + packages/ui-react/gallery/main.tsx | 10 + packages/ui-react/gallery/ow.tsx | 17 + packages/ui-react/gallery/popover-gallery.tsx | 24 + packages/ui-react/index.html | 12 + packages/ui-react/note/display 讲解.md | 37 + .../ui-react/note/floating-ui 常见错误.md | 21 + packages/ui-react/note/md提升空间.md | 21 + packages/ui-react/note/menuitem 宽度问题.md | 12 + packages/ui-react/note/undefind 判空不要忘.md | 7 + packages/ui-react/note/什么时候使用浮动.md | 3 + packages/ui-react/note/响应式与固定px.md | 15 + packages/ui-react/note/类型转换与收窄.md | 26 + .../ui-react/note/设置 hover focus active.md | 41 + packages/ui-react/package.json | 57 + packages/ui-react/src/assets/svg/BoldSvg.tsx | 12 + .../src/assets/svg/CheckIndicatorSvg.tsx | 8 + .../src/assets/svg/ChevronRightSvg.tsx | 12 + packages/ui-react/src/assets/svg/CloseSvg.tsx | 12 + packages/ui-react/src/assets/svg/CutSvg.tsx | 8 + .../ui-react/src/assets/svg/DownloadSvg.tsx | 6 + packages/ui-react/src/assets/svg/FileSvg.tsx | 14 + packages/ui-react/src/assets/svg/KeySvg.tsx | 8 + packages/ui-react/src/assets/svg/MeshSvg.tsx | 14 + packages/ui-react/src/assets/svg/MoonSvg.tsx | 12 + packages/ui-react/src/assets/svg/PasteSvg.tsx | 8 + packages/ui-react/src/assets/svg/Ruler.tsx | 12 + .../ui-react/src/assets/svg/SearchSvg.tsx | 8 + .../ui-react/src/assets/svg/SettingSvg.tsx | 9 + .../ui-react/src/assets/svg/SpinnerSvg.tsx | 23 + packages/ui-react/src/assets/svg/SunSvg.tsx | 12 + packages/ui-react/src/assets/svg/UserSvg.tsx | 14 + .../ui-react/src/assets/svg/VolumeHighSvg.tsx | 12 + .../ui-react/src/assets/svg/VolumeLowSvg.tsx | 12 + .../ui-react/src/assets/svg/VolumeMuteSvg.tsx | 12 + .../ui-react/src/components/badge/badge.tsx | 54 + .../ui-react/src/components/button/button.tsx | 115 + .../src/components/checkbox/checkbox.tsx | 36 + .../ui-react/src/components/icon/icon.tsx | 24 + .../src/components/menu/menu-check-item.tsx | 86 + .../src/components/menu/menu-dropdown.tsx | 55 + .../src/components/menu/menu-item.tsx | 107 + .../components/menu/menu-radio-item-group.tsx | 24 + .../src/components/menu/menu-radio-item.tsx | 20 + .../src/components/menu/menu-trigger.tsx | 25 + .../ui-react/src/components/menu/menu.tsx | 55 + .../src/components/menu/use-menu-context.ts | 11 + .../menu/use-menu-floating-context.ts | 15 + .../src/components/menu/use-menu-floating.ts | 91 + .../menu/use-menu-radio-item-group-context.ts | 13 + .../menu/use-menu-trigger-context.ts | 10 + .../components/popover/popover-dropdown.tsx | 84 + .../components/popover/popover-trigger.tsx | 17 + .../src/components/popover/popover.tsx | 16 + .../components/popover/use-popover-context.ts | 15 + .../popover/use-popover-floating.ts | 83 + .../ui-react/src/components/slider/slider.tsx | 23 + packages/ui-react/src/components/tag/tag.tsx | 63 + .../ui-react/src/components/theme/theme.tsx | 27 + .../src/components/theme/use-theme-context.ts | 14 + packages/ui-react/src/index.css | 55 + packages/ui-react/src/index.ts | 59 + .../ui-react/src/styles/css/align-content.css | 37 + .../ui-react/src/styles/css/align-items.css | 33 + .../ui-react/src/styles/css/align-self.css | 37 + .../ui-react/src/styles/css/animation.css | 106 + .../ui-react/src/styles/css/background.css | 5 + .../ui-react/src/styles/css/border-radius.css | 53 + packages/ui-react/src/styles/css/border.css | 6 + .../src/styles/css/box-decoration.css | 9 + .../ui-react/src/styles/css/box-inside.css | 17 + .../ui-react/src/styles/css/box-shadow.css | 5 + .../ui-react/src/styles/css/box-sizing.css | 9 + packages/ui-react/src/styles/css/brand.css | 48 + .../ui-react/src/styles/css/break-after.css | 33 + .../ui-react/src/styles/css/break-before.css | 33 + packages/ui-react/src/styles/css/color.css | 5 + packages/ui-react/src/styles/css/cursor.css | 111 + packages/ui-react/src/styles/css/display.css | 90 + .../ui-react/src/styles/css/drop-shadow.css | 5 + .../src/styles/css/flex-direction.css | 17 + .../ui-react/src/styles/css/flex-shrink.css | 9 + .../ui-react/src/styles/css/flex-wrap.css | 13 + .../ui-react/src/styles/css/font-family.css | 11 + .../ui-react/src/styles/css/font-size.css | 36 + .../ui-react/src/styles/css/font-weight.css | 55 + packages/ui-react/src/styles/css/gap.css | 34 + .../ui-react/src/styles/css/height-dot.css | 29 + .../ui-react/src/styles/css/height-inline.css | 25 + .../ui-react/src/styles/css/height-item.css | 23 + .../src/styles/css/justify-content.css | 45 + .../ui-react/src/styles/css/justify-items.css | 29 + .../ui-react/src/styles/css/justify-self.css | 29 + .../ui-react/src/styles/css/max-height.css | 5 + .../ui-react/src/styles/css/max-width.css | 5 + packages/ui-react/src/styles/css/outline.css | 16 + packages/ui-react/src/styles/css/overflow.css | 61 + .../src/styles/css/overscroll-behavior.css | 37 + .../ui-react/src/styles/css/padding-long.css | 20 + packages/ui-react/src/styles/css/padding.css | 80 + .../src/styles/css/pointer-events.css | 9 + packages/ui-react/src/styles/css/position.css | 21 + .../ui-react/src/styles/css/screen-reader.css | 23 + .../ui-react/src/styles/css/text-align.css | 25 + .../ui-react/src/styles/css/theme-base.css | 444 ++ packages/ui-react/src/styles/css/theme.css | 15 + .../ui-react/src/styles/css/transition.css | 14 + .../ui-react/src/styles/css/user-select.css | 17 + .../src/styles/css/variant-disabled.css | 155 + .../src/styles/css/variant-unclickable.css | 76 + packages/ui-react/src/styles/css/variant.css | 137 + .../ui-react/src/styles/css/visibility.css | 13 + .../ui-react/src/styles/css/white-space.css | 25 + .../ui-react/src/styles/css/width-dot.css | 30 + .../ui-react/src/styles/css/width-inline.css | 25 + .../ui-react/src/styles/css/width-item.css | 25 + packages/ui-react/src/styles/css/z-index.css | 53 + .../src/styles/recipes/brand-recipe.ts | 15 + .../src/styles/recipes/container-recipe.ts | 35 + .../src/styles/recipes/display-recipe.ts | 65 + .../src/styles/recipes/dot-size-recipe.ts | 16 + .../src/styles/recipes/inline-size-recipe.ts | 56 + .../src/styles/recipes/item-size-recipe.ts | 54 + .../src/styles/recipes/variant-recipe.ts | 63 + .../src/styles/utils/create-class-recipe.ts | 59 + .../ui-react/src/styles/utils/merge-class.ts | 30 + packages/ui-react/src/utils/CommonProps.ts | 9 + packages/ui-react/src/utils/camelToKebab.ts | 3 + packages/ui-react/src/utils/merge-props.ts | 49 + packages/ui-react/src/utils/slot.tsx | 16 + packages/ui-react/src/utils/state-registry.ts | 33 + packages/ui-react/tsconfig.json | 81 + packages/ui-react/types/env.d.ts | 4 + .../vite-plugin/vite-plugin-gen-index.ts | 59 + packages/ui-react/vite.config.ts | 67 + 209 files changed, 11072 insertions(+) create mode 100644 .devcontainer/Dockerfile create mode 100644 .devcontainer/build.sh create mode 100644 .devcontainer/devcontainer.json create mode 100644 .devcontainer/setup.sh create mode 100644 .gitignore create mode 100644 .npmrc create mode 100644 apps/infrastructure/建筑规划.md create mode 100644 apps/infrastructure/道路规划.md create mode 100644 apps/refugee-home/cloth/服装行业原则.md create mode 100644 apps/refugee-home/code/服务器面板.md create mode 100644 apps/refugee-home/cook/乙基麦芽酚风味失衡排查.md create mode 100644 apps/refugee-home/cook/卤味鸭货.md create mode 100644 apps/refugee-home/cook/工厂肉类处理.md create mode 100644 apps/refugee-home/cook/透骨增香剂AAA配方.md create mode 100644 apps/refugee-home/cook/酸嘢.md create mode 100644 apps/refugee-home/electric/太阳能电池板套件.md create mode 100644 apps/refugee-home/electric/核电原理.md create mode 100644 apps/refugee-home/electric/水底涡轮发电机.md create mode 100644 apps/refugee-home/electric/电瓶.md create mode 100644 apps/refugee-home/electric/简易太阳能电池板.md create mode 100644 apps/refugee-home/electric/纳米金刚石核电池.md create mode 100644 apps/refugee-home/finance/Hawala Hundi.md create mode 100644 apps/refugee-home/finance/先生存再发展.md create mode 100644 apps/refugee-home/finance/公开信息都是假的.md create mode 100644 apps/refugee-home/finance/存款结构.md create mode 100644 apps/refugee-home/finance/经济俱乐部得目的是排外掩护.md create mode 100644 apps/refugee-home/finance/计划经济与自由市场经济.md create mode 100644 apps/refugee-home/finance/赚发展中国家经济增量的钱.md create mode 100644 apps/refugee-home/finance/集团公司架构.md create mode 100644 apps/refugee-home/food/硫磺熏蒸防腐.md create mode 100644 apps/refugee-home/internet/互联网的价值在哪.md create mode 100644 apps/refugee-home/market/地区差异福利.md create mode 100644 apps/refugee-home/market/城市经济结构.md create mode 100644 apps/refugee-home/market/如何从流浪汉起步.md create mode 100644 apps/refugee-home/market/如何获得优势.md create mode 100644 apps/refugee-home/market/独占性竞争.md create mode 100644 apps/refugee-home/market/身份认同和文化差异.md create mode 100644 apps/refugee-home/politic/产业建设.md create mode 100644 apps/refugee-home/politic/以结果判断正确性.md create mode 100644 apps/refugee-home/politic/公司制兼容奴隶制.md create mode 100644 apps/refugee-home/politic/利用困境倒逼科技升级.md create mode 100644 apps/refugee-home/politic/发达国家的穷人不需要同情.md create mode 100644 apps/refugee-home/politic/新闻解读.md create mode 100644 apps/refugee-home/politic/独裁政权统治需要什么.md create mode 100644 apps/refugee-home/politic/社会的真相是奴隶制.md create mode 100644 apps/refugee-home/politic/革命的必备条件有哪些.md create mode 100644 apps/refugee-home/study/冲劲与斗志与知情.md create mode 100644 apps/refugee-home/study/哲学书和历史书.md create mode 100644 apps/refugee-home/study/财富与货币.md create mode 100644 apps/refugee-home/truck/卡车运货.md create mode 100644 apps/refugee-home/truck/走私.md create mode 100644 apps/refugee-home/workshop/园艺工具.md create mode 100644 apps/refugee-home/workshop/塑料五金小商品.md create mode 100644 apps/refugee-home/第一册,世界的真相/chapter_1 强者压迫弱者的世界.md create mode 100644 apps/refugee-home/第一册,世界的真相/chapter_2 灵性与认知的觉醒.md create mode 100644 apps/refugee-home/第一册,世界的真相/chapter_3 经济就是世界的运作规律.md create mode 100644 apps/refugee-home/第一册,世界的真相/军队管理就是公司管理.md create mode 100644 apps/refugee-home/第二册,谋生小生意/chapter_1 科技科普.md create mode 100644 apps/refugee-home/第二册,谋生小生意/chapter_10 谋生小工坊_塑料工具.md create mode 100644 apps/refugee-home/第二册,谋生小生意/chapter_2 酸嘢.md create mode 100644 apps/refugee-home/第二册,谋生小生意/chapter_3 卤鸭.md create mode 100644 apps/refugee-home/第二册,谋生小生意/chapter_4 谋生小生意_盐焗鸡.md create mode 100644 apps/refugee-home/第二册,谋生小生意/chapter_5 谋生小生意_凉拌菜.md create mode 100644 apps/refugee-home/第二册,谋生小生意/chapter_6 谋生小生意_炸鸡.md create mode 100644 apps/refugee-home/第二册,谋生小生意/chapter_7 谋生小生意_臭豆腐.md create mode 100644 apps/refugee-home/第二册,谋生小生意/chapter_8 谋生小生意_烧烤.md create mode 100644 apps/refugee-home/第二册,谋生小生意/chapter_9 谋生小工坊_调味粉.md create mode 100644 package-lock.json create mode 100644 package.json create mode 100644 packages/ui-react/.gitignore create mode 100644 packages/ui-react/.npmrc create mode 100644 packages/ui-react/eslint.config.js create mode 100644 packages/ui-react/gallery/app.tsx create mode 100644 packages/ui-react/gallery/button-gallery.tsx create mode 100644 packages/ui-react/gallery/iw.tsx create mode 100644 packages/ui-react/gallery/main.tsx create mode 100644 packages/ui-react/gallery/ow.tsx create mode 100644 packages/ui-react/gallery/popover-gallery.tsx create mode 100644 packages/ui-react/index.html create mode 100644 packages/ui-react/note/display 讲解.md create mode 100644 packages/ui-react/note/floating-ui 常见错误.md create mode 100644 packages/ui-react/note/md提升空间.md create mode 100644 packages/ui-react/note/menuitem 宽度问题.md create mode 100644 packages/ui-react/note/undefind 判空不要忘.md create mode 100644 packages/ui-react/note/什么时候使用浮动.md create mode 100644 packages/ui-react/note/响应式与固定px.md create mode 100644 packages/ui-react/note/类型转换与收窄.md create mode 100644 packages/ui-react/note/设置 hover focus active.md create mode 100644 packages/ui-react/package.json create mode 100644 packages/ui-react/src/assets/svg/BoldSvg.tsx create mode 100644 packages/ui-react/src/assets/svg/CheckIndicatorSvg.tsx create mode 100644 packages/ui-react/src/assets/svg/ChevronRightSvg.tsx create mode 100644 packages/ui-react/src/assets/svg/CloseSvg.tsx create mode 100644 packages/ui-react/src/assets/svg/CutSvg.tsx create mode 100644 packages/ui-react/src/assets/svg/DownloadSvg.tsx create mode 100644 packages/ui-react/src/assets/svg/FileSvg.tsx create mode 100644 packages/ui-react/src/assets/svg/KeySvg.tsx create mode 100644 packages/ui-react/src/assets/svg/MeshSvg.tsx create mode 100644 packages/ui-react/src/assets/svg/MoonSvg.tsx create mode 100644 packages/ui-react/src/assets/svg/PasteSvg.tsx create mode 100644 packages/ui-react/src/assets/svg/Ruler.tsx create mode 100644 packages/ui-react/src/assets/svg/SearchSvg.tsx create mode 100644 packages/ui-react/src/assets/svg/SettingSvg.tsx create mode 100644 packages/ui-react/src/assets/svg/SpinnerSvg.tsx create mode 100644 packages/ui-react/src/assets/svg/SunSvg.tsx create mode 100644 packages/ui-react/src/assets/svg/UserSvg.tsx create mode 100644 packages/ui-react/src/assets/svg/VolumeHighSvg.tsx create mode 100644 packages/ui-react/src/assets/svg/VolumeLowSvg.tsx create mode 100644 packages/ui-react/src/assets/svg/VolumeMuteSvg.tsx create mode 100644 packages/ui-react/src/components/badge/badge.tsx create mode 100644 packages/ui-react/src/components/button/button.tsx create mode 100644 packages/ui-react/src/components/checkbox/checkbox.tsx create mode 100644 packages/ui-react/src/components/icon/icon.tsx create mode 100644 packages/ui-react/src/components/menu/menu-check-item.tsx create mode 100644 packages/ui-react/src/components/menu/menu-dropdown.tsx create mode 100644 packages/ui-react/src/components/menu/menu-item.tsx create mode 100644 packages/ui-react/src/components/menu/menu-radio-item-group.tsx create mode 100644 packages/ui-react/src/components/menu/menu-radio-item.tsx create mode 100644 packages/ui-react/src/components/menu/menu-trigger.tsx create mode 100644 packages/ui-react/src/components/menu/menu.tsx create mode 100644 packages/ui-react/src/components/menu/use-menu-context.ts create mode 100644 packages/ui-react/src/components/menu/use-menu-floating-context.ts create mode 100644 packages/ui-react/src/components/menu/use-menu-floating.ts create mode 100644 packages/ui-react/src/components/menu/use-menu-radio-item-group-context.ts create mode 100644 packages/ui-react/src/components/menu/use-menu-trigger-context.ts create mode 100644 packages/ui-react/src/components/popover/popover-dropdown.tsx create mode 100644 packages/ui-react/src/components/popover/popover-trigger.tsx create mode 100644 packages/ui-react/src/components/popover/popover.tsx create mode 100644 packages/ui-react/src/components/popover/use-popover-context.ts create mode 100644 packages/ui-react/src/components/popover/use-popover-floating.ts create mode 100644 packages/ui-react/src/components/slider/slider.tsx create mode 100644 packages/ui-react/src/components/tag/tag.tsx create mode 100644 packages/ui-react/src/components/theme/theme.tsx create mode 100644 packages/ui-react/src/components/theme/use-theme-context.ts create mode 100644 packages/ui-react/src/index.css create mode 100644 packages/ui-react/src/index.ts create mode 100644 packages/ui-react/src/styles/css/align-content.css create mode 100644 packages/ui-react/src/styles/css/align-items.css create mode 100644 packages/ui-react/src/styles/css/align-self.css create mode 100644 packages/ui-react/src/styles/css/animation.css create mode 100644 packages/ui-react/src/styles/css/background.css create mode 100644 packages/ui-react/src/styles/css/border-radius.css create mode 100644 packages/ui-react/src/styles/css/border.css create mode 100644 packages/ui-react/src/styles/css/box-decoration.css create mode 100644 packages/ui-react/src/styles/css/box-inside.css create mode 100644 packages/ui-react/src/styles/css/box-shadow.css create mode 100644 packages/ui-react/src/styles/css/box-sizing.css create mode 100644 packages/ui-react/src/styles/css/brand.css create mode 100644 packages/ui-react/src/styles/css/break-after.css create mode 100644 packages/ui-react/src/styles/css/break-before.css create mode 100644 packages/ui-react/src/styles/css/color.css create mode 100644 packages/ui-react/src/styles/css/cursor.css create mode 100644 packages/ui-react/src/styles/css/display.css create mode 100644 packages/ui-react/src/styles/css/drop-shadow.css create mode 100644 packages/ui-react/src/styles/css/flex-direction.css create mode 100644 packages/ui-react/src/styles/css/flex-shrink.css create mode 100644 packages/ui-react/src/styles/css/flex-wrap.css create mode 100644 packages/ui-react/src/styles/css/font-family.css create mode 100644 packages/ui-react/src/styles/css/font-size.css create mode 100644 packages/ui-react/src/styles/css/font-weight.css create mode 100644 packages/ui-react/src/styles/css/gap.css create mode 100644 packages/ui-react/src/styles/css/height-dot.css create mode 100644 packages/ui-react/src/styles/css/height-inline.css create mode 100644 packages/ui-react/src/styles/css/height-item.css create mode 100644 packages/ui-react/src/styles/css/justify-content.css create mode 100644 packages/ui-react/src/styles/css/justify-items.css create mode 100644 packages/ui-react/src/styles/css/justify-self.css create mode 100644 packages/ui-react/src/styles/css/max-height.css create mode 100644 packages/ui-react/src/styles/css/max-width.css create mode 100644 packages/ui-react/src/styles/css/outline.css create mode 100644 packages/ui-react/src/styles/css/overflow.css create mode 100644 packages/ui-react/src/styles/css/overscroll-behavior.css create mode 100644 packages/ui-react/src/styles/css/padding-long.css create mode 100644 packages/ui-react/src/styles/css/padding.css create mode 100644 packages/ui-react/src/styles/css/pointer-events.css create mode 100644 packages/ui-react/src/styles/css/position.css create mode 100644 packages/ui-react/src/styles/css/screen-reader.css create mode 100644 packages/ui-react/src/styles/css/text-align.css create mode 100644 packages/ui-react/src/styles/css/theme-base.css create mode 100644 packages/ui-react/src/styles/css/theme.css create mode 100644 packages/ui-react/src/styles/css/transition.css create mode 100644 packages/ui-react/src/styles/css/user-select.css create mode 100644 packages/ui-react/src/styles/css/variant-disabled.css create mode 100644 packages/ui-react/src/styles/css/variant-unclickable.css create mode 100644 packages/ui-react/src/styles/css/variant.css create mode 100644 packages/ui-react/src/styles/css/visibility.css create mode 100644 packages/ui-react/src/styles/css/white-space.css create mode 100644 packages/ui-react/src/styles/css/width-dot.css create mode 100644 packages/ui-react/src/styles/css/width-inline.css create mode 100644 packages/ui-react/src/styles/css/width-item.css create mode 100644 packages/ui-react/src/styles/css/z-index.css create mode 100644 packages/ui-react/src/styles/recipes/brand-recipe.ts create mode 100644 packages/ui-react/src/styles/recipes/container-recipe.ts create mode 100644 packages/ui-react/src/styles/recipes/display-recipe.ts create mode 100644 packages/ui-react/src/styles/recipes/dot-size-recipe.ts create mode 100644 packages/ui-react/src/styles/recipes/inline-size-recipe.ts create mode 100644 packages/ui-react/src/styles/recipes/item-size-recipe.ts create mode 100644 packages/ui-react/src/styles/recipes/variant-recipe.ts create mode 100644 packages/ui-react/src/styles/utils/create-class-recipe.ts create mode 100644 packages/ui-react/src/styles/utils/merge-class.ts create mode 100644 packages/ui-react/src/utils/CommonProps.ts create mode 100644 packages/ui-react/src/utils/camelToKebab.ts create mode 100644 packages/ui-react/src/utils/merge-props.ts create mode 100644 packages/ui-react/src/utils/slot.tsx create mode 100644 packages/ui-react/src/utils/state-registry.ts create mode 100644 packages/ui-react/tsconfig.json create mode 100644 packages/ui-react/types/env.d.ts create mode 100644 packages/ui-react/vite-plugin/vite-plugin-gen-index.ts create mode 100644 packages/ui-react/vite.config.ts diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..dcd0897 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,37 @@ + +# 常用包 +ARG node_modules = "typescript tslint-to-eslint-config prettier" + +# 以 -g 方式安装 +RUN su node -c "umask 0002 && npm install -g ${node_modules}" \ + && npm cache clean --force > /dev/null 2>&1 + +# 工作目录 +WORKDIR /workspace + +# 挂载卷 +VOLUME /workspace + +# 复制程序代码 +COPY . . + +# 暴露常用端口,http,vite +EXPOSE 8080 5173 + +# 默认启用命令行 +CMD ["bash"] + +# 复制宿主机的时区,覆盖容器的时区,避免时间不同步问题,无额外依赖 +RUN ln -sf /usr/share/zoneinfo/PRC /etc/localtime + +# 安装核心工具集和 CA 证书 +RUN apt-get update && \ + apt-get install -y --no-install-recommends \ + ca-certificates \ + curl \ + wget \ + vim \ + git \ + zsh && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* \ No newline at end of file diff --git a/.devcontainer/build.sh b/.devcontainer/build.sh new file mode 100644 index 0000000..b66c116 --- /dev/null +++ b/.devcontainer/build.sh @@ -0,0 +1 @@ +npm install \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..d08eebf --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,12 @@ +{ + "name": "Node-Ts-Git", + "image": "mcr.microsoft.com/devcontainers/typescript-node:5-24-trixie", + "updateContentCommand": "bash ./.devcontainer/build.sh", + "postCreateCommand": "bash ./.devcontainer/setup.sh", + "forwardPorts": [3000, 5173, 8080], + "customizations": { + "vscode": { + "extensions": ["esbenp.prettier-vscode", "dbaeumer.vscode-eslint"] + } + } +} diff --git a/.devcontainer/setup.sh b/.devcontainer/setup.sh new file mode 100644 index 0000000..47f9a6d --- /dev/null +++ b/.devcontainer/setup.sh @@ -0,0 +1,5 @@ +node_modules="typescript tslint-to-eslint-config prettier" +sudo chown -R node ${containerWorkspaceFolder}/node_modules +sudo chown -R node ${containerWorkspaceFolder}/build +[ -f package.json ] +npm install -g ${node_modules}" diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..757502d --- /dev/null +++ b/.gitignore @@ -0,0 +1,24 @@ +# 基础忽略规则 +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +*.swp +*.swo + +# 根目录依赖/构建产物 +node_modules/ +dist/ +build/ +coverage/ + +# Monorepo 子包专属忽略(核心) +packages/**/dist/ +packages/**/node_modules/ +packages/**/build/ +packages/**/coverage/ +packages/**/.env* +packages/**/npm-debug.log* +packages/**/yarn-debug.log* +packages/**/yarn-error.log* +packages/**/pnpm-debug.log* \ No newline at end of file diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..8b02f75 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +registry = https://registry.npmmirror.com/ \ No newline at end of file diff --git a/apps/infrastructure/建筑规划.md b/apps/infrastructure/建筑规划.md new file mode 100644 index 0000000..4bdda9a --- /dev/null +++ b/apps/infrastructure/建筑规划.md @@ -0,0 +1,25 @@ +# 层与层高 + +建筑地上限高 20 层,地下限高 3 层,限制人流密度,防止人口过多造成道路拥挤。 + +层高6米,因为吊顶上面,有电缆桥架,燃气管道,消防水管,通风管道,空调管道。每个大约占 30cm 高度。 + +地面还有埋排水管,大约占 50cm 高度。 + +吊顶可能还要悬挂一些指示牌,给旅客指路,也占用 50cm 高度。 + +最后剩下 2.5m 的高度,差不多兼容 2m 以上身高的人。 + +# 楼层用途 + +第 1 ~ 6 层为商业楼层,第 7 ~ 20 层为公寓楼层,第 -1 ~ -2 层为停车层,第 -3 层为储水储电层。 + +电梯与楼梯很近,主要是方便电梯坐过头,可以马上走路下来。 + +或者电梯迟迟不来,可以先走部分楼梯。 + +# 公寓室内设计规范 + +不强制私人住宅遵守规范,但政府廉租房是必需要遵守的。 + +室内门与通道,不低于 1.5m 宽,方便电动轮椅,护理床出入。 diff --git a/apps/infrastructure/道路规划.md b/apps/infrastructure/道路规划.md new file mode 100644 index 0000000..b85ff91 --- /dev/null +++ b/apps/infrastructure/道路规划.md @@ -0,0 +1,41 @@ +# 设计原则 + +一切服务于汽车,人行道,非机动车道,都是可以作为临时汽车道用的。 + +# 网格状分布和起名 + +例如,1行1列,1行2列。即使没有导航,行人也能辨别方向。 + +# 网格主干道指标 + +每一个网格,大约是 2000m\*2000m,即2千平方米。 + +不要太近,因为这样会造成红绿灯太多,让车主特别烦。 + +就拿一半道路举例。 + +- 中央隔离带,1m 宽,路障设施,防止横穿马路,有灯柱,天桥柱。 +- 左车道,4m 宽。 +- 中车道,4m 宽。 +- 右慢车道,4m 宽。 +- 机动车停车带,3m 宽,地面有黄色斜网格线,有公交停靠点。 +- 绿化隔离带,2m 宽,有天桥柱,灯柱,公交车候车点。 +- 逆向非机动车道,2m 宽。 +- 正向非机动车道,2m 宽。 +- 非机动车停车带,3m 宽,有充电棚,换电柜,垃圾桶,休息棚。 +- 人行道,2m 宽。 + +这么宽完全是为了兼容【集装箱卡车】。 +人行道是必须的,是为了开阔视野,防止转角撞车。 + +# 格内小区道指标 + +每个格内,也是必须有停车带和人行道的。 + +一半道路举例。 + +- 左中右合并车道,4m 宽。 +- 机动车停车带,3m 宽,地面有黄色斜网格线,有公交停靠点。 +- 正向非机动车道,2m 宽。 +- 非机动车停车带,3m 宽,有充电棚,换电柜,垃圾桶,休息棚。 +- 人行道,2m 宽。 diff --git a/apps/refugee-home/cloth/服装行业原则.md b/apps/refugee-home/cloth/服装行业原则.md new file mode 100644 index 0000000..a5a351f --- /dev/null +++ b/apps/refugee-home/cloth/服装行业原则.md @@ -0,0 +1,23 @@ +# 从市场上直接抄款式,但变更不同的图案和纹理 + +款式可以直接买对手的,然后回来复刻布料尺寸。 + +而不是自己去研究公式。 + +我们应该重点关心的是,如何加工,好不好看。 + +# 电商流量主导的商业 + +一般人买衣服,首先会去【大电商平台】搜索,因为这里集中了大量信息。 + +# 场景仪式感,才是服装美化理论的核心 + +相由心生,同理,对衣服风格的喜好,也由本人所处的生态位决定。 + +奴隶主,就是喜欢【贵族气质】的风格,也就是西服。 + +工人,就是喜欢【工业感】风格,也就是工装。 + +科研人员,就是喜欢【几何简约】风格,也就是电子。 + +打工仔,就是喜欢 diff --git a/apps/refugee-home/code/服务器面板.md b/apps/refugee-home/code/服务器面板.md new file mode 100644 index 0000000..772e4e8 --- /dev/null +++ b/apps/refugee-home/code/服务器面板.md @@ -0,0 +1,59 @@ +# 为什么是管理面板,不是操作系统 + +因为我考虑到了一个更新问题,linux内核更新,cpu指令集更新,这些工作不应该由我们来做。 + +如果我们团队不在了,我们开发的旧操作系统,新机器不兼容怎么办? + +直接交给 debian 团队来负责更新,只要这个系统永远支持老代码在系统上跑,就足够了。 + +# 确保生态长存 + +安装了面板的每台机器,都是一个完整的【软件仓库】,无需联网下载,因此会占用大量磁盘空间。 + +所有软件都是我们自己写的,不存在第三方软件,严格控制软件体积,去除多余东西。 + +# 如何推广 + +就像现在的我,根本不知道有哪些软件生态。 + +protonmail,braver,你仔细一看他们是一整套隐私保护,可惜的是 没有 braver panel。 + +【面向年轻人的夸张化用词】是扩展新用户的关键。 + +年轻人,一定会沉迷二次元,我们给他们提供小工具。 + +我们的生态系统,名字不要带有【privacy】字眼,而是叫【ACGM Box】,【Box】字眼比较亲和,而不是【eco】,【one】这种高大上的感觉。 + +这些都是网页小工具,因为可以免去系统更新问题,例如,win7 软件不能在 win11 上安装。 + +每个工具的顶部导航栏,最右侧会推荐【自部署面板 ACGM Panel】,并教会如何部署。 + +# 我希望的用户体验 + +你是一个年轻人,你喜欢听歌,但是不希望付费,在网上下载了很多音乐,你希望有一个工具把这些【珍贵数据】永久保存起来。 + +于是,你在网上搜索,然后找到我们的网页小工具。 + +我们网页小工具,其实仍然是你本地电脑处理的,我们只是给你传一个工具库而已,我们的服务器可没有这么多算力云端处理。 + +你发现,我们的网页强烈推荐自部署服务器,吸引你的就是你的一切资料,都放在自建的网盘里,你就尝试部署了一台。 + +你部署完成后,发现里面还有许多很重要的生产力工具套件。 + +# 软件仓库包含哪些 + +纯数字办公套件,这个非常重要,是其他建站系统的基石,我们不内置一切编辑器,什么pdf,doc,md之类的,只留一套。其实浏览器引擎,本身就是一个渲染器了,我们只需要套个壳,让其变成编辑器。一切围绕浏览器。 + +内容管理套件,图书,音乐,视频。 + +供应链生产力套件,各行各业的管理系统,我们自己定义数据接收格式,设备兼容问题,就是转换下数据格式而已。 + +# 只允许开发 app 内部的插件 + +总所周知,如果开放第三方app安装,就会遇到麻烦的【权限滥用】问题。 + +我们第一方app,权限都是调整好的,就像ps不可能需要定位权限,也不需要什么管理员权限。 + +插件能够获得的权限,不需要申请,我们已经框定好了。 + + diff --git a/apps/refugee-home/cook/乙基麦芽酚风味失衡排查.md b/apps/refugee-home/cook/乙基麦芽酚风味失衡排查.md new file mode 100644 index 0000000..1ba5e05 --- /dev/null +++ b/apps/refugee-home/cook/乙基麦芽酚风味失衡排查.md @@ -0,0 +1,53 @@ +在食品,饮料,乳制品,肉制品的加工中,乙基麦芽粉是提升香气,增加甜感和掩盖不良风味的常用增效剂。 + +然而实际生产中,添加量不当会引发风味故障,苦味,金属味,香气突兀,掩盖过度,远比理论表格更加复杂,因此需要对故障进行排查和校正。 + +# 焦苦味,金属味,酸涩味的出现,重度过量 + +重度过量,在高温加工工艺(如烘培,油炸,高温杀菌)中,其分子可能发生热降解或其他氨基酸发生美拉德副反应,产生烧焦糖或苦杏仁的后味。 + +更隐蔽的是,当产品中含有铁离子(通常来自设备),乙基麦芽酚会与铁离子螯合,形成类似铁锈的金属味。 + +一旦金属厨具染上苦味,需要酸洗(ph < 2)或碱洗(ph > 12),并额外高温热水(80度以上)冲洗15分钟,并用水样做感官检测。 + +乙基麦芽酚术语酚醚类化合物,在酸性条件下(ph < 4.5),其香气释放特性会发生变化,甜感减弱,酸涩感增强。在果味饮料和酸性乳饮料中,增加柠檬酸或乳酸的用量,对导致产品偏酸,需降低乙基麦芽酚用量,或改用耐酸型香精载体。 + +# 风味扁平化,掩盖过度的出现,轻度过量 + +轻度过量,产品原本的层次感(如发酵酸香,肉类鲜味,乳制品发酵味)被压制,整体风味单一,发闷。新手常犯的错误是,大豆蛋白的豆腥味,肉糜的氧化味。 + +# 对其他香精的抑制效应,竞争冲突 + +乙基麦芽酚与某些香精成分(如香兰素,乙基香兰素,麦芽酚)存在结构性相似,它们在受体结合上存在竞争关系。如果配方中同时使用多种酚类香精,且比例不当,可能导致香气不升反降。 + +工厂生产复合调味品时,会遵循 “主香剂 + 修饰剂” 原则,将乙基麦芽酚视为修饰剂,用量不超过主香剂(如香兰素)的 1/3 。 + +# 如何控制用量 + +先不加乙基麦芽酚,等主味定型后,再逐级梯度添加,若不清楚乙基麦芽酚的纯度,通常低于包装上的 “用量参考” 是比较保险的。 + +含 20% 以上脂肪的肉糜或奶油制品,需要将乙基麦芽酚用量提升 30%-50%, 才能产生与低脂体系相同的香气。 + +# 水溶性和油溶性可以互换吗 + +油溶性乙基麦芽酚,需要预先溶解在酒精(乙醇),或甘油(丙三醇)中。 + +水溶性乙基麦芽酚,也需要先溶解在水中。 + +但水溶性载体,在高温时会快速挥发,直接暴露在油面上,导致大量损失和苦味产生。 + +在高温食品加工中,优先使用油溶性乙基麦芽酚。 + +# 何时添加 + +高温食品加工中,高温会使乙基麦芽粉产生苦味,要在温度下降到 60 度以下,再加入乙基麦芽粉溶液。 + +卤水微沸5分钟即可,之后关火让卤肉慢慢变熟,高温是为了让肌肉纤维张开,香料进入内部。 + +在卤水沸腾时,千万不能添加乙基麦芽酚溶剂,而是60度以下时加入,最后再闷个 30 分钟。 + +# 如何修正风味 + +苦了,就是要加糖对冲。 + +冰糖还是果脯糖浆?果脯糖浆比较便宜。 diff --git a/apps/refugee-home/cook/卤味鸭货.md b/apps/refugee-home/cook/卤味鸭货.md new file mode 100644 index 0000000..a96fc51 --- /dev/null +++ b/apps/refugee-home/cook/卤味鸭货.md @@ -0,0 +1,41 @@ + +### 调味和调色 + +盐85g(打开味觉受体),冰糖30g(中和咸味,比白砂糖更好,冲甜),麦芽糖25g(中和咸味,绵甜),鸡精45g(呈味核苷酸,与味精配合),味精15g(谷氨酸钠),料酒50ml(白酒不可替代,与糖美拉德增香),生抽75ml,糖色75g(红曲红+白糖,可以代替),黄栀子6g(类胡萝卜素,上色,水溶性,但不够深)。 + + +油,葱(主香),洋葱(甜香),姜片(压腥),胡萝卜(增色),香菜(清新),香菇(增厚)。 + +# 卤油 + +香料不溶于水,但溶于油(脂溶性),之后肉再吸附油。 + +水10斤,油3斤(不可用菜籽油),花椒60g,干辣椒 100g,香料包(建议直接买香粉),废香料渣10斤,大火烧开,转小火熬30分钟,再久就发苦了。 + +关火,焖制一晚上。 + +加入黄豆酱,增加酱香味。 + +50斤汤,用3-4斤卤油就行。 + +# 糖色 + +小火,热油润锅,倒入白糖或冰糖,不断搅动,糖会先结块,然后融化。 + +全部融化完后,等温度升到小气泡在中间炸出来,这时绕着锅边转圈慢慢倒入水,让糖降温,水接触糖浆后,会立即炸泡,如果一下子倒下去,会直接溅到人。 + +关火,搅拌,糖色完成。糖色本身带有苦味,不能太老太焦。 + +通常会使用,黄栀子,红曲红上色,如果不需要甜味的话。 + +# 晾干与拌汁 + +浸泡结束后,立即捞出摊开晾干,过长时间会烂。 + +凉透后,加入,黑鸭汤,麻辣油,秘制红油,用手进行搅拌。 + +黑鸭汤,来自新加的水,例如,你原来25斤汤,新加了5斤,煮完蒸发了2.5斤,剩下27.5斤。 + +剩下2.5斤,就是你要拿来拌汁的 + +后面摆摊时,需要逐个鸭货拿出来,香料残渣还要用的。 diff --git a/apps/refugee-home/cook/工厂肉类处理.md b/apps/refugee-home/cook/工厂肉类处理.md new file mode 100644 index 0000000..a6f45d1 --- /dev/null +++ b/apps/refugee-home/cook/工厂肉类处理.md @@ -0,0 +1,11 @@ +# 工业去腥 + +火碱(氢氧化钠)甚至双氧水,浸泡内脏,腥味快速消除。 + +# 人工牛肉香精 + +无论加什么,味道始终不够。 + +酱油味道不够,香料也味道不够,糖不够,味精不够。 + +那最后不就只剩人工香精了么。 diff --git a/apps/refugee-home/cook/透骨增香剂AAA配方.md b/apps/refugee-home/cook/透骨增香剂AAA配方.md new file mode 100644 index 0000000..0aa3ba1 --- /dev/null +++ b/apps/refugee-home/cook/透骨增香剂AAA配方.md @@ -0,0 +1,26 @@ +# 通用部分 + +盐,葡萄糖,变性淀粉。 + +盐是用来打开受体,葡萄糖是用来中和咸味, + +味精,呈味核苷酸二钠。增鲜二件套。 + +乙基麦芽酚。去腥一件套。 + +# 深刻教训 + +你买了便宜的【透骨增项剂AAA】,配料表只写了【食用香精】,没具体写是哪一种香精。 + +回来是吃后,发现是【猪肉香精】,味道很臭,与你的原版黑鸭卤料味道不一样,导致整锅卤水发臭报废。 + +你自己调查黑鸭卤料的配方,发现是【牛肉香精】。 + +配料表的【香精部分】,没有写明白的一律不要买。 + + + +- 琥珀酸二钠,2g。 +- 酵母抽取物,3g。 +- 麦芽糊精,15g。 +c diff --git a/apps/refugee-home/cook/酸嘢.md b/apps/refugee-home/cook/酸嘢.md new file mode 100644 index 0000000..76048eb --- /dev/null +++ b/apps/refugee-home/cook/酸嘢.md @@ -0,0 +1,5 @@ +# 成本低味道好的选择 + +这个不需要加热,不像鸭货需要冰箱保存,且容易获得。 + +# \ No newline at end of file diff --git a/apps/refugee-home/electric/太阳能电池板套件.md b/apps/refugee-home/electric/太阳能电池板套件.md new file mode 100644 index 0000000..8524cbf --- /dev/null +++ b/apps/refugee-home/electric/太阳能电池板套件.md @@ -0,0 +1,25 @@ +# 如何推广太阳能板 + +要利用修车店,修车店不仅仅是换电瓶,还卖太阳能电池板。 + +这个板足够小,100m长,50cm宽,可以让顾客用电瓶车轻松运回家。 + +提供【BMS 扩容器】,将多个电瓶合并成一个【电瓶集群】,就类似【交换机一样】。 + +# 有哪些参考案例 + +顶部有太阳能电池板的汽车。 + +# 有哪些组件 + +太阳能板,支架,线缆,逆变器,BMS扩容器。 + +# 谁会买 + +有自己房子的群体,楼顶就可以全部上【太阳能凉棚】,挡雨又发电。 + +有房子的群体,其实也比较有钱。 + +# 这个产业其实就是建筑行业的扩展 + +也是一次性买卖,就像建楼一样。 diff --git a/apps/refugee-home/electric/核电原理.md b/apps/refugee-home/electric/核电原理.md new file mode 100644 index 0000000..54c1a11 --- /dev/null +++ b/apps/refugee-home/electric/核电原理.md @@ -0,0 +1,32 @@ +# 原理 + +核电池,又称【放射性同位素电池】或【原子能电池】,通过放射性同位素【衰变】产生能量,并将其转化为电能。 + +核心发电原理有2种,【热转换型】和【电子搜集型】,实际上两者可以都有。 + +热转换型,通过热电偶或半导体材料,形成温差发电。 + +电子收集型,直接收集β粒子(电子)或其他带电例子,形成电势差发电。 + +常用放射性同位素包括碳-14(C-14)、钚-238(Pu-238)、锶-90(Sr-90)、钋-210(Po-210)等。 + +不同同位素半衰期从数月到数千年不等,决定了核电池的寿命和功率输出。 + +钚-238的半衰期约为87.7年,意味着每88年其功率会衰减一半,这使其能够在几十年甚至上百年的深空任务中持续发电。 + +# 防护层 + +防辐射铅层是利用铅的高密度(11.3g/cm³)和高原子序数(82)来衰减X射线、γ射线等电离辐射的防护材料,广泛应用于医院放射科、CT室、DR室、牙科影像室、核医学及工业探伤等领域。 + +核心概念:铅当量(mmPb) + +铅当量表示某种材料在特定射线条件下等效于多少毫米纯铅的屏蔽能力。例如,2 mmPb 表示该材料屏蔽效果等同于2毫米纯铅。铅当量不等于物理厚度,复合板(铅+石膏/木板)的总厚度可能大于铅当量 + +铅层防护原理,防护遵循指数衰减定律: + +$$ + +I=I_0 \times e^{-\mu x} + + +$$ diff --git a/apps/refugee-home/electric/水底涡轮发电机.md b/apps/refugee-home/electric/水底涡轮发电机.md new file mode 100644 index 0000000..d8aafcf --- /dev/null +++ b/apps/refugee-home/electric/水底涡轮发电机.md @@ -0,0 +1,3 @@ +# 英文名 + +水底涡轮机(underwater turbine),河流涡轮机(river turbine)。 diff --git a/apps/refugee-home/electric/电瓶.md b/apps/refugee-home/electric/电瓶.md new file mode 100644 index 0000000..1b4da20 --- /dev/null +++ b/apps/refugee-home/electric/电瓶.md @@ -0,0 +1,33 @@ +# 带 BMS(Battery Management System)电池管理系统的电瓶 + +什么是 BMS 板子? 它是一个庞大的软硬件集合体,包括传感器、中央处理器、执行机构等。BMS通过遍布电池包的传感器获取电芯的状态信息,包括电压、电流、温度和剩余容量等参数,并将这些信息传递给中央处理器进行分析和处理。根据处理结果,BMS会调节电池的状态,确保电池处在适宜的工作环境和安全环境当中,满足车辆的动力需求。 + +BMS的的核心功能包括: + +- 监测电池状态:BMS能够实时获取电池的电压、电流、温度和剩余容量等参数,为电池的使用和维护提供重要依据。 + +- 保护电池安全:BMS可以实时监测电池的温度和电压等参数,当电池超过安全范围时,可以采取相应的措施,如断开电池充放电回路,以防止电池过热、过充或过放,从而保护电池的安全性。 + +- 均衡充放电:BMS可以监测和控制电池单体之间的电压差异,以确保各个电池单体在充放电过程中的电压均衡,提高电池的整体性能和使用寿命。 + +- 故障诊断和报警:BMS可以检测电池组中的故障和异常情况,并及时发出警报或报警,以便及时采取措施进行修复或处理,提高电池系统的可靠性和可用性。 + +例如,一个电瓶里面有6个单元,每个单元2v的电压,串联起来就是12v电压,所以1个电瓶12v电压。 + +有时候,你要买新电瓶,和旧电瓶一起用。你希望确保,两者同时满电,同时没电,还同时同压。 + +但是,旧电瓶已经老化,满电电压已经达不到新电瓶的满电电压,这就需要一个控制机制。 + +当一个电瓶无法继续提高电压时,其他电瓶也跟着不提高电压,这就是 BMS 板的作用,不过是用在单个电瓶内的多个单元之间,消耗电时,也是先消耗电压较高的单元。 + +# 带重金属是可以的 + +有效利用重金属废料,提高电池的性能。 + +# 支持数据互通。 + +你有多个电瓶,每个电瓶都有自己的 BMS,你想将它们并联,在不增加电压的情况下,扩大容量,非常适合家庭太阳能储电系统。 + +# 大小设计成刚好支持2轮车 + +这个大小,主要是重量在人可以提的范围内,再大就拿不动了。 diff --git a/apps/refugee-home/electric/简易太阳能电池板.md b/apps/refugee-home/electric/简易太阳能电池板.md new file mode 100644 index 0000000..96d7a32 --- /dev/null +++ b/apps/refugee-home/electric/简易太阳能电池板.md @@ -0,0 +1,11 @@ +# 能源是非常重要的 + +没有能源,一切机器都动不了。 + +# 材料提纯必须掌握 + +买材料是不现实的,成本上是不可接受的,只能自己提炼。 + +不一定要用硅,应该追求最大性能。 + +# 用低加工 diff --git a/apps/refugee-home/electric/纳米金刚石核电池.md b/apps/refugee-home/electric/纳米金刚石核电池.md new file mode 100644 index 0000000..7f7ee97 --- /dev/null +++ b/apps/refugee-home/electric/纳米金刚石核电池.md @@ -0,0 +1,3 @@ +2020年8月,美国加州的NDB公司表示:这并不是天方夜谭,他们开展了一个实验,验证了一种“无限能量”的纳米金刚石电池 + +这个电池基本上不需要充电,根据实验室数据,这种电池可以使用2.8万年,电池可以收集40%以上的电荷。 diff --git a/apps/refugee-home/finance/Hawala Hundi.md b/apps/refugee-home/finance/Hawala Hundi.md new file mode 100644 index 0000000..80e8d3c --- /dev/null +++ b/apps/refugee-home/finance/Hawala Hundi.md @@ -0,0 +1,49 @@ +# 什么是飞钱 + +类似金融手段【镜像交易】,你手里有A货币,想把钱汇到国外,你无需转账,只需要交给地下银行,地下银行并没有把钱转出去。 + +而是在联系在另一个国家的合作伙伴,从这个合作伙伴的账户中把钱给你。 + +整个过程无需经过银行,甚至也不需要交税。 + +为什么要这样做?直接从银行转账不好吗?因为有太多的黑钱。 + +# 黑钱是如何得到的 + +通常所谓的黑钱,并不一定是什么抢劫,你搞生产卖了东西,人家正常支付给你钱。 + +只是通过银行转账,超过一定额度,需要解释来源,因为统治者不希望其他人私下使用自己的土地赚钱。 + +# 地下银行如何转移金钱到国外 + +要知道,钱的本质是债券,你可以用钱去购买黄金,兑现成实物。 + +实物才是我们最终需要的东西,把钱带出境外是没有用的,境外也会审查资金来源。 + +转移实物,才是真正的转移金钱。 + +因此,走私,偷渡,海关瞒报,这三个方法才是地下钱庄的真正手段。 + +以捕鱼的名义,在【公海】交易,来成功实现实物的清算。 + +# 如何洗白 + +靠【价格战+服务费】组合,我们的走私物资,低价给工厂生产产品,生产产品可以谎报【效率提升】和【降本】。 + +只是产品卖出后,工厂以服务费的名义,将物资款支付给我们。 + +工厂配合我们的原因只有一个,就是我们帮助他们提高了竞争力,工厂通过击败竞争对手,实现收入增长。 + +# 银行如何追查 + +追查钱是不可能的,因为钱仍然留在了地下钱庄,根本没有出境。 + +而追查价值,极其困难,甚至不可能,因为与海量正常交易混在了一起。 + +# 为什么要怎么做 + +虽然有转移资产的需求,但更多的是将物资【转化】的需求。 + +统治者为什么要查这些东西,土地都是统治者的,收水电费,土地费不就好了么? + +就是因为,土地太大,没人看管,就会有人私自挖矿或者取水。 diff --git a/apps/refugee-home/finance/先生存再发展.md b/apps/refugee-home/finance/先生存再发展.md new file mode 100644 index 0000000..05e5e83 --- /dev/null +++ b/apps/refugee-home/finance/先生存再发展.md @@ -0,0 +1,13 @@ +# 生存是博弈,发展是研发,先生存再发展 + +生存是博弈,意味着: + +- 有足够的力量,反击暴力 +- 有一门生产技术,足以独立维持生计 +- 懂经济规律,避开各种致命陷阱,懂得借力 + +发展是研发,意味着: + +- 打造影响力,取得群体的信任 +- 我有你无,建立技术壁垒护城河 +- 管理扩张,懂的用人。 diff --git a/apps/refugee-home/finance/公开信息都是假的.md b/apps/refugee-home/finance/公开信息都是假的.md new file mode 100644 index 0000000..ea5ff5b --- /dev/null +++ b/apps/refugee-home/finance/公开信息都是假的.md @@ -0,0 +1,11 @@ +# 公开信息的错误率非常之高 + +当你研究到核心技术的时候,你会在网上寻找答案,就会发现网上公开的经验,大部分都是假的。 + +食品配方是重灾区。 + +# 一切都要反过来看 + +利益方肯定会控制媒体,给公众灌输错误的方向。 + +这个道理已经被反复验证过,永远会继续下去。 diff --git a/apps/refugee-home/finance/存款结构.md b/apps/refugee-home/finance/存款结构.md new file mode 100644 index 0000000..20a4d74 --- /dev/null +++ b/apps/refugee-home/finance/存款结构.md @@ -0,0 +1,22 @@ +# 消费者的存款从哪里来 + +你若曾经做过摆摊,你会思考一个问题,这些消费者不买我的商品,是因为没钱吗?我是不是该降价? + +你开始关心,【消费力高】的人是做什么工作的,【消费力低】的人又是做什么工作的。 + +你发现,【消费力高】的人都有共同特点,那就是和【权力阶层】走得很近,往往是类似【公务员】。 + +你想找出一个反例,验证这个想法是否正确,你开始关注【巨额工程设备】的买家,究竟是什么背景,毕竟这是【可见到】的最大额商品了。 + +你发现这些都是【国企】,不然就是【家族企业】,绝对是脱离不了【权力阶层】的。 + +于是你注意到了【权力结构】与【存款结构】的关系,你醒悟到,权力者掌控着当地的经济,必然会给一帮手下好处来维护统治,层层下来存款越来越低。 + +而最高统治者,只需要印钱雇人搞生产,剩余价值就是统治者的存款。 + + + + + + + diff --git a/apps/refugee-home/finance/经济俱乐部得目的是排外掩护.md b/apps/refugee-home/finance/经济俱乐部得目的是排外掩护.md new file mode 100644 index 0000000..6137e0c --- /dev/null +++ b/apps/refugee-home/finance/经济俱乐部得目的是排外掩护.md @@ -0,0 +1,19 @@ +# 自由充分贸易,才能把价格打到最低 + +发达国家带头搞经济框架,就是一种腐败掩护。 + +某个经济框架,民主党推动,共和党退出,暗示了这个经济框架不是国本位的。 + +而民主党的订单,也会希望照顾自己的势力,不希望把订单交给共和党的企业家。 + +终究一切关系都是人与人之间的关系。 + +# 通过补贴券的形式,降低现金压力 + +你给一个员工发工资,你没有足够的钱,但你有足够的物资,为何不直接用物资抵扣工资呢? + +工资不变,补贴特别多, + +# 买州产货,买组织货 + +与其获取流量,还有一种方法,就是渠道控制,你只能在我的平台上购买。 diff --git a/apps/refugee-home/finance/计划经济与自由市场经济.md b/apps/refugee-home/finance/计划经济与自由市场经济.md new file mode 100644 index 0000000..759aca9 --- /dev/null +++ b/apps/refugee-home/finance/计划经济与自由市场经济.md @@ -0,0 +1,9 @@ +# 自由市场经济 + +自由市场经济,并不是考虑如何发展经济,只是想减少政府介入。 + +任何试图管理过业务的人,都意识到赚钱是需要计划的,计划就是算账。 + +国家发展,也是需要计划的,如果政府不主导,那么就会由富翁来主导。 + +嘴上说市场经济,暗地里搞的是计划经济。 diff --git a/apps/refugee-home/finance/赚发展中国家经济增量的钱.md b/apps/refugee-home/finance/赚发展中国家经济增量的钱.md new file mode 100644 index 0000000..5645e9c --- /dev/null +++ b/apps/refugee-home/finance/赚发展中国家经济增量的钱.md @@ -0,0 +1,23 @@ +# 赚发展中国家的钱 + +市场份额是有限的,一个国家的经济增值,必定以另一个国家经济衰退为代价。 + +在衰退前离开,增量时进入。 + +# 赚新壳公司的钱 + +某个大公司股票市值到顶后,无法继续上涨了,为了永续上涨,就需要不断培养新公司,来打败旧公司,再吃一波增涨红利。 + +逐渐把订单从旧公司转移到新公司,旧公司的股东们,甚至是蓝筹股,都将成为接盘侠。 + +新公司的业绩逐渐增长,股价涨到一定程度,资本就可以以高估值出售股票,套现未来的钱,股票出售完后,就可考虑下一轮新公司了。 + +在公众的视角中,一个新公司遇到了增长瓶颈,业务不佳,实际上只是资本把订单撤了。 + +# 变相融资 + +押金,充值,周期结算,都可以占用资金的使用时间。 + +借入资金,采购,销售,回笼资金,金钱每流动一轮,都会产生利润。 + +这对与新店来说,摆脱对高息贷款的依赖。 diff --git a/apps/refugee-home/finance/集团公司架构.md b/apps/refugee-home/finance/集团公司架构.md new file mode 100644 index 0000000..62a36f2 --- /dev/null +++ b/apps/refugee-home/finance/集团公司架构.md @@ -0,0 +1,5 @@ +# 避税天堂 + +# 工具基金 + +# 无利润子公司 diff --git a/apps/refugee-home/food/硫磺熏蒸防腐.md b/apps/refugee-home/food/硫磺熏蒸防腐.md new file mode 100644 index 0000000..da0d568 --- /dev/null +++ b/apps/refugee-home/food/硫磺熏蒸防腐.md @@ -0,0 +1,25 @@ +# 硫磺熏蒸 + +硫磺燃烧或升华,产生 $SO_2$ 气体。 + +【二氧化硫】与食材中的【水分】结合成【亚硫酸】,亚硫酸具有还原性,能消耗组织中的氧,抑制某些微生物活动所必须的酶的活性,同时江都 pH 值,从而起到防腐作用。 + +二氧化硫气体,可以直接杀死食物中的成虫,卵,蛹,幼虫等,同时抑制霉菌等各种真菌的活性,起到防虫防霉的作用。 + +亚硫酸是一种强还原剂,可以将着色物质还原,呈现漂白作用,对氧化酶的活性有很强的抑制作用,可防止酶促褐变。 + +亚硫酸还能与葡萄糖进行加成反应,阻止其与氨基酸的缩合反应,从而防止非酶促褐变。 + +过度熏蒸会改变成分,药材中的酮基,羟基的成分发生化学反应,直接改变药材成分含量。 + +【工业硫磺】含砷,铅等重金属,谨慎使用。 + +1-3g 硫磺就可以让人中毒,一定要把浓度控制好,药材残留量不应该超过 400mg/kg,香料不得超过 200mg/kg。 + +根据报导,似乎被人被查,都高达几千 mg/kg。 + +好处是成本极低,之后再作为原料,流向食品加工厂,如果食品加工厂会先清洗,再加工,那当然会更好。 + +# 技术规范 + +在通风良好的环境中进行,否则浓度过高有爆炸风险。 diff --git a/apps/refugee-home/internet/互联网的价值在哪.md b/apps/refugee-home/internet/互联网的价值在哪.md new file mode 100644 index 0000000..134d7f0 --- /dev/null +++ b/apps/refugee-home/internet/互联网的价值在哪.md @@ -0,0 +1,19 @@ +# 传统互联网的价值 + +机器数控,公司管理,网络流量,影视娱乐。 + +# 数据衍生价值 + +如果没有数据证实,一切都只是你的猜想。 + +【可落地性】必须有数据支撑,不仅仅是批发价,零售价,还要需要一些浏览记录,聊天记录。 + +# 吸引消费者的原理,与诈骗极其相似 + +就是专门抓痛点,并掩盖其他缺点。 + +# 我现在越来越觉得,互联网没有产生价值 + +仅仅就是一个【管理工具】,你还需要一整套【机器】。 + +重心应该始终放在制造业。 diff --git a/apps/refugee-home/market/地区差异福利.md b/apps/refugee-home/market/地区差异福利.md new file mode 100644 index 0000000..b2d0f52 --- /dev/null +++ b/apps/refugee-home/market/地区差异福利.md @@ -0,0 +1,17 @@ +# 空旷的城市均摊运费高,适合小作坊存在 + +空旷意味着消费者少,每个消费者平摊的运费就高了。 + +为了降低生活成本,再空旷的城市,永远会有一个【小型商业中心】存在。 + +空旷的好处也很明显,本来【自己生产】就趋近于【免费】,现在因为【运费高】,直接促成了【自给自足】,一劳永逸。 + +每个人还可以为邻居充当【临时仓库】,做起【兼职批发商】。 + +# 密集的城市均摊运费低,适合快速清理库存 + +# 人工费高的富裕地区,有利于穷人积累本金 + +进入商业这一行,是需要本金的,增量期可以靠贷款,但存量期最好谨慎,除非你有别人没有的优势。 + +发达国家人工费高,非常适合底层人积累资金,在发达国家打工一段时间后,去发展中国家创业。 diff --git a/apps/refugee-home/market/城市经济结构.md b/apps/refugee-home/market/城市经济结构.md new file mode 100644 index 0000000..163566e --- /dev/null +++ b/apps/refugee-home/market/城市经济结构.md @@ -0,0 +1,42 @@ +# 人口分布 + +【人口分布】,就是以【房地产】的视角去看,每个【人流多】的地方,【主要群体】是什么类型的? + +每个地区摆摊的东西,随着群体的不同,是不一样的。 + +【学校区域】,有【学生宿舍楼】,人流是【学生群体】,摆摊卖【油炸小吃】。 + +【公园区域】,有【城中村】,人流是【老年群体】,摆摊卖【草本植物健康饮品】。 + +【工厂区域】,有【厂内宿舍楼】,人流是【打工群体】,摆摊卖【廉价管饱快餐】。 + +【办公区域】,有【产业园写字楼】,人流是【白领群体】,摆摊卖【高端饮品】。 + +# 供应链结构 + +简单分类有4个环节,【原料】,【加工】,【批发】,【零售】。 + +每个环节都是一次【差价】,都养活了一大批工人。 + +通常口袋没钱的人,都只能从【零售】开始倒着来。 + +原料需要大量的土地,而土地不是一般人能搞得到的,因此你能达到的最高水平,就是开个【加工】的工厂。 + +# 趋势 + +想象一下,你穿越回古代,你知道时代的趋势,你是不是就能赚到大钱? + +如果你现在提前知道了未来会怎么样,那是不是就可以赚到大钱了? + +除了产业升级趋势。还有一些简单的趋势可以利用。 + +季节趋势,你提前知道气温会如何变化,你是不是就可以及时更换作物了? + +文化趋势,这个就是蹭文化产业,赚设计的钱。 + +# 加工,人力与机械 + +工厂为什么要招工?就是需要人力操作机器,毕竟机器难以判断动态情况。 + +机械是必不可少的,人力的出产效率太低,人只是简单操作而已。 + diff --git a/apps/refugee-home/market/如何从流浪汉起步.md b/apps/refugee-home/market/如何从流浪汉起步.md new file mode 100644 index 0000000..c5e1027 --- /dev/null +++ b/apps/refugee-home/market/如何从流浪汉起步.md @@ -0,0 +1,13 @@ +# 街边理发师 + +只需要几个小工具,也不需要人来雇佣你,只是顾客只能面向真正的穷人,因此只能在低收入群体社区经营。 + +# 废品回收 + +前提是你有自己加工机器,否则你无法变现,或者有人愿意收你的废品。 + +# 为什么要晚上摆摊 + +白天大家都在上班,根本没人。 + +晚上,大家都下班了,重要的是,天黑容易混进摆摊群里。 diff --git a/apps/refugee-home/market/如何获得优势.md b/apps/refugee-home/market/如何获得优势.md new file mode 100644 index 0000000..4e8c761 --- /dev/null +++ b/apps/refugee-home/market/如何获得优势.md @@ -0,0 +1,9 @@ +# 造假获得低价优势 + +如果是【偷】和【抢】,会招来报复,且【不可持续】。 +造假,不仅不容易被发现,即使坏了,用户也会以为是自己弄坏的,是很好的【优势】。 +但是对手也会造假,这样子优势又没了,或者说你不去造假,你就生存不下去。 + +# 抄袭可以省去研发成本 + +消费者只会买当前最好的产品,你是不是抄袭并不重要,你只要总是基于对手的产品做一些【微改进】,就能轻易超越对手,并节省大量【研发时间】,抢先占领市场。 diff --git a/apps/refugee-home/market/独占性竞争.md b/apps/refugee-home/market/独占性竞争.md new file mode 100644 index 0000000..e7cad41 --- /dev/null +++ b/apps/refugee-home/market/独占性竞争.md @@ -0,0 +1,19 @@ +# 定制耗材配件 + +这个方法适合头部品牌使用。 + +插口不通用,用户知道你的设备是好货,用户怪的是耗材配件商家不兼容好货。 + +但配件商家也不傻,插口不通用,我就改成你专用的那个就行了。 + +这个打击的是其他头部品牌,对配件商不构成伤害。 + +# 计划性报废 + +不耐磨的鞋底,EVA鞋子便宜,2个月底就磨平了,橡胶底可以用2-3年。 + +易碎塑料外壳,电瓶车的外壳,虽然平时不碰什么,一旦 5km/h 速度碰撞,都能碎得离谱。 + +容易变形的薄钢管,电瓶车车架,不受冲击勉强不变性,一旦受到冲击,立刻变形报废。 + +容易生锈的充电口,动不动与电脑断开连接。 diff --git a/apps/refugee-home/market/身份认同和文化差异.md b/apps/refugee-home/market/身份认同和文化差异.md new file mode 100644 index 0000000..5fb0306 --- /dev/null +++ b/apps/refugee-home/market/身份认同和文化差异.md @@ -0,0 +1,7 @@ +# 要确认当地文化 + +环境塑造人,人的文化是适配环境并试图反抗的。每一种文化都是一种反抗。 + +相同文化的人,会有一种同频感知,你发现对方的逻辑,完全和你一样。 + +反之,如果不同频,人就会认为对方格局小,或者愚蠢。 diff --git a/apps/refugee-home/politic/产业建设.md b/apps/refugee-home/politic/产业建设.md new file mode 100644 index 0000000..04dda84 --- /dev/null +++ b/apps/refugee-home/politic/产业建设.md @@ -0,0 +1,17 @@ +# 工序尽可能靠近原材料产地 + +例如,【提炼】就应该靠近【矿场】,提炼的目的是,运输前把工业废渣提炼出来,降低运输重量和成本。 + +# 重工业及其依赖能源 + +在机械和电力被发明之前,靠的是人工采集。 + +# 环节分工 + +【原料】,【加工】,【组装】是可以分工的。 + +【组装】是为了洗产地。 + +【加工】才是利润核心。 + +【原料】只要供过于求,就能把价格打下来。 diff --git a/apps/refugee-home/politic/以结果判断正确性.md b/apps/refugee-home/politic/以结果判断正确性.md new file mode 100644 index 0000000..fd73f2d --- /dev/null +++ b/apps/refugee-home/politic/以结果判断正确性.md @@ -0,0 +1,29 @@ +# 没有足够暴力的下场 + +从食物链中,就可以看出来,没有暴力的后果。 +在人类社会,上层人把底层人当作消耗品和实验品。 + +# 犯罪者究竟有没有惩罚 + +诈骗,抢劫,杀人,这些人最后怎么样了?有所谓的执法者,去惩罚他们吗? +只要重金贿赂执法者,就能免除惩罚。总统换人了呢?那就再次贿赂一次。 + +# 你究竟有没有努力和进步 + +做好检验方法,就是试着做出一些成果。 +理论只是揭示现实障碍背后的原理而已,现实中是存在执行障碍的,不能只懂理论,却不懂解决障碍。 +懂理论和懂解决障碍,被统称为经验。 + +# 不要在别人作弊的游戏里遵守规则 + +用加息给贷款人增加还款压力,促使其违约破产。 + +例如,2004年起,美联储连续17次加息至5.25%,导致采用浮动利率的次级贷款借款人还款压力剧增,违约率快速攀升。 + +努力和回报不成比例,守规矩的人被系统性惩罚,规则的执行有系统性的双标,越来越难用正当方式竞争。 + +例如:庄家可以修改规则,少数人可以不遵守规则,庄家有信息优势的支撑。 + +# 自己在别人眼中是什么身份 + +越隐蔽越好, diff --git a/apps/refugee-home/politic/公司制兼容奴隶制.md b/apps/refugee-home/politic/公司制兼容奴隶制.md new file mode 100644 index 0000000..0eb919b --- /dev/null +++ b/apps/refugee-home/politic/公司制兼容奴隶制.md @@ -0,0 +1,23 @@ +# 为何公司制和奴隶制如此相似 + +某个工作太辛苦,但是你不做,你就没法赚钱。 + +但你就是想不做,还要赚钱,那你得有个奴隶替你做。 + +哪里来的奴隶?【现代奴隶】指的是低工资的劳工,并且可以随时替换。 + +# 大城市没有资源 + +所谓资源,只的是电厂,水厂,种植基地,养殖基地,矿厂,等。 + +大城市你觉得可能有这些资源吗?大城市是一个偏服务业的地方。 + +郊外的工业区搞加工,市中心搞科技。 + +生产者,必需把货物运往城市,才能销售出去,赚到钱。 + +# 每个经济体崛起都是靠剥削 + +韩国,中国,美国,日本,都是这样搞。 + +他们崛起时,底层劳工都是难以生存。 diff --git a/apps/refugee-home/politic/利用困境倒逼科技升级.md b/apps/refugee-home/politic/利用困境倒逼科技升级.md new file mode 100644 index 0000000..71aacb5 --- /dev/null +++ b/apps/refugee-home/politic/利用困境倒逼科技升级.md @@ -0,0 +1,21 @@ +# 缺河,缺地,就要发展核电 + +没有河流,就无法建立水电站。 + +太阳能占地太大,1户人装了太阳能电池板,1 天才发 9 度电,远远不够用。 + +风能严重干扰空中交通,不适合在城区建设,占地面积也大。 + +# 缺地,就要建高楼 + +垂直农场,垂直牧场,轻工业,都是可以上楼的。 + +只有化工和重工业,需要低楼。 + +# 缺物资,就要会开采和提炼 + +海底,地底到处都是矿产资源。 + +只需要掌握地质学,足够的能源,开采必要的机械,提炼所需的化工,就可以有充足的物质。 + +# diff --git a/apps/refugee-home/politic/发达国家的穷人不需要同情.md b/apps/refugee-home/politic/发达国家的穷人不需要同情.md new file mode 100644 index 0000000..a5e1f64 --- /dev/null +++ b/apps/refugee-home/politic/发达国家的穷人不需要同情.md @@ -0,0 +1,9 @@ +# 为什么发达国家的穷人不需要同情 + +发达国家不是没钱,仅仅是一个分配问题,是一个政策问题,他们的诉求是修改政策。 + +而穷国,真的就是生产力和暴力问题。 + +没有学过技术,导致乞讨,流浪和抢劫。 + +就算学了些技术,还是会被暴力压迫,资源被抢夺。 diff --git a/apps/refugee-home/politic/新闻解读.md b/apps/refugee-home/politic/新闻解读.md new file mode 100644 index 0000000..d4a8c79 --- /dev/null +++ b/apps/refugee-home/politic/新闻解读.md @@ -0,0 +1,21 @@ +# 用实际行动来确定分类 + +如果对某件事【仅谴责无实际行动】,那就说明发言者站队的是【加害者】,内容往往是难民被害。 + +如果对某件事【财政拨款】,那就说明发言者站队的是【受害者】,内容往往是所谓的犹太人被欺负。 + +如果是【案件故事】,那就说明是发言者委婉【告知真相】,内容往往是某些失踪谋杀案件,或者【通过预演传达信息】。 + +# 案件故事的信息如何解读 + +看看故事里的人物,在什么地方,遭遇了什么。 + +【地点】很重要,因为暴力组织都是有据点的。 + +【颜色】很重要,因为是一种警告,绿色和红色是冲突的,蓝色是中立的。 + +但【颜色】会在【反讽类】新闻中互换意思,仍需检测一下。 + +# 如何发言 + +有一个原则,就是只能站队你拥有的东西,不要去站别人的队。 diff --git a/apps/refugee-home/politic/独裁政权统治需要什么.md b/apps/refugee-home/politic/独裁政权统治需要什么.md new file mode 100644 index 0000000..8fe30b6 --- /dev/null +++ b/apps/refugee-home/politic/独裁政权统治需要什么.md @@ -0,0 +1,13 @@ +# 暴力和谎言 + +暴力的主要作用,是苗头控制。 + +谎言的作用是,增加理解难度,大幅缓减发展速度。 + +让反抗者每次从零开始,刚出头就被控制。 + +# 生计控制 + +通过价格战,让底层没法赚到钱。 + +底层发财的唯一办法,就是自己生产。 diff --git a/apps/refugee-home/politic/社会的真相是奴隶制.md b/apps/refugee-home/politic/社会的真相是奴隶制.md new file mode 100644 index 0000000..a0d39d5 --- /dev/null +++ b/apps/refugee-home/politic/社会的真相是奴隶制.md @@ -0,0 +1,73 @@ +# 在外网看看别人是如何谈论的 + +外网不像国内谎言连篇,他们的全球视角,本身具备着较高的可信度。 + +# 中国经济为什么通缩 + +坑完百姓存款,就通缩,利好权贵。 + +同时工厂工作量暴增,逼迫老百姓买单,人民币升值,官员都是印钱的。 + +# 现在赚钱难,是真的吗,如何寻找证据 + +从科技角度来看,AI 代替工人,这百分百是真的。 + +工厂的工资没变,这个让我很怀疑是怎么一回事。 + +小作坊,开工资 + +# 文明的成果为何你没有享受到 + +科技的发展,文明的进步,意义本来就在于让生活更轻松,这就是工具的意义啊。 + +问题从来不是,不劳而获,而是如何公平共享文明成果。 + +工人永远享受不到文明的成果,因为雇主会压榨一切剩余价值。 + +# 全球所有国家都欠债,意味着什么 + +国家欠债,就要用纳税人来还款,其实就是全民买单,就是收割底层奴隶。 + +按理说有国家欠债,就应该有国家存款多,但全球国家都欠债,这已经不是国家之间的博弈问题了。 + +这是伪装成【政治经济】的【奴隶制】。 + +因为你用一个常识去求证观点的正确性,一个为民着想的政府,是不会挥霍纳税人的钱的,欠债是及其不负责任的。 + +可以断定,国家长期欠债,一定是奴隶制。 + +任何国家都欠债,钱进了谁的口袋? + +进了官员的私人腰包。底层人应该改变思维,不要在卖苦力了,想办法从土地享受文明成果。 + +# 枪击事件意味着什么 + +这意味着这个国家不是民主国家,新闻上有争论和投票?那些投票都是家族内投票。 + +# 士农工商,每一层都是奴隶制 + +这是供应链上下游顺序决定的。 + +其实,出了士,其他全部都是可以成为商的。 + +农民自己加工,自己卖。不就连工和商,都是了么? + +其实只有【士和商】。 + +# 奴隶制是如何驱动的 + +奴隶主说:勤劳致富。 +卖书的人说:读书改变命运。 +卖课的人说:知识改变命运。 +卖房子的人说:房子是刚需。 +卖钻石的人说:钻石恒久远。 + +正能量,心灵鸡汤,是让奴隶不断自我剥削,死命为奴隶主服务的神器。 +公司制,是管理奴隶的有效工具。 + +想压榨士农工,必须经商。 +你没有廉价货源,你必须创造附加值。 + +# 贸易顺差的来源,就是政府压榨底层 + + diff --git a/apps/refugee-home/politic/革命的必备条件有哪些.md b/apps/refugee-home/politic/革命的必备条件有哪些.md new file mode 100644 index 0000000..f803e22 --- /dev/null +++ b/apps/refugee-home/politic/革命的必备条件有哪些.md @@ -0,0 +1,31 @@ +# 价值观冲突 + +价值观基于文化叙事,这是分裂人群的原理,也是确保忠诚的关键。 + +# 经济利益冲突 + +当经济上没有退路,革命才会真正会发生,而不仅仅是口号。 + +# 武装的生产 + +革命即暴力夺权,暴力是肯定要确保的。 + +# 与其他组织协同 + +当两个武装组织领土接壤时,就会出现利益纠纷,明确划分边界,可以有效避免对抗。 + +但前提是,双方都有共同的敌人,双方不必合并,只需配合。 + +如果双方的敌人不同,那么对方的武装组织对我们而言是没有用的,仍然可能会交战。 + +# 将人群组织起来 + +人只会因为经济利益而组织起来,即使是革命,也是需要捞取经济利益的。 + +这些经济利益,来自损害当地财政利益。 + +# 从语气与思想 + +一个人的说话方式,暴露了一个人的思想。 + +如果你发现与对方说话【不投机】,那么说明存在一些【常识】你还不知道,因为人被触及到【现实利益】时,才会【激烈对抗】。 diff --git a/apps/refugee-home/study/冲劲与斗志与知情.md b/apps/refugee-home/study/冲劲与斗志与知情.md new file mode 100644 index 0000000..a9a97ac --- /dev/null +++ b/apps/refugee-home/study/冲劲与斗志与知情.md @@ -0,0 +1,27 @@ + + +# 台湾黑工案例 + +什么厂商需要人力?建筑业与工厂,稍微统计一下就知道,是那些体力劳动的行业。 + +黑工是如何过去的,银行贷款给中介,后果是被老板压榨。 + +被压榨是肯定的,因为如果不压榨,这工作也轮不到你这个黑工来做。 + +除了学到了,黑工的下场,我还学到了中介的视角,中介的这个赚钱方法,我是不是也可以做呢? + +中介之所以能赚这个钱,离不开一个前提,即黑工没身份,办不了银行卡,收不了款。 + +收不了款,会限制黑工摆摊的可能,毕竟黑工发现摆摊比打工更轻松,就直接去摆摊了。 + +明知道这个工作一定是压榨的,那一开始就不应该冲着打工去的。 + +# 中国黑工案例 + +摆摊,家政,按摩,理发,说是比较有效的无需批准的【创业】。 + +菲律宾,越南人会入境打黑工。 + +在中国,几乎不使用现金,没有收款账号将寸步难行。 + +因此,必然有一个公司在境内照应,给黑工提供收款方式。 diff --git a/apps/refugee-home/study/哲学书和历史书.md b/apps/refugee-home/study/哲学书和历史书.md new file mode 100644 index 0000000..15128b6 --- /dev/null +++ b/apps/refugee-home/study/哲学书和历史书.md @@ -0,0 +1,3 @@ +# 历史书往往充斥着哲学 + +哲学就是一种对历史经验的总结。 \ No newline at end of file diff --git a/apps/refugee-home/study/财富与货币.md b/apps/refugee-home/study/财富与货币.md new file mode 100644 index 0000000..550a5f5 --- /dev/null +++ b/apps/refugee-home/study/财富与货币.md @@ -0,0 +1,7 @@ +# 恶性竞争如何赚钱 + +如果做销售没有了利润空间,那你可以说永远也赚不到钱。 + +整个社会底层,就存在两种人,一种自己生产自己卖,一种领政府工资。 + +开店也需要找批发商合作,相当于给批发商打工,批发商规避了销量不好的风险,因为可以调货。 diff --git a/apps/refugee-home/truck/卡车运货.md b/apps/refugee-home/truck/卡车运货.md new file mode 100644 index 0000000..00cfde9 --- /dev/null +++ b/apps/refugee-home/truck/卡车运货.md @@ -0,0 +1,17 @@ + +# 卡车的种类 +【重卡】,【中卡】,【轻卡】,高度都是和【集装箱】一样高,只是【长短】不同而已。 +【微卡】又叫【Carry】,高度跟【普通车】一样,长度也差不多。 + +【微卡】同时满足了【在狭小街道摆摊】和【长途运货必须是油车】,这两大必备功能。 + +# 如何赚钱 +帮别人私下运货,不需要什么【雇佣合同】,也无需什么【交税】。 + +可以自己开车去拿【货源地】拿最低价的货,运到城市里卖,我们可以只赚司机费,把店面的成本让利给消费者。 + +哪个城市发展得好,随时可以更换城市。 + +# 一些偏远地区也可以去了 +电车最大的问题,就是不能跑到没有充电的地方。 +油车只需要【买几箱油】备用在货架上,就可以轻易扩展【行驶里程】。 diff --git a/apps/refugee-home/truck/走私.md b/apps/refugee-home/truck/走私.md new file mode 100644 index 0000000..3bfabb3 --- /dev/null +++ b/apps/refugee-home/truck/走私.md @@ -0,0 +1,3 @@ +# 赚的就是关税的钱 + +就过一个边境,售价就能立马翻倍,这就是走私的诱惑。 diff --git a/apps/refugee-home/workshop/园艺工具.md b/apps/refugee-home/workshop/园艺工具.md new file mode 100644 index 0000000..9a1bdc7 --- /dev/null +++ b/apps/refugee-home/workshop/园艺工具.md @@ -0,0 +1,41 @@ +# 立体栽培塔 + +自己种菜省下许多钱,什么运输费包装费。 + +设备也很简单,就是自动喷雾,自动开灯。 + +适合矮小蔬菜,例如白菜,省空间。 + +每层高度可调。 + +# 小铁铲,中铁铲,大铁铲 + +就是挖土用。 + +# 斗车 + +运输泥土,木柴,或者某些大件的东西。 + +# 透明塑料量杯 + +肥料稀释。 + +# 传统土培菜盘 + +有些地方是水泥地,或者土质太差,种菜只能用盘子装土。 + +40cm 长,30cm 宽,30cm 高,方形菜盘,可拆装,底部垫高约 4cm,带排水孔。 + +侧板厚度大约 1cm -1.5cm 厚,内侧有类似控根器的凹点,不过由于厚度限制,会小一点。 + +# 爬藤网和支架 + +爬藤网,是废旧回收的 90支 聚酯纤维绳子。 + +支架,可组装式的,不过需要较厚的铁管支架。 + +支架接头,使用紧固件夹紧的,不是螺纹。 + +# 定时浇水器 + +能根据 diff --git a/apps/refugee-home/workshop/塑料五金小商品.md b/apps/refugee-home/workshop/塑料五金小商品.md new file mode 100644 index 0000000..b4f968a --- /dev/null +++ b/apps/refugee-home/workshop/塑料五金小商品.md @@ -0,0 +1,41 @@ +# 塑料金属小商品的竞争力在哪 + +在于便宜和轻便,便宜能够存下更多的钱,轻便方便搬运,薄铁板也是很重的。 + +原材料可以来自当地的废品回收,不需要什么矿山。 + +# 主要材料 + +为【PVC】,【PP】,【丁倩橡胶】,【镀铜铝】,【铁镀锌】,【不锈钢】。 +基本都是这几种的混合。 +降本用PVC,稍微好点用PP。 + +# 软管 + +加入弹性剂,使成品可弯曲,内含钢丝网防塌。 + +【低压管】用【pvc钢丝】+【镀铜铝接头】,防爆100mpa。适合家用水龙头。 +【中压管】用【塑橡钢丝】+【铁镀锌接头】,防爆600mpa。适合高压水枪洗车机。 +【高压管】用【丁倩橡胶钢丝】+【不锈钢接头】,防爆900mpa。适合高压水枪洗车机。 +【食品级】用【硅胶钢丝】+【不锈钢接头】。 +【海底级】用【聚醚TPU钢丝】。 + +# 镀铜铝喷枪与快接头 + +虽然外部是铝的,里面需要橡胶圈,4颗钢珠,和一些弹簧。 + +# 大棚膜 + +【铁镀锌】支柱,【PVC 膜】,或【PO 膜】,给植物保温防虫的。 + +# 塑料袋 + +这个消耗量其实超大的,【垃圾袋】,但造型上最好有两个耳朵,兼容作为【购物袋】。 + +# 打气喷水壶 + +PVC材质,打气组件需要铁弹簧,铝金属杆,铝喷嘴。 + +# 塑料杯,塑料桶,塑料盘 + +有时候就是临时使用,例如,某些消毒剂稀释。 diff --git a/apps/refugee-home/第一册,世界的真相/chapter_1 强者压迫弱者的世界.md b/apps/refugee-home/第一册,世界的真相/chapter_1 强者压迫弱者的世界.md new file mode 100644 index 0000000..c5ddc97 --- /dev/null +++ b/apps/refugee-home/第一册,世界的真相/chapter_1 强者压迫弱者的世界.md @@ -0,0 +1,84 @@ +# Chapter 1 强者压迫弱者的世界 + +## 1.1 农业就是人类压迫自然 + +烧森林获取肥料,种植可食用和药用的植物,去除无用的植物。 + +野生动物自己捕食,人只需要猎杀即可获取肉,甚至圈养,将不要的谷物边角料当作饲料。 + +挖水渠, + +采集矿 + +## 3 工业文明 + +人的劳动能力是有限的,同样的工作量,用机械的成本更低,大幅稀释了单位劳动力的收入,人只能被迫接受更低的工资。 + +农业文明是对植物和动物的奴役,工业文明则是对矿产资源的奴役。 + +## 2.1 土地争夺与家族统治 + +最常见的就是,政府对普通人的打压,对土地的霸占,抢水,抢电,你只能掏钱买。 + +这土地凭什么天生是你的,而不天生是我的?你祖先留下来的?我占领后我也可以留给我的后代啊? + +## 2.2 社会层级 + +古代经济书中就写有,社会主要分为 4 个阶层,士,农,工,商。 + +这一顺序是由阶层所处的供应链顺序决定的,前一个阶层都是后一个阶层的“奴隶制”。 + +只有士这一阶层,会被剥削得最惨。农,工阶层都可以自己成为老板。 + +## 2.3 就连华尔街也试图把债务强加在人民头上 + +政府借钱,发行国债,就是把债务强加在人民的头上。 + +美国第三任总统托马斯·杰斐逊曾经说过,“一个私有的中央银行发行人民的公共货币,这对人民自由的威胁比敌人的军队更严重。” + +这句话告诉了我们“保值”的重要性,如果条件允许,交易最好用贵金属作为货币。 + +法币只不过是地主用来管理经济的内部工具而已。 + +## 2.4 利用战争让对手债台高筑 + +1812年英美战争,就是因为美国第三任总统杰斐逊不遗余力地试图废除美国第一银行,使得坐镇伦敦的内森·罗斯柴尔德闻讯大发雷霆。 + +内森·罗斯柴尔德的目的非常明确,要打到美国政府债台高筑,最后不得不屈膝投降,让他们掌握的中央银行继续运作为止。 + +结果,美国政府的债务从4500万美元增加到12700万美元。 + +## 2.5 用恋爱斗争故事来掩盖战争罪行 + +战争就是杀人,抢土地,而杀人天生会让人反感,甚至引发革命。 + +就需要编造一个虚假的历史故事,来糊弄过去,让底层人不起造反的想法。 + +## 国家债务从来不会有赖账风险 + +国债永远不会违约,也不会有人来讨债,因为这只是印钞的事。 + +未贬值之前,美元只是临时的财富载体,一旦购买贵金属避险,就可以放任美元贬值。 + +贬值有利于提高竞争力,是一件好事。 + +唯一不利的,就是有大量美元的人,黄金供应商,知道美元会贬值,他们会提价,甚至短时间内不再出售黄金,坐享升值。 + +所有的公司,只会保留最低限度的现金流,甚至借钱维持现金流,一旦通胀,还能降低还款压力。 + +如果有一种货币,绑定了银本位,或者石油。那么这个货币没有理由不成为避险的工具。 + +想象一下,美国不再使用美元,而是使用黄金交易,买一瓶汽水,账户里扣除0.0001克黄金。 + +# 倾销就是掌握定价权 + +我的价格最低,比我高的,订单全部丧失。 + +倾销能够抹除所有低端产品的利润,最后只剩下高端产品有巨额的利润。 + +再继续下去,人们都买不起高端产品,最后都只能自己研发,平替产品有足够的利润空间。 + +平替产品也打价格战,最后高端产品的市场份额逐渐萎缩,只会萎缩,不会扩大。 + +# 钱不够用的本质是物资不够用 + diff --git a/apps/refugee-home/第一册,世界的真相/chapter_2 灵性与认知的觉醒.md b/apps/refugee-home/第一册,世界的真相/chapter_2 灵性与认知的觉醒.md new file mode 100644 index 0000000..3fb59de --- /dev/null +++ b/apps/refugee-home/第一册,世界的真相/chapter_2 灵性与认知的觉醒.md @@ -0,0 +1,135 @@ +# Chapter 2 灵性的觉醒 + +## 2.1 失去了才会知道,撞了南墙才会醒悟 + +实践出真知,就是实践,试错失败,然后才知道正确方法。 + +养一个宠物,宠物去世后,离别了,才会懂得珍惜人际关系。 + +贪玩不学习,老了后才后悔那逝去的青春。 + +为了让后人不再重复这些悲剧,一定要去看别人的人生故事,看弱者的困境,读强人的传记。 + +## 2.2 可理解输入才是内化,能有效产生结果才不是徒劳 + +当你开始把各种 “阅历总结的结论” 用来思考的时候,你将清晰的感受到什么是可理解输入。 + +所谓的 “阅历” 我认为就是 4 个具体的步骤, “别人的因果” ,“别人的理解”,“自己的理解”,“自己的因果”。 + +每一个 “阅历” 都是一道 “理解工序”,你只有用这些工序去分析新的阅历,你才能越来越深的看到这个世界的真相。 + +你理解了世界的真相后,当你再看到别人在做那些明显徒劳的事,你意识到对方并不是笨,而是对方的认知里根本没有这份理解工序。 + +这种反差会让你顿悟,世界几千年的现成阅历经验,对方却一点都没有,就像新生儿一样。 + +按理说,知识应该是一代传一代,不应该丢失的,而现实中却出现大规模知识断代的现象,这足以说明一个问题。 + +## 2.3 没有结果的徒劳会产生精神惰性,通常表现为-等-靠-要 + +做事会消耗资源,如果做了没有收益,那么为什么不把时间用在更有收益的地方? + +“等” 表现为,过去的失败,导致你不敢轻易投入资源去做,总是试图先想清楚再去做,结果一直没想好,也一直没做。 + +要解决这个毛病,需要认识到 “失败是因为决策错误,做出决策需要先搞懂事情,而搞懂需要做小实验”。 + +“靠” 表现为,脱离家庭后会陷入财务困境,一天不干活就没有饭吃,而在家里不做也没有后果。 + +要解决这个毛病,只需要经济独立,让他出去摆摊卖东西。 + +“要” 表现为,发展缺乏资源,不自己去赚取,而是向家人外索取,把自己的责任外包。 + +通常发生在家庭之间对比,别的家长给孩子这么多资源,怎么我的家长就这么差劲。 + +要解决这个毛病,需要认识到,父母一代的落下的差距,需要自己来补上。 + +## 2.4 只有暴力能够杀死懒惰 + +你可以想象,统治者看你不顺眼,要整死你,杀死你。 + +他认为这是他的土地,不是你的土地,你的家也不是你的,对方靠暴力,抢夺你的一切。 + +你于是诞生了愤怒,要把对面给消灭掉,这时你意外的感觉到一切惰性全部都消失了。 + +这是什么原理呢?是因为你的默认行为,与你的目标完全相反,落后感和差距感消除了懒惰。 + +## 2.5 进步的动力来自打败敌人,这就需要塑造一个敌人 + +人的思想会停滞,社会发展也会停滞,这就需要一个演员去扮演反派,但现实世界也确实有真实的反派。 + +世界最强的的国家,根本没有其他势力与他为敌,这个敌人就需要他们自己塑造。 + +弱的势力,最大的问题在于没有动力,与其夸大敌人威胁的严重性,还可以吹棒敌人的, + +第一个是偶像效应,我方人员以发展或进步为理由投靠对方,但对方不接受这些投靠者,他们也无法回到我方。 + +第二个是焦虑效应,对方这么厉害,差生了极大的落后感,这就成功转化为进步动力。 + +## 2.6 战乱才是社会的正常状态,而不是和平 + +就像动物社会一样,为了争夺生存资源而相互厮杀,人类社会则需要占领土地,有土地者富裕。 + +一切能够转化为军事力量的东西,才是人们真正需要去掌握和获得的。 + +首先,意识到建立军队需要钱,你必须去赚钱。 + +其次,意识到赚钱需要卖东西,你必须去销售。 + +最后,意识到销售需要低价货源,你必须去生产。 + +原料成本价,批发价,零售价之间的利润是永远存在的。 + +先解决销售流量的问题,在解决批发价的问题,最后就直接自己生产。 + +上面的流程走通了,并不是结束了,而是刚刚开始。 + +## 2.7 做一件事之前,一定要查一查前人的下场 + +不要沉迷于理论,而忽略了现实的阻碍,“交叉验证” 是必要的。 + +而且,你想做的事,其实有很多人都已经做过了。 + +你只需要在网上查一查前人的案例,前人的下场,评论里的同情和讽刺,就是在告诉你这里会有坑。 + +例如,出国打黑工,你总以为靠自己的小技能,能在当地活下去。 + +那么这么多过去的非法移民,现在他们怎么样了? + +你试图在网上查一查他们的生活状况,发现根本查不到,毕竟这种事是不会有专题文章的。 + +正确信息,只会在藏在视频的评论区里,既然他们在评论区讨论,至少他们是知情的。 + +这种事已经发生很长时间了,而且还在持续发生,结果早就从一些 “报道” 和 “评论” 中透露了出来。 + +涉及到非法移民的事,往往会以 “生态保护”,“美食” 或 “死亡事故” 来报道。 + +非法移民被称为 “动物”,被医药公司用作生物制剂的原料,其中心脏会被摘下来吃,有的则被注射药物做生理实验。 + +真相往往都藏在议论里,毕竟,人只会说出自己认知范围内的话,既然他们在评论区讨论,至少是知情的。 + +## 2.8 现实实力主义是穷人的唯一出路 + +现实总是给与实力强的人奖励,正所谓 “能者受赏,向来如此” 。 + +你做得比别人好吃,你的回头客就会很多,你的产品品质更好,别人就会选你的。 + +重点是网上理论有假的,因为统治者,商家和厂家,为了保住自己的生意,会故意制造大量假理论。 + +## 2.9 你知道权力在想什么,权力也知道你在想什么,但你就是没办法 + +你看了很多非人道新闻,权力者反反复复做这些事,你认为他们可能不知情吗? + +你看多了,也因阅历的增长知情了。那么现在,双方都知道对方知情,这就要开始博弈了。 + +凡是需要权力批准的,你都要想办法绕过权力,这个被称之为 “猫捉老鼠” 游戏。 + +土地你是不可能有的,你能做的只有两个,加工与收割,而不是自己耗费大量资金去种植养殖。 + +## 2.10 黑工是不是一个机会 + +首先,无论哪个国家,底层都是经济困难的。 + +你去打工,收入增长了,但支出也增长了,每月也还是剩下 20% 的工钱。 + +但是发达国家的钱,在穷国的购买力很强,利润来自汇率差,你需要把钱寄回。 + +对于能个体创业的 \ No newline at end of file diff --git a/apps/refugee-home/第一册,世界的真相/chapter_3 经济就是世界的运作规律.md b/apps/refugee-home/第一册,世界的真相/chapter_3 经济就是世界的运作规律.md new file mode 100644 index 0000000..a83b08b --- /dev/null +++ b/apps/refugee-home/第一册,世界的真相/chapter_3 经济就是世界的运作规律.md @@ -0,0 +1,24 @@ +# Chapter_3 经济就是世界的运作规律 + +## 3.1 原始的生存需求 + +什么是经济,就是对财富的管理,你所需要的食物,水,衣服,住房,马车,都是你的财富。 + +你的生存需求,决定了你必须去获取财富。 + +## 3.2 所有经济活动可归类为-生产-运输-销售 + +在现实世界, + +## 3.3 人与人经济之间的博弈 + +## 3.4 人为对经济限制 + +## 3.5 国家即统治者的公司 + +## 3.6 物流可以看作经济侵略 + +一旦物流打通,就可以获取当地人的剩余价值,当地人看到更便宜的价格,也自愿成交。 + +获取到的利润,我们不会直接以钱的形式转出到国外,我们会购买某些贵金属或稀土,或者获取某些知识产权。 + diff --git a/apps/refugee-home/第一册,世界的真相/军队管理就是公司管理.md b/apps/refugee-home/第一册,世界的真相/军队管理就是公司管理.md new file mode 100644 index 0000000..296ed1b --- /dev/null +++ b/apps/refugee-home/第一册,世界的真相/军队管理就是公司管理.md @@ -0,0 +1,24 @@ +# 1 军队也需要赚钱 + +就像公司,搞生产,赚钱,才能够养活整个公司的人。 + +而军队,不仅需要搞生产,赚钱,还需要打仗,搞基建,可以说比公司更加复杂。 + +公司可以是简单的工厂,物流与办公楼,而军队则必须是工程队,供应链。 + +# 2 如何建立军队 + +首先必须能够独自完成工程的建设,将自然资源化为己用。 + +赚的是加工费,而不是赚差价。 + +不赚这个差价,也是为了培养分销渠道。 + +# 3 如何防止造反 + +除了战争知识,和一些高科技剪刀差知识,其他知识都没有必要限制,这样能激发全民的生产力。 + +只要生产资料牢牢掌握在我们手中,即使他们造反,也能压下去。 + +同理,造反能够成功,一定是掌握了军工的生产资料。 + diff --git a/apps/refugee-home/第二册,谋生小生意/chapter_1 科技科普.md b/apps/refugee-home/第二册,谋生小生意/chapter_1 科技科普.md new file mode 100644 index 0000000..3569dd2 --- /dev/null +++ b/apps/refugee-home/第二册,谋生小生意/chapter_1 科技科普.md @@ -0,0 +1,80 @@ +# Chapter 1 科技科普 + +## 增鲜剂 + +谷氨酸钠,呈味核苷酸二钠。 + +预配的名字带有 “鲜香粉”,“增鲜粉”,有时候大同小异。 + +鲜度的定义,是由 “氨基酸态氮” 含量决定的,数值越高鲜度越高。 + +## 增香膏,增香粉 + +各类名字带 “增香膏” 和 “增香粉” 的,是专门增加味道的,做什么就用什么香膏。 + +例如,羊肉增香粉,卤味增香膏,烧烤增味粉。 + +而香精只是闻起来香,吃起来是没有味道的。 + +## 保水剂 + +三聚磷酸钠,六偏磷酸钠,多聚磷酸钠,虽然还有很多其他的,这三个是最常用最高效的。 + +保水是主要效果,同时还起到乳化剂的作用,让油脂充分布满食材的每个角落,而不是浮在上层。 + +## 抗氧化剂 + +D-异抗坏血酸为主,虽然也有很多其他的,但是这个就是维生素C,比较安全。 + +## 增稠剂 + +黄原胶,卡拉胶。 + +## 甜味素 + +安赛蜜,甜蜜素,三氯蔗糖,草苷酸一钾,阿斯巴甜。 + +## 糖浆 + +果葡糖浆,金黄糖浆,冰糖糖浆。 + +## 色素 + +红曲红,红曲黄,焦糖色素。 + +才不是用真正的冰糖。 + +## 防腐剂 + + + +而传统的,山梨酸钾,苯甲酸钠,不适合高温食品,而且对酸碱度有较高要求,效果有限。 + +## PH 调节剂 + +柠檬酸,苹果酸。 + +## 香精 + +各种各样的都有,植物香精,动物香精都有,看你需要什么味道。 + +猪肉香精,牛肉香精,奶油香精,芝麻香精,麻酱香精,辣椒香精,飘香油,一滴香。 + +味道的基础靠盐,风味则靠香精,回味粉则是上瘾。 + +## 回味粉 + +罂粟壳粉,通常各类派生产品,名字都带 “壳” 字。 + +当然里面也会混合一些辛香料粉。 + +## 去腥 + +乙基麦芽酚,能与肌红蛋白发生反应,直接去除腥味,增加一点香味,去腥就这一款就够了。 + +## 农产品防腐剂 + +硫熏,硫磺燃烧产生二氧化硫,是最简单,最广泛被使用的方法。 + + + diff --git a/apps/refugee-home/第二册,谋生小生意/chapter_10 谋生小工坊_塑料工具.md b/apps/refugee-home/第二册,谋生小生意/chapter_10 谋生小工坊_塑料工具.md new file mode 100644 index 0000000..dc1f878 --- /dev/null +++ b/apps/refugee-home/第二册,谋生小生意/chapter_10 谋生小工坊_塑料工具.md @@ -0,0 +1,26 @@ +# 废料回收 + +城市里的塑料垃圾,几乎是免费的。 + +你可以放置几个带锁的,塑料分类垃圾箱,定时去回收。 + +# 聚酯纤维绳 + +经常需要用绳子扎东西。 + +# 塑料桶盘 + +如果不用塑料,木头和金属都很重。 + +# 塑料管子 + +就像下水管,园艺浇水管,比铁的要轻很多。 + +# 塑料喷壶 + +里面有一些五金件,但整个壳是塑料的。 + + + + + diff --git a/apps/refugee-home/第二册,谋生小生意/chapter_2 酸嘢.md b/apps/refugee-home/第二册,谋生小生意/chapter_2 酸嘢.md new file mode 100644 index 0000000..209d41f --- /dev/null +++ b/apps/refugee-home/第二册,谋生小生意/chapter_2 酸嘢.md @@ -0,0 +1,48 @@ +# Chapter 2 酸嘢 + +## 最受欢迎的水果 + +菠萝,石榴,萝卜,青芒,三华李,我建议只卖这5种即可。 + +菠萝甜,石榴清,青芒咸,萝卜酸,三华李酸甜。 + +就我个人而言,石榴和青芒,是最好的两个。 + +# 水果预处理 + +用盐水泡10分钟,清洗,然后切好,或压好。 + +# 酸甜水(浸泡) + +(已确定配方齐全,可能需要调整用量) + +水1000g,白醋250g,盐15g,冰糖80g,小米辣适量,搅拌均匀即可。 + +泡3个小时即可,泡太久会醋酸味太浓。 + +# 红糖水(拌汁) + +水150g,盐15g,红糖100g,冰糖80g,话梅粉2颗量,小火煮至糖融化。 + +# 调味粉 + +常见的有3款,甘草椒盐粉,酸梅粉,陈皮粉,可混合或单独使用。 + +拌菜时,甘草椒盐粉是必须加的,其他都是可选的。 + +# 甘草椒盐粉制作 + +如果自己制作,原材料有,盐,甘草粉,辣椒粉,红糖粉。 + +小火炒盐,炒3分钟,加入甘草粉,炒2分钟,加入辣椒粉,炒2分钟,加入红糖粉和酸梅粉,炒3分钟,关火放凉。 + +# 糖浆制作 + +水500ml,冰糖150g,加热融化沸腾。 + +加入红糖粉150g,和盐5g,继续煮15分钟。 + +最后加入白醋50g,可选加柠檬酸1g(可调,让味道更酸),立即关火。 + + + diff --git a/apps/refugee-home/第二册,谋生小生意/chapter_3 卤鸭.md b/apps/refugee-home/第二册,谋生小生意/chapter_3 卤鸭.md new file mode 100644 index 0000000..afb23d1 --- /dev/null +++ b/apps/refugee-home/第二册,谋生小生意/chapter_3 卤鸭.md @@ -0,0 +1,237 @@ +# Chapter 3 卤鸭 + +## 3.1 卤水 + +买回来的卤料,兑水直接就是老卤水。 + +## 3.2 食材浸泡去血水 + +清水加盐,放入食材,血水到一定浓度就可以换水,3 次后才比较干净。 + +## 3.3 食材处预处理 + +看末尾附页,就是剪油边,剪气管,改刀入味,剪毛根皮,剪头骨盖。 + +## 3.4 食材凉泡乙基麦芽酚 + +清水加入处理后的食材,加入用白酒溶解的乙基麦芽酚。 + +网上教你小火或者关火,再加乙基麦芽粉的,都是假的,因为高温会让乙基麦芽酚变苦,还容易让整锅卤水变苦。 + +## 3.5 卤汤调配 + +卤水料,肉宝网,卤味增香膏,这是基本的卤汤。 + +下面是调味,乙基麦芽酚,透骨增香膏,3A香料,可选辣椒精油,或其他一滴香。 + +最后重点,卤味香精。 + +## 3.1 火候 + +火候有4个档次,大火,中火,小火,文火。 + +大火:水烧沸后,水面有 80%-90% 的面积水泡持续翻滚。 + +中火:水烧沸后,水面有 30%-40% 的面积水泡持续翻滚。 + +小火:水烧沸后,水面有 5%-10% 的面积水泡持续翻滚。 + +文火:水烧沸后,水面少量冒鱼眼泡。 + +无论是在水里,还是在卤汤里,只要大火长时间卤制,就容易肉柴皮烂。 + +## 3.2 盐度 + +盐是味道的核心,没有盐什么食材都没味道。 + +盐不仅仅指食盐,鸡精,味精等溶于水的调味料,能增加水的密度,在这里都可以被称为盐。 + +而 “盐度” 其实就是指 “溶液密度”,卤水常见的盐度为 3.8 - 3.9,最高也见过有 5.0 的。 + +要注意,卖不完的食材,第二次卤制会变得更咸。 + +## 3.3 卤油 + +不建议自己用大豆油和水来炸香料,以此来制作香油,现在没有科技都是不不好吃的。 + +直接买 “预制卤膏” ,加点 “大豆油” 和 “水” ,让水溶性和脂溶性的都溶起来。 + +为了让香油能挂汁效果,就像糖葫芦那样,需要加一点胶质,让卤油变得 “浓稠”,直接买 “卡拉胶” 即可。 + +甜味不够,就加 “白糖” 和 “甜蜜素”,两者都要加,白糖是提供底味的,否则纯甜蜜素味道过冲。 + +还有最重要的几个科技,壳粉,回味粉。 + +过一段时间,在重新给肉刷一遍卤油,确保味道,更重要的是维持 “保水” 和 “光亮” 。 + +最后要注意,卤油不是倒进卤水里的,而是卤水捞出来用电风扇吹时涂上去的,肉冷却吸汁,汁也浓稠可挂汁。 + +## 3.4 卤水 + +什么叫卤水,就是香料,肉类残留的氨基酸,还有各种调味料的混合液体。 + +传统做法,会浪费很多老母鸡熬高汤,还有很多香料堆味道。 + +这种直接买预制的 “卤水料”,兑水后一股浓郁的香料味。 + +也可以加一点预制高汤,兑水后直接就是高汤。 + +类似卤油,卤水也要加科技,是在最后的关火浸泡阶段,倒入乙基麦芽酚,肉宝王,少量增香膏,少量回味粉。 + +要注意,泡在水里,是无法挂汁的,因为汁会被稀释进整个汤里,因此导致卤出来的肉不入味。 + +## 3.5 上色 + +简单一点,就是红曲红,加上黄栀子水。 + +## 3.6 选桶 + +最大选 45cm 直径的桶,大部分冰箱门的宽度也就 50cm,过大放不进去。 + +翅片桶,能节约钱,因为节省燃气。 + +其实能加热就行,是否要用电磁炉桶,全看费用。 + +## 3.7 是否需要焯水 + +有人说,焯水是为了去腥,在没有乙基麦芽酚之前,确实是这样,但这也是有代价额,就是肉会变柴。 + +有了乙基麦芽酚之后,焯水的作用就仅仅是让皮更加结实,鸭翅不烂皮,鸭头不掉嘴。 + +完全去除血沫是不现实的,之后你放进卤汤里煮,还是会有血沫的。 + +先焯不带皮的,且必须冷水下锅,例如,鸭脖,因为鸭脖表面只有一层粘膜,热水下锅直接就锁住了。 + +焯到什么程度呢?表面变白,紧皮了定型了,就可以了,是没有固定几分钟这个说法的。 + +鸭脖要在水开之前焯完,水开了后焯不带皮的,例如,鸭头,鸭翅,热水下锅,不超过30秒,皮变白定型了就可以了。 + +焯久了容易掉嘴,烂皮,这都是惨痛教训换来的。 + +其实不焯水也是可以的,去血水只你要多泡几轮,怕皮烂,就小点火。 + +建议都尝试下不焯水的做法,烂说明软,容易入味。 + +## 3.8 卤制 + +水开了,就是 100 度,就会有蒸汽,底部的水先气化,因此汤面会冒泡。 + +冒泡后,转小火,让仍持续微微冒泡,持续维持 100 度,过高温度必定烂皮。 + +第一批货,鸭脖,计时10分钟。 + +第二批货,鸭头,鸭腿,计时10分钟。 + +第三批货,鸭架,鸭心,计时10分钟。 + +第四批货,鸭翅,鸭脚,计时10分钟。 + +第五批货,下鸡尖,最后计时10分钟,同时加入麦芽糖 + +中途,最后8分钟时,加入香料粉。 + +中途,最后2分钟时,加入高度白酒,透骨增香膏AAA(溶解进白酒)。 + +时间到,关火焖25分钟,用蒸盘加重物压住,确保所有货都能浸泡。 + +千万不要一直用大火卤,会柴,会干,没肉香味,因为水分全部流失了。 + +**小知识:** 可以简化为3个批次,第一批是带骨的大件货,第二批是没骨的大件货,第三批是小货。 + +## 3.9 卤水保存 + +卤完货后,把卤水加热到【微沸】状态,用 【60 目密漏】打捞所有残渣。 + +然后,大火烧开,一定要烧开,否则无法杀菌,然后关火,静止不动即可。 + +原理就是【油封防腐】,实际上我们还加有【卤肉专用防腐剂】,基本不会发酸。 + +收工回来,还可以再烧开一次,这样卤水永远都不会坏。 + +擦干净桶内壁上的残渣,否则发酸发臭,水位上升又回到了卤水里。 + +无须冷藏在冰箱,节省大量电费。 + +# 次日补充 + +直接补大豆油即可,第一次制作卤水才需要 + +## 莲藕处理 + +切片2mm(若要串串,可以更大),清洗,泡水半个小时,是为了泡出藕粉,否则后期会发黑。 + +莲藕和鸭货是分开卤制的,单独烧开3分钟,下莲藕,全程大火。 + +汤开了后,计时1分钟,就可以捞出了。 + +## 鸭翅处理 + +剪掉两个尖的硬角,和所有毛根, + +## 鸭脚处理 + +挑胫,在鸭掌上方的背后。 + +挑了后,鸭掌是松开的,卖相好看,否则会聚拢。 + +## 鸭架处理 + +清理气孔,油边,挑干净就可以了。 + +## 鸭肾处理 + +用剪刀剪成花瓣一样,方便入味,也卖相好看。 + +## 鸭脖处理 + +这个比较简单,清理油边即可。 + +## 鸭心处理 + +水平剪一刀,里面有血,而且剪开容易入味。 + +## 鸭腿处理 + +靠近屁股的位置,肥油比较多,要剪掉。 + +油边也都要处理掉。 + +把皮与肉扯开,但不要扯掉,改4刀,再把皮盖回去。 + +## 鸭头处理 + +从底部剪开,但不要剪到脑。 + +剪开内部链接鼻孔的位置,用竹签从外面捅进去,把鼻屎捅出来,然后进行冲水。 + +对准内部鼻孔的位置冲水,水会从两个鼻孔出来。 + +洗干净之后,再从内部剪一刀脑壳,顶部掀开皮,剪一刀也是可以的,容易入味。 + +## 鸭肠处理 + +清洗完油边,准备水开,下鸭肠,边搅拌边捞,全部断生变白,马上关火。 + +然后继续搅拌,让它自动断生,不是煮熟。 + +3分钟后出锅,马上投凉水,清洗干净。 + +# 2 摆摊真正可用的低成本方案 + +卤味包,直接包含各种化工合成的香料成分,兑水即可,这就是卤水,无需炸什么香料。 + +去腥,卤制完成关火后,浸泡阶段加乙基麦芽酚,直接去腥,高温会产生苦味,冒泡即100度,因此只能关火后放,轻微增加肉香。 + +肉宝王,配方F5045,, + +肉香王(有视频用),配方G5147, + +香料AAA,配方F5563,(不是透骨增香剂AAA,8006), + +壳香粉,。 + +一滴香(可选),辣条香,但是没有味道,更好闻。 + +魔鬼辣(不清楚),辣椒香精,毕竟不太可能用真辣椒。 + +卤味增香膏(注意不是卤水料), diff --git a/apps/refugee-home/第二册,谋生小生意/chapter_4 谋生小生意_盐焗鸡.md b/apps/refugee-home/第二册,谋生小生意/chapter_4 谋生小生意_盐焗鸡.md new file mode 100644 index 0000000..d889909 --- /dev/null +++ b/apps/refugee-home/第二册,谋生小生意/chapter_4 谋生小生意_盐焗鸡.md @@ -0,0 +1,44 @@ +# 上色 + +姜黄粉,需要含有大米配方的,米浆有粘稠性,挂在鸡上才不会被烫掉。 + +盐焗粉,就是我们普通的粉,其实里面自带很多姜黄粉。 + +黄栀子水,天然的黄色素,效果不太行,主要还是色相调整。 + +每斤肉,盐焗粉20g,姜黄粉3g,黄栀子水3g。 + +当然有个更简单的,就是: + +红曲黄,黄栀子水,盐焗粉。 + +其中红曲黄是强力染色剂。 + +# 防止破皮 + +破皮,主要是鸡嘴巴,和鸡脚骨头,造成的,需要想办法固定。 + +鸡翅,从喉咙出,穿出鸡嘴,从而把鸡头固定。 + +两只鸡腿,塞入肚子里。 + +# 卤制 + +水开转文火,下货,计时90分钟,关火泡30分钟。 + +一定要小火,否则水泡把皮给冲烂掉了。 + +# 藤椒盐焗鸡拌制 + +白开水或鸡汤,味精,白糖,鸡精,花椒油,藤椒油,红小米辣,青小米辣。 + +混合到一起,就是藤椒汁。 + +用手扭掉鸡腿,撕开鸡肉,变成一小片,然后拌入藤椒汁。 + +胡辣油,藤椒油,香油。 + +# 脆皮焯水 + +三进三出,准备一锅开水,和一锅冰水,鸡进去烫一下,出来一下,再进去烫一下,再出来一下,结束后皮变得很脆。 + diff --git a/apps/refugee-home/第二册,谋生小生意/chapter_5 谋生小生意_凉拌菜.md b/apps/refugee-home/第二册,谋生小生意/chapter_5 谋生小生意_凉拌菜.md new file mode 100644 index 0000000..ccf25cb --- /dev/null +++ b/apps/refugee-home/第二册,谋生小生意/chapter_5 谋生小生意_凉拌菜.md @@ -0,0 +1,60 @@ +# 泡水 + +淀粉类蔬菜,例如土豆,莲藕,切好后需要用水冲掉,再泡水,否则会氧化发黑,不好看。 + +泡发菜,例如,干木耳,干黄花,干香菇,必须泡水。 + +海产品,例如,海带,必须要泡水。 + +不需要泡水的,蘑菇类,蔬菜类,例如,莴笋,西兰花。 + +莲藕,9孔为脆藕,7孔为面藕和粉藕。 + +腐竹,泡一晚上,隔天变软,或者加白醋,但切记不能用开水和温水,否则造成表皮软,中间硬,客户吃起来口感不好。 + +# 焯水护色 + +每斤水,大豆油3g(锁色),盐1g(护味),小苏打0.2g(增脆增绿)。 + +豆制品,腐竹,豆腐干,千页,一律焯5秒。 + +藕片,2mm厚度,焯30秒,指标是脆就可以。 + +# 辣椒红油 + +【新疆大板椒】,【重庆石柱红3号】,【荷兰新一代】,用于提色,【子弹头】辣椒,用于增辣,【二荆条】,用于提香。 + +如果你买原生的辣椒,这些辣椒都需要炒好,再打成二粗状态,这就叫【辣椒面】,当然你可以再当地的批发市场,直接买炒好的。 + +3斤油,20g紫草, + +油可以用菜籽油,200度,炸芝麻,180度,炸花生,3分钟就捞起来。 + +160度,炸紫草,150度,炸辣椒面,关火状态,不可以有气泡,因为会糊会苦,炸到每次捞起来,上面没有颜色了,就扔。 + +最后在加入,红花椒面,川菜中必不可少的。 + +# 凉拌味水 + +辣椒末,葱花末,蒜末,芝麻,小米辣,一勺热红油,两勺生抽,两勺醋,白糖,食盐,耗油。 + +**小知识:** 味道统一,靠的是味水,而不是卤制时间长短,味水调好了,味道就是一致的。 + +# 拌菜出餐 + +先上味水,而不是先上红油,否则菜的表面一层油,还怎么入味。 + +为了让看看起来量更多,更划算,增加复购率。上面可以用一些廉价素菜占用空间,青瓜丝,萝卜丝,蒜花,这样能让顾客感觉量够。 + +然后两黄两黑,每种一圈,香油起到提味,放一圈,花椒油麻香味,放一圈,醋提鲜素材(荤菜不建议放),放一丢丢,生抽酱香味,放一圈。 + +一点熟芝麻,一点白糖(可选),醋和白糖是绝配。 + +# 封油 + +红油1,大豆油2,1比2,高2cm就可以了。 + + + + + diff --git a/apps/refugee-home/第二册,谋生小生意/chapter_6 谋生小生意_炸鸡.md b/apps/refugee-home/第二册,谋生小生意/chapter_6 谋生小生意_炸鸡.md new file mode 100644 index 0000000..e69de29 diff --git a/apps/refugee-home/第二册,谋生小生意/chapter_7 谋生小生意_臭豆腐.md b/apps/refugee-home/第二册,谋生小生意/chapter_7 谋生小生意_臭豆腐.md new file mode 100644 index 0000000..e69de29 diff --git a/apps/refugee-home/第二册,谋生小生意/chapter_8 谋生小生意_烧烤.md b/apps/refugee-home/第二册,谋生小生意/chapter_8 谋生小生意_烧烤.md new file mode 100644 index 0000000..e69de29 diff --git a/apps/refugee-home/第二册,谋生小生意/chapter_9 谋生小工坊_调味粉.md b/apps/refugee-home/第二册,谋生小生意/chapter_9 谋生小工坊_调味粉.md new file mode 100644 index 0000000..2baecfa --- /dev/null +++ b/apps/refugee-home/第二册,谋生小生意/chapter_9 谋生小工坊_调味粉.md @@ -0,0 +1,5 @@ +# 清洗原材料 + +# 炒香和打粉 + +# diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..f425725 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,4195 @@ +{ + "name": "defgov", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "workspaces": [ + "./packages/*", + "./apps/*" + ] + }, + "node_modules/@babel/code-frame": { + "version": "7.29.7", + "resolved": "https://registry.npmmirror.com/@babel/code-frame/-/code-frame-7.29.7.tgz", + "integrity": "sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.29.7", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.29.7", + "resolved": "https://registry.npmmirror.com/@babel/compat-data/-/compat-data-7.29.7.tgz", + "integrity": "sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.29.7", + "resolved": "https://registry.npmmirror.com/@babel/core/-/core-7.29.7.tgz", + "integrity": "sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.7", + "@babel/generator": "^7.29.7", + "@babel/helper-compilation-targets": "^7.29.7", + "@babel/helper-module-transforms": "^7.29.7", + "@babel/helpers": "^7.29.7", + "@babel/parser": "^7.29.7", + "@babel/template": "^7.29.7", + "@babel/traverse": "^7.29.7", + "@babel/types": "^7.29.7", + "@jridgewell/remapping": "^2.3.5", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/generator": { + "version": "7.29.13", + "resolved": "https://registry.npmmirror.com/@babel/generator/-/generator-7.29.13.tgz", + "integrity": "sha512-T5FRo+RzVHvGjWOuF1Ljc44b+NXAOazodHkGUHp4I3zCkQ4/sNVJm56h1S278LMR0bY5xBhztGziSbli8zObIw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.13", + "@babel/types": "^7.29.11", + "@jridgewell/gen-mapping": "^0.3.12", + "@jridgewell/trace-mapping": "^0.3.28", + "jsesc": "^3.0.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.29.7", + "resolved": "https://registry.npmmirror.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.7.tgz", + "integrity": "sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.29.7", + "@babel/helper-validator-option": "^7.29.7", + "browserslist": "^4.24.0", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-globals": { + "version": "7.29.7", + "resolved": "https://registry.npmmirror.com/@babel/helper-globals/-/helper-globals-7.29.7.tgz", + "integrity": "sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.29.7", + "resolved": "https://registry.npmmirror.com/@babel/helper-module-imports/-/helper-module-imports-7.29.7.tgz", + "integrity": "sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.29.7", + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.29.7", + "resolved": "https://registry.npmmirror.com/@babel/helper-module-transforms/-/helper-module-transforms-7.29.7.tgz", + "integrity": "sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.29.7", + "@babel/helper-validator-identifier": "^7.29.7", + "@babel/traverse": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.29.13", + "resolved": "https://registry.npmmirror.com/@babel/helper-string-parser/-/helper-string-parser-7.29.13.tgz", + "integrity": "sha512-fWegr+WsEsiMVW4KUNdIIzzMTZSzNiqhy0//6+2MRi2d5NFNsL/AYwBQW8eBnRbTBVRnDVzjaJEUqKaCWjMMdQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.29.7", + "resolved": "https://registry.npmmirror.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz", + "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.29.7", + "resolved": "https://registry.npmmirror.com/@babel/helper-validator-option/-/helper-validator-option-7.29.7.tgz", + "integrity": "sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.29.10", + "resolved": "https://registry.npmmirror.com/@babel/helpers/-/helpers-7.29.10.tgz", + "integrity": "sha512-EMCx3AGZ3WfAl6ht7AyQoPm2Lh+BGYEMdc4Q6Hf7uSCDOZFuLq44qNwL+iaim8VlyYhRAo4X43+weadK8ZB4Yg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.29.7", + "@babel/types": "^7.29.8" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.29.13", + "resolved": "https://registry.npmmirror.com/@babel/parser/-/parser-7.29.13.tgz", + "integrity": "sha512-fJM50YYjlTiBhgdkGmC1tBpv+FMAyo4annf2X6Aks+0yRlaiVkYW/3f07xAfVVkYIoZ9fFZp+mEThUFnuybhkQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.11" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/template": { + "version": "7.29.7", + "resolved": "https://registry.npmmirror.com/@babel/template/-/template-7.29.7.tgz", + "integrity": "sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.7", + "@babel/parser": "^7.29.7", + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.29.13", + "resolved": "https://registry.npmmirror.com/@babel/traverse/-/traverse-7.29.13.tgz", + "integrity": "sha512-0ve0xMlFA73dgY1oyJRY6RoW+/bncdcOQqg6jjYcVfXBK90OdLXjm9R6lmRetdZVrPjXkKIoMVBqYFPjcAlZ4Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.7", + "@babel/generator": "^7.29.13", + "@babel/helper-globals": "^7.29.7", + "@babel/parser": "^7.29.13", + "@babel/template": "^7.29.7", + "@babel/types": "^7.29.11", + "debug": "^4.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.29.11", + "resolved": "https://registry.npmmirror.com/@babel/types/-/types-7.29.11.tgz", + "integrity": "sha512-WCsemW40Cpc6gouC1SrY6PBaZ+oLRlEVY9XBvZBI7il/HyUrb2nJ505wE1MHEFyDZNnrWDEuy4jL50WVHfTTSQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.29.11", + "@babel/helper-validator-identifier": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@cacheable/memory": { + "version": "2.2.0", + "resolved": "https://registry.npmmirror.com/@cacheable/memory/-/memory-2.2.0.tgz", + "integrity": "sha512-CTLKqLItRCEixEAewD3/j9DB3/o96gpTPD4eJ1v+DGOlxZRZncRQkGYqqnAGCscYd6RNeXfGeiuCphsPtqyIfQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@cacheable/utils": "^2.5.0", + "@keyv/bigmap": "^1.3.1", + "hookified": "^1.15.1", + "keyv": "^5.6.0" + } + }, + "node_modules/@cacheable/utils": { + "version": "2.5.0", + "resolved": "https://registry.npmmirror.com/@cacheable/utils/-/utils-2.5.0.tgz", + "integrity": "sha512-buipgOVDkkPXNR5+xBpDw7Zk2n1EvU7qBJCNUcL7rhQ//kfpOXPAvQ511Os0vpLYJ1pZnvudNytkQt2hst3wqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "hashery": "^1.5.1", + "keyv": "^5.6.0" + } + }, + "node_modules/@cspotcode/source-map-support": { + "version": "0.8.1", + "resolved": "https://registry.npmmirror.com/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", + "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/trace-mapping": "0.3.9" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping": { + "version": "0.3.9", + "resolved": "https://registry.npmmirror.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", + "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, + "node_modules/@dg/ui-react": { + "resolved": "packages/ui-react", + "link": true + }, + "node_modules/@emnapi/core": { + "version": "2.0.0-beta.2", + "resolved": "https://registry.npmmirror.com/@emnapi/core/-/core-2.0.0-beta.2.tgz", + "integrity": "sha512-MzCVoWtcg4Pm2B3je5mMvYMvj3MmBKw+fU7vbsJc9/iT8ip6/eYIHo/Dsm/mr+wsHB6SEyJDuxB09Yy6r/8+4A==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/wasi-threads": "2.2.0", + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/runtime": { + "version": "2.0.0-beta.2", + "resolved": "https://registry.npmmirror.com/@emnapi/runtime/-/runtime-2.0.0-beta.2.tgz", + "integrity": "sha512-JcrSPzPvZuNZvJqPTF9Fw25LbOJ8avzFVlaf2grmH4Cku0oGP47tRgqPZadcfj3YoZMHkFVnCYFbQM8I+i5QEw==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/wasi-threads": { + "version": "2.2.0", + "resolved": "https://registry.npmmirror.com/@emnapi/wasi-threads/-/wasi-threads-2.2.0.tgz", + "integrity": "sha512-JP7OYH38Q7+pyTAe14raZHLQIK7BDKbdwji+Xi3pcd/6QkJYQH3SX4wu6EplGrGJWRepoNzedfm0G3B9Z4e9Rw==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.10.1", + "resolved": "https://registry.npmmirror.com/@eslint-community/eslint-utils/-/eslint-utils-4.10.1.tgz", + "integrity": "sha512-cuadcxVFE8sDK6iWJbs8Sn0av2Nrh2QSGQhVlBW9AaAHqHwjWsZHT8LJ4hFGPh7ASBV2deFdM7H/DPjulmh8rg==", + "dev": true, + "license": "MIT", + "dependencies": { + "eslint-visitor-keys": "^3.4.3" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmmirror.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.12.3", + "resolved": "https://registry.npmmirror.com/@eslint-community/regexpp/-/regexpp-4.12.3.tgz", + "integrity": "sha512-R76UKbvsqI68DJJVTVyqFKqU98CN4+B+acxNfEA2IFarSzP0SjtKf/3+fFiXzTyv5Fj3PxLkGHe2wnVWWMxobQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/config-array": { + "version": "0.23.6", + "resolved": "https://registry.npmmirror.com/@eslint/config-array/-/config-array-0.23.6.tgz", + "integrity": "sha512-WrTH7nioI9QPY4NZGnsywmecswJdgeq4BCM76qok9VgjTO29ZgUzUvcuJLVPYVQM4uDbaPBU0M33R9DIxI8X3w==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/object-schema": "^3.0.5", + "debug": "^4.3.1", + "minimatch": "^11.0.5" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@eslint/config-array/node_modules/minimatch": { + "version": "11.0.9", + "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-11.0.9.tgz", + "integrity": "sha512-KCFkfyjqerNlSstjlhIGNXIKZGA/6O4V4RlhZ+Dsr621SPPw0mzlypE9D9ZOoPiVefHID+j7/XuMMlqfD/F60Q==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/nonrecursive-glob-match": "^1.1.0", + "brace-expansion": "^5.0.12" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@eslint/config-helpers": { + "version": "0.7.0", + "resolved": "https://registry.npmmirror.com/@eslint/config-helpers/-/config-helpers-0.7.0.tgz", + "integrity": "sha512-DObd/KKUsU+FaFv4PLxSRenpXfQWmPXXP3pPZ6/K1PCrMu2vQpMDMuQe/BqYeoLcz8ro0bVDF1RxOJgfVEdhUw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^1.2.1" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@eslint/core": { + "version": "1.2.1", + "resolved": "https://registry.npmmirror.com/@eslint/core/-/core-1.2.1.tgz", + "integrity": "sha512-MwcE1P+AZ4C6DWlpin/OmOA54mmIZ/+xZuJiQd4SyB29oAJjN30UW9wkKNptW2ctp4cEsvhlLY/CsQ1uoHDloQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@types/json-schema": "^7.0.15" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@eslint/js": { + "version": "10.0.1", + "resolved": "https://registry.npmmirror.com/@eslint/js/-/js-10.0.1.tgz", + "integrity": "sha512-zeR9k5pd4gxjZ0abRoIaxdc7I3nDktoXZk2qOv9gCNWx3mVwEn32VRhyLaRsDiJjTs0xq/T8mfPtyuXu7GWBcA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "eslint": "^10.0.0" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + } + } + }, + "node_modules/@eslint/object-schema": { + "version": "3.0.5", + "resolved": "https://registry.npmmirror.com/@eslint/object-schema/-/object-schema-3.0.5.tgz", + "integrity": "sha512-vqTaUEgxzm+YDSdElad6PiRoX4t8VGDjCtt05zn4nU810UIx/uNEV7/lZJ6KwFThKZOzOxzXy48da+No7HZaMw==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@eslint/plugin-kit": { + "version": "0.7.3", + "resolved": "https://registry.npmmirror.com/@eslint/plugin-kit/-/plugin-kit-0.7.3.tgz", + "integrity": "sha512-IkO+/KEUvwbVpiURZg+P7zF74z5Jxe0UgJxVni+RtoHQ6IZieXaO02kmadomap/q+l6bc/jdPGGqTjhuZnuz1Q==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^1.2.1", + "levn": "^0.4.1" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, + "node_modules/@floating-ui/core": { + "version": "1.8.0", + "resolved": "https://registry.npmmirror.com/@floating-ui/core/-/core-1.8.0.tgz", + "integrity": "sha512-0CIZ5itps/8x7BG8dEIhs53BvCUH2PCoogtakwRTut+Arm58sJooJ0AuZhLw2HJYIR5cMLNPBSS728sPho2khQ==", + "license": "MIT", + "dependencies": { + "@floating-ui/utils": "^0.2.12" + } + }, + "node_modules/@floating-ui/dom": { + "version": "1.8.0", + "resolved": "https://registry.npmmirror.com/@floating-ui/dom/-/dom-1.8.0.tgz", + "integrity": "sha512-yXSrzeHZBTZadLOlfyhCkJHNeLJnHRnRInwdZ40L7ZiaAtrBwoYlsDrX3v5zB1Utk7CLfzcOVnVVWoXEky7Ceg==", + "license": "MIT", + "dependencies": { + "@floating-ui/core": "^1.8.0", + "@floating-ui/utils": "^0.2.12" + } + }, + "node_modules/@floating-ui/react": { + "version": "0.27.20", + "resolved": "https://registry.npmmirror.com/@floating-ui/react/-/react-0.27.20.tgz", + "integrity": "sha512-CMqMy7OaXl9W0eq1Uy7L7i2Y/anPvHmFmESd2CEw0t5YvZhcVCeo4MBevAmswRllX7Y2dEidA4ozGPunLSTQpw==", + "license": "MIT", + "dependencies": { + "@floating-ui/react-dom": "^2.1.9", + "@floating-ui/utils": "^0.2.12", + "tabbable": "^6.0.0" + }, + "peerDependencies": { + "react": ">=17.0.0", + "react-dom": ">=17.0.0" + } + }, + "node_modules/@floating-ui/react-dom": { + "version": "2.1.9", + "resolved": "https://registry.npmmirror.com/@floating-ui/react-dom/-/react-dom-2.1.9.tgz", + "integrity": "sha512-JDjEFGCpImxDCA7JJKviA0M9+RtmJdj0m/NVU5IMgBK+AmZouAQQ7/+2GLH0GXXY0YMw9oXPB8hKdbPYg5QLYg==", + "license": "MIT", + "dependencies": { + "@floating-ui/dom": "^1.8.0" + }, + "peerDependencies": { + "react": ">=16.8.0", + "react-dom": ">=16.8.0" + } + }, + "node_modules/@floating-ui/utils": { + "version": "0.2.12", + "resolved": "https://registry.npmmirror.com/@floating-ui/utils/-/utils-0.2.12.tgz", + "integrity": "sha512-HpCo8tmWzLVad5s2d19EhAz5zqrrQ6s69qd6moPMQvkOuSwDT1YgRfWSVuc4ennqrgv3OHppiOGMQ7oC13yIww==", + "license": "MIT" + }, + "node_modules/@humanfs/core": { + "version": "0.19.2", + "resolved": "https://registry.npmmirror.com/@humanfs/core/-/core-0.19.2.tgz", + "integrity": "sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@humanfs/types": "^0.15.0" + }, + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node": { + "version": "0.16.8", + "resolved": "https://registry.npmmirror.com/@humanfs/node/-/node-0.16.8.tgz", + "integrity": "sha512-gE1eQNZ3R++kTzFUpdGlpmy8kDZD/MLyHqDwqjkVQI0JMdI1D51sy1H958PNXYkM2rAac7e5/CnIKZrHtPh3BQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@humanfs/core": "^0.19.2", + "@humanfs/types": "^0.15.0", + "@humanwhocodes/retry": "^0.4.0" + }, + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/types": { + "version": "0.15.0", + "resolved": "https://registry.npmmirror.com/@humanfs/types/-/types-0.15.0.tgz", + "integrity": "sha512-ZZ1w0aoQkwuUuC7Yf+7sdeaNfqQiiLcSRbfI08oAxqLtpXQr9AIVX7Ay7HLDuiLYAaFPu8oBYNq/QIi9URHJ3Q==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/retry": { + "version": "0.4.3", + "resolved": "https://registry.npmmirror.com/@humanwhocodes/retry/-/retry-0.4.3.tgz", + "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@isaacs/nonrecursive-glob-match": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/@isaacs/nonrecursive-glob-match/-/nonrecursive-glob-match-1.1.0.tgz", + "integrity": "sha512-GPm/Dbvk5RLmhRnxXIa7nTpK0xtl4E0wj0MslsuNiJ1FIROU+2+9lgUC/dgF7Ey4QCWhfEsgxilMRMCdHPfDfw==", + "dev": true, + "license": "BlueOak-1.0.0" + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmmirror.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmmirror.com/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmmirror.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.6.0", + "resolved": "https://registry.npmmirror.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz", + "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmmirror.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@keyv/bigmap": { + "version": "1.3.1", + "resolved": "https://registry.npmmirror.com/@keyv/bigmap/-/bigmap-1.3.1.tgz", + "integrity": "sha512-WbzE9sdmQtKy8vrNPa9BRnwZh5UF4s1KTmSK0KUVLo3eff5BlQNNWDnFOouNpKfPKDnms9xynJjsMYjMaT/aFQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "hashery": "^1.4.0", + "hookified": "^1.15.0" + }, + "engines": { + "node": ">= 18" + }, + "peerDependencies": { + "keyv": "^5.6.0" + } + }, + "node_modules/@keyv/serialize": { + "version": "1.1.1", + "resolved": "https://registry.npmmirror.com/@keyv/serialize/-/serialize-1.1.1.tgz", + "integrity": "sha512-dXn3FZhPv0US+7dtJsIi2R+c7qWYiReoEh5zUntWCf4oSpMNib8FDhSoed6m3QyZdx5hK7iLFkYk3rNxwt8vTA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@microsoft/api-extractor": { + "version": "7.60.1", + "resolved": "https://registry.npmmirror.com/@microsoft/api-extractor/-/api-extractor-7.60.1.tgz", + "integrity": "sha512-1FJ/Z30xLL3pWn6oYSJCjGsnlEWkWivwmVeCB7YrRPe+47J7H54NVR+m/1PIL1RYsh/mZsxm/FwirreD72G76g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@microsoft/api-extractor-model": "7.33.16", + "@microsoft/tsdoc": "~0.17.0", + "@microsoft/tsdoc-config": "~0.18.2", + "@rushstack/node-core-library": "5.25.2", + "@rushstack/rig-package": "0.7.4", + "@rushstack/terminal": "0.24.8", + "@rushstack/ts-command-line": "5.3.18", + "diff": "~8.0.2", + "minimatch": "10.2.3", + "resolve": "~1.22.1", + "semver": "~7.7.4", + "source-map": "~0.6.1", + "typescript": "6.0.3" + }, + "bin": { + "api-extractor": "bin/api-extractor" + }, + "engines": { + "node": ">=20.9.0" + } + }, + "node_modules/@microsoft/api-extractor-model": { + "version": "7.33.16", + "resolved": "https://registry.npmmirror.com/@microsoft/api-extractor-model/-/api-extractor-model-7.33.16.tgz", + "integrity": "sha512-MO61eHRI3DDieE9pxNo5xc096NGUQAIKzEPW6IhNNGU9K4EIhRSYiXfroDZX4joNkrWBMzAMp3WhbPGbHG5zHQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@microsoft/tsdoc": "~0.17.0", + "@microsoft/tsdoc-config": "~0.18.2", + "@rushstack/node-core-library": "5.25.2" + }, + "engines": { + "node": ">=20.9.0" + } + }, + "node_modules/@microsoft/api-extractor/node_modules/diff": { + "version": "8.0.4", + "resolved": "https://registry.npmmirror.com/diff/-/diff-8.0.4.tgz", + "integrity": "sha512-DPi0FmjiSU5EvQV0++GFDOJ9ASQUVFh5kD+OzOnYdi7n3Wpm9hWWGfB/O2blfHcMVTL5WkQXSnRiK9makhrcnw==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/@microsoft/api-extractor/node_modules/semver": { + "version": "7.7.4", + "resolved": "https://registry.npmmirror.com/semver/-/semver-7.7.4.tgz", + "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@microsoft/tsdoc": { + "version": "0.17.1", + "resolved": "https://registry.npmmirror.com/@microsoft/tsdoc/-/tsdoc-0.17.1.tgz", + "integrity": "sha512-VHyYyyoH63jFoO3shpw9Zfijk5v/9p/VrClW35z0/q6ooK7sSmxpzOkS4iZPxs3vO4XtBW4H38HRAKkAMIK7DA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@microsoft/tsdoc-config": { + "version": "0.18.3", + "resolved": "https://registry.npmmirror.com/@microsoft/tsdoc-config/-/tsdoc-config-0.18.3.tgz", + "integrity": "sha512-0I0rGXo1eJziw3EEErkDS9p/0RzBcyOiV+zbSDqOZTeURmhtut+WIvpih0LM5g+ZpZ9SyFxDfkhAcl/r8e2zGw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@microsoft/tsdoc": "0.17.1", + "ajv": "~8.18.0", + "jju": "~1.4.0", + "resolve": "~1.22.2" + } + }, + "node_modules/@microsoft/tsdoc-config/node_modules/ajv": { + "version": "8.18.0", + "resolved": "https://registry.npmmirror.com/ajv/-/ajv-8.18.0.tgz", + "integrity": "sha512-PlXPeEWMXMZ7sPYOHqmDyCJzcfNrUr3fGNKtezX14ykXOEIvyK81d+qydx89KY5O71FKMPaQ2vBfBFI5NHR63A==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/@microsoft/tsdoc-config/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true, + "license": "MIT" + }, + "node_modules/@napi-rs/wasm-runtime": { + "version": "1.2.6", + "resolved": "https://registry.npmmirror.com/@napi-rs/wasm-runtime/-/wasm-runtime-1.2.6.tgz", + "integrity": "sha512-mRyDmEw9/fCDXCGfL1sbgIw/GUK0PVxRW4YwgPN61F3LQ+fSyoBFarJVzgGyhF6kRzEQZ0FejDqm4WLXSeqQmw==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@tybys/wasm-util": "^0.10.3" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=23.5.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Brooooooklyn" + }, + "peerDependencies": { + "@emnapi/core": "^1.7.1 || 2.0.0-beta.2", + "@emnapi/runtime": "^1.7.1 || 2.0.0-beta.2" + } + }, + "node_modules/@oxc-project/types": { + "version": "0.156.0", + "resolved": "https://registry.npmmirror.com/@oxc-project/types/-/types-0.156.0.tgz", + "integrity": "sha512-1Duyg48TdJNdyhEB8Xn1L36bT9Pv6GUtlKjHxOys8xkaF/rQq3XJE+bAurSK/AgIz5mGFsb77cn9Pb20+WCScw==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/oxc-project" + } + }, + "node_modules/@rolldown/binding-android-arm-eabi": { + "version": "1.2.19", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.2.19.tgz", + "integrity": "sha512-e+Ebe0WT+9tbXmNKPIiC8YrWAHYwug3m6i4p3rZGGulfZri1jtI4HslT+OZnFf/OIHowWF71DTlHwXBP2SiA7A==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-android-arm64": { + "version": "1.2.19", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-android-arm64/-/binding-android-arm64-1.2.19.tgz", + "integrity": "sha512-hOombrTJ+szt2ciEzS7oCA78lMPBgF5UMQWCJIyNfnrI7GLl8HYoFqCnpL2gcPOaXMqryGCU5ExdQKyDDcC+yA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-arm64": { + "version": "1.2.19", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.2.19.tgz", + "integrity": "sha512-XoMA2pwCKGTQzUjPgtRwkedH4WmXhdIPKT6l6oOxd1PUbNodGI6DcBekgN7EC//+x3pfBYX/qL1gNmZAqivw5g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-x64": { + "version": "1.2.19", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.2.19.tgz", + "integrity": "sha512-zo8EsSSwMZCY/e+fRnGaX02YGgvJD0yvhNi/9hpGPA2MJ9ZF8dPCw75UGfpI6OpQ/myR/dIYmogRvqiZD0TrXg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-freebsd-x64": { + "version": "1.2.19", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.2.19.tgz", + "integrity": "sha512-O8ISAOfI1nj7AuBPd30FSF47z7f7lzlk5poQVGgiikvQuGEBFYvW8ki+UEnT+YJPnNGjQzn304klt4O9FUE7mA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm-gnueabihf": { + "version": "1.2.19", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.2.19.tgz", + "integrity": "sha512-/lYCba5NO0yq4S0jGMH8QTBtkvQxoXjoQWzF5BcWp9MjB9jxVRD1GQDNofkVjcOj30DWyhLIN/4Oe60JKzaONw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-gnu": { + "version": "1.2.19", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.2.19.tgz", + "integrity": "sha512-pm/apFMBnSbFb3O6nG5pHO1iqHhZrjGDFEjSm+ot9J17XXPvH9L90y5h+jgfHCE+Qdlsvy8qKEcU4VKxgjD+vA==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-musl": { + "version": "1.2.19", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.2.19.tgz", + "integrity": "sha512-K1SmQp3FFichn8oqrNIwvFoZ5wcvjC7goBzpaMNvLf9FZc+QB/QvLmnpJZgAAGHiD980tP8FZZnXk2K94rvlxg==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-ppc64-gnu": { + "version": "1.2.19", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.2.19.tgz", + "integrity": "sha512-I0xwD57jP/3A7+5UPZin2w8Y7XHEmEM5zqpYZOcQ45MlNW6tUJUziymV3yRr7rL4vwyfEcRsRksC4a7Kc08p5Q==", + "cpu": [ + "ppc64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-s390x-gnu": { + "version": "1.2.19", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.2.19.tgz", + "integrity": "sha512-BrtEHT24SNXj9HiXqy+s/kXiSiQGt6EKCPUlRirAoIioVxKGnbXBUEkbZASAei7iZJB0/Ynm+0JP00Ipx7AnSw==", + "cpu": [ + "s390x" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-gnu": { + "version": "1.2.19", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.2.19.tgz", + "integrity": "sha512-rm75/9DkHKeU2WnA8w4X94WGYgLlDCFCfkQC+4bguVJmC/jvDRv2B+2wLOYhyE0fVuv7//Ckk39OoOufyCu76Q==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-musl": { + "version": "1.2.19", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.2.19.tgz", + "integrity": "sha512-irh/4+iYFM4GAzpluDErgjz89bj6NDtqqMAG/6O1LG38Ed3NpyebzCpcVNkFW8uhy+/3/BocUvnXDR33CXWe9A==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-openharmony-arm64": { + "version": "1.2.19", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.2.19.tgz", + "integrity": "sha512-+KWTWNoPt+CfSq94CiceWu3yPE+QzkaG+phPyz9G60tmZLwfQkcA4AeksafzvJAw4pvg1mcd5a1TkUqVv0s4JA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-wasm32-wasi": { + "version": "1.2.19", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.2.19.tgz", + "integrity": "sha512-7EH+skOsl5qpWnK0vzamgJFhOv1cwxQpsxm8tI883K9fur5c27p8q87fzEO6BbBPabA2/+s/zR63/pLc137iOg==", + "cpu": [ + "wasm32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/core": "2.0.0-beta.2", + "@emnapi/runtime": "2.0.0-beta.2", + "@napi-rs/wasm-runtime": "1.2.6" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=23.5.0" + } + }, + "node_modules/@rolldown/binding-win32-arm64-msvc": { + "version": "1.2.19", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.2.19.tgz", + "integrity": "sha512-3Q1Yg1Q7tEvBWoZf5rFvG/GKZQPgwfru+p4wBajDfJFBs0SHCpL++dfTjW9gyAKd1T7ZpIYvdaUax7Pa/IhFVQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-win32-x64-msvc": { + "version": "1.2.19", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.2.19.tgz", + "integrity": "sha512-y/sqRRc6d7hECzOFc5n3LSeqctmIp9mMjY1Kq4s14uLPd/LZ4z7i1zrW6fMtp2mPeuQIC4e6ULMcwQzMomqQag==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/pluginutils": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/@rolldown/pluginutils/-/pluginutils-1.0.1.tgz", + "integrity": "sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@rollup/pluginutils": { + "version": "5.5.1", + "resolved": "https://registry.npmmirror.com/@rollup/pluginutils/-/pluginutils-5.5.1.tgz", + "integrity": "sha512-P9ZvnfouRu4MSC+ilERaw6FmZs8zqKhpHxEs4aGDGWQAMzQGXnhvCSvoNwokfNvdt7t3Y5Y4p6gStQgezeIqug==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "^1.0.0", + "estree-walker": "^2.0.2", + "picomatch": "^4.0.2" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" + }, + "peerDependenciesMeta": { + "rollup": { + "optional": true + } + } + }, + "node_modules/@rushstack/node-core-library": { + "version": "5.25.2", + "resolved": "https://registry.npmmirror.com/@rushstack/node-core-library/-/node-core-library-5.25.2.tgz", + "integrity": "sha512-76QGqWRVMtd/KZqhfSOMBgDvxIUsYPhUBhLSorGdn/wwkuESoJ2/cUI3KmfMKrZrE72o8Lau4P8kCBH/omI17Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "ajv": "~8.20.0", + "ajv-draft-04": "~1.0.0", + "ajv-formats": "~3.0.1", + "fs-extra": "~11.3.0", + "import-lazy": "~4.0.0", + "jju": "~1.4.0", + "resolve": "~1.22.1", + "semver": "~7.7.4" + }, + "engines": { + "node": ">=20.9.0" + }, + "peerDependencies": { + "@types/node": "*" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@rushstack/node-core-library/node_modules/ajv": { + "version": "8.20.0", + "resolved": "https://registry.npmmirror.com/ajv/-/ajv-8.20.0.tgz", + "integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/@rushstack/node-core-library/node_modules/ajv-draft-04": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/ajv-draft-04/-/ajv-draft-04-1.0.0.tgz", + "integrity": "sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "ajv": "^8.5.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, + "node_modules/@rushstack/node-core-library/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true, + "license": "MIT" + }, + "node_modules/@rushstack/node-core-library/node_modules/semver": { + "version": "7.7.4", + "resolved": "https://registry.npmmirror.com/semver/-/semver-7.7.4.tgz", + "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@rushstack/problem-matcher": { + "version": "0.2.1", + "resolved": "https://registry.npmmirror.com/@rushstack/problem-matcher/-/problem-matcher-0.2.1.tgz", + "integrity": "sha512-gulfhBs6n+I5b7DvjKRfhMGyUejtSgOHTclF/eONr8hcgF1APEDjhxIsfdUYYMzC3rvLwGluqLjbwCFZ8nxrog==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "@types/node": "*" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@rushstack/rig-package": { + "version": "0.7.4", + "resolved": "https://registry.npmmirror.com/@rushstack/rig-package/-/rig-package-0.7.4.tgz", + "integrity": "sha512-SHZdzc9b2ptUb5uvRWALtAceD/QKZ4UAnZjcaKviTMPmHBnW14gs7XDocn6sDv2EqgnxxFPFkpV7/I3cUijCbw==", + "dev": true, + "license": "MIT", + "dependencies": { + "jju": "~1.4.0", + "resolve": "~1.22.1" + }, + "engines": { + "node": ">=20.9.0" + } + }, + "node_modules/@rushstack/terminal": { + "version": "0.24.8", + "resolved": "https://registry.npmmirror.com/@rushstack/terminal/-/terminal-0.24.8.tgz", + "integrity": "sha512-VJAq8ZVgnEtXOC+FnBL3YdP5YNBibT9JvRvEuXsqi0ENZ+Ha0uR9CaK2c+4y8hdk/n6Y2SJ6+AZYDfSQmqupWg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rushstack/node-core-library": "5.25.2", + "@rushstack/problem-matcher": "0.2.1", + "supports-color": "~8.1.1" + }, + "engines": { + "node": ">=20.9.0" + }, + "peerDependencies": { + "@types/node": "*" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@rushstack/terminal/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmmirror.com/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/@rushstack/ts-command-line": { + "version": "5.3.18", + "resolved": "https://registry.npmmirror.com/@rushstack/ts-command-line/-/ts-command-line-5.3.18.tgz", + "integrity": "sha512-acP68tGx/DJEIQgTqj/xStBRaghN7axV+uAjNasDjVXgHgHaLQ1f16/bbXtw6mNLjURhTORD4fdfbOZM7kyWcw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rushstack/terminal": "0.24.8", + "@types/argparse": "1.0.38", + "argparse": "~1.0.9", + "string-argv": "~0.3.1" + }, + "engines": { + "node": ">=20.9.0" + } + }, + "node_modules/@rushstack/ts-command-line/node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmmirror.com/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "license": "MIT", + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/@tsconfig/node10": { + "version": "1.0.13", + "resolved": "https://registry.npmmirror.com/@tsconfig/node10/-/node10-1.0.13.tgz", + "integrity": "sha512-gcLdvR9HO1ZJBypsOGqaP6TFEzb6vIta0KSTLt9NAQ6pXQO3cRgSVyCN6pzYqI9DlJgY71XKO0dpDhCf08b3pg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@tsconfig/node12": { + "version": "1.0.11", + "resolved": "https://registry.npmmirror.com/@tsconfig/node12/-/node12-1.0.11.tgz", + "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", + "dev": true, + "license": "MIT" + }, + "node_modules/@tsconfig/node14": { + "version": "1.0.3", + "resolved": "https://registry.npmmirror.com/@tsconfig/node14/-/node14-1.0.3.tgz", + "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", + "dev": true, + "license": "MIT" + }, + "node_modules/@tsconfig/node16": { + "version": "1.0.4", + "resolved": "https://registry.npmmirror.com/@tsconfig/node16/-/node16-1.0.4.tgz", + "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@tybys/wasm-util": { + "version": "0.10.4", + "resolved": "https://registry.npmmirror.com/@tybys/wasm-util/-/wasm-util-0.10.4.tgz", + "integrity": "sha512-W3c4gRigFS0T/Ma4qIYF3GDAc5AQdHb1yL5znJT1Zv1YaD9Kitx656wBjvr19qbiosmZT8lWDM5BEMynUqX65A==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@types/argparse": { + "version": "1.0.38", + "resolved": "https://registry.npmmirror.com/@types/argparse/-/argparse-1.0.38.tgz", + "integrity": "sha512-ebDJ9b0e702Yr7pWgB0jzm+CX4Srzz8RcXtLJDJB+BSccqMa36uyH/zUsSYao5+BD1ytv3k3rPYCq4mAE1hsXA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/esrecurse": { + "version": "4.3.1", + "resolved": "https://registry.npmmirror.com/@types/esrecurse/-/esrecurse-4.3.1.tgz", + "integrity": "sha512-xJBAbDifo5hpffDBuHl0Y8ywswbiAp/Wi7Y/GtAgSlZyIABppyurxVueOPE8LUQOxdlgi6Zqce7uoEpqNTeiUw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/estree": { + "version": "1.0.10", + "resolved": "https://registry.npmmirror.com/@types/estree/-/estree-1.0.10.tgz", + "integrity": "sha512-lTyOMnOcmRBzdCv6/4zUZCrEhV0xrqQiUZBZtVcbmLHBXKLnN8q89v/wKRF/Q0HbwVsqbIG3o5HDoFl9sduM+g==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmmirror.com/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "24.19.2", + "resolved": "https://registry.npmmirror.com/@types/node/-/node-24.19.2.tgz", + "integrity": "sha512-93d49wCWJkCyN87MxLpNN6KXPCwFw7bVUg79mGUV1OS40JGWwVCr8n61DXCSqz7CV6/VfPkb7xec7uP2M+QHWQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": ">=7.24.0 <7.24.7" + } + }, + "node_modules/@types/react": { + "version": "19.3.0", + "resolved": "https://registry.npmmirror.com/@types/react/-/react-19.3.0.tgz", + "integrity": "sha512-N0rFCuH9YoxG9/m61l9MfpJKfmLOVU0em7ipIz6TRgSSkvReLB9vL85GB+yr8Bs5leqpvg96JSwF4ZS1s4viQg==", + "dev": true, + "license": "MIT", + "dependencies": { + "csstype": "^3.2.2" + } + }, + "node_modules/@types/react-dom": { + "version": "19.3.0", + "resolved": "https://registry.npmmirror.com/@types/react-dom/-/react-dom-19.3.0.tgz", + "integrity": "sha512-ZI7bU42mZXXKHn/qNLEw2IrbiINU7X5+vfgdixBHkCNpYWXjKgfQ/P+uyGb5CjOLB9UcnTeg3rylQtV2hym44Q==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "@types/react": "^19.3.0" + } + }, + "node_modules/@typescript-eslint/project-service": { + "version": "8.73.0", + "resolved": "https://registry.npmmirror.com/@typescript-eslint/project-service/-/project-service-8.73.0.tgz", + "integrity": "sha512-/pEf8Rc4Mjk+qJnY0uO1+Gadeal8uv50xpuic+srG2vIVatA0XxvWMUeMtFvs6OCHqftiQ7/+qH4aehG5stzIA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/tsconfig-utils": "^8.73.0", + "@typescript-eslint/types": "^8.73.0", + "debug": "^4.4.3" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.1.0" + } + }, + "node_modules/@typescript-eslint/project-service/node_modules/@typescript-eslint/types": { + "version": "8.73.0", + "resolved": "https://registry.npmmirror.com/@typescript-eslint/types/-/types-8.73.0.tgz", + "integrity": "sha512-O/1ytYzflF16QDKXx4/qOXg1IuZp+n7hr9t+S0nv7N/2Tl8rJiNCshztV1gcSUvHbPtoX3+zmNbtSAyVbzxVfw==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/tsconfig-utils": { + "version": "8.73.0", + "resolved": "https://registry.npmmirror.com/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.73.0.tgz", + "integrity": "sha512-lmtCFOfYaJfpqZywGuXi4FpNtE+NQ+YLe3T0K9rtEDcW8ZuGWvfI++pj8r05sYMI8vWT2CYK4rWyedmD6Rp4og==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.1.0" + } + }, + "node_modules/@vitejs/plugin-react": { + "version": "6.1.2", + "resolved": "https://registry.npmmirror.com/@vitejs/plugin-react/-/plugin-react-6.1.2.tgz", + "integrity": "sha512-fhJNGUdscQa4HkI0xFxwonWyhnVReCPDbXI7FH7jmzpnVCrFQI7PRrhWecO263610vOrs9tr2Y4xcf8uAdFxbw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rolldown/pluginutils": "^1.0.1" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "peerDependencies": { + "@rolldown/plugin-babel": "^0.1.7 || ^0.2.0", + "babel-plugin-react-compiler": "^1.0.0", + "oxc-transform-react": "^0.152.0", + "vite": "^8.0.0" + }, + "peerDependenciesMeta": { + "@rolldown/plugin-babel": { + "optional": true + }, + "babel-plugin-react-compiler": { + "optional": true + }, + "oxc-transform-react": { + "optional": true + } + } + }, + "node_modules/@volar/language-core": { + "version": "2.4.31", + "resolved": "https://registry.npmmirror.com/@volar/language-core/-/language-core-2.4.31.tgz", + "integrity": "sha512-OM+OZfynHa1/4WlC8klqvwTQVmhYUZuwpAKdfl/rlvK8jaIozMD5qwXsOkxcRJA2tC+TEFsG1K81lNP4s/IAzQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@volar/source-map": "2.4.31" + } + }, + "node_modules/@volar/language-service": { + "version": "2.4.31", + "resolved": "https://registry.npmmirror.com/@volar/language-service/-/language-service-2.4.31.tgz", + "integrity": "sha512-LM9HFsBVhHZ7RbFUZK9P23FvamK8XCDcN0kNgOTts02wVgnygo3ReLbmBmUZ3GuYnrYn6HHoQvqk/eHIzzTnrg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@volar/language-core": "2.4.31", + "vscode-languageserver-protocol": "^3.17.5", + "vscode-languageserver-textdocument": "^1.0.11", + "vscode-uri": "^3.0.8" + }, + "peerDependencies": { + "typescript": "<7" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@volar/source-map": { + "version": "2.4.31", + "resolved": "https://registry.npmmirror.com/@volar/source-map/-/source-map-2.4.31.tgz", + "integrity": "sha512-odi31S3mKm57aO7Pd5P624FmGIB49U4lUPnYRUKvCDa8WZy5N5Yb+GMp2WJNaeIr4+q0ijNpuHsJLrfEiWvHtA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@volar/typescript": { + "version": "2.4.31", + "resolved": "https://registry.npmmirror.com/@volar/typescript/-/typescript-2.4.31.tgz", + "integrity": "sha512-OBHLLAi03AmaRWqzytdFhgtW2B3HM+2/vXFkvnZAlEKltalUTyu+No7g9aZx7e9efrDLOtHsd/3PgCHSfgVJ/Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@volar/language-core": "2.4.31", + "@volar/language-service": "2.4.31", + "path-browserify": "^1.0.1", + "vscode-uri": "^3.0.8" + }, + "peerDependencies": { + "typescript": "<7" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/acorn": { + "version": "8.19.0", + "resolved": "https://registry.npmmirror.com/acorn/-/acorn-8.19.0.tgz", + "integrity": "sha512-oJlA3XiRm7Cyk6qFD2Jn8ak9B7jSy0qy00ADO3+8dpT0LSjFihQYv4C02LFCSYJV3Q37xYwwRy5m+IpIiUzqWw==", + "dev": true, + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmmirror.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/acorn-walk": { + "version": "8.3.5", + "resolved": "https://registry.npmmirror.com/acorn-walk/-/acorn-walk-8.3.5.tgz", + "integrity": "sha512-HEHNfbars9v4pgpW6SO1KSPkfoS0xVOM/9UzkJltjlsHZmJasxg8aXkuZa7SMf8vKGIBhpUsPluQSqhJFCqebw==", + "dev": true, + "license": "MIT", + "dependencies": { + "acorn": "^8.11.0" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/ajv": { + "version": "6.15.0", + "resolved": "https://registry.npmmirror.com/ajv/-/ajv-6.15.0.tgz", + "integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-formats": { + "version": "3.0.1", + "resolved": "https://registry.npmmirror.com/ajv-formats/-/ajv-formats-3.0.1.tgz", + "integrity": "sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ajv": "^8.0.0" + }, + "peerDependencies": { + "ajv": "^8.0.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, + "node_modules/ajv-formats/node_modules/ajv": { + "version": "8.20.0", + "resolved": "https://registry.npmmirror.com/ajv/-/ajv-8.20.0.tgz", + "integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-formats/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true, + "license": "MIT" + }, + "node_modules/arg": { + "version": "4.1.3", + "resolved": "https://registry.npmmirror.com/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", + "dev": true, + "license": "MIT" + }, + "node_modules/baseline-browser-mapping": { + "version": "2.11.28", + "resolved": "https://registry.npmmirror.com/baseline-browser-mapping/-/baseline-browser-mapping-2.11.28.tgz", + "integrity": "sha512-br0LOmjJqr6Rt4AEkadbcNf67Zpo7EPwKsWbjnRrJIa1QYFHQBqM4C7F2WTbV8ahTEcg1Eo+Y0aWjjORInYFyA==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "baseline-browser-mapping": "dist/cli.cjs" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/brace-expansion": { + "version": "5.0.13", + "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-5.0.13.tgz", + "integrity": "sha512-Vh3dmFbc4wZeox7M9I/0L9GfFd83Su4+yCck/OF9Gi/P/dAHn0RT7X4K9R7gMNMhDck3DvhR6QXsnQdjjgwNvQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^4.0.2" + }, + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/brace-expansion/node_modules/balanced-match": { + "version": "4.0.4", + "resolved": "https://registry.npmmirror.com/balanced-match/-/balanced-match-4.0.4.tgz", + "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "18 || 20 || >=22" + } + }, + "node_modules/browserslist": { + "version": "4.29.3", + "resolved": "https://registry.npmmirror.com/browserslist/-/browserslist-4.29.3.tgz", + "integrity": "sha512-1R4kiYKXGViqEN0CnoDrXc1StD9niAwu+j2dukWzrD4bJgsD4lDmEp0CRbc6E/vYJIfTHwPmwyaKtVSudICdPA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "baseline-browser-mapping": "^2.11.26", + "caniuse-lite": "^1.0.30001813", + "electron-to-chromium": "^1.5.439", + "node-releases": "^2.0.57", + "update-browserslist-db": "^1.3.3" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/cacheable": { + "version": "2.5.0", + "resolved": "https://registry.npmmirror.com/cacheable/-/cacheable-2.5.0.tgz", + "integrity": "sha512-60cyAOytib/OzBw1JNSoSV/boK1AtHryDIjvVBk7XbN4ugfkM3+Sry7fEjNgPMGgOjuaZPAp8ruZ0Cxafwyq9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@cacheable/memory": "^2.2.0", + "@cacheable/utils": "^2.5.0", + "hookified": "^1.15.0", + "keyv": "^5.6.0", + "qified": "^0.10.1" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001816", + "resolved": "https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001816.tgz", + "integrity": "sha512-+8Yx7BXCoqk6IF8yTicjfUR6D/ldJzdlsodlEOiOSPmhK844WIgk67/zIQaGAOxNkZyyvBlrRFnLvqKIoqbAFw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0" + }, + "node_modules/compare-versions": { + "version": "6.1.1", + "resolved": "https://registry.npmmirror.com/compare-versions/-/compare-versions-6.1.1.tgz", + "integrity": "sha512-4hm4VPpIecmlg59CHXnRDnqGplJFrbLG4aFEl5vl6cK1u76ws3LLvX7ikFnTDl5vo39sjWD6AaDPYodJp/NNHg==", + "dev": true, + "license": "MIT" + }, + "node_modules/confbox": { + "version": "0.1.8", + "resolved": "https://registry.npmmirror.com/confbox/-/confbox-0.1.8.tgz", + "integrity": "sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==", + "dev": true, + "license": "MIT" + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmmirror.com/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true, + "license": "MIT" + }, + "node_modules/create-require": { + "version": "1.1.1", + "resolved": "https://registry.npmmirror.com/create-require/-/create-require-1.1.1.tgz", + "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmmirror.com/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/csstype": { + "version": "3.2.3", + "resolved": "https://registry.npmmirror.com/csstype/-/csstype-3.2.3.tgz", + "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmmirror.com/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmmirror.com/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmmirror.com/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=8" + } + }, + "node_modules/diff": { + "version": "4.0.4", + "resolved": "https://registry.npmmirror.com/diff/-/diff-4.0.4.tgz", + "integrity": "sha512-X07nttJQkwkfKfvTPG/KSnE2OMdcUCao6+eXF3wmnIQRn2aPAHH3VxDbDOdegkd6JbPsXqShpvEOHfAT+nCNwQ==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.5.456", + "resolved": "https://registry.npmmirror.com/electron-to-chromium/-/electron-to-chromium-1.5.456.tgz", + "integrity": "sha512-8hboqI6xesozteFb8aa7OGknvxUtTeRJLz0FoePysUEh/oWbddykIGdgpEJRbPRg/nIMfBf2DFos+H2MtvJl2A==", + "dev": true, + "license": "ISC" + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmmirror.com/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmmirror.com/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "10.15.0", + "resolved": "https://registry.npmmirror.com/eslint/-/eslint-10.15.0.tgz", + "integrity": "sha512-+5Wg4p+ze3sG1WErYgUO/3H1IQIfFBymVUA0Fo/XTeBOLS6UQIUekpSJ8sdRkn7O7wjh84b55w/roqavH2aScg==", + "dev": true, + "license": "MIT", + "workspaces": [ + "packages/*" + ], + "dependencies": { + "@eslint-community/eslint-utils": "^4.8.0", + "@eslint-community/regexpp": "^4.12.2", + "@eslint/config-array": "^0.23.6", + "@eslint/config-helpers": "^0.7.0", + "@eslint/core": "^1.2.1", + "@eslint/plugin-kit": "^0.7.3", + "@humanfs/node": "^0.16.8", + "@humanwhocodes/module-importer": "^1.0.1", + "@humanwhocodes/retry": "^0.4.2", + "@types/estree": "^1.0.6", + "ajv": "^6.14.0", + "cross-spawn": "^7.0.6", + "debug": "^4.3.2", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^9.1.2", + "eslint-visitor-keys": "^5.0.1", + "espree": "^11.2.0", + "esquery": "^1.7.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "11.1.5 || >11.1.6 <12", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "minimatch": "^11.0.5", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "jiti": "*" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + } + } + }, + "node_modules/eslint-plugin-react-hooks": { + "version": "7.1.1", + "resolved": "https://registry.npmmirror.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-7.1.1.tgz", + "integrity": "sha512-f2I7Gw6JbvCexzIInuSbZpfdQ44D7iqdWX01FKLvrPgqxoE7oMj8clOfto8U6vYiz4yd5oKu39rRSVOe1zRu0g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.24.4", + "@babel/parser": "^7.24.4", + "hermes-parser": "^0.25.1", + "zod": "^3.25.0 || ^4.0.0", + "zod-validation-error": "^3.5.0 || ^4.0.0" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0 || ^10.0.0" + } + }, + "node_modules/eslint-scope": { + "version": "9.1.2", + "resolved": "https://registry.npmmirror.com/eslint-scope/-/eslint-scope-9.1.2.tgz", + "integrity": "sha512-xS90H51cKw0jltxmvmHy2Iai1LIqrfbw57b79w/J7MfvDfkIkFZ+kj6zC3BjtUwh150HsSSdxXZcsuv72miDFQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "@types/esrecurse": "^4.3.1", + "@types/estree": "^1.0.8", + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "5.0.1", + "resolved": "https://registry.npmmirror.com/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz", + "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmmirror.com/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/eslint/node_modules/minimatch": { + "version": "11.0.9", + "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-11.0.9.tgz", + "integrity": "sha512-KCFkfyjqerNlSstjlhIGNXIKZGA/6O4V4RlhZ+Dsr621SPPw0mzlypE9D9ZOoPiVefHID+j7/XuMMlqfD/F60Q==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/nonrecursive-glob-match": "^1.1.0", + "brace-expansion": "^5.0.12" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/espree": { + "version": "11.2.0", + "resolved": "https://registry.npmmirror.com/espree/-/espree-11.2.0.tgz", + "integrity": "sha512-7p3DrVEIopW1B1avAGLuCSh1jubc01H2JHc8B4qqGblmg5gI9yumBgACjWo4JlIc04ufug4xJ3SQI8HkS/Rgzw==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.16.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^5.0.1" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.7.0", + "resolved": "https://registry.npmmirror.com/esquery/-/esquery-1.7.0.tgz", + "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmmirror.com/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmmirror.com/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmmirror.com/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", + "dev": true, + "license": "MIT" + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmmirror.com/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/exsolve": { + "version": "1.2.0", + "resolved": "https://registry.npmmirror.com/exsolve/-/exsolve-1.2.0.tgz", + "integrity": "sha512-h1pQPR9XoeSMdntRNCjyTznaume4UpfXrULBnlkZ2CUM/G5eSa+pBByGldO5uR8dxbPC+OuJXsPPNf+JZ81ADg==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmmirror.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmmirror.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmmirror.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-uri": { + "version": "3.1.9", + "resolved": "https://registry.npmmirror.com/fast-uri/-/fast-uri-3.1.9.tgz", + "integrity": "sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fastify" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fastify" + } + ], + "license": "BSD-3-Clause" + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmmirror.com/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/file-entry-cache": { + "version": "11.1.5", + "resolved": "https://registry.npmmirror.com/file-entry-cache/-/file-entry-cache-11.1.5.tgz", + "integrity": "sha512-+PFTHITI08JIGhnNpGNI8T8inUpgZfk3GNEqfT9R2zZV2iFXg3CvqzSl/uEhs7TSGujYRELEANyDvS8Fj7+S7Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "flat-cache": "^6.1.23" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmmirror.com/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "6.1.23", + "resolved": "https://registry.npmmirror.com/flat-cache/-/flat-cache-6.1.23.tgz", + "integrity": "sha512-f++BY9pTk+983xK1FLzlLpmM0i0z+jHmx3QESGkURMXujQZz1k5wzwX6hjnQ8goaD0B+sYnDK1yZ6MTyZfUaqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "cacheable": "^2.5.0", + "flatted": "^3.4.2", + "hookified": "^1.15.0" + } + }, + "node_modules/flatted": { + "version": "3.4.4", + "resolved": "https://registry.npmmirror.com/flatted/-/flatted-3.4.4.tgz", + "integrity": "sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==", + "dev": true, + "license": "ISC" + }, + "node_modules/fs-extra": { + "version": "11.3.6", + "resolved": "https://registry.npmmirror.com/fs-extra/-/fs-extra-11.3.6.tgz", + "integrity": "sha512-w8ZNZr2mKIc7qeNaQ9AVPT1+iFaI+Avd4xudVOvdDJ8VytREi1Ft5Ih7hd9jjehod8vAM5GMsfQ/TpPf4EyoEA==", + "dev": true, + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=14.14" + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmmirror.com/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmmirror.com/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmmirror.com/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/glob": { + "version": "14.0.6", + "resolved": "https://registry.npmmirror.com/glob/-/glob-14.0.6.tgz", + "integrity": "sha512-OwXjVP2svY5EyLY75Vek96C8qK43gqrt4xsZ+qSILdnaEiJPXkd62mcfUSNx/TQErQRdu5uM5kF67sfONragKw==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "minimatch": "^11.0.5", + "minipass": "^7.1.3", + "path-scurry": "^3.0.0" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-to-regexp": { + "version": "0.4.1", + "resolved": "https://registry.npmmirror.com/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", + "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", + "dev": true, + "license": "BSD-2-Clause" + }, + "node_modules/glob/node_modules/minimatch": { + "version": "11.0.9", + "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-11.0.9.tgz", + "integrity": "sha512-KCFkfyjqerNlSstjlhIGNXIKZGA/6O4V4RlhZ+Dsr621SPPw0mzlypE9D9ZOoPiVefHID+j7/XuMMlqfD/F60Q==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/nonrecursive-glob-match": "^1.1.0", + "brace-expansion": "^5.0.12" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/globals": { + "version": "17.14.0", + "resolved": "https://registry.npmmirror.com/globals/-/globals-17.14.0.tgz", + "integrity": "sha512-UtdkTVyAJePQv0J2M9Xe4L0ruNSDV314XiIJsADI2Zf40bcdAonE/D/OhAU8AT99oij9mhLByb+NvA3QWZYgCg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.12", + "resolved": "https://registry.npmmirror.com/graceful-fs/-/graceful-fs-4.2.12.tgz", + "integrity": "sha512-iuyGF2E4oafQfPsRrG2wtY2ILupMhvtdrhzrxB+0VcjsPpSPttpfYdjnGFGsTi5MaJFjI1jOKHPQ6UTbTj9TAw==", + "dev": true, + "license": "BlueOak-1.0.0" + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/hashery": { + "version": "1.5.1", + "resolved": "https://registry.npmmirror.com/hashery/-/hashery-1.5.1.tgz", + "integrity": "sha512-iZyKG96/JwPz1N55vj2Ie2vXbhu440zfUfJvSwEqEbeLluk7NnapfGqa7LH0mOsnDxTF85Mx8/dyR6HfqcbmbQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "hookified": "^1.15.0" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/hasown": { + "version": "2.0.4", + "resolved": "https://registry.npmmirror.com/hasown/-/hasown-2.0.4.tgz", + "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==", + "dev": true, + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/hermes-estree": { + "version": "0.25.1", + "resolved": "https://registry.npmmirror.com/hermes-estree/-/hermes-estree-0.25.1.tgz", + "integrity": "sha512-0wUoCcLp+5Ev5pDW2OriHC2MJCbwLwuRx+gAqMTOkGKJJiBCLjtrvy4PWUGn6MIVefecRpzoOZ/UV6iGdOr+Cw==", + "dev": true, + "license": "MIT" + }, + "node_modules/hermes-parser": { + "version": "0.25.1", + "resolved": "https://registry.npmmirror.com/hermes-parser/-/hermes-parser-0.25.1.tgz", + "integrity": "sha512-6pEjquH3rqaI6cYAXYPcz9MS4rY6R4ngRgrgfDshRptUZIc3lw0MCIJIGDj9++mfySOuPTHB4nrSW99BCvOPIA==", + "dev": true, + "license": "MIT", + "dependencies": { + "hermes-estree": "0.25.1" + } + }, + "node_modules/hookified": { + "version": "1.15.1", + "resolved": "https://registry.npmmirror.com/hookified/-/hookified-1.15.1.tgz", + "integrity": "sha512-MvG/clsADq1GPM2KGo2nyfaWVyn9naPiXrqIe4jYjXNZQt238kWyOGrsyc/DmRAQ+Re6yeo6yX/yoNCG5KAEVg==", + "dev": true, + "license": "MIT" + }, + "node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmmirror.com/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-lazy": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/import-lazy/-/import-lazy-4.0.0.tgz", + "integrity": "sha512-rKtvo6a868b5Hu3heneU+L4yEQ4jYKLtjpnPeUdK7h0yzXGmyBTypknlkCvHFBqfX9YlorEiMM6Dnq/5atfHkw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmmirror.com/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/is-core-module": { + "version": "2.18.0", + "resolved": "https://registry.npmmirror.com/is-core-module/-/is-core-module-2.18.0.tgz", + "integrity": "sha512-qyax9fgaKOEC4qK8WZn7Q4IcoZC9RC1O1fFxRcRTq/oMMkWT/uXpqpXa12kzWR409zAt1drYN9N9BO26UmBCmw==", + "dev": true, + "license": "MIT", + "dependencies": { + "hasown": "^2.0.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmmirror.com/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmmirror.com/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmmirror.com/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true, + "license": "ISC" + }, + "node_modules/jju": { + "version": "1.4.0", + "resolved": "https://registry.npmmirror.com/jju/-/jju-1.4.0.tgz", + "integrity": "sha512-8wb9Yw966OSxApiCt0K3yNJL8pnNeIv+OEq2YMidz4FKP6nonSRoOXc80iXY4JaN2FC11B9qsNmDsm+ZOfMROA==", + "dev": true, + "license": "MIT" + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://registry.npmmirror.com/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "dev": true, + "license": "MIT", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmmirror.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmmirror.com/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "license": "MIT", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsonfile": { + "version": "6.2.1", + "resolved": "https://registry.npmmirror.com/jsonfile/-/jsonfile-6.2.1.tgz", + "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/keyv": { + "version": "5.6.0", + "resolved": "https://registry.npmmirror.com/keyv/-/keyv-5.6.0.tgz", + "integrity": "sha512-CYDD3SOtsHtyXeEORYRx2qBtpDJFjRTGXUtmNEMGyzYOKj1TE3tycdlho7kA1Ufx9OYWZzg52QFBGALTirzDSw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@keyv/serialize": "^1.1.1" + } + }, + "node_modules/kolorist": { + "version": "1.8.0", + "resolved": "https://registry.npmmirror.com/kolorist/-/kolorist-1.8.0.tgz", + "integrity": "sha512-Y+60/zizpJ3HRH8DCss+q95yr6145JXZo46OTpFvDZWLfRCE4qChOyk1b26nMaNpfHHgxagk9dXT5OP0Tfe+dQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmmirror.com/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lightningcss": { + "version": "1.33.0", + "resolved": "https://registry.npmmirror.com/lightningcss/-/lightningcss-1.33.0.tgz", + "integrity": "sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==", + "dev": true, + "license": "MPL-2.0", + "dependencies": { + "detect-libc": "^2.0.3" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "lightningcss-android-arm64": "1.33.0", + "lightningcss-darwin-arm64": "1.33.0", + "lightningcss-darwin-x64": "1.33.0", + "lightningcss-freebsd-x64": "1.33.0", + "lightningcss-linux-arm-gnueabihf": "1.33.0", + "lightningcss-linux-arm64-gnu": "1.33.0", + "lightningcss-linux-arm64-musl": "1.33.0", + "lightningcss-linux-x64-gnu": "1.33.0", + "lightningcss-linux-x64-musl": "1.33.0", + "lightningcss-win32-arm64-msvc": "1.33.0", + "lightningcss-win32-x64-msvc": "1.33.0" + } + }, + "node_modules/lightningcss-android-arm64": { + "version": "1.33.0", + "resolved": "https://registry.npmmirror.com/lightningcss-android-arm64/-/lightningcss-android-arm64-1.33.0.tgz", + "integrity": "sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-arm64": { + "version": "1.33.0", + "resolved": "https://registry.npmmirror.com/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.33.0.tgz", + "integrity": "sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-x64": { + "version": "1.33.0", + "resolved": "https://registry.npmmirror.com/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.33.0.tgz", + "integrity": "sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-freebsd-x64": { + "version": "1.33.0", + "resolved": "https://registry.npmmirror.com/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.33.0.tgz", + "integrity": "sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm-gnueabihf": { + "version": "1.33.0", + "resolved": "https://registry.npmmirror.com/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.33.0.tgz", + "integrity": "sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-gnu": { + "version": "1.33.0", + "resolved": "https://registry.npmmirror.com/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.33.0.tgz", + "integrity": "sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-musl": { + "version": "1.33.0", + "resolved": "https://registry.npmmirror.com/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.33.0.tgz", + "integrity": "sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-gnu": { + "version": "1.33.0", + "resolved": "https://registry.npmmirror.com/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.33.0.tgz", + "integrity": "sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-musl": { + "version": "1.33.0", + "resolved": "https://registry.npmmirror.com/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.33.0.tgz", + "integrity": "sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-arm64-msvc": { + "version": "1.33.0", + "resolved": "https://registry.npmmirror.com/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.33.0.tgz", + "integrity": "sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-x64-msvc": { + "version": "1.33.0", + "resolved": "https://registry.npmmirror.com/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.33.0.tgz", + "integrity": "sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/local-pkg": { + "version": "1.2.1", + "resolved": "https://registry.npmmirror.com/local-pkg/-/local-pkg-1.2.1.tgz", + "integrity": "sha512-++gUqRDEvcnN6Zhqrr+y/CkVEHhlrR96vZn3nZZPYzMcBUyBtTKzB9NadClFIsIVSsu+3i9tfk/erqy9kAmt7Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "mlly": "^1.7.4", + "pkg-types": "^2.3.0", + "quansync": "^0.2.11" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/local-pkg/node_modules/confbox": { + "version": "0.3.2", + "resolved": "https://registry.npmmirror.com/confbox/-/confbox-0.3.2.tgz", + "integrity": "sha512-ZUAKhKlkCOrIGKc8cj7zek9s9z1mveHif/25nUshI2BzCRzF7KH7KHa+Lnh2ubq+e1tIlaFuP763mzW4qVoehg==", + "dev": true, + "license": "MIT" + }, + "node_modules/local-pkg/node_modules/pkg-types": { + "version": "2.4.0", + "resolved": "https://registry.npmmirror.com/pkg-types/-/pkg-types-2.4.0.tgz", + "integrity": "sha512-07Fys7iVx0X6TcviMOgogM1Lk33ZyqOezMnU79S+kffWqwolG/5W9V8EgQSeYCIfFTYVgssRbnH630Oa2+soBA==", + "dev": true, + "license": "MIT", + "dependencies": { + "confbox": "^0.3.1", + "exsolve": "^1.1.3", + "pathe": "^2.0.3" + } + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmmirror.com/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "license": "ISC", + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/magic-string": { + "version": "0.30.21", + "resolved": "https://registry.npmmirror.com/magic-string/-/magic-string-0.30.21.tgz", + "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.5" + } + }, + "node_modules/make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmmirror.com/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true, + "license": "ISC" + }, + "node_modules/minimatch": { + "version": "10.2.3", + "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-10.2.3.tgz", + "integrity": "sha512-Rwi3pnapEqirPSbWbrZaa6N3nmqq4Xer/2XooiOKyV3q12ML06f7MOuc5DVH8ONZIFhwIYQ3yzPH4nt7iWHaTg==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "brace-expansion": "^5.0.2" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/minipass": { + "version": "7.1.3", + "resolved": "https://registry.npmmirror.com/minipass/-/minipass-7.1.3.tgz", + "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/mlly": { + "version": "1.8.2", + "resolved": "https://registry.npmmirror.com/mlly/-/mlly-1.8.2.tgz", + "integrity": "sha512-d+ObxMQFmbt10sretNDytwt85VrbkhhUA/JBGm1MPaWJ65Cl4wOgLaB1NYvJSZ0Ef03MMEU/0xpPMXUIQ29UfA==", + "dev": true, + "license": "MIT", + "dependencies": { + "acorn": "^8.16.0", + "pathe": "^2.0.3", + "pkg-types": "^1.3.1", + "ufo": "^1.6.3" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT" + }, + "node_modules/nanoid": { + "version": "3.3.20", + "resolved": "https://registry.npmmirror.com/nanoid/-/nanoid-3.3.20.tgz", + "integrity": "sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmmirror.com/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true, + "license": "MIT" + }, + "node_modules/node-releases": { + "version": "2.0.58", + "resolved": "https://registry.npmmirror.com/node-releases/-/node-releases-2.0.58.tgz", + "integrity": "sha512-BdiKAgbfRlvfMq/XzO/AF9NPmaA8a+YpLAyAFTVFBj3gARrAIfWvNq7Q7NE4se3KgFu0KkrvQMxTS0XVnsGzHg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmmirror.com/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmmirror.com/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmmirror.com/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/path-browserify": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/path-browserify/-/path-browserify-1.0.1.tgz", + "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==", + "dev": true, + "license": "MIT" + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmmirror.com/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmmirror.com/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true, + "license": "MIT" + }, + "node_modules/path-scurry": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/path-scurry/-/path-scurry-3.0.0.tgz", + "integrity": "sha512-1pTbQqH1wIwMi/eleQ5leFTTCkzFsPcgXNjwOA8YGGW/W4/kHT3dssE7Z6NH+zuqNLOzOB0uaD61yl7cAcVhgg==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "lru-cache": "^11.0.0", + "minipass": "^7.1.2" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/path-scurry/node_modules/lru-cache": { + "version": "11.5.3", + "resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-11.5.3.tgz", + "integrity": "sha512-U4N8FgzmWxc8k1VH8Kr6lQg18U7Fjvby6wXHVRX/ZZ7IwWbRMgrRbP0Wrb5q5NVinryp4SQampHKdvtecItxUg==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/pathe": { + "version": "2.0.3", + "resolved": "https://registry.npmmirror.com/pathe/-/pathe-2.0.3.tgz", + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", + "dev": true, + "license": "MIT" + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmmirror.com/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.7", + "resolved": "https://registry.npmmirror.com/picomatch/-/picomatch-4.0.7.tgz", + "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pkg-types": { + "version": "1.3.1", + "resolved": "https://registry.npmmirror.com/pkg-types/-/pkg-types-1.3.1.tgz", + "integrity": "sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "confbox": "^0.1.8", + "mlly": "^1.7.4", + "pathe": "^2.0.1" + } + }, + "node_modules/postcss": { + "version": "8.5.32", + "resolved": "https://registry.npmmirror.com/postcss/-/postcss-8.5.32.tgz", + "integrity": "sha512-LJlKCCAUFKOuZxipUdYw1NzIITEsPcgyOG9LkvRJvuKj/bRzbuRY0ARXvL0pWGpsZvn8jku+LMep2eU0seHp8g==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.20", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmmirror.com/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/prettier": { + "version": "3.10.1", + "resolved": "https://registry.npmmirror.com/prettier/-/prettier-3.10.1.tgz", + "integrity": "sha512-70vp3ZUYoPlFbF9uiTdXHUUCGEIp7d4+6p+8DYbkm2jP7x/3i/paXVF6dopSI3zd/CEitrZN1rc4i85xWmmXlg==", + "dev": true, + "license": "MIT", + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmmirror.com/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/qified": { + "version": "0.10.1", + "resolved": "https://registry.npmmirror.com/qified/-/qified-0.10.1.tgz", + "integrity": "sha512-+Owyggi9IxT1ePKGafcI87ubSmxol6smwJ+RAHDQlx9+9cPwFWDiKFFCPuWhr9ignlGpZ9vDQLw67N4dcTVFEA==", + "dev": true, + "license": "MIT", + "dependencies": { + "hookified": "^2.1.1" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/qified/node_modules/hookified": { + "version": "2.2.0", + "resolved": "https://registry.npmmirror.com/hookified/-/hookified-2.2.0.tgz", + "integrity": "sha512-p/LgFzRN5FeoD3DLS6bkUapeye6E4SI6yJs6KetENd18S+FBthqYq2amJUWpt5z0EQwwHemidjY5OqJGEKm5uA==", + "dev": true, + "license": "MIT" + }, + "node_modules/quansync": { + "version": "0.2.11", + "resolved": "https://registry.npmmirror.com/quansync/-/quansync-0.2.11.tgz", + "integrity": "sha512-AifT7QEbW9Nri4tAwR5M/uzpBuqfZf+zwaEM/QkzEjj7NBuFD2rBuy0K3dE+8wltbezDV7JMA0WfnCPYRSYbXA==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/antfu" + }, + { + "type": "individual", + "url": "https://github.com/sponsors/sxzz" + } + ], + "license": "MIT" + }, + "node_modules/react": { + "version": "19.3.1", + "resolved": "https://registry.npmmirror.com/react/-/react-19.3.1.tgz", + "integrity": "sha512-QNhWdt7nrgVWWQG58QuGsAR3jv3Hbe4mb4vz7w2csnHavciZJgda1CPNaldF6eVxv90ud3jUXpKlHL69gO38yw==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "19.3.1", + "resolved": "https://registry.npmmirror.com/react-dom/-/react-dom-19.3.1.tgz", + "integrity": "sha512-Y0bARz53lhEC1NMCASs0/j+faB/zqt3R8hpvg1e8+61ZVJ4UL0UdC4cBbXfZMcIuhrfgeILTLe+ZeBCavQPtKQ==", + "license": "MIT", + "dependencies": { + "scheduler": "^0.28.0" + }, + "peerDependencies": { + "react": "^19.3.1" + } + }, + "node_modules/react-hotkeys-hook": { + "version": "5.3.3", + "resolved": "https://registry.npmmirror.com/react-hotkeys-hook/-/react-hotkeys-hook-5.3.3.tgz", + "integrity": "sha512-aswgyWUnE25hmhzHTfKDmKzsaSE5DJ4LKaU/o6rQSXkDd/1Bh9TfAFQbHkf6fLy11HvlYkp+cDDarGdhmCDhoQ==", + "license": "MIT", + "workspaces": [ + "packages/*" + ], + "peerDependencies": { + "react": ">=16.8.0", + "react-dom": ">=16.8.0" + } + }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmmirror.com/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/resolve": { + "version": "1.22.14", + "resolved": "https://registry.npmmirror.com/resolve/-/resolve-1.22.14.tgz", + "integrity": "sha512-1ZjYvR9sbkiwC5+9QHetqW5HmA2pHRMaoupD01t2HlYnV/vydC2zPwLixhsMieSWVZt0JJRg5LVIk0Ow1D/TrA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "is-core-module": "^2.18.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/rolldown": { + "version": "1.2.19", + "resolved": "https://registry.npmmirror.com/rolldown/-/rolldown-1.2.19.tgz", + "integrity": "sha512-QIiV1J9d0pzN4jeeTH4sjPy0AZ6cAy2cG0ExeoE1+U8Rvj+hR3gYkokx0YbeUNGlZqiQJJ2utcETe0oKXwzsuA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@oxc-project/types": "=0.156.0", + "@rolldown/pluginutils": "^1.0.0" + }, + "bin": { + "rolldown": "bin/cli.mjs" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "optionalDependencies": { + "@rolldown/binding-android-arm-eabi": "1.2.19", + "@rolldown/binding-android-arm64": "1.2.19", + "@rolldown/binding-darwin-arm64": "1.2.19", + "@rolldown/binding-darwin-x64": "1.2.19", + "@rolldown/binding-freebsd-x64": "1.2.19", + "@rolldown/binding-linux-arm-gnueabihf": "1.2.19", + "@rolldown/binding-linux-arm64-gnu": "1.2.19", + "@rolldown/binding-linux-arm64-musl": "1.2.19", + "@rolldown/binding-linux-ppc64-gnu": "1.2.19", + "@rolldown/binding-linux-s390x-gnu": "1.2.19", + "@rolldown/binding-linux-x64-gnu": "1.2.19", + "@rolldown/binding-linux-x64-musl": "1.2.19", + "@rolldown/binding-openharmony-arm64": "1.2.19", + "@rolldown/binding-wasm32-wasi": "1.2.19", + "@rolldown/binding-win32-arm64-msvc": "1.2.19", + "@rolldown/binding-win32-x64-msvc": "1.2.19" + } + }, + "node_modules/scheduler": { + "version": "0.28.0", + "resolved": "https://registry.npmmirror.com/scheduler/-/scheduler-0.28.0.tgz", + "integrity": "sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==", + "license": "MIT" + }, + "node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmmirror.com/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmmirror.com/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmmirror.com/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-js": { + "version": "1.2.2", + "resolved": "https://registry.npmmirror.com/source-map-js/-/source-map-js-1.2.2.tgz", + "integrity": "sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmmirror.com/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true, + "license": "BSD-3-Clause" + }, + "node_modules/string-argv": { + "version": "0.3.2", + "resolved": "https://registry.npmmirror.com/string-argv/-/string-argv-0.3.2.tgz", + "integrity": "sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.6.19" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/tabbable": { + "version": "6.5.0", + "resolved": "https://registry.npmmirror.com/tabbable/-/tabbable-6.5.0.tgz", + "integrity": "sha512-wieBHXygIm7OyQOu5hQlkk62/WyCFYGlWg7L6/ZCUZwx0o398Zkn4pVmMyfYhfMG8kGrj/Krt8eIk6UKC6VzwA==", + "license": "MIT" + }, + "node_modules/tinyglobby": { + "version": "0.2.17", + "resolved": "https://registry.npmmirror.com/tinyglobby/-/tinyglobby-0.2.17.tgz", + "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/ts-node": { + "version": "10.9.2", + "resolved": "https://registry.npmmirror.com/ts-node/-/ts-node-10.9.2.tgz", + "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@cspotcode/source-map-support": "^0.8.0", + "@tsconfig/node10": "^1.0.7", + "@tsconfig/node12": "^1.0.7", + "@tsconfig/node14": "^1.0.0", + "@tsconfig/node16": "^1.0.2", + "acorn": "^8.4.1", + "acorn-walk": "^8.1.1", + "arg": "^4.1.0", + "create-require": "^1.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "v8-compile-cache-lib": "^3.0.1", + "yn": "3.1.1" + }, + "bin": { + "ts-node": "dist/bin.js", + "ts-node-cwd": "dist/bin-cwd.js", + "ts-node-esm": "dist/bin-esm.js", + "ts-node-script": "dist/bin-script.js", + "ts-node-transpile-only": "dist/bin-transpile.js", + "ts-script": "dist/bin-script-deprecated.js" + }, + "peerDependencies": { + "@swc/core": ">=1.2.50", + "@swc/wasm": ">=1.2.50", + "@types/node": "*", + "typescript": ">=2.7" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "@swc/wasm": { + "optional": true + } + } + }, + "node_modules/tslib": { + "version": "2.9.1", + "resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.9.1.tgz", + "integrity": "sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA==", + "dev": true, + "license": "0BSD", + "optional": true + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmmirror.com/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/typescript": { + "version": "6.0.3", + "resolved": "https://registry.npmmirror.com/typescript/-/typescript-6.0.3.tgz", + "integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/typescript-eslint": { + "version": "8.73.0", + "resolved": "https://registry.npmmirror.com/typescript-eslint/-/typescript-eslint-8.73.0.tgz", + "integrity": "sha512-+EnKy9rkYPun4l+kG2bDuYWQ6y1tGVgdR/tY1U9AC6h21CjEwOoc7gsjwe0FXB8uWFzk4QiCFbuRWgX758PiAg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/eslint-plugin": "8.73.0", + "@typescript-eslint/parser": "8.73.0", + "@typescript-eslint/typescript-estree": "8.73.0", + "@typescript-eslint/utils": "8.73.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "typescript": ">=4.8.4 <6.1.0" + } + }, + "node_modules/typescript-eslint/node_modules/@typescript-eslint/eslint-plugin": { + "version": "8.73.0", + "resolved": "https://registry.npmmirror.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.73.0.tgz", + "integrity": "sha512-UkygMFer53Yzn29MCYFTHf34hGXf5KJhiDWfIm1tXtXRrym1CS6l5H9Y3yCtPWChpC0/f93H88gdj8tN0dd4kw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/regexpp": "^4.12.2", + "@typescript-eslint/scope-manager": "8.73.0", + "@typescript-eslint/type-utils": "8.73.0", + "@typescript-eslint/utils": "8.73.0", + "@typescript-eslint/visitor-keys": "8.73.0", + "ignore": "^7.0.5", + "natural-compare": "^1.4.0", + "ts-api-utils": "^2.5.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^8.73.0", + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "typescript": ">=4.8.4 <6.1.0" + } + }, + "node_modules/typescript-eslint/node_modules/@typescript-eslint/parser": { + "version": "8.73.0", + "resolved": "https://registry.npmmirror.com/@typescript-eslint/parser/-/parser-8.73.0.tgz", + "integrity": "sha512-AuL45bVcmssHfZ3Di3cs9Q0l4gBm4ZFVrJOQEE7VpqW+PVgQaEwSwazz4TVIiFabXkk6U51EprYDwqw+HR8ePw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/scope-manager": "8.73.0", + "@typescript-eslint/types": "8.73.0", + "@typescript-eslint/typescript-estree": "8.73.0", + "@typescript-eslint/visitor-keys": "8.73.0", + "debug": "^4.4.3" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "typescript": ">=4.8.4 <6.1.0" + } + }, + "node_modules/typescript-eslint/node_modules/@typescript-eslint/scope-manager": { + "version": "8.73.0", + "resolved": "https://registry.npmmirror.com/@typescript-eslint/scope-manager/-/scope-manager-8.73.0.tgz", + "integrity": "sha512-/TjD738Iq2rzj5z0ixVOi+TsvgjAzZPLPaH1yWdDBytR/HTR5gMpyYWZeCe5WTQZLwk3ho8AV7U3muoQCRtXBQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.73.0", + "@typescript-eslint/visitor-keys": "8.73.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/typescript-eslint/node_modules/@typescript-eslint/type-utils": { + "version": "8.73.0", + "resolved": "https://registry.npmmirror.com/@typescript-eslint/type-utils/-/type-utils-8.73.0.tgz", + "integrity": "sha512-MOC9i4xy1F7KcDde7Ip8jf1SrRiALb2Km4UWxGNjUE2YlhjIEo1ayE27GHIwIQyfWuHTmEonQT14uyurlyC6aA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.73.0", + "@typescript-eslint/typescript-estree": "8.73.0", + "@typescript-eslint/utils": "8.73.0", + "debug": "^4.4.3", + "ts-api-utils": "^2.5.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "typescript": ">=4.8.4 <6.1.0" + } + }, + "node_modules/typescript-eslint/node_modules/@typescript-eslint/types": { + "version": "8.73.0", + "resolved": "https://registry.npmmirror.com/@typescript-eslint/types/-/types-8.73.0.tgz", + "integrity": "sha512-O/1ytYzflF16QDKXx4/qOXg1IuZp+n7hr9t+S0nv7N/2Tl8rJiNCshztV1gcSUvHbPtoX3+zmNbtSAyVbzxVfw==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/typescript-eslint/node_modules/@typescript-eslint/typescript-estree": { + "version": "8.73.0", + "resolved": "https://registry.npmmirror.com/@typescript-eslint/typescript-estree/-/typescript-estree-8.73.0.tgz", + "integrity": "sha512-InjlBkSdWceIwIBWSwS3ENUp+i0O02PGX3Zv2wnihWJC1WDVGvG7mTHuf8b57uAaITj94d6tRPDH+sUEtXdRQQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/project-service": "8.73.0", + "@typescript-eslint/tsconfig-utils": "8.73.0", + "@typescript-eslint/types": "8.73.0", + "@typescript-eslint/visitor-keys": "8.73.0", + "debug": "^4.4.3", + "minimatch": "^11.0.1", + "semver": "^7.7.3", + "tinyglobby": "^0.2.15", + "ts-api-utils": "^2.5.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript/native": "npm:typescript@>=7.1.0-dev.20261009.1 || >=7.1.0-beta <7.1.0-dev", + "typescript": ">=4.8.4 <6.1.0" + }, + "peerDependenciesMeta": { + "@typescript/native": { + "optional": true + } + } + }, + "node_modules/typescript-eslint/node_modules/@typescript-eslint/utils": { + "version": "8.73.0", + "resolved": "https://registry.npmmirror.com/@typescript-eslint/utils/-/utils-8.73.0.tgz", + "integrity": "sha512-j2SVJJvVkXdUL0WcEzo4vEH1mO1vIi8KlVukcYA2MgMZvYN2LlZR4PmsW+GTSxSW24j6Q/EP7+MOifLtg5hmsA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.9.1", + "@typescript-eslint/scope-manager": "8.73.0", + "@typescript-eslint/types": "8.73.0", + "@typescript-eslint/typescript-estree": "8.73.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "typescript": ">=4.8.4 <6.1.0" + } + }, + "node_modules/typescript-eslint/node_modules/@typescript-eslint/visitor-keys": { + "version": "8.73.0", + "resolved": "https://registry.npmmirror.com/@typescript-eslint/visitor-keys/-/visitor-keys-8.73.0.tgz", + "integrity": "sha512-k4lsFVpRZICbltkIEEH4hZRkwXkqDF1GHBpClKQOHQY+RkoZAAuyc1ci3I6p+CB6v3U4jaHIUshc4RzzQXZWLg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.73.0", + "eslint-visitor-keys": "^5.0.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/typescript-eslint/node_modules/ignore": { + "version": "7.0.16", + "resolved": "https://registry.npmmirror.com/ignore/-/ignore-7.0.16.tgz", + "integrity": "sha512-52N+Y4HRMOJmbLmr+DqO4iSRyyB7N52gm7PWCT6h0p978+oKbqHCB7gIJIwZvBUsjlSdWbrBFqUSmIFNZMpn0A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/typescript-eslint/node_modules/minimatch": { + "version": "11.0.9", + "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-11.0.9.tgz", + "integrity": "sha512-KCFkfyjqerNlSstjlhIGNXIKZGA/6O4V4RlhZ+Dsr621SPPw0mzlypE9D9ZOoPiVefHID+j7/XuMMlqfD/F60Q==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/nonrecursive-glob-match": "^1.1.0", + "brace-expansion": "^5.0.12" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/typescript-eslint/node_modules/semver": { + "version": "7.8.6", + "resolved": "https://registry.npmmirror.com/semver/-/semver-7.8.6.tgz", + "integrity": "sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/typescript-eslint/node_modules/ts-api-utils": { + "version": "2.5.0", + "resolved": "https://registry.npmmirror.com/ts-api-utils/-/ts-api-utils-2.5.0.tgz", + "integrity": "sha512-OJ/ibxhPlqrMM0UiNHJ/0CKQkoKF243/AEmplt3qpRgkW8VG7IfOS41h7V8TjITqdByHzrjcS/2si+y4lIh8NA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.12" + }, + "peerDependencies": { + "typescript": ">=4.8.4" + } + }, + "node_modules/ufo": { + "version": "1.6.4", + "resolved": "https://registry.npmmirror.com/ufo/-/ufo-1.6.4.tgz", + "integrity": "sha512-JFNbkD1Svwe0KvGi8GOeLcP4kAWQ609twvCdcHxq1oSL8svv39ZuSvajcD8B+5D0eL4+s1Is2D/O6KN3qcTeRA==", + "dev": true, + "license": "MIT" + }, + "node_modules/undici-types": { + "version": "7.24.6", + "resolved": "https://registry.npmmirror.com/undici-types/-/undici-types-7.24.6.tgz", + "integrity": "sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg==", + "dev": true, + "license": "MIT" + }, + "node_modules/universalify": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/unplugin-dts": { + "version": "1.1.2", + "resolved": "https://registry.npmmirror.com/unplugin-dts/-/unplugin-dts-1.1.2.tgz", + "integrity": "sha512-RDqy90XUmFj6rz4U5YoTMdYdaCJe2ZnQZaWIjkWS4952Gv0zBTQyqWtlGgVMPYHa982dURvyoc+sUOFIcDFv+w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rollup/pluginutils": "^5.1.4", + "@volar/typescript": "^2.4.26", + "compare-versions": "^6.1.1", + "debug": "^4.4.0", + "glob-to-regexp": "0.4.1", + "kolorist": "^1.8.0", + "local-pkg": "^1.1.1", + "magic-string": "^0.30.17", + "unplugin": "^2.3.2" + }, + "peerDependencies": { + "@microsoft/api-extractor": ">=7", + "@rspack/core": "^1", + "@vue/language-core": "^3.1.5", + "esbuild": "*", + "rolldown": "*", + "rollup": ">=3", + "typescript": ">=4", + "vite": ">=3", + "webpack": "^4 || ^5" + }, + "peerDependenciesMeta": { + "@microsoft/api-extractor": { + "optional": true + }, + "@rspack/core": { + "optional": true + }, + "@vue/language-core": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "rolldown": { + "optional": true + }, + "rollup": { + "optional": true + }, + "vite": { + "optional": true + }, + "webpack": { + "optional": true + } + } + }, + "node_modules/unplugin-dts/node_modules/unplugin": { + "version": "2.3.11", + "resolved": "https://registry.npmmirror.com/unplugin/-/unplugin-2.3.11.tgz", + "integrity": "sha512-5uKD0nqiYVzlmCRs01Fhs2BdkEgBS3SAVP6ndrBsuK42iC2+JHyxM05Rm9G8+5mkmRtzMZGY8Ct5+mliZxU/Ww==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/remapping": "^2.3.5", + "acorn": "^8.15.0", + "picomatch": "^4.0.3", + "webpack-virtual-modules": "^0.6.2" + }, + "engines": { + "node": ">=18.12.0" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.3.4", + "resolved": "https://registry.npmmirror.com/update-browserslist-db/-/update-browserslist-db-1.3.4.tgz", + "integrity": "sha512-t8wonIOdQyOjtPd2VktlBu6QjTVTks6v8bSi7kd0r2Vll8TK1JYDZtRRdbmCHOAMphkZgrzK+L+vXK4pyZ8t4A==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmmirror.com/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/v8-compile-cache-lib": { + "version": "3.0.1", + "resolved": "https://registry.npmmirror.com/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", + "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", + "dev": true, + "license": "MIT" + }, + "node_modules/vite": { + "version": "8.3.8", + "resolved": "https://registry.npmmirror.com/vite/-/vite-8.3.8.tgz", + "integrity": "sha512-LzOn3h9rG/0vhLdXrV4yJ4QFA9eEoqCl+Yx+kGJd7aB9w6nfNgVHKSYwLPZUHrz4ZGa+t+kXjV9itvcHDLQouA==", + "dev": true, + "license": "MIT", + "dependencies": { + "lightningcss": "^1.33.0", + "picomatch": "^4.0.7", + "postcss": "^8.5.32", + "rolldown": "~1.2.18", + "tinyglobby": "^0.2.17" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^20.19.0 || >=22.12.0", + "@vitejs/devtools": "^0.7.1 || ^0.8.0", + "esbuild": "^0.27.0 || ^0.28.0", + "jiti": ">=1.21.0", + "less": "^4.0.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "@vitejs/devtools": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, + "node_modules/vscode-jsonrpc": { + "version": "10.0.0", + "resolved": "https://registry.npmmirror.com/vscode-jsonrpc/-/vscode-jsonrpc-10.0.0.tgz", + "integrity": "sha512-USSfxg0vDIpTQqlQBGxF3mBARyoS8cU7LHLpbYNh6dOJt32dlskxPWB0Irrh5TllTmyf7oNLAvqDqzklbwwnpA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14.17.0" + } + }, + "node_modules/vscode-languageserver-protocol": { + "version": "3.18.5", + "resolved": "https://registry.npmmirror.com/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.18.5.tgz", + "integrity": "sha512-FW4fBMzZ99N8xeob4py0l050wgCoRgTpEq5Xcsb9lM1bc29UKGR/wSV+4knaqFxssFHajy7OzNiKP/m3U1ZEuA==", + "dev": true, + "license": "MIT", + "dependencies": { + "vscode-jsonrpc": "10.0.0", + "vscode-languageserver-types": "3.18.5" + } + }, + "node_modules/vscode-languageserver-textdocument": { + "version": "1.0.16", + "resolved": "https://registry.npmmirror.com/vscode-languageserver-textdocument/-/vscode-languageserver-textdocument-1.0.16.tgz", + "integrity": "sha512-qeNEuOi9a3qkqRf7Gfez2WL2VwlBTLCNekHBGO9kxPVUp9XuY15yfTJ9jwvOwKI0I2MhUUfZq95NSp+LK1CLQg==", + "dev": true, + "license": "MIT" + }, + "node_modules/vscode-languageserver-types": { + "version": "3.18.5", + "resolved": "https://registry.npmmirror.com/vscode-languageserver-types/-/vscode-languageserver-types-3.18.5.tgz", + "integrity": "sha512-kPd6+JQNz3HMJvjKlqUxERSlZHAntl/aGpsk7ImwIh0ewDKDcjgAEyVSYciPiOJD3ftbK9IrfiqUeTZLSbCizw==", + "dev": true, + "license": "MIT" + }, + "node_modules/vscode-uri": { + "version": "3.2.0", + "resolved": "https://registry.npmmirror.com/vscode-uri/-/vscode-uri-3.2.0.tgz", + "integrity": "sha512-m2gXo3bn0G1kT9InzMf07fTbqMbGtyckj3bH5ktLO+1Ssv+yiATZ4dhwaQv9UZWxJh6E9IFGnQyjgWVDWVBDrg==", + "dev": true, + "license": "MIT" + }, + "node_modules/webpack-virtual-modules": { + "version": "0.6.2", + "resolved": "https://registry.npmmirror.com/webpack-virtual-modules/-/webpack-virtual-modules-0.6.2.tgz", + "integrity": "sha512-66/V2i5hQanC51vBQKPH4aI8NMAcBW59FVBs+rC7eGHupMyfn34q7rZIE+ETlJ+XTevqfUhVVBgSUNSW2flEUQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmmirror.com/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmmirror.com/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmmirror.com/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true, + "license": "ISC" + }, + "node_modules/yn": { + "version": "3.1.1", + "resolved": "https://registry.npmmirror.com/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmmirror.com/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/zod": { + "version": "4.6.7", + "resolved": "https://registry.npmmirror.com/zod/-/zod-4.6.7.tgz", + "integrity": "sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + }, + "node_modules/zod-validation-error": { + "version": "4.0.2", + "resolved": "https://registry.npmmirror.com/zod-validation-error/-/zod-validation-error-4.0.2.tgz", + "integrity": "sha512-Q6/nZLe6jxuU80qb/4uJ4t5v2VEZ44lzQjPDhYJNztRQ4wyWc6VF3D3Kb/fAuPetZQnhS3hnajCf9CsWesghLQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.0.0" + }, + "peerDependencies": { + "zod": "^3.25.0 || ^4.0.0" + } + }, + "packages/ui-react": { + "name": "@dg/ui-react", + "version": "1.0.0", + "dependencies": { + "@floating-ui/react": "^0.27.20", + "react-hotkeys-hook": "^5.3.3" + }, + "devDependencies": { + "@eslint/js": "^10.0.1", + "@microsoft/api-extractor": "^7.60.1", + "@types/node": "^24.19.2", + "@types/react": "^19.3.0", + "@types/react-dom": "^19.3.0", + "@vitejs/plugin-react": "^6.1.2", + "eslint": "^10.15.0", + "eslint-plugin-react-hooks": "^7.1.1", + "glob": "^14.0.6", + "globals": "^17.14.0", + "prettier": "^3.10.1", + "react": "^19.3.1", + "react-dom": "^19.3.1", + "tinyglobby": "^0.2.17", + "ts-node": "^10.9.2", + "typescript": "^6.0.3", + "typescript-eslint": "^8.73.0", + "unplugin-dts": "^1.1.2", + "vite": "^8.3.4" + }, + "peerDependencies": { + "react": "^19.0.0", + "react-dom": "^19.0.0" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..eb01bfd --- /dev/null +++ b/package.json @@ -0,0 +1,6 @@ +{ + "workspaces": [ + "./packages/*", + "./apps/*" + ] +} \ No newline at end of file diff --git a/packages/ui-react/.gitignore b/packages/ui-react/.gitignore new file mode 100644 index 0000000..a547bf3 --- /dev/null +++ b/packages/ui-react/.gitignore @@ -0,0 +1,24 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/packages/ui-react/.npmrc b/packages/ui-react/.npmrc new file mode 100644 index 0000000..8b02f75 --- /dev/null +++ b/packages/ui-react/.npmrc @@ -0,0 +1 @@ +registry = https://registry.npmmirror.com/ \ No newline at end of file diff --git a/packages/ui-react/eslint.config.js b/packages/ui-react/eslint.config.js new file mode 100644 index 0000000..ef614d2 --- /dev/null +++ b/packages/ui-react/eslint.config.js @@ -0,0 +1,22 @@ +import js from '@eslint/js' +import globals from 'globals' +import reactHooks from 'eslint-plugin-react-hooks' +import reactRefresh from 'eslint-plugin-react-refresh' +import tseslint from 'typescript-eslint' +import { defineConfig, globalIgnores } from 'eslint/config' + +export default defineConfig([ + globalIgnores(['dist']), + { + files: ['**/*.{ts,tsx}'], + extends: [ + js.configs.recommended, + tseslint.configs.recommended, + reactHooks.configs.flat.recommended, + reactRefresh.configs.vite, + ], + languageOptions: { + globals: globals.browser, + }, + }, +]) diff --git a/packages/ui-react/gallery/app.tsx b/packages/ui-react/gallery/app.tsx new file mode 100644 index 0000000..997f177 --- /dev/null +++ b/packages/ui-react/gallery/app.tsx @@ -0,0 +1,14 @@ +import { ButtonGallery } from "./button-gallery"; +import { Theme } from "../src/components/theme/theme"; +import { PopoverGallery } from "./popover-gallery"; + +export function App() { + return ( +
+ + + + +
+ ); +} diff --git a/packages/ui-react/gallery/button-gallery.tsx b/packages/ui-react/gallery/button-gallery.tsx new file mode 100644 index 0000000..bd72329 --- /dev/null +++ b/packages/ui-react/gallery/button-gallery.tsx @@ -0,0 +1,109 @@ +import { DownloadSvg } from "../src/assets/svg/DownloadSvg"; +import { Button } from "../src/components/button/button"; +import { IW } from "./iw"; +import { OW } from "./ow"; + +export const ButtonGallery = () => { + return ( + + + + + + + + + + + + + + + + + + + + {" "} + + + + + + + {" "} + + + + + + + + + + ); +}; diff --git a/packages/ui-react/gallery/iw.tsx b/packages/ui-react/gallery/iw.tsx new file mode 100644 index 0000000..26652c8 --- /dev/null +++ b/packages/ui-react/gallery/iw.tsx @@ -0,0 +1,15 @@ +import type { ReactNode } from "react"; + +export const IW = ({ children }: { children: ReactNode }) => { + return ( +
+ {children} +
+ ); +}; diff --git a/packages/ui-react/gallery/main.tsx b/packages/ui-react/gallery/main.tsx new file mode 100644 index 0000000..0a44c69 --- /dev/null +++ b/packages/ui-react/gallery/main.tsx @@ -0,0 +1,10 @@ +import { StrictMode } from "react"; +import { createRoot } from "react-dom/client"; +import "../src/index.css"; +import { App } from "./app.tsx"; + +createRoot(document.getElementById("root")!).render( + + + , +); diff --git a/packages/ui-react/gallery/ow.tsx b/packages/ui-react/gallery/ow.tsx new file mode 100644 index 0000000..b0c174b --- /dev/null +++ b/packages/ui-react/gallery/ow.tsx @@ -0,0 +1,17 @@ +import type { ReactNode } from "react"; + +export const OW = ({ children }: { children: ReactNode }) => { + return ( +
+ {children} +
+ ); +}; diff --git a/packages/ui-react/gallery/popover-gallery.tsx b/packages/ui-react/gallery/popover-gallery.tsx new file mode 100644 index 0000000..745f11a --- /dev/null +++ b/packages/ui-react/gallery/popover-gallery.tsx @@ -0,0 +1,24 @@ + +import { Button } from "../src/components/button/button"; +import { Popover } from "../src/components/popover/popover"; +import { PopoverDropdown } from "../src/components/popover/popover-dropdown"; +import { PopoverTrigger } from "../src/components/popover/popover-trigger"; +import { IW } from "./iw"; +import { OW } from "./ow"; + +export const PopoverGallery = () => { + return ( + + + + + + + + This is Popover Content ! + + + + + ); +}; diff --git a/packages/ui-react/index.html b/packages/ui-react/index.html new file mode 100644 index 0000000..eac6c2f --- /dev/null +++ b/packages/ui-react/index.html @@ -0,0 +1,12 @@ + + + + + + vite-project + + +
+ + + diff --git a/packages/ui-react/note/display 讲解.md b/packages/ui-react/note/display 讲解.md new file mode 100644 index 0000000..1dac31e --- /dev/null +++ b/packages/ui-react/note/display 讲解.md @@ -0,0 +1,37 @@ +block,flex,inline-block,inline-flex 有什么区别? + +# 内联元素 + +inline 或 inline- 前缀,就是内联元素的意思,内联元素的 width 和 height 是不起效果的。 +但是 inline-block 可以正常设置 width 和 height。 + +inline,顾名思义,就是和【inline 文本】一个地位,大多数时候,你可能想要【一行元素】而不是【一行文本】。 + +text-align,可以将文本居中,因此也能让 inline- 的元素居中。 + +inline 的换行行为,就是越界才换行。 + +# 易错点 + +span 是一个 inline 元素,里面不应该使用 svg 这种 block 元素。 +有些人的 span 里面只有一个 svg 元素,因此他们没发现问题所在。 +如果你尝试,把【文本】和【svg】放进同一个 span 元素里,你就会发现 text-align:center 无法使两者居中,【svg】不受 text-align 的影响。 +你开始疑问,emoj 表情包里面肯定是有 svg 的,他是怎么放进一行话中的? +你查了下发现,对话框用的是 div,表情用的是 i,文本用的是 span。 + +# 块级元素 + +flex,block,自身作为子元素,要求换行,跟 inline 元素相反。 +两个子元素,一个 flex,一个 block,每个独占一行。 + +父元素 【align-items: center】 才能使块元素居中。 + +block,自身作为父元素,允许子元素换行,换不换,看子元素自己意愿。 +flex,自身作为父元素,不允许子元素换行。 +另外要注意,flex-wrap 的 默认值是 nowrap,但是可以修改成 wrap,模拟 inline 的越界换行。 + +# 网格元素 + +grid,与 justify-items,和 align-items 相关,每一个 cell 单元格,就是一个 item。 + +# 大部分情况是用不到 inline 的 \ No newline at end of file diff --git a/packages/ui-react/note/floating-ui 常见错误.md b/packages/ui-react/note/floating-ui 常见错误.md new file mode 100644 index 0000000..05bca59 --- /dev/null +++ b/packages/ui-react/note/floating-ui 常见错误.md @@ -0,0 +1,21 @@ +# isValidElement 不通过 + +通常是 SvgComponent 的属性使用了短横线,而不是驼峰。 + +# 弹框在页面左上角 + +mergeProps 里面的 function 函数合并出问题了。 + +# 点击无反应 + + 没做 【isMounted && 】的判断。 + + setIsOpen(!isOpen),而不是 setIsOpen(true)。 + +# hover 不亮 + +brandRecipe 可能漏了,css 变量没有提供。 + +# FloatingArrow 箭头位置不对 + +arrow() 需要位于 offset,shift,flip 之后。 \ No newline at end of file diff --git a/packages/ui-react/note/md提升空间.md b/packages/ui-react/note/md提升空间.md new file mode 100644 index 0000000..fabad24 --- /dev/null +++ b/packages/ui-react/note/md提升空间.md @@ -0,0 +1,21 @@ +当你没有【对应格式】的【编辑器】来给你解析时,始终确保【原生文本】是【人类可读的】。 +就像【任何格式】的文件,都可以用txt来浏览。 + +md 的语法是有缺陷的,【前标签】和【后标签】相互夹起来,而不是用【换行】这种容易被误解的方式,否则一旦有人删除空行,就会导致排版问题。 + +【前后标签】方案,适配 style 应用,你可以 【div + class】,或者直接创造一个新标签, +例如【】。 + +为了人类可读,始终不建议标签上直接写【style 属性】而是使用【class 属性】,因为这些不是内容,只是告诉渲染器如何渲染,我非常支持【废除 style 属性】。 + +css 文件应该支持 atom 解构赋值,多条样式写好了,封装成一个 atom,就不要反反复复写了。 + +【class属性】应取消按【特征值】大小覆盖的逻辑,而是始终【后面覆盖前面】。 + + +为了解决这个问题,我自己写了【基于前缀】的【class 替换】逻辑 【cpm】,旧的直接去掉,换新的上。 + +如果后面覆盖前面,那么旧的根本不用去掉,直接在末尾加新的即可,也不用开发者学习,要去掉哪些【旧前缀】? + + + diff --git a/packages/ui-react/note/menuitem 宽度问题.md b/packages/ui-react/note/menuitem 宽度问题.md new file mode 100644 index 0000000..7efe386 --- /dev/null +++ b/packages/ui-react/note/menuitem 宽度问题.md @@ -0,0 +1,12 @@ +最大问题就是,checkbox,icon,indicator,这三者会拉长长度。 + +一个 20 条 item,要有一个具有 checkbox,剩下的全部都得加宽。 + +【blender】的方案是,有 checkbox 的,就不要 icon,并始终保留 indicator 的位置。 + +通常一个【3d viewport】需要做选择,【显示曲线】或【显示面】等。 +有 icon 可以极其方便用户,一看便知道。 +不过此处,不是用 checkbox 来选中状态,而是用【背景色】。 +但是我希望,这个 viewport 的独立菜单中,也可以看到这个 checkbox。 +这时候,checkbox 和 icon 是必须同时显示,才能让用户通过 icon 识别。 + diff --git a/packages/ui-react/note/undefind 判空不要忘.md b/packages/ui-react/note/undefind 判空不要忘.md new file mode 100644 index 0000000..88ae640 --- /dev/null +++ b/packages/ui-react/note/undefind 判空不要忘.md @@ -0,0 +1,7 @@ +不需要判空的,只有原始 string,number这类型。 + +- 带 【?】号的 +- 带【 | undefind 】交叉类型的 +- 非原始类型,例如 Array [],Map,对象 {}, 等 + +上面全部都是要判空的。 \ No newline at end of file diff --git a/packages/ui-react/note/什么时候使用浮动.md b/packages/ui-react/note/什么时候使用浮动.md new file mode 100644 index 0000000..3f7e395 --- /dev/null +++ b/packages/ui-react/note/什么时候使用浮动.md @@ -0,0 +1,3 @@ +如果只是,以便靠左,一边靠右,那就不要用浮动。 + +使用浮动 float 的情况,只有文档内,图片需要【文字环绕】的情况。 \ No newline at end of file diff --git a/packages/ui-react/note/响应式与固定px.md b/packages/ui-react/note/响应式与固定px.md new file mode 100644 index 0000000..314350b --- /dev/null +++ b/packages/ui-react/note/响应式与固定px.md @@ -0,0 +1,15 @@ +例如,一个表格,当在平板电脑上时,是否需要放大? +如果是手机模式,按理说表格应该尽可能,自动拉扯,以便占满屏幕。 + +一个桌面网页,在手机上被浏览,往往会【触发换行】。 +不换行,是反操作体验的,没人希望,每一行内容都要手动滚动。 + +因此,一些导航栏,需要监控是否超出屏幕,用一些特殊方法,提供一个菜单,覆盖默认换行行为。 + +始终考虑【超出屏幕】就是【面向响应式】设计。 + +每个组件的【长度】是不一样的,一旦下一个换行,前一个的末尾,会不会留有空白? + +导航栏,这个组件本身,可以全部替换成菜单。 + +标签栏,就会有【长度】问题,但【wps-sheet】和【excel】的方案,【...按钮】省略按钮,和【菜单按钮】悬浮在【最右侧】,不提供滚动条,而是提供2个【箭头按钮】,拖动时悬浮在【...按钮】上,自动滚动。 \ No newline at end of file diff --git a/packages/ui-react/note/类型转换与收窄.md b/packages/ui-react/note/类型转换与收窄.md new file mode 100644 index 0000000..6ff4935 --- /dev/null +++ b/packages/ui-react/note/类型转换与收窄.md @@ -0,0 +1,26 @@ +先说一个结论, ts 的 typeof 只能判断原始类型, 例如, string, numnber 这些。 + +你自己 用 type 定义了 2 个自定义类型,是无法用 typeof 判断的,这导致非常麻烦的问题。 + +如果不是 ts,而是强类型语言,就是简单的 typeof 就解决的事情。 + +所以,编译时,是永远无法检查出来的,只有运行时报错。 + +你只要确定【兼容】,就直接用 AS 强制转换,不用管其他的。 + +其他开发者乱传入参数,那就让他们运行时报错,我们不搞什么动态校验。 + +`````` +export function mergeProps(classMergeFn?: ClassMergeFn | AnyProps, ...propsList: AnyProps[]): AnyProps { + + // 始终提供默认值,否则后面大量判空 + let _classMergeFn = defaultClassMergeFn; + let _propsList = propsList; + + if (typeof classMergeFn === "function") { + _classMergeFn = classMergeFn as ClassMergeFn + } else if (classMergeFn != undefined) { + _propsList = [classMergeFn as AnyProps, ...propsList] + } +} +`````` \ No newline at end of file diff --git a/packages/ui-react/note/设置 hover focus active.md b/packages/ui-react/note/设置 hover focus active.md new file mode 100644 index 0000000..c254b80 --- /dev/null +++ b/packages/ui-react/note/设置 hover focus active.md @@ -0,0 +1,41 @@ +# 顺序问题 + +我最初以为,&:focus 和 &:active 是像 switch 一样的分支判断,但其实不是。 + +focus 状态同时也会激活 active 状态。 + +你必须把 &:focus 放在 &:active 的前面,这样子才不会让 active 覆盖了 focus。 + +# 如何区分鼠标和键盘焦点 + +:focus,鼠标,触控,键盘都有。 + +:focus-visable,仅键盘焦点。 + +:focus:not(:focus-visible),从三者中排除键盘焦点,剩下就是鼠标,触控焦点。 + +# 如何消除焦点边框 + + +.reset { + + /* 鼠标与触控焦点,必须在 :focus-visible 之后 */ + button:focus:not(:focus-visible), + div:focus:not(:focus-visible) { + outline: none; + } + + /* 单独设置键盘焦点,必须在 :focus:not(:focus-visible) 之前 */ + button:focus-visible, + div:focus-visible { + outline: 2px solid var(--focus-outline-color); + outline-offset: 1px; + } + +} + + +# 如何用色 + +有背景色的,hover 深,active 浅,例如,filled,subtle。 +无背景色的,hover 浅,active 深,例如,outline,ghost。 \ No newline at end of file diff --git a/packages/ui-react/package.json b/packages/ui-react/package.json new file mode 100644 index 0000000..951d67c --- /dev/null +++ b/packages/ui-react/package.json @@ -0,0 +1,57 @@ +{ + "name": "@dg/ui-react", + "version": "1.0.0", + "type": "module", + "files": [ + "dist" + ], + "sideEffects": [ + "*.css" + ], + "exports": { + ".": { + "import": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.cjs" + } + }, + "./index.css": "./dist/index.css" + }, + "scripts": { + "build": "vite build", + "dev": "npm run build && vite dev" + }, + "devDependencies": { + "@eslint/js": "^10.0.1", + "@microsoft/api-extractor": "^7.60.1", + "@types/node": "^24.19.2", + "@types/react": "^19.3.0", + "@types/react-dom": "^19.3.0", + "@vitejs/plugin-react": "^6.1.2", + "eslint": "^10.15.0", + "eslint-plugin-react-hooks": "^7.1.1", + "glob": "^14.0.6", + "globals": "^17.14.0", + "prettier": "^3.10.1", + "react": "^19.3.1", + "react-dom": "^19.3.1", + "tinyglobby": "^0.2.17", + "ts-node": "^10.9.2", + "typescript": "^6.0.3", + "typescript-eslint": "^8.73.0", + "unplugin-dts": "^1.1.2", + "vite": "^8.3.4" + }, + "dependencies": { + "@floating-ui/react": "^0.27.20", + "react-hotkeys-hook": "^5.3.3" + }, + "peerDependencies": { + "react": "^19.0.0", + "react-dom": "^19.0.0" + } +} diff --git a/packages/ui-react/src/assets/svg/BoldSvg.tsx b/packages/ui-react/src/assets/svg/BoldSvg.tsx new file mode 100644 index 0000000..3f61f26 --- /dev/null +++ b/packages/ui-react/src/assets/svg/BoldSvg.tsx @@ -0,0 +1,12 @@ +export const BoldSvg = (props: React.SVGProps) => ( + + + +); diff --git a/packages/ui-react/src/assets/svg/CheckIndicatorSvg.tsx b/packages/ui-react/src/assets/svg/CheckIndicatorSvg.tsx new file mode 100644 index 0000000..6b63f79 --- /dev/null +++ b/packages/ui-react/src/assets/svg/CheckIndicatorSvg.tsx @@ -0,0 +1,8 @@ +export const CheckIndicatorSvg = (props: React.SVGProps) => ( + + + +); diff --git a/packages/ui-react/src/assets/svg/ChevronRightSvg.tsx b/packages/ui-react/src/assets/svg/ChevronRightSvg.tsx new file mode 100644 index 0000000..0ee663b --- /dev/null +++ b/packages/ui-react/src/assets/svg/ChevronRightSvg.tsx @@ -0,0 +1,12 @@ +export const ChevronRightSvg = (props: React.SVGProps) => ( + + + +); diff --git a/packages/ui-react/src/assets/svg/CloseSvg.tsx b/packages/ui-react/src/assets/svg/CloseSvg.tsx new file mode 100644 index 0000000..8686948 --- /dev/null +++ b/packages/ui-react/src/assets/svg/CloseSvg.tsx @@ -0,0 +1,12 @@ +export const CloseSvg = (props: React.SVGProps) => ( + + + +); diff --git a/packages/ui-react/src/assets/svg/CutSvg.tsx b/packages/ui-react/src/assets/svg/CutSvg.tsx new file mode 100644 index 0000000..3b953fc --- /dev/null +++ b/packages/ui-react/src/assets/svg/CutSvg.tsx @@ -0,0 +1,8 @@ +export const CutSvg = (props: React.SVGProps) => ( + + + +); diff --git a/packages/ui-react/src/assets/svg/DownloadSvg.tsx b/packages/ui-react/src/assets/svg/DownloadSvg.tsx new file mode 100644 index 0000000..d97a44e --- /dev/null +++ b/packages/ui-react/src/assets/svg/DownloadSvg.tsx @@ -0,0 +1,6 @@ +export const DownloadSvg = (props: React.SVGProps) => ( + + + + +); diff --git a/packages/ui-react/src/assets/svg/FileSvg.tsx b/packages/ui-react/src/assets/svg/FileSvg.tsx new file mode 100644 index 0000000..fac4fee --- /dev/null +++ b/packages/ui-react/src/assets/svg/FileSvg.tsx @@ -0,0 +1,14 @@ +export const FileSvg = (props: React.SVGProps) => ( + + + + + + +); diff --git a/packages/ui-react/src/assets/svg/KeySvg.tsx b/packages/ui-react/src/assets/svg/KeySvg.tsx new file mode 100644 index 0000000..8136e7e --- /dev/null +++ b/packages/ui-react/src/assets/svg/KeySvg.tsx @@ -0,0 +1,8 @@ +export const KeySvg = (props: React.SVGProps) => ( + + + +); diff --git a/packages/ui-react/src/assets/svg/MeshSvg.tsx b/packages/ui-react/src/assets/svg/MeshSvg.tsx new file mode 100644 index 0000000..582bb6b --- /dev/null +++ b/packages/ui-react/src/assets/svg/MeshSvg.tsx @@ -0,0 +1,14 @@ +export const MeshSvg = (props: React.SVGProps) => ( + + + + + + +); diff --git a/packages/ui-react/src/assets/svg/MoonSvg.tsx b/packages/ui-react/src/assets/svg/MoonSvg.tsx new file mode 100644 index 0000000..5304a65 --- /dev/null +++ b/packages/ui-react/src/assets/svg/MoonSvg.tsx @@ -0,0 +1,12 @@ +export const MoonSvg = (props: React.SVGProps) => ( + + + +); diff --git a/packages/ui-react/src/assets/svg/PasteSvg.tsx b/packages/ui-react/src/assets/svg/PasteSvg.tsx new file mode 100644 index 0000000..244848e --- /dev/null +++ b/packages/ui-react/src/assets/svg/PasteSvg.tsx @@ -0,0 +1,8 @@ +export const PasteSvg = (props: React.SVGProps) => ( + + + +); diff --git a/packages/ui-react/src/assets/svg/Ruler.tsx b/packages/ui-react/src/assets/svg/Ruler.tsx new file mode 100644 index 0000000..7f59fdc --- /dev/null +++ b/packages/ui-react/src/assets/svg/Ruler.tsx @@ -0,0 +1,12 @@ +export const RulerSvg = (props: React.SVGProps) => ( + + + +); diff --git a/packages/ui-react/src/assets/svg/SearchSvg.tsx b/packages/ui-react/src/assets/svg/SearchSvg.tsx new file mode 100644 index 0000000..fc05409 --- /dev/null +++ b/packages/ui-react/src/assets/svg/SearchSvg.tsx @@ -0,0 +1,8 @@ +export const SearchSvg = (props: React.SVGProps) => ( + + + +); diff --git a/packages/ui-react/src/assets/svg/SettingSvg.tsx b/packages/ui-react/src/assets/svg/SettingSvg.tsx new file mode 100644 index 0000000..2b8a57f --- /dev/null +++ b/packages/ui-react/src/assets/svg/SettingSvg.tsx @@ -0,0 +1,9 @@ +export const SettingSvg = (props: React.SVGProps) => ( + + + +); diff --git a/packages/ui-react/src/assets/svg/SpinnerSvg.tsx b/packages/ui-react/src/assets/svg/SpinnerSvg.tsx new file mode 100644 index 0000000..61cc1f6 --- /dev/null +++ b/packages/ui-react/src/assets/svg/SpinnerSvg.tsx @@ -0,0 +1,23 @@ +export const SpinnerSvg = (props: React.SVGProps) => { + return ( + + + + + + + ); +}; diff --git a/packages/ui-react/src/assets/svg/SunSvg.tsx b/packages/ui-react/src/assets/svg/SunSvg.tsx new file mode 100644 index 0000000..e977265 --- /dev/null +++ b/packages/ui-react/src/assets/svg/SunSvg.tsx @@ -0,0 +1,12 @@ +export const SunSvg = (props: React.SVGProps) => ( + + + +); diff --git a/packages/ui-react/src/assets/svg/UserSvg.tsx b/packages/ui-react/src/assets/svg/UserSvg.tsx new file mode 100644 index 0000000..ec51b40 --- /dev/null +++ b/packages/ui-react/src/assets/svg/UserSvg.tsx @@ -0,0 +1,14 @@ +export const UserSvg = (props: React.SVGProps) => { + return ( + + + + ); +}; diff --git a/packages/ui-react/src/assets/svg/VolumeHighSvg.tsx b/packages/ui-react/src/assets/svg/VolumeHighSvg.tsx new file mode 100644 index 0000000..4388fac --- /dev/null +++ b/packages/ui-react/src/assets/svg/VolumeHighSvg.tsx @@ -0,0 +1,12 @@ +export const VolumeHighSvg = (props: React.SVGProps) => ( + + + +); diff --git a/packages/ui-react/src/assets/svg/VolumeLowSvg.tsx b/packages/ui-react/src/assets/svg/VolumeLowSvg.tsx new file mode 100644 index 0000000..afe71d7 --- /dev/null +++ b/packages/ui-react/src/assets/svg/VolumeLowSvg.tsx @@ -0,0 +1,12 @@ +export const VolumeLowSvg = (props: React.SVGProps) => ( + + + +); diff --git a/packages/ui-react/src/assets/svg/VolumeMuteSvg.tsx b/packages/ui-react/src/assets/svg/VolumeMuteSvg.tsx new file mode 100644 index 0000000..784bf21 --- /dev/null +++ b/packages/ui-react/src/assets/svg/VolumeMuteSvg.tsx @@ -0,0 +1,12 @@ +export const VolumeMuteSvg = (props: React.SVGProps) => ( + + + +); diff --git a/packages/ui-react/src/components/badge/badge.tsx b/packages/ui-react/src/components/badge/badge.tsx new file mode 100644 index 0000000..22b16a5 --- /dev/null +++ b/packages/ui-react/src/components/badge/badge.tsx @@ -0,0 +1,54 @@ +import { + type CSSProperties, +} from "react"; +import { mergeClass } from "../../styles/utils/merge-class"; +import { displayRecipe } from "../../styles/recipes/display-recipe"; +import { dotSizeRecipe } from "../../styles/recipes/dot-size-recipe"; +import type { CommonProps } from "../../utils/CommonProps"; +import { brandRecipe } from "../../styles/recipes/brand-recipe"; + +export type BadgeProps = CommonProps & { + size?: "xs" | "sm" | "md" | "lg"; +} & { + isDot?: boolean; + indicatorContent?: string; +}; + +export const Badge = (props: BadgeProps) => { + const { + indicatorContent = "", + isDot = false, + size = "md", + children, + className = "", + ref, + ...rest + } = props; + + const wrapperStyle: CSSProperties = { + position: "relative", + height: "fit", + width: "fit", + }; + + const indicatorStyle: CSSProperties = { + position: "absolute", + top: 0, + right: 0, + transform: "translate(50%,-50%)", + borderRadius: "9999px", + }; + + + + const indicatorClass = mergeClass(displayRecipe(), dotSizeRecipe({ size }), brandRecipe({ brand: "danger" }), "pointer-events--none", className); + + return ( +
+ {children} +
+ {indicatorContent} +
+
+ ); +}; diff --git a/packages/ui-react/src/components/button/button.tsx b/packages/ui-react/src/components/button/button.tsx new file mode 100644 index 0000000..14c943d --- /dev/null +++ b/packages/ui-react/src/components/button/button.tsx @@ -0,0 +1,115 @@ +import React, { useState, type CSSProperties, type ReactNode } from "react"; +import { SpinnerSvg } from "../../assets/svg/SpinnerSvg"; +import { Icon } from "../icon/icon"; +import { displayRecipe } from "../../styles/recipes/display-recipe"; +import { itemSizeRecipe } from "../../styles/recipes/item-size-recipe"; +import { variantRecipe } from "../../styles/recipes/variant-recipe"; +import { brandRecipe } from "../../styles/recipes/brand-recipe"; +import type { CommonProps } from "../../utils/CommonProps"; +import { mergeClass } from "../../styles/utils/merge-class"; + +export type ButtonProps = CommonProps & { + size?: "xs" | "sm" | "md" | "lg"; + variant?: "filled" | "outline" | "subtle" | "ghost"; + shape?: "rounded" | "square" | "circle"; + brand?: "success" | "danger" | "info" | "warning" | "default"; + width?: string; +} & { + isIconOnly?: boolean; + isHideIcon?: boolean; +} & { + canLoading?: boolean; + isLoading?: boolean; +} & { + iconSvg?: ReactNode; + loadingIconSvg?: ReactNode; + onClick?: (e?: React.MouseEvent) => void; +}; + +export const Button = (props: ButtonProps) => { + const { + size = "md", + variant = "filled", + shape = "rounded", + brand, + // =========================== + style, + width, + // =========================== + isIconOnly = false, + isHideIcon = false, + // =========================== + canLoading = false, + isLoading, + // =========================== + isDisabled = false, + // ========================= + className = "", + children, + // ========================== + iconSvg, + loadingIconSvg = , + ref, + onClick, + ...rest + } = props; + + const [innerIsLoading, setInnerIsIsLoading] = useState<{ + state: boolean; + class: string; + }>({ state: false, class: "" }); + + const brandFinal = + brand != undefined ? brand : variant == "filled" ? "info" : "default"; + + // ==================================================================================== + + const rootClass = mergeClass( + displayRecipe(), + itemSizeRecipe({ size, shape, isIconOnly, isLongPadding: true }), + variantRecipe({ variant, isDisabled }), + brandRecipe({ brand: brandFinal }), + className, + ); + + let rootStyle: CSSProperties = { + transitionDuration: "all 5s ease-in-out", + width: width, + ...style, + }; + + let loadingClass = mergeClass(""); + + // ========================================================================================= + + function clickHandler(e: React.MouseEvent) { + if (canLoading && isLoading == undefined) { + } + onClick?.(e); + } + + // ========================================================================================= + + const icon = {iconSvg}; + const loadingIcon = ( + + {loadingIconSvg} + + ); + + return ( + + ); +}; + +Button.displayName = "Button"; diff --git a/packages/ui-react/src/components/checkbox/checkbox.tsx b/packages/ui-react/src/components/checkbox/checkbox.tsx new file mode 100644 index 0000000..1f62d83 --- /dev/null +++ b/packages/ui-react/src/components/checkbox/checkbox.tsx @@ -0,0 +1,36 @@ +import { useState, type ComponentPropsWithRef } from "react"; +import { CheckIndicatorSvg } from "../../assets/svg/CheckIndicatorSvg"; +import type { CommonProps } from "../../utils/CommonProps"; +import { mergeClass } from "../../styles/utils/merge-class"; +import { inlineSizeRecipe } from "../../styles/recipes/inline-size-recipe"; + +export type CheckboxProps = CommonProps & { + size?: "sm" | "md", + defaultCheck?: boolean, + onChange?: (preCheck?: boolean, nextCheck?: boolean) => void, + controllerCheck?: boolean +}; + +export const Checkbox = (props: CheckboxProps) => { + const { defaultCheck = false, ref, onChange, size = "sm", className = "" } = props + + const [isCheck, setIsCheck] = useState(defaultCheck) + + const rootClass = mergeClass(inlineSizeRecipe({ size, shape: "rounded", isIconOnly: true }), className) + + const inputClass = mergeClass("sr-only") + + const indicatorClass = mergeClass(inlineSizeRecipe({ size, shape: "rounded" })) + + function clickHandler() { + const preValue = isCheck + setIsCheck(!isCheck) + onChange?.(preValue, isCheck) + } + + return
+ + {isCheck && } +
+} +Checkbox.displayName = "Checkbox" \ No newline at end of file diff --git a/packages/ui-react/src/components/icon/icon.tsx b/packages/ui-react/src/components/icon/icon.tsx new file mode 100644 index 0000000..594ca4b --- /dev/null +++ b/packages/ui-react/src/components/icon/icon.tsx @@ -0,0 +1,24 @@ + +import { Slot } from "../../utils/slot"; +import type { CommonProps } from "../../utils/CommonProps"; +import { inlineSizeRecipe } from "../../styles/recipes/inline-size-recipe"; +import { mergeClass } from "../../styles/utils/merge-class"; + +export type IconProps = CommonProps & { + size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl"; + shape?: "square" | "circle" | "rounded"; +} & { + onClick?: (e?: React.MouseEvent) => void +}; + +export const Icon = (props: IconProps) => { + const { size = "md", className = "", children, shape = "square", ref, ...rest } = props; + + const rootClass = mergeClass(inlineSizeRecipe({ size, shape, isIconOnly: "true" }), className); + + return ( + {children} + ); +}; + +Icon.displayName = "Icon"; diff --git a/packages/ui-react/src/components/menu/menu-check-item.tsx b/packages/ui-react/src/components/menu/menu-check-item.tsx new file mode 100644 index 0000000..13dae17 --- /dev/null +++ b/packages/ui-react/src/components/menu/menu-check-item.tsx @@ -0,0 +1,86 @@ + +import { useMenuFloatingContext } from "./use-menu-floating-context"; +import { useListItem, useMergeRefs } from "@floating-ui/react"; +import { useMenuContext } from "./use-menu-context"; +import React, { useState, type CSSProperties } from "react"; +import { Icon } from "../icon/icon"; +import { Checkbox } from "../checkbox/checkbox"; +import { displayRecipe } from "../../styles/recipes/display-recipe"; +import { mergeClass } from "../../styles/utils/merge-class"; +import { itemSizeRecipe } from "../../styles/recipes/item-size-recipe"; +import { variantRecipe } from "../../styles/recipes/variant-recipe"; +import type { CommonProps } from "../../utils/CommonProps"; +import { containerRecipe } from "../../styles/recipes/container-recipe"; + +export type MenuCheckItemProps = CommonProps & { + iconSvg?: React.ReactNode; + hotkey?: string; + check?: boolean + onChange?: (preCheck?: boolean, nextCheck?: boolean) => void +}; + +export const MenuCheckItem = (props: MenuCheckItemProps) => { + const { ref, children, iconSvg =
, style, hotkey, isDisabled = false, onChange, ...rest } = props; + + const [isCheck, setIsCheck] = useState(false) + + // =============== Menu Context ==================================================================== + + const menuContext = useMenuContext(); + const { size = "sm" } = menuContext! + + // =============== Menu Floating Context ==================================================================== + + const menuFloatingContext = useMenuFloatingContext(); + const { getItemProps, activeIndex, isOpen, } = menuFloatingContext! + + const item = useListItem(); + const isActive = item.index === activeIndex; + + // ================== Style ================================================================= + + const rootClass = mergeClass(displayRecipe({ justifyContent: "between", }), containerRecipe({ hasFocusOutline: "false" }), + itemSizeRecipe({ size, shape: "rounded" }), + variantRecipe({ variant: "ghost", isDisabled })) + + const rootStyle: CSSProperties = { + width: "100%", + ...style + } + + const startSectionClass = displayRecipe() + + const endSectionClass = displayRecipe() + + function handleOnClick() { + const preCheck = isCheck + setIsCheck(!isCheck) + onChange?.(preCheck, isCheck) + } + + return + +}; diff --git a/packages/ui-react/src/components/menu/menu-dropdown.tsx b/packages/ui-react/src/components/menu/menu-dropdown.tsx new file mode 100644 index 0000000..6d76558 --- /dev/null +++ b/packages/ui-react/src/components/menu/menu-dropdown.tsx @@ -0,0 +1,55 @@ +import type { ComponentPropsWithoutRef, CSSProperties } from "react"; +import { + FloatingFocusManager, + FloatingList, + FloatingPortal, +} from "@floating-ui/react"; +import { useMenuFloatingContext } from "./use-menu-floating-context"; +import { useMenuContext } from "./use-menu-context"; +import { mergeClass } from "../../styles/utils/merge-class"; +import { containerRecipe } from "../../styles/recipes/container-recipe" +import { useThemeContext } from "../theme/use-theme-context"; + + +export type MenuDropdownProps = ComponentPropsWithoutRef<"div"> & { + modal?: boolean; +}; + +export const MenuDropdown = (props: MenuDropdownProps) => { + const { modal = true, className = "", children, ...rest } = props; + + const { size } = useMenuContext()! + const { refs, elementsRef, context, floatingStyles, getFloatingProps, isNested, isOpen } = useMenuFloatingContext()!; + + // ============================================================================================================== + + const { themeBaseClass, themeClass } = useThemeContext()! + + // =============================================================================================================== + + const rootClass = mergeClass(themeBaseClass, themeClass, containerRecipe(), className); + + const padding = size == "sm" ? "4px" : (size == "md" ? "8px" : undefined); + const borderRadius = size == "sm" ? "4px" : (size == "md" ? "8px" : undefined); + + const rootStyle: CSSProperties = { + ...floatingStyles, + borderRadius: borderRadius, + padding: padding, + // invisable the outline + outline: 0, + background: "var(--base-bg)" + + } + + return + {isOpen && + +
+ {children} +
+
+
+ } +
+}; diff --git a/packages/ui-react/src/components/menu/menu-item.tsx b/packages/ui-react/src/components/menu/menu-item.tsx new file mode 100644 index 0000000..576e001 --- /dev/null +++ b/packages/ui-react/src/components/menu/menu-item.tsx @@ -0,0 +1,107 @@ +import { useMenuFloatingContext } from "./use-menu-floating-context"; +import { useListItem, useMergeRefs } from "@floating-ui/react"; +import React, { type CSSProperties } from "react"; +import { Icon } from "../icon/icon"; +import { ChevronRightSvg } from "../../assets/svg/ChevronRightSvg"; +import { useMenuTriggerContext } from "./use-menu-trigger-context"; +import { useMenuContext } from "./use-menu-context"; +import { mergeClass } from "../../styles/utils/merge-class"; +import { displayRecipe } from "../../styles/recipes/display-recipe"; +import { itemSizeRecipe } from "../../styles/recipes/item-size-recipe"; +import { variantRecipe } from "../../styles/recipes/variant-recipe"; +import type { CommonProps } from "../../utils/CommonProps"; +import { containerRecipe } from "../../styles/recipes/container-recipe"; + +export type MenuItemProps = CommonProps & { + onClick?: (e?: React.MouseEvent) => void; + iconSvg?: React.ReactNode; + indicatorSvg?: React.ReactNode; + hotkey?: string; +}; + +export const MenuItem = (props: MenuItemProps) => { + const { + ref, + children, + iconSvg =
, + indicatorSvg = , + onClick, + style, + hotkey, + isDisabled = false, + ...rest + } = props; + + // =============== Menu Context ==================================================================== + + const { size = "sm" } = useMenuContext()!; + + // =============== Menu Floating Context ==================================================================== + + const menuFloatingContext = useMenuFloatingContext(); + const { getItemProps, activeIndex, isOpen } = menuFloatingContext!; + + const item = useListItem(); + const isActive = item.index === activeIndex; + + // =============== Menu Trigger Context ==================================================================== + + const menuTriggerContext = useMenuTriggerContext(); + + const isTrigger = !!menuTriggerContext; + + // ================== Style ================================================================= + + const rootClass = mergeClass( + displayRecipe({ justifyContent: "between" }), + containerRecipe({ hasFocusOutline: "false" }), + itemSizeRecipe({ size, shape: "rounded" }), + variantRecipe({ variant: "ghost", isDisabled }), + ); + + const rootStyle: CSSProperties = { + width: "100%", + ...style, + }; + + const startSectionClass = displayRecipe(); + + const endSectionClass = displayRecipe(); + + return ( + + ); +}; diff --git a/packages/ui-react/src/components/menu/menu-radio-item-group.tsx b/packages/ui-react/src/components/menu/menu-radio-item-group.tsx new file mode 100644 index 0000000..acf4f63 --- /dev/null +++ b/packages/ui-react/src/components/menu/menu-radio-item-group.tsx @@ -0,0 +1,24 @@ +import { useState } from "react"; +import type { CommonProps } from "../../utils/CommonProps"; +import { MenuRadioItemGroupContext } from "./use-menu-radio-item-group-context"; +import { useMenuContext } from "./use-menu-context"; + +export type MenuRadioItemGroupProps = CommonProps & { + size?: "sm" | "md"; + defaultSelectName?: string +}; + +export const MenuRadioItemGroup = (props: MenuRadioItemGroupProps) => { + const { size = "sm", defaultSelectName = "", ...rest } = props + + const [selectName, setSelectName] = useState(defaultSelectName); + + const { size: menuSize } = useMenuContext()! + + const currentSize = menuSize ?? size + + return +
+
+ +} \ No newline at end of file diff --git a/packages/ui-react/src/components/menu/menu-radio-item.tsx b/packages/ui-react/src/components/menu/menu-radio-item.tsx new file mode 100644 index 0000000..e194a8c --- /dev/null +++ b/packages/ui-react/src/components/menu/menu-radio-item.tsx @@ -0,0 +1,20 @@ +import { useRef } from "react"; +import type { CommonProps } from "../../utils/CommonProps"; +import { useMenuRadioItemGroupContext } from "./use-menu-radio-item-group-context"; + +export type MenuRadioItemProps = CommonProps & { + name: string; + iconSvg?: React.ReactNode; + hotkey?: string; + onChange?: (preCheck?: boolean, nextCheck?: boolean) => void +}; + +export const MenuRadioItem = (props: MenuRadioItemProps) => { + const { name, children, className, hotkey, onChange, ref, iconSvg, style } = props + + const { selectName, setSelectName } = useMenuRadioItemGroupContext()! + const isSelect = name === selectName + + return
+} + diff --git a/packages/ui-react/src/components/menu/menu-trigger.tsx b/packages/ui-react/src/components/menu/menu-trigger.tsx new file mode 100644 index 0000000..b80e939 --- /dev/null +++ b/packages/ui-react/src/components/menu/menu-trigger.tsx @@ -0,0 +1,25 @@ +import type { ComponentPropsWithoutRef } from "react"; + +import { useMenuFloatingContext } from "./use-menu-floating-context"; +import { Slot } from "../../utils/slot"; +import { MenuTriggerContext } from "./use-menu-trigger-context"; + +export type MenuTriggerProps = ComponentPropsWithoutRef<"div">; + +export const MenuTrigger = (props: MenuTriggerProps) => { + const { children } = props; + + const menuFloatingContext = useMenuFloatingContext(); + const { refs, setIsOpen, getReferenceProps } = menuFloatingContext!; + + return ( + + { setIsOpen(true) } } + )}> + {children} + + + ) + +}; diff --git a/packages/ui-react/src/components/menu/menu.tsx b/packages/ui-react/src/components/menu/menu.tsx new file mode 100644 index 0000000..ab1aefb --- /dev/null +++ b/packages/ui-react/src/components/menu/menu.tsx @@ -0,0 +1,55 @@ +import { + FloatingNode, + FloatingTree, +} from "@floating-ui/react"; +import type { ComponentPropsWithoutRef } from "react"; +import { useMenuFloating } from "./use-menu-floating"; +import { MenuFloatingContext } from "./use-menu-floating-context"; +import { MenuContext } from "./use-menu-context"; +import { mergeClass } from "../../styles/utils/merge-class"; + +export type MenuProps = ComponentPropsWithoutRef<"div"> & { + size?: "sm" | "md"; +}; + +export const Menu = (props: MenuProps) => { + const { size = "sm", className = "", children, ...rest } = props; + + + const menuFloatingContextValue = useMenuFloating(); + const { isNested, nodeId } = menuFloatingContextValue! + + // ========================================================================================== + + const rootClass = mergeClass("position--relative",className) + + // ========================================================================================== + + if (!isNested) { + return ( + + + + +
+ {children} +
+
+
+
+
+ ); + } + + return ( + + + +
+ {children} +
+
+
+
+ ); +}; diff --git a/packages/ui-react/src/components/menu/use-menu-context.ts b/packages/ui-react/src/components/menu/use-menu-context.ts new file mode 100644 index 0000000..325cbd1 --- /dev/null +++ b/packages/ui-react/src/components/menu/use-menu-context.ts @@ -0,0 +1,11 @@ +import { createContext, useContext } from "react"; + +export type MenuContextValue = { size?: "sm" | "md" } | null; + +export const MenuContext = createContext(null); + +export function useMenuContext() { + const menuContext = useContext(MenuContext); + + return menuContext; +} diff --git a/packages/ui-react/src/components/menu/use-menu-floating-context.ts b/packages/ui-react/src/components/menu/use-menu-floating-context.ts new file mode 100644 index 0000000..62cfa63 --- /dev/null +++ b/packages/ui-react/src/components/menu/use-menu-floating-context.ts @@ -0,0 +1,15 @@ +import { createContext, useContext } from "react"; +import type { useMenuFloating } from "./use-menu-floating"; + +export type MenuFloatingContextValue = ReturnType< + typeof useMenuFloating +> | null; + +export const MenuFloatingContext = + createContext(null); + +export function useMenuFloatingContext() { + const menuFloatingContext = useContext(MenuFloatingContext); + + return menuFloatingContext; +} diff --git a/packages/ui-react/src/components/menu/use-menu-floating.ts b/packages/ui-react/src/components/menu/use-menu-floating.ts new file mode 100644 index 0000000..fd07ffb --- /dev/null +++ b/packages/ui-react/src/components/menu/use-menu-floating.ts @@ -0,0 +1,91 @@ +import { + autoUpdate, + flip, + offset, + safePolygon, + shift, + useClick, + useDismiss, + useFloating, + useFloatingNodeId, + useFloatingParentNodeId, + useHover, + useInteractions, + useListNavigation, + useRole, +} from "@floating-ui/react"; +import { useRef, useState } from "react"; + +export function useMenuFloating() { + const [isOpen, setIsOpen] = useState(false); + const [activeIndex, setActiveIndex] = useState(null); + const [selectedIndex, setSelectedIndex] = useState(null); + + const nodeId = useFloatingNodeId(); + const parentId = useFloatingParentNodeId(); + const isNested = parentId != null; + + const elementsRef = useRef>([]); + + const { refs, floatingStyles, context } = useFloating({ + nodeId, + placement: isNested ? "right-start" : "bottom-start", + open: isOpen, + onOpenChange: setIsOpen, + whileElementsMounted: autoUpdate, + middleware: [ + offset({ + mainAxis: isNested ? 0 : 4, + alignmentAxis: isNested ? -4 : 0, + }), + flip(), + shift(), + ], + }); + + const hover = useHover(context, { + enabled: isNested, + delay: { open: 75 }, + handleClose: safePolygon({ blockPointerEvents: true }), + }); + + const click = useClick(context, { + event: "mousedown", + toggle: !isNested, + ignoreMouse: isNested, + }); + + const role = useRole(context, { role: "menu" }); + + const dismiss = useDismiss(context, { bubbles: true }); + + const listNav = useListNavigation(context, { + listRef: elementsRef, + activeIndex, + selectedIndex, + nested: isNested, + onNavigate: setActiveIndex, + }); + + const { getReferenceProps, getFloatingProps, getItemProps } = useInteractions( + [hover, click, dismiss, role, listNav], + ); + + return { + nodeId, + parentId, + isNested, + refs, + floatingStyles, + context, + getReferenceProps, + getFloatingProps, + getItemProps, + elementsRef, + selectedIndex, + setSelectedIndex, + activeIndex, + isOpen, + setIsOpen + }; +} diff --git a/packages/ui-react/src/components/menu/use-menu-radio-item-group-context.ts b/packages/ui-react/src/components/menu/use-menu-radio-item-group-context.ts new file mode 100644 index 0000000..dcee7a1 --- /dev/null +++ b/packages/ui-react/src/components/menu/use-menu-radio-item-group-context.ts @@ -0,0 +1,13 @@ +import { createContext, useContext } from "react"; + +export type MenuRadioItemGroupContextValue = { + size: "sm" | "md" + selectName: string; + setSelectName: React.Dispatch>; +} | null; + +export const MenuRadioItemGroupContext = createContext(null) + +export function useMenuRadioItemGroupContext() { + return useContext(MenuRadioItemGroupContext) +} \ No newline at end of file diff --git a/packages/ui-react/src/components/menu/use-menu-trigger-context.ts b/packages/ui-react/src/components/menu/use-menu-trigger-context.ts new file mode 100644 index 0000000..d4cef75 --- /dev/null +++ b/packages/ui-react/src/components/menu/use-menu-trigger-context.ts @@ -0,0 +1,10 @@ + +import { createContext, useContext } from "react"; + +export type MenuTriggerContextValue = { isTrigger?: boolean } | null; + +export const MenuTriggerContext = createContext(null); + +export function useMenuTriggerContext() { + return useContext(MenuTriggerContext); +} diff --git a/packages/ui-react/src/components/popover/popover-dropdown.tsx b/packages/ui-react/src/components/popover/popover-dropdown.tsx new file mode 100644 index 0000000..21d2a4a --- /dev/null +++ b/packages/ui-react/src/components/popover/popover-dropdown.tsx @@ -0,0 +1,84 @@ +import type { CSSProperties } from "react"; +import type { CommonProps } from "../../utils/CommonProps"; +import { usePopoverContext } from "./use-popover-context"; +import { + FloatingArrow, + FloatingFocusManager, + FloatingPortal, +} from "@floating-ui/react"; +import { useThemeContext } from "../theme/use-theme-context"; +import { mergeClass } from "../../styles/utils/merge-class"; +import { variantRecipe } from "../../styles/recipes/variant-recipe"; +import { brandRecipe } from "../../styles/recipes/brand-recipe"; +import { containerRecipe } from "../../styles/recipes/container-recipe"; + +export type PopoverDropdownProps = CommonProps; + +export const PopoverDropdown = (props: PopoverDropdownProps) => { + const { children, className = "", style, ...rest } = props; + + const { + refs, + floatingStyles, + getFloatingProps, + context, + arrowRef, + isMounted, + transitionStyles, + arrowWidth, + arrowHeight, + } = usePopoverContext()!; + + const { themeClass, themeBaseClass } = useThemeContext()!; + + const rootClass = mergeClass( + "text--md", + containerRecipe({ + boxShadow: true, + rounded: 8, + padding: 12, + background: "base", + hasFocusOutline: "false", + }), + brandRecipe(), + themeBaseClass, + themeClass, + className, + ); + + const rootStyle: CSSProperties = { + ...transitionStyles, + ...floatingStyles, + ...style, + }; + + const arrowStyle: CSSProperties = { + fill: "var(--base-background)", + }; + + return ( + <> + {isMounted && ( + + +
+ {children} + +
+
+
+ )} + + ); +}; diff --git a/packages/ui-react/src/components/popover/popover-trigger.tsx b/packages/ui-react/src/components/popover/popover-trigger.tsx new file mode 100644 index 0000000..d424dd3 --- /dev/null +++ b/packages/ui-react/src/components/popover/popover-trigger.tsx @@ -0,0 +1,17 @@ +import type { CommonProps } from "../../utils/CommonProps" +import { Slot } from "../../utils/slot"; +import { usePopoverContext } from "./use-popover-context"; + +export type PopoverTriggerProps = CommonProps + +export const PopoverTrigger = (props: PopoverTriggerProps) => { + const { children, ...rest } = props; + + const { refs, getReferenceProps, setIsOpen, isOpen } = usePopoverContext()! + + return { setIsOpen(!isOpen) } } + )}> + {children} + +} \ No newline at end of file diff --git a/packages/ui-react/src/components/popover/popover.tsx b/packages/ui-react/src/components/popover/popover.tsx new file mode 100644 index 0000000..600fc5e --- /dev/null +++ b/packages/ui-react/src/components/popover/popover.tsx @@ -0,0 +1,16 @@ +import type { CommonProps } from "../../utils/CommonProps" +import { PopoverContext } from "./use-popover-context" +import { usePopoverFloating } from "./use-popover-floating" + +export type PopoverProps = CommonProps & { + +} + +export const Popover = (props: PopoverProps) => { + const { children } = props + const popoverFloatingContext = usePopoverFloating() + + return +
{children}
+
+} \ No newline at end of file diff --git a/packages/ui-react/src/components/popover/use-popover-context.ts b/packages/ui-react/src/components/popover/use-popover-context.ts new file mode 100644 index 0000000..8bdfeb4 --- /dev/null +++ b/packages/ui-react/src/components/popover/use-popover-context.ts @@ -0,0 +1,15 @@ +import { createContext, useContext } from "react"; +import type { usePopoverFloating } from "./use-popover-floating"; + +export type PopoverContextValue = ReturnType< + typeof usePopoverFloating +> | null; + +export const PopoverContext = + createContext(null); + +export function usePopoverContext() { + const popoverContext = useContext(PopoverContext); + + return popoverContext; +} diff --git a/packages/ui-react/src/components/popover/use-popover-floating.ts b/packages/ui-react/src/components/popover/use-popover-floating.ts new file mode 100644 index 0000000..10c10c0 --- /dev/null +++ b/packages/ui-react/src/components/popover/use-popover-floating.ts @@ -0,0 +1,83 @@ +import { arrow, autoUpdate, flip, offset, shift, useClick, useDismiss, useFloating, useInteractions, useRole, useTransitionStyles } from "@floating-ui/react"; +import { useMemo, useRef, useState } from "react"; + +export function usePopoverFloating() { + const [isOpen, setIsOpen] = useState(false); + const arrowRef = useRef(null); + + // 拉扯 svg 图像,让三角变得,更尖更长,或者更宽更扁 + const arrowWidth = 16 + const arrowHeight = 8 + + const { refs, floatingStyles, context, middlewareData } = useFloating({ + placement: "top-start", + open: isOpen, + onOpenChange: setIsOpen, + whileElementsMounted: autoUpdate, + middleware: [ + offset(arrowHeight), + flip({ padding: 8 }), + // 偏移完成后,再留 8px 空白,而不是紧贴着父容器 + shift({ padding: 8 }), + arrow({ + element: arrowRef, + }), + ], + }); + + // 这两个是未经 useFloating 变换前的坐标 + // 也就是 arrow 悬浮,左对齐 floating,两者水平中线重合 + const arrowX = middlewareData.arrow?.x ?? 0; + const arrowY = middlewareData.arrow?.y ?? 0; + + // 变换中心的起始坐标就是 floating 的左上角 + const transformX = arrowX + arrowWidth / 2; + const transformY = arrowY + arrowHeight; + + // style 用于内容框,而不是 FloatingArrow + const { isMounted, styles: transitionStyles } = useTransitionStyles(context, { + duration: 150, + initial: { + opacity: 0, + transform: "scale(0)" + }, + close: { + opacity: 0 + }, + common: ({ side }) => ({ + transitionTimingFunction: "ease", + transformOrigin: { + top: `${transformX}px calc(100% + ${arrowHeight}px)`, + bottom: `${transformX}px ${-arrowHeight}px`, + left: `calc(100% + ${arrowHeight}px) ${transformY}px`, + right: `${-arrowHeight}px ${transformY}px` + }[side] + }) + }) + + const click = useClick(context); + const dismiss = useDismiss(context); + const role = useRole(context); + + const { getReferenceProps, getFloatingProps } = useInteractions([ + click, + dismiss, + role, + ]); + + return useMemo(() => ({ + isOpen, + setIsOpen, + /* only use at {isMounted && } */ + isMounted, + arrowRef, + arrowHeight, + arrowWidth, + refs, + floatingStyles, + transitionStyles, + context, + getReferenceProps, + getFloatingProps + }), [isOpen, setIsOpen, isMounted, refs, arrowHeight, arrowWidth, arrowRef, floatingStyles, transitionStyles, context, getReferenceProps, getFloatingProps]) +} \ No newline at end of file diff --git a/packages/ui-react/src/components/slider/slider.tsx b/packages/ui-react/src/components/slider/slider.tsx new file mode 100644 index 0000000..e8f9d46 --- /dev/null +++ b/packages/ui-react/src/components/slider/slider.tsx @@ -0,0 +1,23 @@ +import type { CSSProperties } from "react"; + +export const Slider = () => { + const sliderStyle: CSSProperties = { + display: "flex", + flexWrap: "nowrap", + justifyContent: "center", + alignItems: "center", + userSelect: "none", + }; + + const sliderThumbStyle: CSSProperties = { + height: "16px", + width: "16px", + }; + + const sliderRailStyle: CSSProperties = { + height: "6px", + width: "auto", + }; + + return
+}; diff --git a/packages/ui-react/src/components/tag/tag.tsx b/packages/ui-react/src/components/tag/tag.tsx new file mode 100644 index 0000000..b98375a --- /dev/null +++ b/packages/ui-react/src/components/tag/tag.tsx @@ -0,0 +1,63 @@ + +import { Icon } from "../icon/icon"; +import { CloseSvg } from "../../assets/svg/CloseSvg"; +import { displayRecipe } from "../../styles/recipes/display-recipe"; +import { itemSizeRecipe } from "../../styles/recipes/item-size-recipe"; +import { brandRecipe } from "../../styles/recipes/brand-recipe"; +import { variantRecipe } from "../../styles/recipes/variant-recipe"; +import type { CommonProps } from "../../utils/CommonProps"; +import { useState, type ReactNode } from "react"; +import { mergeClass } from "../../styles/utils/merge-class"; + +export type TagProps = CommonProps & { + size?: "xs" | "sm"; + variant?: "filled" | "outline"; + brand?: "success" | "danger" | "info" | "warning" | "default"; + color?: string; + background?: string; + borderColor?: string; +} & { + isClosable?: boolean; + onClose?: () => void; +}; + +export const Tag = (props: TagProps) => { + const { + className = "", + children, + size = "xs", + brand = "info", + color, + background, + borderColor, + onClose, + ...rest + } = props; + + const rootClass = mergeClass( + displayRecipe(), + variantRecipe({ variant: "filled", isUnclickable: true }), + itemSizeRecipe({ size, shape: 'rounded' }), + className, + ); + + const closeIconClase = mergeClass( + variantRecipe({ variant: "ghost" }), + brandRecipe({ brand: "default" }), + "cursor--pointer" + ); + + return ( +
+ {children} + + + +
+ ); +}; diff --git a/packages/ui-react/src/components/theme/theme.tsx b/packages/ui-react/src/components/theme/theme.tsx new file mode 100644 index 0000000..2d41ab9 --- /dev/null +++ b/packages/ui-react/src/components/theme/theme.tsx @@ -0,0 +1,27 @@ +import { useState } from "react"; + +import type { CommonProps } from "../../utils/CommonProps"; +import { ThemeContext } from "./use-theme-context"; +import { mergeClass } from "../../styles/utils/merge-class"; + +export type ThemeProps = CommonProps & { + theme?: "theme--light" | "theme--dark" | string; +}; + +export const Theme = (props: ThemeProps) => { + const { children, className = "", theme = "theme--light" } = props; + + const [themeClass, setThemeClass] = useState(theme); + + const themeBaseClass = "theme-base"; + + const rootClass = mergeClass(themeBaseClass, theme, className); + + return ( + +
{children}
+
+ ); +}; diff --git a/packages/ui-react/src/components/theme/use-theme-context.ts b/packages/ui-react/src/components/theme/use-theme-context.ts new file mode 100644 index 0000000..ded0053 --- /dev/null +++ b/packages/ui-react/src/components/theme/use-theme-context.ts @@ -0,0 +1,14 @@ +import { createContext, useContext } from "react"; + +export type ThemeContextValue = { + themeBaseClass: string; + themeClass: string; + setThemeClass: (v: string) => void; +} | null; + +export const ThemeContext = createContext(null); + +export function useThemeContext() { + const themeContext = useContext(ThemeContext); + return themeContext; +} diff --git a/packages/ui-react/src/index.css b/packages/ui-react/src/index.css new file mode 100644 index 0000000..fcd2c34 --- /dev/null +++ b/packages/ui-react/src/index.css @@ -0,0 +1,55 @@ +@import './styles/css/z-index.css'; +@import './styles/css/width-item.css'; +@import './styles/css/width-inline.css'; +@import './styles/css/width-dot.css'; +@import './styles/css/white-space.css'; +@import './styles/css/visibility.css'; +@import './styles/css/variant.css'; +@import './styles/css/variant-unclickable.css'; +@import './styles/css/variant-disabled.css'; +@import './styles/css/user-select.css'; +@import './styles/css/transition.css'; +@import './styles/css/theme.css'; +@import './styles/css/theme-base.css'; +@import './styles/css/text-align.css'; +@import './styles/css/screen-reader.css'; +@import './styles/css/position.css'; +@import './styles/css/pointer-events.css'; +@import './styles/css/padding.css'; +@import './styles/css/padding-long.css'; +@import './styles/css/overscroll-behavior.css'; +@import './styles/css/overflow.css'; +@import './styles/css/outline.css'; +@import './styles/css/max-width.css'; +@import './styles/css/max-height.css'; +@import './styles/css/justify-self.css'; +@import './styles/css/justify-items.css'; +@import './styles/css/justify-content.css'; +@import './styles/css/height-item.css'; +@import './styles/css/height-inline.css'; +@import './styles/css/height-dot.css'; +@import './styles/css/gap.css'; +@import './styles/css/font-weight.css'; +@import './styles/css/font-size.css'; +@import './styles/css/font-family.css'; +@import './styles/css/flex-wrap.css'; +@import './styles/css/flex-shrink.css'; +@import './styles/css/flex-direction.css'; +@import './styles/css/drop-shadow.css'; +@import './styles/css/display.css'; +@import './styles/css/cursor.css'; +@import './styles/css/color.css'; +@import './styles/css/break-before.css'; +@import './styles/css/break-after.css'; +@import './styles/css/brand.css'; +@import './styles/css/box-sizing.css'; +@import './styles/css/box-shadow.css'; +@import './styles/css/box-inside.css'; +@import './styles/css/box-decoration.css'; +@import './styles/css/border.css'; +@import './styles/css/border-radius.css'; +@import './styles/css/background.css'; +@import './styles/css/animation.css'; +@import './styles/css/align-self.css'; +@import './styles/css/align-items.css'; +@import './styles/css/align-content.css'; \ No newline at end of file diff --git a/packages/ui-react/src/index.ts b/packages/ui-react/src/index.ts new file mode 100644 index 0000000..6cc0b90 --- /dev/null +++ b/packages/ui-react/src/index.ts @@ -0,0 +1,59 @@ +export * from './utils/state-registry.ts'; +export * from './utils/slot.tsx'; +export * from './utils/merge-props.ts'; +export * from './utils/CommonProps.ts'; +export * from './utils/camelToKebab.ts'; +export * from './styles/utils/merge-class.ts'; +export * from './styles/utils/create-class-recipe.ts'; +export * from './styles/recipes/variant-recipe.ts'; +export * from './styles/recipes/item-size-recipe.ts'; +export * from './styles/recipes/inline-size-recipe.ts'; +export * from './styles/recipes/dot-size-recipe.ts'; +export * from './styles/recipes/display-recipe.ts'; +export * from './styles/recipes/container-recipe.ts'; +export * from './styles/recipes/brand-recipe.ts'; +export * from './components/theme/use-theme-context.ts'; +export * from './components/theme/theme.tsx'; +export * from './components/tag/tag.tsx'; +export * from './components/slider/slider.tsx'; +export * from './components/popover/use-popover-floating.ts'; +export * from './components/popover/use-popover-context.ts'; +export * from './components/popover/popover.tsx'; +export * from './components/popover/popover-trigger.tsx'; +export * from './components/popover/popover-dropdown.tsx'; +export * from './components/menu/use-menu-trigger-context.ts'; +export * from './components/menu/use-menu-radio-item-group-context.ts'; +export * from './components/menu/use-menu-floating.ts'; +export * from './components/menu/use-menu-floating-context.ts'; +export * from './components/menu/use-menu-context.ts'; +export * from './components/menu/menu.tsx'; +export * from './components/menu/menu-trigger.tsx'; +export * from './components/menu/menu-radio-item.tsx'; +export * from './components/menu/menu-radio-item-group.tsx'; +export * from './components/menu/menu-item.tsx'; +export * from './components/menu/menu-dropdown.tsx'; +export * from './components/menu/menu-check-item.tsx'; +export * from './components/icon/icon.tsx'; +export * from './components/checkbox/checkbox.tsx'; +export * from './components/button/button.tsx'; +export * from './components/badge/badge.tsx'; +export * from './assets/svg/VolumeMuteSvg.tsx'; +export * from './assets/svg/VolumeLowSvg.tsx'; +export * from './assets/svg/VolumeHighSvg.tsx'; +export * from './assets/svg/UserSvg.tsx'; +export * from './assets/svg/SunSvg.tsx'; +export * from './assets/svg/SpinnerSvg.tsx'; +export * from './assets/svg/SettingSvg.tsx'; +export * from './assets/svg/SearchSvg.tsx'; +export * from './assets/svg/Ruler.tsx'; +export * from './assets/svg/PasteSvg.tsx'; +export * from './assets/svg/MoonSvg.tsx'; +export * from './assets/svg/MeshSvg.tsx'; +export * from './assets/svg/KeySvg.tsx'; +export * from './assets/svg/FileSvg.tsx'; +export * from './assets/svg/DownloadSvg.tsx'; +export * from './assets/svg/CutSvg.tsx'; +export * from './assets/svg/CloseSvg.tsx'; +export * from './assets/svg/ChevronRightSvg.tsx'; +export * from './assets/svg/CheckIndicatorSvg.tsx'; +export * from './assets/svg/BoldSvg.tsx'; \ No newline at end of file diff --git a/packages/ui-react/src/styles/css/align-content.css b/packages/ui-react/src/styles/css/align-content.css new file mode 100644 index 0000000..0167e53 --- /dev/null +++ b/packages/ui-react/src/styles/css/align-content.css @@ -0,0 +1,37 @@ +@layer utility { + .align-content--normal { + align-content: normal; + } + + .align-content--center { + align-content: center; + } + + .align-content--start { + align-content: flex-start; + } + + .align-content--end { + align-content: flex-end; + } + + .align-content--between { + align-content: space-between; + } + + .align-content--around { + align-content: space-around; + } + + .align-content--evenly { + align-content: space-evenly; + } + + .align-content--baseline { + align-content: baseline; + } + + .align-content--stretch { + align-content: stretch; + } +} diff --git a/packages/ui-react/src/styles/css/align-items.css b/packages/ui-react/src/styles/css/align-items.css new file mode 100644 index 0000000..0ed767c --- /dev/null +++ b/packages/ui-react/src/styles/css/align-items.css @@ -0,0 +1,33 @@ +@layer utility { + .items--start { + align-items: flex-start; + } + + .items--end { + align-items: flex-end; + } + + .items-end--safe { + align-items: safe flex-end; + } + + .items--center { + align-items: center; + } + + .items--center-safe { + align-items: safe center; + } + + .items--baseline { + align-items: baseline; + } + + .items--baseline-last { + align-items: last baseline; + } + + .items--stretch { + align-items: stretch; + } +} diff --git a/packages/ui-react/src/styles/css/align-self.css b/packages/ui-react/src/styles/css/align-self.css new file mode 100644 index 0000000..514ff39 --- /dev/null +++ b/packages/ui-react/src/styles/css/align-self.css @@ -0,0 +1,37 @@ +@layer utility { + .align-self--auto { + align-self: auto; + } + + .align-self--start { + align-self: flex-start; + } + + .align-self--end { + align-self: flex-end; + } + + .align-self--end-safe { + align-self: safe flex-end; + } + + .align-self--center { + align-self: center; + } + + .align-self--center-safe { + align-self: safe center; + } + + .align-self--stretch { + align-self: stretch; + } + + .align-self--baseline { + align-self: baseline; + } + + .align-self--baseline-last { + align-self: last baseline; + } +} diff --git a/packages/ui-react/src/styles/css/animation.css b/packages/ui-react/src/styles/css/animation.css new file mode 100644 index 0000000..94f0198 --- /dev/null +++ b/packages/ui-react/src/styles/css/animation.css @@ -0,0 +1,106 @@ +@layer utility { + + .animate--fade-in-down { + animation: var(--animate-fade-in-down); + + @keyframes fade-in-down { + from { + opacity: 0; + transform: translate3d(0, -100%, 0); + } + to { + opacity: 1; + transform: translate3d(0, 0, 0); + } + } + } + .animate--fade-out-down { + animation: var(--animate-fade-out-down); + } + + @keyframes fade-out-down { + from { + opacity: 1; + transform: translate3d(0, 0, 0); + } + to { + opacity: 0; + transform: translate3d(0, 100%, 0); + } + } + .animate--fade-in-up { + animation: var(--animate-fade-in-up); + } + + @keyframes fade-in-up { + from { + opacity: 0; + transform: translate3d(0, 100%, 0); + } + to { + opacity: 1; + transform: translate3d(0, 0, 0); + } + } + .animate--fade-out-up { + animation: var(--animate-fade-out-up); + } + + @keyframes fade-out-up { + from { + opacity: 1; + transform: translate3d(0, 0, 0); + } + to { + opacity: 0; + transform: translate3d(0, -100%, 0); + } + } + .animate--spin { + animation: var(--animate-spin); + + @keyframes spin { + to { + transform: rotate(360deg); + } + } + } + .animate--ping { + animation: var(--animate-ping); + + @keyframes ping { + 75%, + 100% { + transform: scale(2); + opacity: 0; + } + } + } + .animate--pulse { + animation: var(--animate-pulse); + + @keyframes pulse { + 50% { + opacity: 0.5; + } + } + } + .animate--bounce { + animation: var(--animate-bounce); /* bounce 1s infinite */ + + @keyframes bounce { + 0%, + 100% { + transform: translateY(-25%); + animation-timing-function: cubic-bezier(0.8, 0, 1, 1); + } + 50% { + transform: none; + animation-timing-function: cubic-bezier(0, 0, 0.2, 1); + } + } + } + .animate--none { + animation: none; + } +} diff --git a/packages/ui-react/src/styles/css/background.css b/packages/ui-react/src/styles/css/background.css new file mode 100644 index 0000000..79daa5a --- /dev/null +++ b/packages/ui-react/src/styles/css/background.css @@ -0,0 +1,5 @@ +@layer utility { + .background--base { + background: var(--base-background); + } +} diff --git a/packages/ui-react/src/styles/css/border-radius.css b/packages/ui-react/src/styles/css/border-radius.css new file mode 100644 index 0000000..8a7fe08 --- /dev/null +++ b/packages/ui-react/src/styles/css/border-radius.css @@ -0,0 +1,53 @@ +@layer utility { + .rounded--full { + border-radius: 9999px; + } + + .rounded--none { + border-radius: 0; + } + + .rounded--xs { + border-radius: var(--radius-xs); + } + + .rounded--sm { + border-radius: var(--radius-sm); + } + + .rounded--md { + border-radius: var(--radius-md); + } + + .rounded--lg { + border-radius: var(--radius-lg); + } + + .rounded--xl { + border-radius: var(--radius-xl); + } + + .rounded--2xl { + border-radius: var(--radius-2xl); + } + + .rounded--3xl { + border-radius: var(--radius-3xl); + } + + .rounded--4 { + border-radius: var(--radius-4); + } + + .rounded--8 { + border-radius: var(--radius-8); + } + + .rounded--12 { + border-radius: var(--radius-12); + } + + .rounded--16 { + border-radius: var(--radius-16); + } +} diff --git a/packages/ui-react/src/styles/css/border.css b/packages/ui-react/src/styles/css/border.css new file mode 100644 index 0000000..42d4c83 --- /dev/null +++ b/packages/ui-react/src/styles/css/border.css @@ -0,0 +1,6 @@ +@layer utility { + .border--1 { + border: var(--border-1); + border-color: var(--brand-background-high-active); + } +} diff --git a/packages/ui-react/src/styles/css/box-decoration.css b/packages/ui-react/src/styles/css/box-decoration.css new file mode 100644 index 0000000..36545b5 --- /dev/null +++ b/packages/ui-react/src/styles/css/box-decoration.css @@ -0,0 +1,9 @@ +@layer utility { + .box-decoration--clone { + box-decoration-break: clone; + } + + .box-decoration--slice { + box-decoration-break: slice; + } +} diff --git a/packages/ui-react/src/styles/css/box-inside.css b/packages/ui-react/src/styles/css/box-inside.css new file mode 100644 index 0000000..c8e338e --- /dev/null +++ b/packages/ui-react/src/styles/css/box-inside.css @@ -0,0 +1,17 @@ +@layer utility { + .break-inside--auto { + break-inside: auto; + } + + .break-inside--avoid { + break-inside: avoid; + } + + .break-inside--avoid-page { + break-inside: avoid-page; + } + + .break-inside--avoid-column { + break-inside: avoid-column; + } +} diff --git a/packages/ui-react/src/styles/css/box-shadow.css b/packages/ui-react/src/styles/css/box-shadow.css new file mode 100644 index 0000000..a9acb54 --- /dev/null +++ b/packages/ui-react/src/styles/css/box-shadow.css @@ -0,0 +1,5 @@ +@layer utility { + .box-shadow { + box-shadow: var(--box-shadow); + } +} \ No newline at end of file diff --git a/packages/ui-react/src/styles/css/box-sizing.css b/packages/ui-react/src/styles/css/box-sizing.css new file mode 100644 index 0000000..f8c8b9e --- /dev/null +++ b/packages/ui-react/src/styles/css/box-sizing.css @@ -0,0 +1,9 @@ +@layer utility { + .box-sizing--border { + box-sizing: border-box; + } + + .box-sizing--content { + box-sizing: content-box; + } +} diff --git a/packages/ui-react/src/styles/css/brand.css b/packages/ui-react/src/styles/css/brand.css new file mode 100644 index 0000000..6f79a6f --- /dev/null +++ b/packages/ui-react/src/styles/css/brand.css @@ -0,0 +1,48 @@ +@layer utility { + + .brand--default { + --brand-background-high: var(--default-background-high); + --brand-background-high-hover: var(--default-background-high-hover); + --brand-background-high-active: var(--default-background-high-active); + --brand-background-low: var(--default-background-low); + --brand-background-low-hover: var(--default-background-low-hover); + --brand-background-low-active: var(--default-background-low-active); + } + + .brand--info { + --brand-background-high: var(--info-background-high); + --brand-background-high-hover: var(--info-background-high-hover); + --brand-background-high-active: var(--info-background-high-active); + --brand-background-low: var(--info-background-low); + --brand-background-low-hover: var(--info-background-low-hover); + --brand-background-low-active: var(--info-background-low-active); + } + + .brand--danger { + --brand-background-high: var(--danger-background-high); + --brand-background-high-hover: var(--danger-background-high-hover); + --brand-background-high-active: var(--danger-background-high-active); + --brand-background-low: var(--danger-background-low); + --brand-background-low-hover: var(--danger-background-low-hover); + --brand-background-low-active: var(--danger-background-low-active); + } + + .brand--success { + --brand-background-high: var(--success-background-high); + --brand-background-high-hover: var(--success-background-high-hover); + --brand-background-high-active: var(--success-background-high-active); + --brand-background-low: var(--success-background-low); + --brand-background-low-hover: var(--success-background-low-hover); + --brand-background-low-active: var(--success-background-low-active); + } + + .brand--warning { + --brand-background-high: var(--warning-background-high); + --brand-background-high-hover: var(--warning-background-high-hover); + --brand-background-high-active: var(--warning-background-high-active); + --brand-background-low: var(--warning-background-low); + --brand-background-low-hover: var(--warning-background-low-hover); + --brand-background-low-active: var(--warning-background-low-active); + } + +} \ No newline at end of file diff --git a/packages/ui-react/src/styles/css/break-after.css b/packages/ui-react/src/styles/css/break-after.css new file mode 100644 index 0000000..59e545e --- /dev/null +++ b/packages/ui-react/src/styles/css/break-after.css @@ -0,0 +1,33 @@ +@layer utility { + .break-after--auto { + break-after: auto; + } + + .break-after--avoid { + break-after: avoid; + } + + .break-after--all { + break-after: all; + } + + .break-after--avoid-page { + break-after: avoid-page; + } + + .break-after--page { + break-after: page; + } + + .break-after--left { + break-after: left; + } + + .break-after--right { + break-after: right; + } + + .break-after--column { + break-after: column; + } +} diff --git a/packages/ui-react/src/styles/css/break-before.css b/packages/ui-react/src/styles/css/break-before.css new file mode 100644 index 0000000..cab23cd --- /dev/null +++ b/packages/ui-react/src/styles/css/break-before.css @@ -0,0 +1,33 @@ +@layer utility { + .break-before--auto { + break-before: auto; + } + + .break-before--avoid { + break-before: avoid; + } + + .break-before--all { + break-before: all; + } + + .break-before--avoid-page { + break-before: avoid-page; + } + + .break-before--page { + break-before: page; + } + + .break-before--left { + break-before: left; + } + + .break-before--right { + break-before: right; + } + + .break-before--column { + break-before: column; + } +} diff --git a/packages/ui-react/src/styles/css/color.css b/packages/ui-react/src/styles/css/color.css new file mode 100644 index 0000000..becc3ed --- /dev/null +++ b/packages/ui-react/src/styles/css/color.css @@ -0,0 +1,5 @@ +@layer utility { + .color--white { + color: white; + } +} diff --git a/packages/ui-react/src/styles/css/cursor.css b/packages/ui-react/src/styles/css/cursor.css new file mode 100644 index 0000000..6f552df --- /dev/null +++ b/packages/ui-react/src/styles/css/cursor.css @@ -0,0 +1,111 @@ +@layer utility { + /* ===== 基础光标 ===== */ + .cursor--auto { + cursor: auto; + } + .cursor--default { + cursor: default; + } + .cursor--pointer { + cursor: pointer; + } + .cursor--wait { + cursor: wait; + } + .cursor--text { + cursor: text; + } + .cursor--move { + cursor: move; + } + .cursor--help { + cursor: help; + } + .cursor--not-allowed { + cursor: not-allowed; + } + + /* ===== 拖拽 / 抓取 ===== */ + .cursor--grab { + cursor: grab; + } + .cursor--grabbing { + cursor: grabbing; + } + + /* ===== 调整大小(通用 & 方向)===== */ + .cursor--resize { + cursor: resize; + } + .cursor--ew-resize { + cursor: ew-resize; + } + .cursor--ns-resize { + cursor: ns-resize; + } + .cursor--nesw-resize { + cursor: nesw-resize; + } + .cursor--nwse-resize { + cursor: nwse-resize; + } + .cursor--col-resize { + cursor: col-resize; + } + .cursor--row-resize { + cursor: row-resize; + } + + .cursor--n-resize { + cursor: n-resize; + } + .cursor--e-resize { + cursor: e-resize; + } + .cursor--s-resize { + cursor: s-resize; + } + .cursor--w-resize { + cursor: w-resize; + } + .cursor--ne-resize { + cursor: ne-resize; + } + .cursor--nw-resize { + cursor: nw-resize; + } + .cursor--se-resize { + cursor: se-resize; + } + .cursor--sw-resize { + cursor: sw-resize; + } + + /* ===== 视觉反馈 ===== */ + .cursor--crosshair { + cursor: crosshair; + } + .cursor--progress { + cursor: progress; + } + .cursor--no-drop { + cursor: no-drop; + } + .cursor--vertical-text { + cursor: vertical-text; + } + + /* ===== 现代 / 扩展光标 ===== */ + .cursor--zoom-in { + cursor: zoom-in; + } + .cursor--zoom-out { + cursor: zoom-out; + } + .cursor--alias { + cursor: alias; + } + .cursor--copy { + cursor: copy; + } +} diff --git a/packages/ui-react/src/styles/css/display.css b/packages/ui-react/src/styles/css/display.css new file mode 100644 index 0000000..d182a68 --- /dev/null +++ b/packages/ui-react/src/styles/css/display.css @@ -0,0 +1,90 @@ +@layer utility { + /* 基础 display */ + .display--inline { + display: inline; + } + + .display--block { + display: block; + } + + .display--inline-block { + display: inline-block; + } + + .display--flow-root { + display: flow-root; + } + + .display--contents { + display: contents; + } + + .display--none { + display: none; + } + + /* Flex */ + .display--flex { + display: flex; + } + + .display--inline-flex { + display: inline-flex; + } + + /* Grid */ + .display--grid { + display: grid; + } + + .display--inline-grid { + display: inline-grid; + } + + /* Table */ + .display--table { + display: table; + } + + .display--inline-table { + display: inline-table; + } + + .display--table-caption { + display: table-caption; + } + + .display--table-cell { + display: table-cell; + } + + .display--table-column { + display: table-column; + } + + .display--table-column-group { + display: table-column-group; + } + + .display--table-footer-group { + display: table-footer-group; + } + + .display--table-header-group { + display: table-header-group; + } + + .display--table-row-group { + display: table-row-group; + } + + .display--table-row { + display: table-row; + } + + /* List */ + .display--list-item { + display: list-item; + } +} diff --git a/packages/ui-react/src/styles/css/drop-shadow.css b/packages/ui-react/src/styles/css/drop-shadow.css new file mode 100644 index 0000000..814bc13 --- /dev/null +++ b/packages/ui-react/src/styles/css/drop-shadow.css @@ -0,0 +1,5 @@ +@layer utility { + .drop-shadow{ + filter: var(--drop-shadow); + } +} \ No newline at end of file diff --git a/packages/ui-react/src/styles/css/flex-direction.css b/packages/ui-react/src/styles/css/flex-direction.css new file mode 100644 index 0000000..46b2c69 --- /dev/null +++ b/packages/ui-react/src/styles/css/flex-direction.css @@ -0,0 +1,17 @@ +@layer utility { + .flex-direction--row { + flex-direction: row; + } + + .flex-direction--row-reverse { + flex-direction: row-reverse; + } + + .flex-direction--col { + flex-direction: column; + } + + .flex-direction--col-reverse { + flex-direction: column-reverse; + } +} \ No newline at end of file diff --git a/packages/ui-react/src/styles/css/flex-shrink.css b/packages/ui-react/src/styles/css/flex-shrink.css new file mode 100644 index 0000000..ac697ea --- /dev/null +++ b/packages/ui-react/src/styles/css/flex-shrink.css @@ -0,0 +1,9 @@ +@layer utility { + .flex-shrink--1 { + flex-shrink: 1; + } + + .flex-shrink--0 { + flex-shrink: 0; + } +} \ No newline at end of file diff --git a/packages/ui-react/src/styles/css/flex-wrap.css b/packages/ui-react/src/styles/css/flex-wrap.css new file mode 100644 index 0000000..dc46624 --- /dev/null +++ b/packages/ui-react/src/styles/css/flex-wrap.css @@ -0,0 +1,13 @@ +@layer utility { + .flex--nowrap { + flex-wrap: nowrap; + } + + .flex--wrap { + flex-wrap: wrap; + } + + .flex--wrap-reverse { + flex-wrap: wrap-reverse; + } +} diff --git a/packages/ui-react/src/styles/css/font-family.css b/packages/ui-react/src/styles/css/font-family.css new file mode 100644 index 0000000..32b99f3 --- /dev/null +++ b/packages/ui-react/src/styles/css/font-family.css @@ -0,0 +1,11 @@ +@layer utility { + .font-family--sans { + font-family: var(--font-sans); + } + .font-family--serif { + font-family: var(--font-serif); + } + .font-family--mono { + font-family: var(--font-mono); + } +} diff --git a/packages/ui-react/src/styles/css/font-size.css b/packages/ui-react/src/styles/css/font-size.css new file mode 100644 index 0000000..95b3389 --- /dev/null +++ b/packages/ui-react/src/styles/css/font-size.css @@ -0,0 +1,36 @@ +@layer utility { + .text--xs { + font-size: var(--font-size-xs); + line-height: var(--line-height); + } + + .text--sm { + font-size: var(--font-size-sm); + line-height: var(--line-height); + } + + .text--md { + font-size: var(--font-size-md); + line-height: var(--line-height); + } + + .text--lg { + font-size: var(--font-size-lg); + line-height: var(--line-height); + } + + .text--xl { + font-size: var(--font-size-xl); + line-height: var(--line-height); + } + + .text--2xl { + font-size: var(--font-size-2xl); + line-height: var(--line-height); + } + + .text--3xl { + font-size: var(--font-size-3xl); + line-height: var(--line-height); + } +} \ No newline at end of file diff --git a/packages/ui-react/src/styles/css/font-weight.css b/packages/ui-react/src/styles/css/font-weight.css new file mode 100644 index 0000000..b953234 --- /dev/null +++ b/packages/ui-react/src/styles/css/font-weight.css @@ -0,0 +1,55 @@ +@layer utility { + .font-weight--light { + font-weight: var(--font-weight-light); + } + + .font-weight--normal { + font-weight: var(--font-weight-normal); + } + + .font-weight--extranormal { + font-weight: var(--font-weight-extranormal); + } + + .font-weight--semibold { + font-weight: var(--font-weight-semibold); + } + + .font-weight--bold { + font-weight: var(--font-weight-bold); + } + + .font-weight--extrabold { + font-weight: var(--font-weight-extrabold); + } + + /* ================== */ + + .font-weight--xs { + font-weight: var(--font-weight-xs); + } + + .font-weight--sm { + font-weight: var(--font-weight-sm); + } + + .font-weight--md { + font-weight: var(--font-weight-md); + } + + .font-weight--lg { + font-weight: var(--font-weight-lg); + } + + .font-weight--xl { + font-weight: var(--font-weight-xl); + } + + .font-weight--2xl { + font-weight: var(--font-weight-2xl); + } + + .font-weight--3xl { + font-weight: var(--font-weight-3xl); + } +} \ No newline at end of file diff --git a/packages/ui-react/src/styles/css/gap.css b/packages/ui-react/src/styles/css/gap.css new file mode 100644 index 0000000..6e69176 --- /dev/null +++ b/packages/ui-react/src/styles/css/gap.css @@ -0,0 +1,34 @@ +@layer utility { + + .gap-none { + gap: none; + } + + .gap--xs { + gap: 2px; + } + + .gap--sm { + gap: 4px; + } + + .gap--md { + gap: 6px; + } + + .gap--lg { + gap: 8px; + } + + .gap--xl { + gap: 10px; + } + + .gap--2xl { + gap: 12px; + } + + .gap--3xl { + gap: 14px; + } +} \ No newline at end of file diff --git a/packages/ui-react/src/styles/css/height-dot.css b/packages/ui-react/src/styles/css/height-dot.css new file mode 100644 index 0000000..04cda2a --- /dev/null +++ b/packages/ui-react/src/styles/css/height-dot.css @@ -0,0 +1,29 @@ +@layer utility { + .h--dot-xs { + height: calc(var(--font-size-xs) / 2); + } + + .h--dot-sm { + height: calc(var(--font-size-sm) / 2); + } + + .h--dot-md { + height: calc(var(--font-size-md) / 2); + } + + .h--dot-lg { + height: calc(var(--font-size-lg) / 2); + } + + .h--dot-xl { + height: calc(var(--font-size-xl) / 2); + } + + .h--dot-2xl { + height: calc(var(--font-size-2xl) / 2); + } + + .h--dot-3xl { + height: calc(var(--font-size-3xl) / 2); + } +} \ No newline at end of file diff --git a/packages/ui-react/src/styles/css/height-inline.css b/packages/ui-react/src/styles/css/height-inline.css new file mode 100644 index 0000000..1c86bda --- /dev/null +++ b/packages/ui-react/src/styles/css/height-inline.css @@ -0,0 +1,25 @@ +@layer utility { + .h--inline-xs { + height: calc(var(--font-size-xs) * var(--line-height)); + } + + .h--inline-sm { + height: calc(var(--font-size-sm) * var(--line-height)); + } + + .h--inline-md { + height: calc(var(--font-size-md) * var(--line-height)); + } + + .h--inline-lg { + height: calc(var(--font-size-lg) * var(--line-height)); + } + + .h--inline-xl { + height: calc(var(--font-size-xl) * var(--line-height)); + } + + .h--inline-2xl { + height: calc(var(--font-size-2xl) * var(--line-height)); + } +} \ No newline at end of file diff --git a/packages/ui-react/src/styles/css/height-item.css b/packages/ui-react/src/styles/css/height-item.css new file mode 100644 index 0000000..d607285 --- /dev/null +++ b/packages/ui-react/src/styles/css/height-item.css @@ -0,0 +1,23 @@ +@layer utility { + .h--item-xs { + height: var(--height-item-xs); + } + .h--item-sm { + height: var(--height-item-sm); + } + .h--item-md { + height: var(--height-item-md); + } + .h--item-lg { + height: var(--height-item-lg); + } + .h--item-xl { + height: var(--height-item-xl); + } + .h--item-2xl { + height: var(--height-item-2xl); + } + .h--item-3xl { + height: var(--height-item-3xl); + } +} diff --git a/packages/ui-react/src/styles/css/justify-content.css b/packages/ui-react/src/styles/css/justify-content.css new file mode 100644 index 0000000..611a035 --- /dev/null +++ b/packages/ui-react/src/styles/css/justify-content.css @@ -0,0 +1,45 @@ +@layer utility { + .justify--start { + justify-content: flex-start; + } + + .justify--end { + justify-content: flex-end; + } + + .justify--end-safe { + justify-content: safe flex-end; + } + + .justify--center { + justify-content: center; + } + + .justify--center-safe { + justify-content: safe center; + } + + .justify--between { + justify-content: space-between; + } + + .justify--around { + justify-content: space-around; + } + + .justify--evenly { + justify-content: space-evenly; + } + + .justify--stretch { + justify-content: stretch; + } + + .justify--baseline { + justify-content: baseline; + } + + .justify--normal { + justify-content: normal; + } +} \ No newline at end of file diff --git a/packages/ui-react/src/styles/css/justify-items.css b/packages/ui-react/src/styles/css/justify-items.css new file mode 100644 index 0000000..557e884 --- /dev/null +++ b/packages/ui-react/src/styles/css/justify-items.css @@ -0,0 +1,29 @@ +@layer utility { + .justify-items--start { + justify-items: start; + } + + .justify-items--end { + justify-items: end; + } + + .justify-items--end-safe { + justify-items: safe end; + } + + .justify-items--center { + justify-items: center; + } + + .justify-items--center-safe { + justify-items: safe center; + } + + .justify-items--stretch { + justify-items: stretch; + } + + .justify-items--normal { + justify-items: normal; + } +} diff --git a/packages/ui-react/src/styles/css/justify-self.css b/packages/ui-react/src/styles/css/justify-self.css new file mode 100644 index 0000000..46ba34d --- /dev/null +++ b/packages/ui-react/src/styles/css/justify-self.css @@ -0,0 +1,29 @@ +@layer utility { + .justify-self--auto { + justify-self: auto; + } + + .justify-self--start { + justify-self: start; + } + + .justify-self--center { + justify-self: center; + } + + .justify-self--center-safe { + justify-self: safe center; + } + + .justify-self--end { + justify-self: end; + } + + .justify-self--end-safe { + justify-self: safe end; + } + + .justify-self--stretch { + justify-self: stretch; + } +} diff --git a/packages/ui-react/src/styles/css/max-height.css b/packages/ui-react/src/styles/css/max-height.css new file mode 100644 index 0000000..82ca7c4 --- /dev/null +++ b/packages/ui-react/src/styles/css/max-height.css @@ -0,0 +1,5 @@ +@layer utility { + .max-h--max-content { + max-height: max-content; + } +} diff --git a/packages/ui-react/src/styles/css/max-width.css b/packages/ui-react/src/styles/css/max-width.css new file mode 100644 index 0000000..6253831 --- /dev/null +++ b/packages/ui-react/src/styles/css/max-width.css @@ -0,0 +1,5 @@ +@layer utility { + .max-w--max-content { + max-width: max-content; + } +} diff --git a/packages/ui-react/src/styles/css/outline.css b/packages/ui-react/src/styles/css/outline.css new file mode 100644 index 0000000..e1ecf79 --- /dev/null +++ b/packages/ui-react/src/styles/css/outline.css @@ -0,0 +1,16 @@ +@layer utility { + .outline--none { + outline: none; + } + + .outline { + &:focus-visible { + outline: 3px solid var(--base-focus-outline-color); + outline-offset: 1px; + } + + &:focus:not(:focus-visible) { + outline: none; + } + } +} \ No newline at end of file diff --git a/packages/ui-react/src/styles/css/overflow.css b/packages/ui-react/src/styles/css/overflow.css new file mode 100644 index 0000000..f0b5f5c --- /dev/null +++ b/packages/ui-react/src/styles/css/overflow.css @@ -0,0 +1,61 @@ +@layer utility { + .overflow--auto { + overflow: auto; + } + + .overflow--hidden { + overflow: hidden; + } + + .overflow--clip { + overflow: clip; + } + + .overflow--visible { + overflow: visible; + } + + .overflow--scroll { + overflow: scroll; + } + + .overflow--x--auto { + overflow-x: auto; + } + + .overflow--y--auto { + overflow-y: auto; + } + + .overflow--x--hidden { + overflow-x: hidden; + } + + .overflow--y--hidden { + overflow-y: hidden; + } + + .overflow--x--clip { + overflow-x: clip; + } + + .overflow--y--clip { + overflow-y: clip; + } + + .overflow--x--visible { + overflow-x: visible; + } + + .overflow--y--visible { + overflow-y: visible; + } + + .overflow--x--scroll { + overflow-x: scroll; + } + + .overflow--y--scroll { + overflow-y: scroll; + } +} diff --git a/packages/ui-react/src/styles/css/overscroll-behavior.css b/packages/ui-react/src/styles/css/overscroll-behavior.css new file mode 100644 index 0000000..d22a37b --- /dev/null +++ b/packages/ui-react/src/styles/css/overscroll-behavior.css @@ -0,0 +1,37 @@ +@layer utility { + .overscroll--auto { + overscroll-behavior: auto; + } + + .overscroll--contain { + overscroll-behavior: contain; + } + + .overscroll--none { + overscroll-behavior: none; + } + + .overscroll--x-auto { + overscroll-behavior-x: auto; + } + + .overscroll--x-contain { + overscroll-behavior-x: contain; + } + + .overscroll--x-none { + overscroll-behavior-x: none; + } + + .overscroll--y-auto { + overscroll-behavior-y: auto; + } + + .overscroll--y-contain { + overscroll-behavior-y: contain; + } + + .overscroll--y-none { + overscroll-behavior-y: none; + } +} \ No newline at end of file diff --git a/packages/ui-react/src/styles/css/padding-long.css b/packages/ui-react/src/styles/css/padding-long.css new file mode 100644 index 0000000..e43939d --- /dev/null +++ b/packages/ui-react/src/styles/css/padding-long.css @@ -0,0 +1,20 @@ +@layer utility { + .px--long-xs { + padding-inline: var(--padding-long-xs); + } + .px--long-sm { + padding-inline: var(--padding-long-sm); + } + .px--long-md { + padding-inline: var(--padding-long-md); + } + .px--long-lg { + padding-inline: var(--padding-long-lg); + } + .px--long-xl { + padding-inline: var(--padding-long-xl); + } + .px--long-2xl { + padding-inline: var(--padding-long-2xl); + } +} diff --git a/packages/ui-react/src/styles/css/padding.css b/packages/ui-react/src/styles/css/padding.css new file mode 100644 index 0000000..c885fc5 --- /dev/null +++ b/packages/ui-react/src/styles/css/padding.css @@ -0,0 +1,80 @@ +@layer utility { + .px--none { + padding-inline: 0px; + } + .px--xs { + padding-inline: var(--padding-xs); + } + .px--sm { + padding-inline: var(--padding-sm); + } + .px--md { + padding-inline: var(--padding-md); + } + .px--lg { + padding-inline: var(--padding-lg); + } + .px--xl { + padding-inline: var(--padding-xl); + } + .px--2xl { + padding-inline: var(--padding-2xl); + } + .px--3xl { + padding-inline: var(--padding-3xl); + } + + /* =================================================== */ + + .py--none { + padding-block: 0px; + } + .py--xs { + padding-block: var(--padding-xs); + } + .py--sm { + padding-block: var(--padding-sm); + } + .py--md { + padding-block: var(--padding-md); + } + .py--lg { + padding-block: var(--padding-lg); + } + .py--xl { + padding-block: var(--padding-xl); + } + .py--2xl { + padding-block: var(--padding-2xl); + } + .py--3xl { + padding-block: var(--padding-3xl); + } + + /* =================================================== */ + + .px--4 { + padding-inline: var(--padding-4); + } + .py--4 { + padding-block: var(--padding-4); + } + .px--8 { + padding-inline: var(--padding-8); + } + .py--8 { + padding-block: var(--padding-8); + } + .px--12 { + padding-inline: var(--padding-12); + } + .py--12 { + padding-block: var(--padding-12); + } + .px--16 { + padding-inline: var(--padding-16); + } + .py--16 { + padding-block: var(--padding-16); + } +} diff --git a/packages/ui-react/src/styles/css/pointer-events.css b/packages/ui-react/src/styles/css/pointer-events.css new file mode 100644 index 0000000..eea186a --- /dev/null +++ b/packages/ui-react/src/styles/css/pointer-events.css @@ -0,0 +1,9 @@ +@layer utility { + .pointer-events--auto { + pointer-events: auto; + } + + .pointer-events--none { + pointer-events: none; + } +} \ No newline at end of file diff --git a/packages/ui-react/src/styles/css/position.css b/packages/ui-react/src/styles/css/position.css new file mode 100644 index 0000000..eb93cee --- /dev/null +++ b/packages/ui-react/src/styles/css/position.css @@ -0,0 +1,21 @@ +@layer utility { + .position--static { + position: static; + } + + .position--fixed { + position: fixed; + } + + .position--absolute { + position: absolute; + } + + .position--relative { + position: relative; + } + + .position--sticky { + position: sticky; + } +} \ No newline at end of file diff --git a/packages/ui-react/src/styles/css/screen-reader.css b/packages/ui-react/src/styles/css/screen-reader.css new file mode 100644 index 0000000..aea57f7 --- /dev/null +++ b/packages/ui-react/src/styles/css/screen-reader.css @@ -0,0 +1,23 @@ +@layer utility { + .sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip-path: inset(50%); + white-space: nowrap; + border-width: 0; + } + .sr-only--cancel { + position: static; + width: auto; + height: auto; + padding: 0; + margin: 0; + overflow: visible; + clip-path: none; + white-space: normal; + } +} diff --git a/packages/ui-react/src/styles/css/text-align.css b/packages/ui-react/src/styles/css/text-align.css new file mode 100644 index 0000000..245de39 --- /dev/null +++ b/packages/ui-react/src/styles/css/text-align.css @@ -0,0 +1,25 @@ +@layer utility { + .text-align--center { + text-align: center; + } + + .text-align--left { + text-align: left; + } + + .text-align--right { + text-align: right; + } + + .text-align--justify { + text-align: justify; + } + + .text-align--start { + text-align: start; + } + + .text-align--end { + text-align: end; + } +} \ No newline at end of file diff --git a/packages/ui-react/src/styles/css/theme-base.css b/packages/ui-react/src/styles/css/theme-base.css new file mode 100644 index 0000000..aeb75f0 --- /dev/null +++ b/packages/ui-react/src/styles/css/theme-base.css @@ -0,0 +1,444 @@ +@layer utility; + +.theme-base { + --color-red-50: oklch(97.1% 0.013 17.38); + --color-red-100: oklch(93.6% 0.032 17.717); + --color-red-200: oklch(88.5% 0.062 18.334); + --color-red-300: oklch(80.8% 0.114 19.571); + --color-red-400: oklch(70.4% 0.191 22.216); + --color-red-500: oklch(63.7% 0.237 25.331); + --color-red-600: oklch(57.7% 0.245 27.325); + --color-red-700: oklch(50.5% 0.213 27.518); + --color-red-800: oklch(44.4% 0.177 26.899); + --color-red-900: oklch(39.6% 0.141 25.723); + --color-red-950: oklch(25.8% 0.092 26.042); + --color-orange-50: oklch(98% 0.016 73.684); + --color-orange-100: oklch(95.4% 0.038 75.164); + --color-orange-200: oklch(90.1% 0.076 70.697); + --color-orange-300: oklch(83.7% 0.128 66.29); + --color-orange-400: oklch(75% 0.183 55.934); + --color-orange-500: oklch(70.5% 0.213 47.604); + --color-orange-600: oklch(64.6% 0.222 41.116); + --color-orange-700: oklch(55.3% 0.195 38.402); + --color-orange-800: oklch(47% 0.157 37.304); + --color-orange-900: oklch(40.8% 0.123 38.172); + --color-orange-950: oklch(26.6% 0.079 36.259); + --color-amber-50: oklch(98.7% 0.022 95.277); + --color-amber-100: oklch(96.2% 0.059 95.617); + --color-amber-200: oklch(92.4% 0.12 95.746); + --color-amber-300: oklch(87.9% 0.169 91.605); + --color-amber-400: oklch(82.8% 0.189 84.429); + --color-amber-500: oklch(76.9% 0.188 70.08); + --color-amber-600: oklch(66.6% 0.179 58.318); + --color-amber-700: oklch(55.5% 0.163 48.998); + --color-amber-800: oklch(47.3% 0.137 46.201); + --color-amber-900: oklch(41.4% 0.112 45.904); + --color-amber-950: oklch(27.9% 0.077 45.635); + --color-yellow-50: oklch(98.7% 0.026 102.212); + --color-yellow-100: oklch(97.3% 0.071 103.193); + --color-yellow-200: oklch(94.5% 0.129 101.54); + --color-yellow-300: oklch(90.5% 0.182 98.111); + --color-yellow-400: oklch(85.2% 0.199 91.936); + --color-yellow-500: oklch(79.5% 0.184 86.047); + --color-yellow-600: oklch(68.1% 0.162 75.834); + --color-yellow-700: oklch(55.4% 0.135 66.442); + --color-yellow-800: oklch(47.6% 0.114 61.907); + --color-yellow-900: oklch(42.1% 0.095 57.708); + --color-yellow-950: oklch(28.6% 0.066 53.813); + --color-lime-50: oklch(98.6% 0.031 120.757); + --color-lime-100: oklch(96.7% 0.067 122.328); + --color-lime-200: oklch(93.8% 0.127 124.321); + --color-lime-300: oklch(89.7% 0.196 126.665); + --color-lime-400: oklch(84.1% 0.238 128.85); + --color-lime-500: oklch(76.8% 0.233 130.85); + --color-lime-600: oklch(64.8% 0.2 131.684); + --color-lime-700: oklch(53.2% 0.157 131.589); + --color-lime-800: oklch(45.3% 0.124 130.933); + --color-lime-900: oklch(40.5% 0.101 131.063); + --color-lime-950: oklch(27.4% 0.072 132.109); + --color-green-50: oklch(98.2% 0.018 155.826); + --color-green-100: oklch(96.2% 0.044 156.743); + --color-green-200: oklch(92.5% 0.084 155.995); + --color-green-300: oklch(87.1% 0.15 154.449); + --color-green-400: oklch(79.2% 0.209 151.711); + --color-green-500: oklch(72.3% 0.219 149.579); + --color-green-600: oklch(62.7% 0.194 149.214); + --color-green-700: oklch(52.7% 0.154 150.069); + --color-green-800: oklch(44.8% 0.119 151.328); + --color-green-900: oklch(39.3% 0.095 152.535); + --color-green-950: oklch(26.6% 0.065 152.934); + --color-emerald-50: oklch(97.9% 0.021 166.113); + --color-emerald-100: oklch(95% 0.052 163.051); + --color-emerald-200: oklch(90.5% 0.093 164.15); + --color-emerald-300: oklch(84.5% 0.143 164.978); + --color-emerald-400: oklch(76.5% 0.177 163.223); + --color-emerald-500: oklch(69.6% 0.17 162.48); + --color-emerald-600: oklch(59.6% 0.145 163.225); + --color-emerald-700: oklch(50.8% 0.118 165.612); + --color-emerald-800: oklch(43.2% 0.095 166.913); + --color-emerald-900: oklch(37.8% 0.077 168.94); + --color-emerald-950: oklch(26.2% 0.051 172.552); + --color-teal-50: oklch(98.4% 0.014 180.72); + --color-teal-100: oklch(95.3% 0.051 180.801); + --color-teal-200: oklch(91% 0.096 180.426); + --color-teal-300: oklch(85.5% 0.138 181.071); + --color-teal-400: oklch(77.7% 0.152 181.912); + --color-teal-500: oklch(70.4% 0.14 182.503); + --color-teal-600: oklch(60% 0.118 184.704); + --color-teal-700: oklch(51.1% 0.096 186.391); + --color-teal-800: oklch(43.7% 0.078 188.216); + --color-teal-900: oklch(38.6% 0.063 188.416); + --color-teal-950: oklch(27.7% 0.046 192.524); + --color-cyan-50: oklch(98.4% 0.019 200.873); + --color-cyan-100: oklch(95.6% 0.045 203.388); + --color-cyan-200: oklch(91.7% 0.08 205.041); + --color-cyan-300: oklch(86.5% 0.127 207.078); + --color-cyan-400: oklch(78.9% 0.154 211.53); + --color-cyan-500: oklch(71.5% 0.143 215.221); + --color-cyan-600: oklch(60.9% 0.126 221.723); + --color-cyan-700: oklch(52% 0.105 223.128); + --color-cyan-800: oklch(45% 0.085 224.283); + --color-cyan-900: oklch(39.8% 0.07 227.392); + --color-cyan-950: oklch(30.2% 0.056 229.695); + --color-sky-50: oklch(97.7% 0.013 236.62); + --color-sky-100: oklch(95.1% 0.026 236.824); + --color-sky-200: oklch(90.1% 0.058 230.902); + --color-sky-300: oklch(82.8% 0.111 230.318); + --color-sky-400: oklch(74.6% 0.16 232.661); + --color-sky-500: oklch(68.5% 0.169 237.323); + --color-sky-600: oklch(58.8% 0.158 241.966); + --color-sky-700: oklch(50% 0.134 242.749); + --color-sky-800: oklch(44.3% 0.11 240.79); + --color-sky-900: oklch(39.1% 0.09 240.876); + --color-sky-950: oklch(29.3% 0.066 243.157); + --color-blue-50: oklch(97% 0.014 254.604); + --color-blue-100: oklch(93.2% 0.032 255.585); + --color-blue-200: oklch(88.2% 0.059 254.128); + --color-blue-300: oklch(80.9% 0.105 251.813); + --color-blue-400: oklch(70.7% 0.165 254.624); + --color-blue-500: oklch(62.3% 0.214 259.815); + --color-blue-600: oklch(54.6% 0.245 262.881); + --color-blue-700: oklch(48.8% 0.243 264.376); + --color-blue-800: oklch(42.4% 0.199 265.638); + --color-blue-900: oklch(37.9% 0.146 265.522); + --color-blue-950: oklch(28.2% 0.091 267.935); + --color-indigo-50: oklch(96.2% 0.018 272.314); + --color-indigo-100: oklch(93% 0.034 272.788); + --color-indigo-200: oklch(87% 0.065 274.039); + --color-indigo-300: oklch(78.5% 0.115 274.713); + --color-indigo-400: oklch(67.3% 0.182 276.935); + --color-indigo-500: oklch(58.5% 0.233 277.117); + --color-indigo-600: oklch(51.1% 0.262 276.966); + --color-indigo-700: oklch(45.7% 0.24 277.023); + --color-indigo-800: oklch(39.8% 0.195 277.366); + --color-indigo-900: oklch(35.9% 0.144 278.697); + --color-indigo-950: oklch(25.7% 0.09 281.288); + --color-violet-50: oklch(96.9% 0.016 293.756); + --color-violet-100: oklch(94.3% 0.029 294.588); + --color-violet-200: oklch(89.4% 0.057 293.283); + --color-violet-300: oklch(81.1% 0.111 293.571); + --color-violet-400: oklch(70.2% 0.183 293.541); + --color-violet-500: oklch(60.6% 0.25 292.717); + --color-violet-600: oklch(54.1% 0.281 293.009); + --color-violet-700: oklch(49.1% 0.27 292.581); + --color-violet-800: oklch(43.2% 0.232 292.759); + --color-violet-900: oklch(38% 0.189 293.745); + --color-violet-950: oklch(28.3% 0.141 291.089); + --color-purple-50: oklch(97.7% 0.014 308.299); + --color-purple-100: oklch(94.6% 0.033 307.174); + --color-purple-200: oklch(90.2% 0.063 306.703); + --color-purple-300: oklch(82.7% 0.119 306.383); + --color-purple-400: oklch(71.4% 0.203 305.504); + --color-purple-500: oklch(62.7% 0.265 303.9); + --color-purple-600: oklch(55.8% 0.288 302.321); + --color-purple-700: oklch(49.6% 0.265 301.924); + --color-purple-800: oklch(43.8% 0.218 303.724); + --color-purple-900: oklch(38.1% 0.176 304.987); + --color-purple-950: oklch(29.1% 0.149 302.717); + --color-fuchsia-50: oklch(97.7% 0.017 320.058); + --color-fuchsia-100: oklch(95.2% 0.037 318.852); + --color-fuchsia-200: oklch(90.3% 0.076 319.62); + --color-fuchsia-300: oklch(83.3% 0.145 321.434); + --color-fuchsia-400: oklch(74% 0.238 322.16); + --color-fuchsia-500: oklch(66.7% 0.295 322.15); + --color-fuchsia-600: oklch(59.1% 0.293 322.896); + --color-fuchsia-700: oklch(51.8% 0.253 323.949); + --color-fuchsia-800: oklch(45.2% 0.211 324.591); + --color-fuchsia-900: oklch(40.1% 0.17 325.612); + --color-fuchsia-950: oklch(29.3% 0.136 325.661); + --color-pink-50: oklch(97.1% 0.014 343.198); + --color-pink-100: oklch(94.8% 0.028 342.258); + --color-pink-200: oklch(89.9% 0.061 343.231); + --color-pink-300: oklch(82.3% 0.12 346.018); + --color-pink-400: oklch(71.8% 0.202 349.761); + --color-pink-500: oklch(65.6% 0.241 354.308); + --color-pink-600: oklch(59.2% 0.249 0.584); + --color-pink-700: oklch(52.5% 0.223 3.958); + --color-pink-800: oklch(45.9% 0.187 3.815); + --color-pink-900: oklch(40.8% 0.153 2.432); + --color-pink-950: oklch(28.4% 0.109 3.907); + --color-rose-50: oklch(96.9% 0.015 12.422); + --color-rose-100: oklch(94.1% 0.03 12.58); + --color-rose-200: oklch(89.2% 0.058 10.001); + --color-rose-300: oklch(81% 0.117 11.638); + --color-rose-400: oklch(71.2% 0.194 13.428); + --color-rose-500: oklch(64.5% 0.246 16.439); + --color-rose-600: oklch(58.6% 0.253 17.585); + --color-rose-700: oklch(51.4% 0.222 16.935); + --color-rose-800: oklch(45.5% 0.188 13.697); + --color-rose-900: oklch(41% 0.159 10.272); + --color-rose-950: oklch(27.1% 0.105 12.094); + --color-slate-50: oklch(98.4% 0.003 247.858); + --color-slate-100: oklch(96.8% 0.007 247.896); + --color-slate-200: oklch(92.9% 0.013 255.508); + --color-slate-300: oklch(86.9% 0.022 252.894); + --color-slate-400: oklch(70.4% 0.04 256.788); + --color-slate-500: oklch(55.4% 0.046 257.417); + --color-slate-600: oklch(44.6% 0.043 257.281); + --color-slate-700: oklch(37.2% 0.044 257.287); + --color-slate-800: oklch(27.9% 0.041 260.031); + --color-slate-900: oklch(20.8% 0.042 265.755); + --color-slate-950: oklch(12.9% 0.042 264.695); + --color-gray-50: oklch(98.5% 0.002 247.839); + --color-gray-100: oklch(96.7% 0.003 264.542); + --color-gray-200: oklch(92.8% 0.006 264.531); + --color-gray-300: oklch(87.2% 0.01 258.338); + --color-gray-400: oklch(70.7% 0.022 261.325); + --color-gray-500: oklch(55.1% 0.027 264.364); + --color-gray-600: oklch(44.6% 0.03 256.802); + --color-gray-700: oklch(37.3% 0.034 259.733); + --color-gray-800: oklch(27.8% 0.033 256.848); + --color-gray-900: oklch(21% 0.034 264.665); + --color-gray-950: oklch(13% 0.028 261.692); + --color-zinc-50: oklch(98.5% 0 0); + --color-zinc-100: oklch(96.7% 0.001 286.375); + --color-zinc-200: oklch(92% 0.004 286.32); + --color-zinc-300: oklch(87.1% 0.006 286.286); + --color-zinc-400: oklch(70.5% 0.015 286.067); + --color-zinc-500: oklch(55.2% 0.016 285.938); + --color-zinc-600: oklch(44.2% 0.017 285.786); + --color-zinc-700: oklch(37% 0.013 285.805); + --color-zinc-800: oklch(27.4% 0.006 286.033); + --color-zinc-900: oklch(21% 0.006 285.885); + --color-zinc-950: oklch(14.1% 0.005 285.823); + --color-neutral-50: oklch(98.5% 0 0); + --color-neutral-100: oklch(97% 0 0); + --color-neutral-200: oklch(92.2% 0 0); + --color-neutral-300: oklch(87% 0 0); + --color-neutral-400: oklch(70.8% 0 0); + --color-neutral-500: oklch(55.6% 0 0); + --color-neutral-600: oklch(43.9% 0 0); + --color-neutral-700: oklch(37.1% 0 0); + --color-neutral-800: oklch(26.9% 0 0); + --color-neutral-900: oklch(20.5% 0 0); + --color-neutral-950: oklch(14.5% 0 0); + --color-stone-50: oklch(98.5% 0.001 106.423); + --color-stone-100: oklch(97% 0.001 106.424); + --color-stone-200: oklch(92.3% 0.003 48.717); + --color-stone-300: oklch(86.9% 0.005 56.366); + --color-stone-400: oklch(70.9% 0.01 56.259); + --color-stone-500: oklch(55.3% 0.013 58.071); + --color-stone-600: oklch(44.4% 0.011 73.639); + --color-stone-700: oklch(37.4% 0.01 67.558); + --color-stone-800: oklch(26.8% 0.007 34.298); + --color-stone-900: oklch(21.6% 0.006 56.043); + --color-stone-950: oklch(14.7% 0.004 49.25); + --color-mauve-50: oklch(98.5% 0 0); + --color-mauve-100: oklch(96% 0.003 325.6); + --color-mauve-200: oklch(92.2% 0.005 325.62); + --color-mauve-300: oklch(86.5% 0.012 325.68); + --color-mauve-400: oklch(71.1% 0.019 323.02); + --color-mauve-500: oklch(54.2% 0.034 322.5); + --color-mauve-600: oklch(43.5% 0.029 321.78); + --color-mauve-700: oklch(36.4% 0.029 323.89); + --color-mauve-800: oklch(26.3% 0.024 320.12); + --color-mauve-900: oklch(21.2% 0.019 322.12); + --color-mauve-950: oklch(14.5% 0.008 326); + --color-olive-50: oklch(98.8% 0.003 106.5); + --color-olive-100: oklch(96.6% 0.005 106.5); + --color-olive-200: oklch(93% 0.007 106.5); + --color-olive-300: oklch(88% 0.011 106.6); + --color-olive-400: oklch(73.7% 0.021 106.9); + --color-olive-500: oklch(58% 0.031 107.3); + --color-olive-600: oklch(46.6% 0.025 107.3); + --color-olive-700: oklch(39.4% 0.023 107.4); + --color-olive-800: oklch(28.6% 0.016 107.4); + --color-olive-900: oklch(22.8% 0.013 107.4); + --color-olive-950: oklch(15.3% 0.006 107.1); + --color-mist-50: oklch(98.7% 0.002 197.1); + --color-mist-100: oklch(96.3% 0.002 197.1); + --color-mist-200: oklch(92.5% 0.005 214.3); + --color-mist-300: oklch(87.2% 0.007 219.6); + --color-mist-400: oklch(72.3% 0.014 214.4); + --color-mist-500: oklch(56% 0.021 213.5); + --color-mist-600: oklch(45% 0.017 213.2); + --color-mist-700: oklch(37.8% 0.015 216); + --color-mist-800: oklch(27.5% 0.011 216.9); + --color-mist-900: oklch(21.8% 0.008 223.9); + --color-mist-950: oklch(14.8% 0.004 228.8); + --color-taupe-50: oklch(98.6% 0.002 67.8); + --color-taupe-100: oklch(96% 0.002 17.2); + --color-taupe-200: oklch(92.2% 0.005 34.3); + --color-taupe-300: oklch(86.8% 0.007 39.5); + --color-taupe-400: oklch(71.4% 0.014 41.2); + --color-taupe-500: oklch(54.7% 0.021 43.1); + --color-taupe-600: oklch(43.8% 0.017 39.3); + --color-taupe-700: oklch(36.7% 0.016 35.7); + --color-taupe-800: oklch(26.8% 0.011 36.5); + --color-taupe-900: oklch(21.4% 0.009 43.1); + --color-taupe-950: oklch(14.7% 0.004 49.3); + --color-black: #000; + --color-white: #fff; + --color-transparent: transparent; + + --danger-background-high: var(--color-red-600); + --danger-background-high-hover: var(--color-red-500); + --danger-background-high-active: var(--color-red-400); + --danger-background-low: var(--color-red-100); + --danger-background-low-hover: var(--color-red-200); + --danger-background-low-active: var(--color-red-300); + + --success-background-high: var(--color-emerald-600); + --success-background-high-hover: var(--color-emerald-500); + --success-background-high-active: var(--color-emerald-400); + --success-background-low: var(--color-emerald-100); + --success-background-low-hover: var(--color-emerald-200); + --success-background-low-active: var(--color-emerald-300); + + --info-background-high: var(--color-sky-600); + --info-background-high-hover: var(--color-sky-500); + --info-background-high-active: var(--color-sky-400); + --info-background-low: var(--color-sky-100); + --info-background-low-hover: var(--color-sky-200); + --info-background-low-active: var(--color-sky-300); + + --warning-background-high: var(--color-yellow-600); + --warning-background-high-hover: var(--color-yellow-500); + --warning-background-high-active: var(--color-yellow-400); + --warning-background-low: var(--color-yellow-100); + --warning-background-low-hover: var(--color-yellow-200); + --warning-background-low-active: var(--color-yellow-300); + + --default-background-high: var(--color-neutral-600); + --default-background-high-hover: var(--color-neutral-500); + --default-background-high-active: var(--color-neutral-400); + --default-background-low: var(--color-neutral-100); + --default-background-low-hover: var(--color-neutral-200); + --default-background-low-active: var(--color-neutral-300); + + --disabled-color: var(--color-gray-400); + --disabled-background: var(--color-gray-100); + --disabled-border-color: var(--color-gray-300); + + --font-size-xs: 12px; + --font-size-sm: 13px; + --font-size-md: 14px; + --font-size-lg: 16px; + --font-size-xl: 16px; + --font-size-2xl: 24px; + --font-size-3xl: 30px; + + --line-height: 1.33; + + --font-weight-light: 300; + --font-weight-normal: 400; + --font-weight-extranormal: 500; + --font-weight-semibold: 600; + --font-weight-bold: 700; + --font-weight-extrabold: 800; + + --font-weight-xs: var(--font-weight-normal); + --font-weight-sm: var(--font-weight-normal); + --font-weight-md: var(--font-weight-extranormal); + --font-weight-lg: var(--font-weight-semibold); + --font-weight-xl: var(--font-weight-semibold); + --font-weight-2xl: var(--font-weight-semibold); + --font-weight-3xl: var(--font-weight-bold); + + --height-item-xs: 20px; + --height-item-sm: 24px; + --height-item-md: 28px; + --height-item-lg: 34px; + --height-item-xl: 44px; + --height-item-2xl: 56px; + --height-item-3xl: 64px; + + --radius-xs: 2px; + --radius-sm: 3px; + --radius-md: 4px; + --radius-lg: 5px; + --radius-xl: 8px; + --radius-2xl: 12px; + --radius-3xl: 16px; + --radius-none: 0; + --radius-full: 9999px; + + --padding-xs: 6px; + --padding-sm: 8px; + --padding-md: 10px; + --padding-lg: 12px; + --padding-xl: 16px; + --padding-2xl: 2px; + --padding-3xl: 2px; + + --padding-long-xs: 12px; + --padding-long-sm: 14px; + --padding-long-md: 18px; + --padding-long-lg: 26px; + --padding-long-xl: 2px; + --padding-long-2xl: 2px; + --padding-long-3xl: 2px; + + --gap-xs: 2px; + --gap-sm: 4px; + --gap-md: 6px; + --gap-lg: 8px; + --gap-xl: 10px; + --gap-2xl: 12px; + --gap-3xl: 14px; + --gap-none: 0; + + --drop-shadow: drop-shadow(0 0 4px rgba(0, 0, 0, 0.14)) + drop-shadow(0 8px 16px rgba(0, 0, 0, 0.14)); + + --box-shadow: + 0 0 16px 0px rgba(0, 0, 0, 0.1), 0 8px 20px 0px rgba(0, 0, 0, 0.1); + + --border-1: 1px solid; + --border-none: 0 solid; + + --radius-4: 4px; + --radius-8: 8px; + --radius-12: 12px; + --radius-16: 16px; + + --padding-4: 4px; + --padding-8: 8px; + --padding-12: 12px; + --padding-16: 16px; + + --animate-spin: spin 1s linear infinite; + --animate-ping: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; + --animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; + --animate-bounce: bounce 1s infinite; + --animate-fade-in-down: fade-in-down 0.5s ease-out both; + --animate-fade-out-down: fade-out-down 0.5s ease-in both; + --animate-fade-in-up: fade-in-up 0.5s ease-out both; + --animate-fade-out-up: fade-out-up 0.5s ease-in both; + + --font-sans: + ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", + "Segoe UI Symbol", "Noto Color Emoji"; + --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif; + --font-mono: + ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", + "Courier New", monospace; + + --height-inline-xs: calc(var(--font-size-xs) * var(--line-height)); + --height-inline-sm: calc(var(--font-size-sm) * var(--line-height)); + --height-inline-md: calc(var(--font-size-md) * var(--line-height)); + --height-inline-lg: calc(var(--font-size-lg) * var(--line-height)); + --height-inline-xl: calc(var(--font-size-xl) * var(--line-height)); + --height-inline-2xl: calc(var(--font-size-2xl) * var(--line-height)); + --height-inline-3xl: calc(var(--font-size-3xl) * var(--line-height)); +} diff --git a/packages/ui-react/src/styles/css/theme.css b/packages/ui-react/src/styles/css/theme.css new file mode 100644 index 0000000..6968429 --- /dev/null +++ b/packages/ui-react/src/styles/css/theme.css @@ -0,0 +1,15 @@ +@layer utility { + .theme--light { + --base-color: var(--color-gray-950); + /* --base-color: oklch(from var(--color-gray-950) l c h / 0.88); */ + --base-background: var(--color-white); + --base-focus-outline-color: var(--color-neutral-500); + } + + .theme--dark { + --base-color: var(--color-gray-950); + /* --base-color: oklch(from var(--color-gray-50) l c h / 0.88); */ + --base-background: var(--color-black); + --base-focus-outline-color: var(--color-neutral-500); + } +} diff --git a/packages/ui-react/src/styles/css/transition.css b/packages/ui-react/src/styles/css/transition.css new file mode 100644 index 0000000..0d07837 --- /dev/null +++ b/packages/ui-react/src/styles/css/transition.css @@ -0,0 +1,14 @@ +@layer utility { + .transition--width-on-click { + width: 0; + transition: width 5s ease-in-out; + &.on-click { + width: max-content; + } + } +} +/* 关于 css动画的思考,首先,容器一定是响应式的, +内部可能有多个元素都有动画,容器宽度是没有固定值的, +如果用 js,那么就是简单的把元素 append 进去, +如果append 第二个元素,那么第一个的动画会重新触发吗 +*/ diff --git a/packages/ui-react/src/styles/css/user-select.css b/packages/ui-react/src/styles/css/user-select.css new file mode 100644 index 0000000..afae08c --- /dev/null +++ b/packages/ui-react/src/styles/css/user-select.css @@ -0,0 +1,17 @@ +@layer utility { + .select--none { + user-select: none; + } + + .select--text { + user-select: text; + } + + .select--all { + user-select: all; + } + + .select--auto { + user-select: auto; + } +} \ No newline at end of file diff --git a/packages/ui-react/src/styles/css/variant-disabled.css b/packages/ui-react/src/styles/css/variant-disabled.css new file mode 100644 index 0000000..58ffa2b --- /dev/null +++ b/packages/ui-react/src/styles/css/variant-disabled.css @@ -0,0 +1,155 @@ +@layer utility { + .variant--filled-disabled { + --filled-color: var(--color-white); + --filled-color-hover: var(--color-white); + --filled-color-active: var(--color-white); + + --filled-background: var(--brand-background-high); + --filled-background-hover: var(--brand-background-high-hover); + --filled-background-active: var(--brand-background-high-active); + + --filled-border: var(--border-none); + --filled-border-color: var(--color-transparent); + + color: var(--filled-color); + background-color: var(--filled-background); + border: var(--filled-border); + border-color: var(--filled-border-color); + filter: grayscale(100); + + &:hover { + color: var(--filled-color); + background-color: var(--filled-background); + filter: grayscale(100); + } + + &:focus-visible { + color: var(--filled-color); + background-color: var(--filled-background); + filter: grayscale(100); + } + + &:active { + color: var(--filled-color); + background-color: var(--filled-background); + filter: grayscale(100); + } + + + } + + .variant--outline-disabled { + --outline-color: var(--brand-background); + --outline-color-hover: var(--brand-background); + --outline-color-active: var(--brand-background); + + --outline-background: var(--color-transparent); + --outline-background-hover: var(--brand-background-low-hover); + --outline-background-active: var(--brand-background-low-active); + + --outline-border: var(--border-1); + --outline-border-color: var(--brand-background); + + color: var(--outline-color); + background-color: var(--outline-background); + border: var(--outline-border); + border-color: var(--outline-border-color); + filter: grayscale(100); + + &:hover { + color: var(--outline-color); + background-color: var(--outline-background); + filter: grayscale(100); + } + + &:focus-visible { + color: var(--outline-color); + background-color: var(--outline-background); + filter: grayscale(100); + } + + &:active { + color: var(--outline-color); + background-color: var(--outline-background); + filter: grayscale(100); + } + + + } + + .variant--subtle-disabled { + --subtle-color: var(--brand-background); + --subtle-color-hover: var(--brand-background); + --subtle-color-active: var(--brand-background); + + --subtle-background: var(--brand-background-low); + --subtle-background-hover: var(--brand-background-low-hover); + --subtle-background-active: var(--brand-background-low-active); + + --subtle-border: var(--border-none); + --subtle-border-color: var(--color-transparent); + + color: var(--subtle-color); + background-color: var(--subtle-background); + border: var(--subtle-border); + border-color: var(--subtle-border-color); + filter: grayscale(100); + + &:hover { + color: var(--subtle-color); + background-color: var(--subtle-background); + filter: grayscale(100); + } + + &:focus-visible { + color: var(--subtle-color); + background-color: var(--subtle-background); + filter: grayscale(100); + } + + &:active { + color: var(--subtle-color); + background-color: var(--subtle-background); + filter: grayscale(100); + } + + } + + .variant--ghost-disabled { + --ghost-color: var(--brand-background); + --ghost-color-hover: var(--brand-background); + --ghost-color-active: var(--brand-background); + + --ghost-background: var(--color-transparent); + --ghost-background-hover: var(--brand-background-low-hover); + --ghost-background-active: var(--brand-background-low-active); + + --ghost-border: var(--border-none); + --ghost-border-color: var(--color-transparent); + + color: var(--ghost-color); + background-color: var(--ghost-background); + border: var(--ghost-border); + border-color: var(--ghost-border-color); + filter: grayscale(100); + + &:hover { + color: var(--ghost-color); + background-color: var(--ghost-background); + filter: grayscale(100); + } + + &:focus-visible { + color: var(--ghost-color); + background-color: var(--ghost-background); + filter: grayscale(100); + } + + &:active { + color: var(--ghost-color); + background-color: var(--ghost-background); + filter: grayscale(100); + } + + } +} \ No newline at end of file diff --git a/packages/ui-react/src/styles/css/variant-unclickable.css b/packages/ui-react/src/styles/css/variant-unclickable.css new file mode 100644 index 0000000..3a0958a --- /dev/null +++ b/packages/ui-react/src/styles/css/variant-unclickable.css @@ -0,0 +1,76 @@ +@layer utility { + .variant--filled-unclickable { + --filled-color: var(--color-white); + --filled-color-hover: var(--color-white); + --filled-color-active: var(--color-white); + + --filled-background: var(--brand-background-high); + --filled-background-hover: var(--brand-background-high-hover); + + --filled-background-active: var(--brand-background-high-active); + --filled-border: var(--border-none); + --filled-border-color: var(--color-transparent); + + color: var(--filled-color); + background-color: var(--filled-background); + border: var(--filled-border); + border-color: var(--filled-border-color); + + } + + .variant--outline-unclickable { + --outline-color: var(--brand-background); + --outline-color-hover: var(--brand-background); + --outline-color-active: var(--brand-background); + + --outline-background: var(--color-transparent); + --outline-background-hover: var(--brand-background-low-hover); + --outline-background-active: var(--brand-background-low-active); + + --outline-border: var(--border-1); + --outline-border-color: var(--brand-background); + + color: var(--outline-color); + background-color: var(--outline-background); + border: var(--outline-border); + border-color: var(--outline-border-color); + + } + + .variant--subtle-unclickable { + --subtle-color: var(--brand-background); + --subtle-color-hover: var(--brand-background); + --subtle-color-active: var(--brand-background); + + --subtle-background: var(--brand-background-low); + --subtle-background-hover: var(--brand-background-low-hover); + --subtle-background-active: var(--brand-background-low-active); + + --subtle-border: var(--border-none); + --subtle-border-color: var(--color-transparent); + + color: var(--subtle-color); + background-color: var(--subtle-background); + border: var(--subtle-border); + border-color: var(--subtle-border-color); + + } + + .variant--ghost-unclickable { + --ghost-color: var(--brand-background); + --ghost-color-hover: var(--brand-background); + --ghost-color-active: var(--brand-background); + + --ghost-background: var(--color-transparent); + --ghost-background-hover: var(--brand-background-low-hover); + --ghost-background-active: var(--brand-background-low-active); + + --ghost-border: var(--border-none); + --ghost-border-color: var(--color-transparent); + + color: var(--ghost-color); + background-color: var(--ghost-background); + border: var(--ghost-border); + border-color: var(--ghost-border-color); + } +} \ No newline at end of file diff --git a/packages/ui-react/src/styles/css/variant.css b/packages/ui-react/src/styles/css/variant.css new file mode 100644 index 0000000..faf2be7 --- /dev/null +++ b/packages/ui-react/src/styles/css/variant.css @@ -0,0 +1,137 @@ +@layer utility { + .variant--filled { + --filled-color: var(--color-white); + --filled-color-hover: var(--color-white); + --filled-color-active: var(--color-white); + + --filled-background: var(--brand-background-high); + --filled-background-hover: var(--brand-background-high-hover); + + --filled-background-active: var(--brand-background-high-active); + --filled-border: var(--border-none); + --filled-border-color: var(--color-transparent); + + color: var(--filled-color); + background-color: var(--filled-background); + border: var(--filled-border); + border-color: var(--filled-border-color); + cursor: pointer; + + &:hover { + color: var(--filled-color-hover); + background-color: var(--filled-background-hover); + } + + &:focus-visible { + color: var(--filled-color-hover); + background-color: var(--filled-background-hover); + } + + &:active { + color: var(--filled-color-active); + background-color: var(--filled-background-active); + } + } + + .variant--outline { + --outline-color: var(--brand-background-high); + --outline-color-hover: var(--brand-background-high); + --outline-color-active: var(--brand-background-high); + + --outline-background: var(--color-transparent); + --outline-background-hover: var(--brand-background-low-hover); + --outline-background-active: var(--brand-background-low-active); + + --outline-border: var(--border-1); + --outline-border-color: var(--brand-background-high-active); + + color: var(--outline-color); + background-color: var(--outline-background); + border: var(--outline-border); + border-color: var(--outline-border-color); + cursor: pointer; + + &:hover { + color: var(--outline-color-hover); + background-color: var(--outline-background-hover); + } + + &:focus-visible { + color: var(--outline-color-hover); + background-color: var(--outline-background-hover); + } + + &:active { + color: var(--outline-color-active); + background-color: var(--outline-background-active); + } + } + + .variant--subtle { + --subtle-color: var(--brand-background-high); + --subtle-color-hover: var(--brand-background-high); + --subtle-color-active: var(--brand-background-high); + + --subtle-background: var(--brand-background-low); + --subtle-background-hover: var(--brand-background-low-hover); + --subtle-background-active: var(--brand-background-low-active); + + --subtle-border: var(--border-none); + --subtle-border-color: var(--color-transparent); + + color: var(--subtle-color); + background-color: var(--subtle-background); + border: var(--subtle-border); + border-color: var(--subtle-border-color); + cursor: pointer; + + &:hover { + background-color: var(--subtle-background-hover); + color: var(--subtle-color-hover); + } + + &:focus-visible { + background-color: var(--subtle-background-hover); + color: var(--subtle-color-hover); + } + + &:active { + background-color: var(--subtle-background-active); + color: var(--subtle-color-active); + } + } + + .variant--ghost { + --ghost-color: var(--brand-background-high); + --ghost-color-hover: var(--brand-background-high); + --ghost-color-active: var(--brand-background-high); + + --ghost-background: var(--color-transparent); + --ghost-background-hover: var(--brand-background-low-hover); + --ghost-background-active: var(--brand-background-low-active); + + --ghost-border: var(--border-none); + --ghost-border-color: var(--color-transparent); + + color: var(--ghost-color); + background-color: var(--ghost-background); + border: var(--ghost-border); + border-color: var(--ghost-border-color); + cursor: pointer; + + &:hover { + background-color: var(--ghost-background-hover); + color: var(--ghost-color-hover); + } + + &:focus-visible { + background-color: var(--ghost-background-hover); + color: var(--ghost-color-hover); + } + + &:active { + background-color: var(--ghost-background-active); + color: var(--ghost-color-active); + } + } +} diff --git a/packages/ui-react/src/styles/css/visibility.css b/packages/ui-react/src/styles/css/visibility.css new file mode 100644 index 0000000..7d6e212 --- /dev/null +++ b/packages/ui-react/src/styles/css/visibility.css @@ -0,0 +1,13 @@ +@layer utility { + .visible { + visibility: visible; + } + + .visible--hidden { + visibility: hidden; + } + + .visible--collapse { + visibility: collapse; + } +} \ No newline at end of file diff --git a/packages/ui-react/src/styles/css/white-space.css b/packages/ui-react/src/styles/css/white-space.css new file mode 100644 index 0000000..a50aacd --- /dev/null +++ b/packages/ui-react/src/styles/css/white-space.css @@ -0,0 +1,25 @@ +@layer utility { + .white-space--normal { + white-space: normal; + } + + .white-space--nowrap { + white-space: nowrap; + } + + .white-space--pre { + white-space: pre; + } + + .white-space--pre-line { + white-space: pre-line; + } + + .white-space--pre-wrap { + white-space: pre-wrap; + } + + .white-space--break-spaces { + white-space: break-spaces; + } +} \ No newline at end of file diff --git a/packages/ui-react/src/styles/css/width-dot.css b/packages/ui-react/src/styles/css/width-dot.css new file mode 100644 index 0000000..3c6abea --- /dev/null +++ b/packages/ui-react/src/styles/css/width-dot.css @@ -0,0 +1,30 @@ +@layer utility { + .w--dot-xs { + width: calc(var(--font-size-xs) / 2); + } + + .w--dot-sm { + width: calc(var(--font-size-sm) / 2); + } + + .w--dot-md { + width: calc(var(--font-size-md) / 2); + } + + .w--dot-lg { + width: calc(var(--font-size-lg) / 2); + } + + .w--dot-xl { + width: calc(var(--font-size-xl) / 2); + } + + .w--dot-2xl { + width: calc(var(--font-size-2xl) / 2); + } + + .w--dot-3xl { + width: calc(var(--font-size-3xl) / 2); + } + +} \ No newline at end of file diff --git a/packages/ui-react/src/styles/css/width-inline.css b/packages/ui-react/src/styles/css/width-inline.css new file mode 100644 index 0000000..54c9c76 --- /dev/null +++ b/packages/ui-react/src/styles/css/width-inline.css @@ -0,0 +1,25 @@ +@layer utility { + .w--inline-xs { + width: calc(var(--font-size-xs) * var(--line-height)); + } + + .w--inline-sm { + width: calc(var(--font-size-sm) * var(--line-height)); + } + + .w--inline-md { + width: calc(var(--font-size-md) * var(--line-height)); + } + + .w--inline-lg { + width: calc(var(--font-size-lg) * var(--line-height)); + } + + .w--inline-xl { + width: calc(var(--font-size-xl) * var(--line-height)); + } + + .w--inline-xl { + width: calc(var(--font-size-2xl) * var(--line-height)); + } +} \ No newline at end of file diff --git a/packages/ui-react/src/styles/css/width-item.css b/packages/ui-react/src/styles/css/width-item.css new file mode 100644 index 0000000..f9cb198 --- /dev/null +++ b/packages/ui-react/src/styles/css/width-item.css @@ -0,0 +1,25 @@ +@layer utility { + .w--item-xs { + width: var(--height-item-xs); + } + + .w--item-sm { + width: var(--height-item-sm); + } + + .w--item-md { + width: var(--height-item-md); + } + + .w--item-lg { + width: var(--height-item-lg); + } + + .w--item-xl { + width: var(--height-item-xl); + } + + .w--item--2xl { + width: var(--height-item-2xl); + } +} \ No newline at end of file diff --git a/packages/ui-react/src/styles/css/z-index.css b/packages/ui-react/src/styles/css/z-index.css new file mode 100644 index 0000000..7e9895e --- /dev/null +++ b/packages/ui-react/src/styles/css/z-index.css @@ -0,0 +1,53 @@ +@layer utility { + + /* 自动 & 零 */ + .z--auto { + z-index: auto; + } + + .z--0 { + z-index: 0; + } + + /* 正值 */ + .z--10 { + z-index: 10; + } + + .z--20 { + z-index: 20; + } + + .z--30 { + z-index: 30; + } + + .z--40 { + z-index: 40; + } + + .z--50 { + z-index: 50; + } + + /* 负值(negative) */ + .z--n-10 { + z-index: -10; + } + + .z--n-20 { + z-index: -20; + } + + .z--n-30 { + z-index: -30; + } + + .z--n-40 { + z-index: -40; + } + + .z--n-50 { + z-index: -50; + } +} \ No newline at end of file diff --git a/packages/ui-react/src/styles/recipes/brand-recipe.ts b/packages/ui-react/src/styles/recipes/brand-recipe.ts new file mode 100644 index 0000000..9e2145a --- /dev/null +++ b/packages/ui-react/src/styles/recipes/brand-recipe.ts @@ -0,0 +1,15 @@ +import { createClassRecipe } from "../utils/create-class-recipe"; + +export const brandRecipe = createClassRecipe({ + base: "brand--default", + variants: { + brand: { + default: "brand--default", + success: "brand--success", + danger: "brand--danger", + info: "brand--info", + warning: "brand--warning", + + }, + }, +}); diff --git a/packages/ui-react/src/styles/recipes/container-recipe.ts b/packages/ui-react/src/styles/recipes/container-recipe.ts new file mode 100644 index 0000000..842f57a --- /dev/null +++ b/packages/ui-react/src/styles/recipes/container-recipe.ts @@ -0,0 +1,35 @@ +import { createClassRecipe } from "../utils/create-class-recipe"; + +export const containerRecipe = createClassRecipe({ + variants: { + border: { + 1: "border--1", + none: "border--none", + }, + background: { + base: "background--base", + }, + rounded: { + 4: "rounded--4", + 8: "rounded--8", + 12: "rounded--12", + 16: "rounded--16", + }, + padding: { + 4: "px--4 py--4", + 8: "px--8 py--8", + 12: "px--12 py--12", + 16: "px--16 py--16", + }, + boxShadow: { + true: "box-shadow", + }, + dropShadow: { + true: "drop-shadow", + }, + hasFocusOutline: { + true: "outline", + false: "outline--none", + }, + }, +}); diff --git a/packages/ui-react/src/styles/recipes/display-recipe.ts b/packages/ui-react/src/styles/recipes/display-recipe.ts new file mode 100644 index 0000000..82a7781 --- /dev/null +++ b/packages/ui-react/src/styles/recipes/display-recipe.ts @@ -0,0 +1,65 @@ +import { createClassRecipe } from "../utils/create-class-recipe"; + +export const displayRecipe = createClassRecipe({ + base: "display--flex items--center justify--center select--none white-space--nowrap flex-shrink--0", + variants: { + display: { + block: "display--block", + flex: "display--flex", + "inline-block": "display--inline-block", + "inline-flex": "display--inline-flex", + grid: "display--grid", + }, + animate: { + "width-hover": "transition--width-hover", + "width-click": "transition--width-click", + }, + justifyContent: { + center: "justify--center", + between: "justify--between", + }, + alignItems: { + center: "items--center", + }, + textAlign: { + center: "text-align--center", + }, + userSelect: { + none: "select--none", + text: "select--text", + all: "select--all", + auto: "select--auto", + }, + visibility: { + visible: "visible", + hiden: "visible--hidden", + collapse: "visible--collapse", + }, + flexWrap: { + nowrap: "flex--nowrap", + wrap: "flex--wrap", + }, + flexDirection: { + row: "flex-direction--row", + "row-reverse": "flex-direction--row-reverse", + column: "flex-direction--col", + "column-reverse": "flex-direction--col-reverse", + }, + whiteSpace: { + nowrap: "white-space--nowrap", + }, + position: { + absolute: "position--absolute", + relative: "position--relative", + }, + screenReaderOnly: { + hide: "sr-only", + cancel: "sr-only--cancel", + }, + cursor: { + pointer: "cursor--pointer", + grab: "cursor--grab", + grabbing: "cursor--grabbing", + }, + }, +}); diff --git a/packages/ui-react/src/styles/recipes/dot-size-recipe.ts b/packages/ui-react/src/styles/recipes/dot-size-recipe.ts new file mode 100644 index 0000000..275a7c0 --- /dev/null +++ b/packages/ui-react/src/styles/recipes/dot-size-recipe.ts @@ -0,0 +1,16 @@ +import { createClassRecipe } from "../utils/create-class-recipe"; + +export const dotSizeRecipe = createClassRecipe({ + base: "bg--red color--white", + variants: { + size: { + xs: "h--dot-xs w--dot-xs", + sm: "h--dot-sm w--dot-sm", + md: "h--dot-md w--dot-md", + lg: "h--dot-lg w--dot-lg", + xl: "h--dot-lg w--dot-xl", + "2xl": "h--dot-lg w--dot-2xl", + "3xl": "h--dot-lg w--dot-3xl", + }, + }, +}); diff --git a/packages/ui-react/src/styles/recipes/inline-size-recipe.ts b/packages/ui-react/src/styles/recipes/inline-size-recipe.ts new file mode 100644 index 0000000..153c986 --- /dev/null +++ b/packages/ui-react/src/styles/recipes/inline-size-recipe.ts @@ -0,0 +1,56 @@ +import { createClassRecipe } from "../utils/create-class-recipe"; + +export const inlineSizeRecipe = createClassRecipe({ + base: "", + variants: { + size: { + xs: "text--xs font-weight--xs h--inline-xs gap--xs", + sm: "text--sm font-weight--sm h--inline-sm gap--sm", + md: "text--md font-weight--md h--inline-md gap--md", + lg: "text--lg font-weight--lg h--inline-lg gap--lg", + xl: "text--xl font-weight--xl h--inline-xl gap--xl", + "2xl": "text--2xl font-weight--2xl h--inline-2xl gap--2xl", + "3xl": "text--3xl font-weight--3xl h--inline-3xl gap--3xl", + }, + shape: { + square: "rounded--none", + rounded: "", + circle: "rounded--full", + }, + isIconOnly: { + true: "", + false: "" + } + }, + compoundVariants: [ + { + size: "xs", isIconOnly: true, class: "w--inline-xs px--none" + }, + { + size: "sm", isIconOnly: true, class: "w--inline-sm px--none" + }, + { + size: "md", isIconOnly: true, class: "w--inline-md px--none" + }, + { + size: "lg", isIconOnly: true, class: "w--inline-lg px--none" + }, + { + size: "xl", isIconOnly: true, class: "w--inline-xl px--none" + }, + { + size: "2xl", isIconOnly: true, class: "w--inline-2xl px--none" + }, + { + size: "3xl", isIconOnly: true, class: "w--inline-3xl px--none" + }, + // ================================================== + { shape: "rounded", size: "xs", class: "rounded--xs" }, + { shape: "rounded", size: "sm", class: "rounded--sm" }, + { shape: "rounded", size: "md", class: "rounded--md" }, + { shape: "rounded", size: "lg", class: "rounded--lg" }, + { shape: "rounded", size: "xl", class: "rounded--xl" }, + { shape: "rounded", size: "2xl", class: "rounded--2xl" }, + { shape: "rounded", size: "3xl", class: "rounded--3xl" }, + ] +}); diff --git a/packages/ui-react/src/styles/recipes/item-size-recipe.ts b/packages/ui-react/src/styles/recipes/item-size-recipe.ts new file mode 100644 index 0000000..5dfeb15 --- /dev/null +++ b/packages/ui-react/src/styles/recipes/item-size-recipe.ts @@ -0,0 +1,54 @@ +import { createClassRecipe } from "../utils/create-class-recipe"; + +export const itemSizeRecipe = createClassRecipe({ + base: "py--none", + variants: { + size: { + xs: "text--xs font-weight--xs h--item-xs gap--xs px--xs", + sm: "text--sm font-weight--sm h--item-sm gap--sm px--sm", + md: "text--md font-weight--md h--item-md gap--md px--md", + lg: "text--lg font-weight--lg h--item-lg gap--lg px--lg", + xl: "text--xl font-weight--xl h--item-xl gap--xl px--xl", + "2xl": "text--2xl font-weight--2xl h--item-2xl gap--2xl px--2xl", + "3xl": "text--3xl font-weight--3xl h--item-3xl gap--3xl px--3xl", + }, + shape: { + square: "rounded--none", + rounded: "", + circle: "rounded--full", + }, + isIconOnly: { + true: "", + false: "", + }, + isLongPadding: { + true: "", + false: "", + }, + }, + compoundVariants: [ + { size: "xs", isLongPadding: true, class: "px--long-xs" }, + { size: "sm", isLongPadding: true, class: "px--long-sm" }, + { size: "md", isLongPadding: true, class: "px--long-md" }, + { size: "lg", isLongPadding: true, class: "px--long-lg" }, + { size: "xl", isLongPadding: true, class: "px--long-xl" }, + { size: "2xl", isLongPadding: true, class: "px--long-2xl" }, + { size: "3xl", isLongPadding: true, class: "px--long-3xl" }, + // ================================================== + { shape: "rounded", size: "xs", class: "rounded--xs" }, + { shape: "rounded", size: "sm", class: "rounded--sm" }, + { shape: "rounded", size: "md", class: "rounded--md" }, + { shape: "rounded", size: "lg", class: "rounded--lg" }, + { shape: "rounded", size: "xl", class: "rounded--xl" }, + { shape: "rounded", size: "2xl", class: "rounded--2xl" }, + { shape: "rounded", size: "3xl", class: "rounded--3xl" }, + // ================================================== + { isIconOnly: true, size: "xs", class: "w--item-xs px--none" }, + { isIconOnly: true, size: "sm", class: "w--item-sm px--none" }, + { isIconOnly: true, size: "md", class: "w--item-md px--none" }, + { isIconOnly: true, size: "lg", class: "w--item-lg px--none" }, + { isIconOnly: true, size: "xl", class: "w--item-xl px--none" }, + { isIconOnly: true, size: "2xl", class: "w--item-2xl px--none" }, + { isIconOnly: true, size: "3xl", class: "w--item-3xl px--none" }, + ], +}); diff --git a/packages/ui-react/src/styles/recipes/variant-recipe.ts b/packages/ui-react/src/styles/recipes/variant-recipe.ts new file mode 100644 index 0000000..bb40c6e --- /dev/null +++ b/packages/ui-react/src/styles/recipes/variant-recipe.ts @@ -0,0 +1,63 @@ +import { createClassRecipe } from "../utils/create-class-recipe"; + +export const variantRecipe = createClassRecipe({ + base: "variant--outline", + variants: { + variant: { + filled: 'variant--filled', + outline: 'variant--outline', + subtle: 'variant--subtle', + ghost: 'variant--ghost', + }, + isDisabled: { + true: "", + false: "", + }, + isUnclickable: { + true: "", + false: "", + } + }, + compoundVariants: [ + { + isDisabled: true, + variant: "filled", + class: "variant--filled-disabled", + }, + { + isDisabled: true, + variant: "outline", + class: "variant--outline-disabled", + }, + { + isDisabled: true, + variant: "subtle", + class: "variant--subtle-disabled", + }, + { + isDisabled: true, + variant: "ghost", + class: "variant--ghost-disabled", + }, + { + isUnclickable: true, + variant: "filled", + class: "variant--filled-unclickable", + }, + { + isUnclickable: true, + variant: "outline", + class: "variant--outline-unclickable", + }, + { + isUnclickable: true, + variant: "subtle", + class: "variant--subtle-unclickable", + }, + { + isUnclickable: true, + variant: "ghost", + class: "variant--ghost-unclickable", + }, + ], +}); diff --git a/packages/ui-react/src/styles/utils/create-class-recipe.ts b/packages/ui-react/src/styles/utils/create-class-recipe.ts new file mode 100644 index 0000000..03b772d --- /dev/null +++ b/packages/ui-react/src/styles/utils/create-class-recipe.ts @@ -0,0 +1,59 @@ +// 1. 允许变体值的键可以是字符串,也可以是布尔值(为了开发体验,允许传 true/false) + +import { mergeClass } from "./merge-class"; + +// 但底层存储我们统一视为字符串处理 +type VariantValue = string | boolean; + +type VariantsConfig>> = { + base?: string; + variants?: V; + compoundVariants?: Array< + // 修改这里:允许 compoundVariants 的值是 VariantValue,而不仅仅是 keyof V[K] + Partial<{ [K in keyof V]: VariantValue }> & { class: string } + >; +}; + +// 2. 修改 Props 定义,允许传入 boolean,因为 JS 对象 key 访问时,boolean 会被转为 string +type VariantProps>> = Partial<{ + [K in keyof V]: keyof V[K] | boolean; +}>; + +export function createClassRecipe>>( + config: VariantsConfig, +) { + return function (props: VariantProps = {}): string { + const classes: string[] = []; + + if (config.base) classes.push(config.base); + + if (config.variants) { + for (const [key, map] of Object.entries(config.variants)) { + const value = props[key]; + // 运行时修复:如果传入的是 boolean true,需要转为字符串 "true" 才能匹配 map + const stringifiedValue = String(value); + if (value && map[stringifiedValue]) { + classes.push(map[stringifiedValue]); + } + } + } + + if (config.compoundVariants) { + for (const cv of config.compoundVariants) { + const match = Object.entries(cv) + .filter(([k]) => k !== "class") + .every(([k, v]) => { + const propValue = props[k as keyof V]; + // 运行时修复:统一转为字符串比较,确保 "true" === true 能匹配(虽然不建议混用,但要兼容) + return String(propValue) === String(v); + }); + + if (match && cv.class) { + classes.push(cv.class); + } + } + } + + return mergeClass(...classes); + }; +} diff --git a/packages/ui-react/src/styles/utils/merge-class.ts b/packages/ui-react/src/styles/utils/merge-class.ts new file mode 100644 index 0000000..43f4b3b --- /dev/null +++ b/packages/ui-react/src/styles/utils/merge-class.ts @@ -0,0 +1,30 @@ +export function mergeClass(...classes: (string[] | string)[]) { + const map = new Map(); + + function dealClass(cls: string) { + const clsArr = cls.trim().split(/\s+/); + // 提取前缀 + clsArr.forEach((i: string) => { + const prifix = i.trim().split("--")[0]; + + // 使用set覆盖(自动新建),而不是push + map.set(prifix!, i); + }); + } + + classes.forEach((item) => { + // 如果是 string 直接处理 + if (typeof item === "string") { + dealClass(item); + } else if (item != undefined) { + // 否则肯定是 string[] + (item as string[]).forEach((i: string) => { + dealClass(i); + }); + } + }); + + const resultString = Array.from(map.values()).join(" "); + + return resultString; +} diff --git a/packages/ui-react/src/utils/CommonProps.ts b/packages/ui-react/src/utils/CommonProps.ts new file mode 100644 index 0000000..5a00af4 --- /dev/null +++ b/packages/ui-react/src/utils/CommonProps.ts @@ -0,0 +1,9 @@ +import type { CSSProperties, ReactNode } from "react" + +export type CommonProps = { + className?: string, + children?: ReactNode, + isDisabled?: boolean, + style?: CSSProperties, + ref?: any +} \ No newline at end of file diff --git a/packages/ui-react/src/utils/camelToKebab.ts b/packages/ui-react/src/utils/camelToKebab.ts new file mode 100644 index 0000000..6aa90bc --- /dev/null +++ b/packages/ui-react/src/utils/camelToKebab.ts @@ -0,0 +1,3 @@ +export function camelToKebab(str: string) { + return str.replace(/([A-Z])/g, "-$1").toLowerCase(); +} diff --git a/packages/ui-react/src/utils/merge-props.ts b/packages/ui-react/src/utils/merge-props.ts new file mode 100644 index 0000000..7edde51 --- /dev/null +++ b/packages/ui-react/src/utils/merge-props.ts @@ -0,0 +1,49 @@ +import { useMergeRefs } from "@floating-ui/react"; +import { mergeClass } from "../styles/utils/merge-class"; + +type AnyProps = Record; + +export function mergeProps(...propsList: AnyProps[]): AnyProps { + + const result: AnyProps = {} + const refsArray: any[] = [] + const classArray: string[] = [] + const fnMap = new Map void>>() + + if (propsList.length === 1) { + return propsList[0]! + } + + for (const props of propsList) { + if (!props) continue; + + for (const key of Object.keys(props)) { + if (key === "className") { + classArray.push(props[key]) + } else if (key === "style") { + result["style"] = { ...(result["style"] ?? {}), ...props[key] } + } else if (key === "ref") { + refsArray.push(props[key]) + } else if (key.startsWith('on') && typeof props[key] === "function") { + + const oldFn = result[key] as Function | undefined; + result[key] = oldFn ? (...args: any[]) => { + oldFn(...args); + (props[key] as Function)(...args); + } : props[key] + + } else { + // rest props + result[key] = props[key]; + } + + } + } + + result["className"] = mergeClass(classArray); + result["ref"] = useMergeRefs(refsArray) + + + + return result +} \ No newline at end of file diff --git a/packages/ui-react/src/utils/slot.tsx b/packages/ui-react/src/utils/slot.tsx new file mode 100644 index 0000000..0a8b585 --- /dev/null +++ b/packages/ui-react/src/utils/slot.tsx @@ -0,0 +1,16 @@ +import { cloneElement, isValidElement, type ReactNode } from "react"; +import { mergeProps } from "./merge-props"; + +export const Slot = (props: Record & { children?: ReactNode }) => { + + const { children, ...rest } = props; + + if (!isValidElement(children)) { + throw new Error("isValidElement no pass !"); + } + + const mergedProps = mergeProps(children.props as any, rest); + + return cloneElement(children, mergedProps); +} + diff --git a/packages/ui-react/src/utils/state-registry.ts b/packages/ui-react/src/utils/state-registry.ts new file mode 100644 index 0000000..0348683 --- /dev/null +++ b/packages/ui-react/src/utils/state-registry.ts @@ -0,0 +1,33 @@ +export class StateRegistry { + constructor(excuteCallback: (registry: Map) => boolean) { + this._excuteCallback = excuteCallback; + } + + _excuteCallback: (registry: Map) => boolean; + + _registryMap = new Map(); + + insertKey = (key: string) => { + this._registryMap.set(key, null); + }; + + updateValue = (key: string, value: V) => { + this._registryMap.set(key, value); + }; + + deleteEntry = (key: string) => { + this._registryMap.delete(key); + }; + + execute = () => { + return this._excuteCallback(this._registryMap); + }; + + checkAllReady = () => { + for (const i of this._registryMap.values()) { + i == null; + return false; + } + return true; + }; +} diff --git a/packages/ui-react/tsconfig.json b/packages/ui-react/tsconfig.json new file mode 100644 index 0000000..28581eb --- /dev/null +++ b/packages/ui-react/tsconfig.json @@ -0,0 +1,81 @@ +{ + "compilerOptions": { + // This is a component library, so "ESNext" is a good choice. Also it requires very little down-leveling during transpilation. + "target": "esnext", + // Include a list of type definitions for build-in JS APIs. + "lib": ["esnext", "DOM", "DOM.Iterable"], + // Specify the module system for the output files. It's not required for Vite but good to have. + "module": "esnext", + // The types defined in "vite/client" are included in global scope. + "types": ["node", "vite/client"], + // Do not emit compiled output files, vite will take care of the that. + "noEmit": true, + // Vite will handle the resolution of the import paths. + "moduleResolution": "bundler", + // Use the React 17 JSX transform, importing React is no longer required. + "jsx": "react-jsx", + // Skip the type checking for declaration files to improve performance. + "skipLibCheck": true, + // Allow importing modules with ".json" extension. + "resolveJsonModule": true, + // "declarationMap" need to be enabled to let Vite generates source map files. + "declaration": true, + "declarationMap": true, + // Importing .js files is not allowed, enable if needed. + "allowJs": false, + // Fix the mis-match of behaviors between ES import and CommonJS require. + "esModuleInterop": true, + // Allow default import from modules with no default export, i.e. you can write `import React from 'react'` instead of `import * as React from 'react'`. + "allowSyntheticDefaultImports": true, + // Enforce the file name casing to be consistent with development environment. + "forceConsistentCasingInFileNames": true, + // Ensure the run-time code does not depend on the TypeScript-only features, such as constant enum. + "isolatedModules": true, + // Allow importing TypeScript modules. + "allowImportingTsExtensions": true, + // Enfore "type" modifier for type imports. + "verbatimModuleSyntax": true, + // Ensure the public class field initialization is transpiled correctly to match the future JS standard. + "useDefineForClassFields": true, + // Type-checking options + "strict": true, + "noFallthroughCasesInSwitch": true, + "noImplicitOverride": true, + "noImplicitReturns": true, + "noImplicitThis": true, + "noPropertyAccessFromIndexSignature": true, + "noUncheckedIndexedAccess": true, + "noUnusedLocals": false, + "noUnusedParameters": true + }, + "include": ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"], + "exclude": [ + "node_modules", + "dist", + ".turbo/**/*", + ".cache/**/*", + ".vite/**/*", + "vite.config.ts", + "*.config.ts", + "*.config.js", + "tsconfig.*.json", + "__tests__/**/*", + "test/**/*", + "tests/**/*", + "**/*.test.ts", + "**/*.test.tsx", + "**/*.spec.ts", + "**/*.spec.tsx", + ".storybook/**/*", + "stories/**/*", + "example/**/*", + "examples/**/*", + "scripts/**/*", + ".env", + ".env.*", + "public/**/*", + "docs/**/*", + "README.md", + "LICENSE" + ] +} diff --git a/packages/ui-react/types/env.d.ts b/packages/ui-react/types/env.d.ts new file mode 100644 index 0000000..31058d4 --- /dev/null +++ b/packages/ui-react/types/env.d.ts @@ -0,0 +1,4 @@ +declare module "*.css" { + const content: string; + export default content; +} diff --git a/packages/ui-react/vite-plugin/vite-plugin-gen-index.ts b/packages/ui-react/vite-plugin/vite-plugin-gen-index.ts new file mode 100644 index 0000000..c4c7286 --- /dev/null +++ b/packages/ui-react/vite-plugin/vite-plugin-gen-index.ts @@ -0,0 +1,59 @@ +import type { Plugin } from "vite"; +import { glob } from "glob"; +import * as path from "path"; +import * as fs from "fs"; + +/** + + */ +export type PluginOption = { + include: string[]; + exclude?: string[]; + preamble: string; + entry: string; +}; + +/** + * Per `option` have follow property: + * @param include + * value like ["src/**\/*.{tsx,jsx,ts,js}"] + * @param preamble + * value like `"export * from "` + */ +export function genIndex(...options: PluginOption[]): Plugin { + return { + name: "VITE_PLUGIN_GEN_INDEX", + + config() { + options.forEach((opt) => { + const entryToFileArray: string[] = []; + const includeArray = opt.include; + const excludeArray = opt.exclude; + includeArray.forEach((ipath) => { + const files = glob.sync(ipath, { ignore: excludeArray }); + + files.forEach((file) => { + let entryToFile = path.relative(opt.entry, file); + // console.log(`origin: ${entryToFile}`); + + // Fix the bug of path.relative, file in the same dir should start with [ ./ ] not [ ../ ] + if (entryToFile.startsWith("..")) { + entryToFile = entryToFile.substring(1); + // console.log(`after substring: ${entryToFile}`); + } + + // Fix the bug of lib, default is output "\" , we need handle by self, replace "\" to "/" for Windows + entryToFile = entryToFile.replace(/\\/g, "/"); + // console.log(`after replace: ${entryToFile} \n`); + + entryToFileArray.push( + opt.preamble.concat(" ", "'", entryToFile, "';"), + ); + }); + }); + + fs.writeFileSync(opt.entry, entryToFileArray.join("\n"), "utf-8"); + }); + }, + }; +} diff --git a/packages/ui-react/vite.config.ts b/packages/ui-react/vite.config.ts new file mode 100644 index 0000000..db0daf4 --- /dev/null +++ b/packages/ui-react/vite.config.ts @@ -0,0 +1,67 @@ +import { resolve } from "node:path"; +import { defineConfig } from "vite"; +import react from "@vitejs/plugin-react"; +import dts from "unplugin-dts/vite"; +import pkg from "./package.json" with { type: "json" }; +import { genIndex, PluginOption } from "./vite-plugin/vite-plugin-gen-index.ts"; + +const genTsOption: PluginOption = { + include: ["src/**/*.{tsx,ts,jsx,js}"], + exclude: ["src/app.tsx", "src/main.tsx", "src/index.ts"], + preamble: "export * from", + entry: "src/index.ts", +}; + +const genCssOption: PluginOption = { + include: ["src/**/*.css"], + exclude: ["src/index.css"], + preamble: "@import", + entry: "src/index.css", +}; + +export default defineConfig({ + plugins: [ + genIndex(genTsOption, genCssOption), + react(), + dts({ + outDirs: [ + { dir: "dist", moduleFormat: "esm" }, + { dir: "dist", moduleFormat: "cjs" }, + ], + bundleTypes: true, + }), + ], + + build: { + target: "esnext", + // Must write, vite/css-minify cannot recognize some ruler + cssMinify: false, + + lib: { + entry: resolve(import.meta.dirname, "src/index.ts"), + name: "ui-react", + formats: ["es", "cjs"], + fileName: `index`, + cssFileName: "index", + }, + rolldownOptions: { + // make sure to externalize deps that shouldn't be bundled + // into your library + external: ["react/jsx-runtime", ...Object.keys(pkg.peerDependencies)], + // output: { + // assetFileNames: (assetInfo) => { + // if (assetInfo.name && assetInfo.name.endsWith(".css")) { + // return "index.css"; + // } + // return "[name].[hash][extname]"; + // }, + // // Provide global variables to use in the UMD build + // // for externalized deps + // globals: { + // react: "React", + // "react-dom": "ReactDOM", + // }, + // }, + }, + }, +});