open-index/open-npm huggingface dataset:
npm package: @iamgx/koala
Description: Universal React + Tailwind UI component library
Author: iamgx
Latest version: 1.1.2
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# @iamgx/koala

React + Tailwind UI 组件库，内部系统快速开发设计。

[📦 示例代码](./examples/)

## 安装

```bash
npm install @iamgx/koala
```

**环境要求:**

- React ≥ 18
- Tailwind CSS 已配置

## Tailwind 配置

```js
// tailwind.config.js
module.exports = {
  content: ['./src/**/*.{js,jsx,ts,tsx}', './node_modules/@iamgx/koala/**/*.{js,jsx,ts,tsx}'],
  darkMode: 'class',
  theme: { extend: {} },
  plugins: []
}
```

## 使用

```tsx
import { LoginForm, Layout } from '@iamgx/koala'
import type { FieldOption, MenuItem } from '@iamgx/koala'
```

完整的使用指南和 API 文档请查看各组件文档。

## 文档

完整的组件文档请查看：

- **[LoginForm 组件文档](./docs/components/LoginForm.md)** - 完整的 Props、示例和使用指南
- **[Layout 组件文档](./docs/components/Layout.md)** - 完整的 Props、示例和使用指南

### ES Module

```typescript
import { LoginForm, Layout } from '@iamgx/koala'
import type { FieldOption, MenuItem } from '@iamgx/koala'
```

### UMD (浏览器)

```html
<script src="https://unpkg.com/@iamgx/koala/dist/index.umd.js"></script>
<script>
  const { LoginForm, Layout } = KoalaUI
</script>
```

## License

MIT © [iamgx](https://github.com/imaxing)

---

**注意：本组件库为内部使用，优先考虑团队开发效率。**
npm package: @iamgx/privacy
Description: 内部使用小程序隐私协议逻辑
Author: iamgx
Latest version: 0.0.8

# uniapp 小程序隐私协议逻辑包

### 安装

```bash
yarn add @iamgx/privacy
```

### 使用

```js
import Privacy from "@iamgx/privacy/component";
import PrivacyMixin from "@iamgx/privacy";
import EasyPopup from "@iamgx/uni-popup";

// html
<easy-popup ref="popup">
  <template v-slot:children="{ component }">
    <privacy v-if="component === 'Privacy'" />
  </template>
</easy-popup>;

// js
// 使用async/await 或者 then
export default {
  mixins: [PrivacyMixin],
  async onLoad() {
    await this.checkPrivacy();
    uni.getLocation({});
  },
};
```