package.json 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. {
  2. "name": "ui",
  3. "version": "0.0.1",
  4. "description": "UI components for Logseq.",
  5. "author": "Logseq",
  6. "scripts": {
  7. "watch:ui:examples": "parcel serve ./examples/index.html",
  8. "build:ui:only": "parcel build --target ui",
  9. "build:ui": "rm -rf .parcel-cache && yarn build:ui:only",
  10. "watch:storybook": "storybook dev -p 6006",
  11. "install:primitives": "rm -rf primitives/ && git clone https://github.com/xyhp915/primitives.git --depth=1",
  12. "build:primitives": "yarn install:primitives && cd primitives/ && yarn install && yarn build",
  13. "preinstall": "test -f primitives/package.json || yarn build:primitives",
  14. "postinstall": "yarn build:ui"
  15. },
  16. "dependencies": {
  17. "@hookform/resolvers": "^3.3.2",
  18. "@radix-ui/colors": "^3.0.0",
  19. "@radix-ui/react-alert-dialog": "^1.0.5",
  20. "@radix-ui/react-avatar": "^1.0.4",
  21. "@radix-ui/react-checkbox": "^1.0.4",
  22. "@radix-ui/react-context-menu": "^2.1.5",
  23. "@radix-ui/react-dialog": "^1.0.5",
  24. "@radix-ui/react-dropdown-menu": "^2.0.6",
  25. "@radix-ui/react-label": "^2.0.2",
  26. "@radix-ui/react-popover": "^1.0.7",
  27. "@radix-ui/react-radio-group": "^1.1.3",
  28. "@radix-ui/react-select": "^2.0.0",
  29. "@radix-ui/react-separator": "^1.0.3",
  30. "@radix-ui/react-slider": "^1.1.2",
  31. "@radix-ui/react-slot": "^1.0.2",
  32. "@radix-ui/react-switch": "^1.0.3",
  33. "@radix-ui/react-toast": "^1.1.5",
  34. "@radix-ui/react-toggle": "^1.0.3",
  35. "@radix-ui/react-toggle-group": "^1.0.4",
  36. "@radix-ui/react-tooltip": "^1.0.7",
  37. "class-variance-authority": "^0.7.0",
  38. "clsx": "^2.0.0",
  39. "cmdk": "^0.2.0",
  40. "date-fns": "^2.30.0",
  41. "lucide-react": "^0.292.0",
  42. "react": "^18",
  43. "react-day-picker": "^8.9.1",
  44. "react-dom": "^18",
  45. "react-hook-form": "^7.48.2",
  46. "react-remove-scroll": "^2.5.7",
  47. "tailwind-merge": "^2.0.0",
  48. "tailwindcss-animate": "^1.0.7",
  49. "uniqolor": "1.1.1",
  50. "yup": "^1.3.2",
  51. "zod": "^3.22.4"
  52. },
  53. "devDependencies": {
  54. "@babel/core": "^7.23.2",
  55. "@babel/preset-env": "^7.23.2",
  56. "@babel/preset-react": "^7.22.15",
  57. "@babel/preset-typescript": "^7.23.2",
  58. "@storybook/addon-essentials": "^7.5.3",
  59. "@storybook/addon-interactions": "^7.5.3",
  60. "@storybook/addon-links": "^7.5.3",
  61. "@storybook/addon-onboarding": "^1.0.8",
  62. "@storybook/addon-styling-webpack": "^0.0.5",
  63. "@storybook/addon-toolbars": "^7.5.3",
  64. "@storybook/blocks": "^7.5.3",
  65. "@storybook/react": "^7.5.3",
  66. "@storybook/react-webpack5": "^7.5.3",
  67. "@storybook/testing-library": "^0.2.2",
  68. "@types/babel__core": "^7",
  69. "@types/babel__preset-env": "^7",
  70. "@types/prop-types": "^15",
  71. "@types/react": "17",
  72. "@types/react-dom": "17",
  73. "parcel": "2.8.3",
  74. "postcss": "^8.4.31",
  75. "postcss-loader": "^7.3.3",
  76. "postcss-nesting": "^12.0.1",
  77. "storybook": "^7.5.3",
  78. "string-width": "4.2.0",
  79. "strip-ansi": "^6",
  80. "style-loader": "3.3.1"
  81. },
  82. "alias": {
  83. "react": {
  84. "global": "React"
  85. },
  86. "react-dom": {
  87. "global": "ReactDOM"
  88. },
  89. "react/jsx-dev-runtime": "./node_modules/react/jsx-dev-runtime.js",
  90. "react/jsx-runtime": "./node_modules/react/jsx-runtime.js",
  91. "@/*": "./@/$1",
  92. "@radix-ui/react-*": "./primitives/packages/react/$1"
  93. },
  94. "targets": {
  95. "main": false,
  96. "ui": {
  97. "source": "src/ui.ts",
  98. "outputFormat": "global",
  99. "includeNodeModules": {
  100. "react": false,
  101. "react-dom": false
  102. }
  103. }
  104. },
  105. "resolutions": {
  106. "jackspeak": "^2",
  107. "string-width": "^4",
  108. "strip-ansi": "^6"
  109. },
  110. "license": "MIT"
  111. }