alope-ui 1.6.0 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,199 @@
1
- # ALOPE UI Library
1
+ <div align="center">
2
+ <!-- Ganti src dengan URL logo Alope UI Anda -->
3
+ <img src="./public/favicon/favicon-32x32.png" alt="Alope UI Logo" width="32" />
4
+
5
+ # Alope UI
6
+
7
+ **Build Interfaces Faster. Focus on What Matters.**
8
+
9
+ A modern React component library built with Tailwind CSS, designed to simplify your development workflow. Build beautiful, accessible, and responsive interfaces with less effort.
10
+
11
+ <!-- Badges -->
12
+ <p>
13
+ <a href="https://www.npmjs.com/package/alope-ui">
14
+ <img src="https://img.shields.io/npm/v/alope-ui?color=10b981&label=npm" alt="NPM Version" />
15
+ </a>
16
+ <a href="https://www.npmjs.com/package/alope-ui">
17
+ <img src="https://img.shields.io/npm/dm/alope-ui?color=3b82f6" alt="NPM Downloads" />
18
+ </a>
19
+ <a href="https://github.com/alope-community/alope-ui/blob/main/LICENSE">
20
+ <img src="https://img.shields.io/npm/l/alope-ui?color=6366f1" alt="License" />
21
+ </a>
22
+ <img src="https://img.shields.io/badge/TypeScript-Ready-blue?logo=typescript&logoColor=white" alt="TypeScript Ready" />
23
+ <img src="https://img.shields.io/badge/Tailwind_CSS-Compatible-38B2AC?logo=tailwind-css&logoColor=white" alt="Tailwind CSS" />
24
+ </p>
25
+
26
+ <p>
27
+ <a href="#-installation">Installation</a> •
28
+ <!-- <a href="#-quick-usage">Usage</a> • -->
29
+ <a href="#-why-alope-ui">Features</a> •
30
+ <a href="#-collaborators">Team</a> •
31
+ <a href="#-community--support">Community</a>
32
+ </p>
33
+ </div>
34
+
35
+ ---
36
+
37
+ ## ✨ Why Alope UI?
38
+
39
+ Spend less time writing repetitive UI code and more time building meaningful experiences. Alope UI gives you the essential building blocks to create modern interfaces while working seamlessly alongside Tailwind CSS.
40
+
41
+ * **🧑‍💻 Developer Friendly:** Simple and intuitive APIs that make components easy to understand and implement.
42
+ * **📱 Responsive Design:** Build interfaces that adapt beautifully to different screen sizes and devices.
43
+ * **🌗 Dark Mode Ready:** Every component ships with balanced light and dark palettes out of the box.
44
+ * **🎨 Consistent UI:** Maintain a unified visual experience across your entire application.
45
+ * **⚡ Less Styling, More Building:** Combine ready-to-use Alope UI components with Tailwind CSS utility classes for maximum flexibility.
46
+
47
+ ---
48
+
49
+ ## 📦 Installation
50
+
51
+ Install `alope-ui` directly into your React project using your preferred package manager:
52
+
53
+ ```bash
54
+ # Using npm
55
+ npm install alope-ui
56
+
57
+ # Using yarn
58
+ yarn add alope-ui
59
+
60
+ # Using pnpm
61
+ pnpm add alope-ui
62
+
63
+ ```
64
+
65
+ > **Note:** Make sure you have **React** and **Tailwind CSS** configured in your project. Check out our [Documentation](https://ui.alope.id) for full setup instructions.
66
+
67
+ ---
68
+ <!--
69
+ ## 🚀 Quick Usage
70
+
71
+ Import the components you need and start building right away:
72
+
73
+ ### Button
74
+
75
+ Different button variants (`solid`, `outline`, `ghost`, `plain`) for different actions.
76
+
77
+ ```tsx
78
+ import { Button } from "alope-ui";
79
+
80
+ export function ButtonExample() {
81
+ return (
82
+ <div className="flex flex-wrap gap-2">
83
+ <Button variant="solid">Solid</Button>
84
+ <Button variant="outline">Outline</Button>
85
+ <Button variant="ghost">Ghost</Button>
86
+ <Button variant="plain">Plain</Button>
87
+ </div>
88
+ );
89
+ }
90
+
91
+ ```
92
+
93
+ ### Card
94
+
95
+ A clean, structured card layout for displaying grouped content and actions.
96
+
97
+ ```tsx
98
+ import { Button, Card } from "alope-ui";
99
+
100
+ export function CardExample() {
101
+ return (
102
+ <Card
103
+ title="Welcome to Alope UI"
104
+ description="Build something amazing with reusable UI components."
105
+ footer={<Button variant="solid">Learn More</Button>}
106
+ />
107
+ );
108
+ }
109
+
110
+ ```
111
+
112
+ ### Status Badge
113
+
114
+ Communicate state and status clearly with semantic visual indicators.
115
+
116
+ ```tsx
117
+ import { Badge } from "alope-ui";
118
+
119
+ export function BadgeExample() {
120
+ return (
121
+ <div className="flex flex-wrap gap-3">
122
+ <Badge color="success">Active</Badge>
123
+ <Badge color="warning">Pending</Badge>
124
+ <Badge color="error">Inactive</Badge>
125
+ </div>
126
+ );
127
+ }
128
+
129
+ ```
130
+
131
+ ### Input Field
132
+
133
+ Clean, accessible input elements for forms.
134
+
135
+ ```tsx
136
+ import { TextInput } from "alope-ui";
137
+
138
+ export function InputExample() {
139
+ return (
140
+ <TextInput label="Your Name" placeholder="Enter your name"/>
141
+ );
142
+ }
143
+
144
+ ``` -->
145
+
146
+ ---
147
+
148
+ ## ⚖️ Alope UI vs. Raw Tailwind CSS
149
+
150
+ Alope UI and Tailwind CSS are complementary tools—not replacements for one another. Combine them to create your ideal workflow:
151
+
152
+ | Feature | Alope UI (Component Library) | React + Raw Tailwind CSS |
153
+ | --- | --- | --- |
154
+ | **Speed** | Ready-to-use components out of the box | Manual component styling from scratch |
155
+ | **Consistency** | Standardized, predictable component API | Requires strict internal design conventions |
156
+ | **Codebase** | Clean JSX with minimal repetitive classes | Long utility class strings in every file |
157
+ | **Customization** | Easily extendable with Tailwind classes | Full low-level utility flexibility |
158
+
159
+ ---
160
+
161
+ ## 👥 Collaborators
162
+
163
+ Alope UI is built through collaboration and shared passion for creating better developer experiences by **Alope Community**:
164
+
165
+ | Name | GitHub |
166
+ | --- | --- |
167
+ | **Ilham Hafidz** | [@ilhamhafidz404](https://github.com/ilhamhafidz404) |
168
+ | **Ramadhan Fatra** | [@MrFatra](https://github.com/MrFatra) |
169
+ | **AkaSengko24** | [@AkaSengko24](https://github.com/AkaSengko24) |
170
+ | **Firdan Fauzan** | [@firdanaja](https://github.com/firdanaja) |
171
+ | **Dikri Fauzan Amrulloh** | [@dikrifzn](https://github.com/dikrifzn) |
172
+
173
+ ---
174
+
175
+ ## 🌐 Community & Support
176
+
177
+ **Alope Community** is a place for developers to learn, build, and share useful tools and resources together.
178
+
179
+ * **Documentation:** [Explore Docs](https://ui.alope.id)
180
+ * **GitHub:** [Alope Community](https://github.com/Alope-Community/alope-ui)
181
+ * **Discord:** [Join our Server](https://discord.gg/j2BhcCKb)
182
+ * **LinkedIn:** [Follow Alope Community](https://www.linkedin.com/company/alope-coding-room/posts/?feedView=all)
183
+
184
+ ### 💖 Support Our Open-Source Work
185
+
186
+ Enjoying Alope UI? Your support helps us keep building and maintaining open-source projects for the developer community:
187
+
188
+ * ☕ [Buy Me a Coffee](https://ko-fi.com/alope_commmunity)
189
+ * 🇮🇩 [Support via Saweria](https://saweria.co/alopecommunity)
190
+
191
+ ---
192
+
193
+ <sub>© 2026 Alope Community. All rights reserved.</sub>
194
+
195
+
196
+ <!-- # ALOPE UI Library
2
197
 
3
198
  [![npm version](https://img.shields.io/npm/v/alope-ui.svg)](https://www.npmjs.com/package/alope-ui)
4
199
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
@@ -7519,4 +7714,4 @@ MIT License – Free to use, modify, and distribute.
7519
7714
 
7520
7715
  ## 🙌 Thank You
7521
7716
 
7522
- Thank you for using **ALOPE UI Library**. We hope this helps you build beautiful and functional user interfaces with ease.
7717
+ Thank you for using **ALOPE UI Library**. We hope this helps you build beautiful and functional user interfaces with ease. -->
@@ -1,7 +1,9 @@
1
1
  import { default as React } from 'react';
2
- export interface BottomNavbarProps {
2
+ interface BottomNavbarProps {
3
3
  children: React.ReactNode;
4
+ className?: string;
4
5
  value: string;
5
6
  onChangeValue: (value: string) => void;
6
7
  }
7
8
  export declare const BottomNavbar: React.FC<BottomNavbarProps>;
9
+ export {};
@@ -5,6 +5,7 @@ export interface BottomNavbarActionProps {
5
5
  value: string;
6
6
  selectedValue?: string;
7
7
  onChangeValue?: (value: string) => void;
8
- disabled?: boolean;
8
+ labelClassName?: string;
9
+ className?: string;
9
10
  }
10
11
  export declare const BottomNavbarAction: React.FC<BottomNavbarActionProps>;
@@ -1,18 +1,17 @@
1
- import { default as React, InputHTMLAttributes } from 'react';
1
+ import { InputHTMLAttributes } from 'react';
2
2
  declare const CodeInputSize: {
3
- readonly sm: "w-10 h-10 text-sm";
4
- readonly md: "w-12 h-12 text-base";
5
- readonly lg: "w-14 h-14 text-lg";
6
- readonly xl: "w-16 h-16 text-xl";
3
+ sm: string;
4
+ md: string;
5
+ lg: string;
6
+ xl: string;
7
7
  };
8
- export type CodeInputSizeType = keyof typeof CodeInputSize;
9
8
  export type CodeInputProps = {
10
9
  label?: string;
11
- error?: string;
12
10
  value: string;
13
11
  length: number;
12
+ labelClassName?: string;
14
13
  onCodeChange: (code: string) => void;
15
- inputSize?: CodeInputSizeType;
16
- } & Omit<InputHTMLAttributes<HTMLInputElement>, "onChange" | "className" | "value" | "maxLength">;
14
+ inputSize?: keyof typeof CodeInputSize;
15
+ } & Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'>;
17
16
  export declare const CodeInput: React.FC<CodeInputProps>;
18
17
  export {};
@@ -1,15 +1,14 @@
1
- import { default as React } from 'react';
2
- export type CollectionItemBase = {
3
- id: string | number;
4
- name?: string;
5
- };
6
- export type CollectionProps<T extends CollectionItemBase> = {
1
+ export type CollectionProps<T> = {
7
2
  title?: string;
8
3
  data: T[];
9
4
  children?: (item: T, index: number, isActive: boolean) => React.ReactNode;
10
- suffixIcon?: React.ReactNode | ((item: T, index: number, isActive: boolean) => React.ReactNode);
11
- activeItem?: T["id"] | null;
5
+ className?: string;
6
+ wrapperClassName?: string;
7
+ suffixIcon?: React.ReactNode | ((item?: T, index?: number, isActive?: boolean) => React.ReactNode);
8
+ activeItem?: any;
12
9
  onChangeActive?: (item: T, index: number) => void;
13
- emptyMessage?: React.ReactNode;
14
10
  };
15
- export declare function Collection<T extends CollectionItemBase>({ data, title, children, suffixIcon, activeItem, onChangeActive, emptyMessage, }: CollectionProps<T>): import("react/jsx-runtime").JSX.Element;
11
+ export declare function Collection<T extends {
12
+ id: any;
13
+ name?: string;
14
+ }>({ data, title, className, wrapperClassName, children, suffixIcon, activeItem, onChangeActive, }: CollectionProps<T>): import("react/jsx-runtime").JSX.Element;
@@ -1,43 +1 @@
1
- import { default as React, InputHTMLAttributes } from 'react';
2
- declare const DatePickerColors: {
3
- readonly primary: {
4
- readonly header: "bg-primary dark:bg-primary-dark";
5
- readonly icon: "hover:bg-primary-700 dark:hover:bg-primary-dark-700";
6
- readonly day: "bg-primary dark:bg-primary-dark text-white";
7
- readonly today: "ring-1 ring-primary dark:ring-primary-dark";
8
- };
9
- readonly success: {
10
- readonly header: "bg-success dark:bg-success-dark";
11
- readonly icon: "hover:bg-success-700 dark:hover:bg-success-dark-700";
12
- readonly day: "bg-success dark:bg-success-dark text-white";
13
- readonly today: "ring-1 ring-success dark:ring-success-dark";
14
- };
15
- readonly info: {
16
- readonly header: "bg-info dark:bg-info-dark";
17
- readonly icon: "hover:bg-info-700 dark:hover:bg-info-dark-700";
18
- readonly day: "bg-info dark:bg-info-dark text-white";
19
- readonly today: "ring-1 ring-info dark:ring-info-dark";
20
- };
21
- readonly error: {
22
- readonly header: "bg-error dark:bg-error-dark";
23
- readonly icon: "hover:bg-error-700 dark:hover:bg-error-dark-700";
24
- readonly day: "bg-error dark:bg-error-dark text-white";
25
- readonly today: "ring-1 ring-error dark:ring-error-dark";
26
- };
27
- readonly warning: {
28
- readonly header: "bg-warning dark:bg-warning-dark";
29
- readonly icon: "hover:bg-warning-700 dark:hover:bg-warning-dark-700";
30
- readonly day: "bg-warning dark:bg-warning-dark text-white";
31
- readonly today: "ring-1 ring-warning dark:ring-warning-dark";
32
- };
33
- };
34
- export type DatePickerColor = keyof typeof DatePickerColors;
35
- export type DatePickerProps = {
36
- label?: string;
37
- error?: string;
38
- selectedDate?: Date | null;
39
- color?: DatePickerColor;
40
- onDateChange?: (date: Date) => void;
41
- } & Omit<InputHTMLAttributes<HTMLInputElement>, 'className' | 'value' | 'onChange'>;
42
- export declare const DatePicker: React.FC<DatePickerProps>;
43
1
  export {};
@@ -1,23 +1,18 @@
1
- import { default as React } from 'react';
2
1
  import { ButtonVariant, ButtonColor } from '../Button/Button';
3
2
  declare const FABSizes: {
4
- readonly sm: "w-11 h-11 text-sm font-medium rounded-full";
5
- readonly md: "w-14 h-14 text-base font-semibold tracking-[.2px] rounded-full";
6
- readonly lg: "w-16 h-16 text-lg font-semibold rounded-full";
3
+ sm: string;
4
+ md: string;
5
+ lg: string;
7
6
  };
8
- export type FABDirection = 'horizontal' | 'vertical';
9
- export type FABSize = keyof typeof FABSizes;
10
- export type FABProps = {
7
+ type FABProps = {
11
8
  children: React.ReactNode;
12
- direction?: FABDirection;
13
- size?: FABSize;
9
+ direction?: 'horizontal' | 'vertical';
10
+ size?: keyof typeof FABSizes;
14
11
  variant?: ButtonVariant;
15
12
  variantType?: ButtonColor;
16
13
  isOpen: boolean;
17
14
  onOpen: () => void;
18
15
  icon?: React.ReactNode;
19
- disabled?: boolean;
20
- ariaLabel?: string;
21
16
  };
22
- export declare const FAB: React.FC<FABProps>;
17
+ export declare const FAB: ({ children, direction, size, variant, variantType, isOpen, onOpen, icon }: FABProps) => import("react/jsx-runtime").JSX.Element;
23
18
  export {};
@@ -1,13 +1,13 @@
1
1
  import { default as React } from 'react';
2
- export type Breakpoint = "base" | "sm" | "md" | "lg" | "xl" | "2xl";
3
- export type MasonryColsCount = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
4
- export type MasonryGapSize = 1 | 2 | 3 | 4 | 5 | 6;
2
+ type Breakpoint = "base" | "sm" | "md" | "lg" | "xl" | "lg" | "xl" | "2xl";
5
3
  export type ResponsiveValueMasonry<T extends number | string> = T | Partial<Record<Breakpoint, T>>;
6
- export type ResponsiveCols = ResponsiveValueMasonry<MasonryColsCount>;
7
- export type ResponsiveGap = ResponsiveValueMasonry<MasonryGapSize>;
8
- export interface MasonryProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "className"> {
4
+ type ResponsiveCols = ResponsiveValueMasonry<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12>;
5
+ type ResponsiveGap = ResponsiveValueMasonry<1 | 2 | 3 | 4 | 5 | 6>;
6
+ export interface MasonryProps extends React.HTMLAttributes<HTMLDivElement> {
9
7
  children: React.ReactNode;
8
+ className?: string;
10
9
  cols?: ResponsiveCols;
11
10
  gap?: ResponsiveGap;
12
11
  }
13
12
  export declare const Masonry: React.ForwardRefExoticComponent<MasonryProps & React.RefAttributes<HTMLDivElement>>;
13
+ export {};
@@ -1,11 +1,10 @@
1
1
  import { default as React } from 'react';
2
- export type SkeletonAnimode = "shimmer" | "flash";
3
2
  export type SkeletonProps = {
4
- width?: string | number;
5
- height?: string | number;
3
+ width?: string;
4
+ height?: string;
6
5
  rounded?: boolean;
7
6
  isLoading?: boolean;
8
7
  children?: React.ReactNode;
9
- animode?: SkeletonAnimode;
8
+ animode?: "shimmer" | "flash";
10
9
  };
11
10
  export declare const Skeleton: React.FC<SkeletonProps>;
@@ -1,29 +1,26 @@
1
- import { default as React, InputHTMLAttributes } from 'react';
1
+ import { InputHTMLAttributes } from 'react';
2
2
  declare const SliderColor: {
3
- readonly primary: string;
4
- readonly error: string;
5
- readonly warning: string;
6
- readonly success: string;
7
- readonly info: string;
8
- readonly secondary: string;
3
+ primary: string;
4
+ error: string;
5
+ warning: string;
6
+ success: string;
7
+ info: string;
8
+ secondary: string;
9
9
  };
10
10
  declare const SliderSize: {
11
- readonly sm: "h-1 [&::-webkit-slider-thumb]:w-3 [&::-webkit-slider-thumb]:h-3 [&::-moz-range-thumb]:w-3 [&::-moz-range-thumb]:h-3";
12
- readonly md: "h-2 [&::-webkit-slider-thumb]:w-4 [&::-webkit-slider-thumb]:h-4 [&::-moz-range-thumb]:w-4 [&::-moz-range-thumb]:h-4";
13
- readonly lg: "h-3 [&::-webkit-slider-thumb]:w-5 [&::-webkit-slider-thumb]:h-5 [&::-moz-range-thumb]:w-5 [&::-moz-range-thumb]:h-5";
14
- readonly xl: "h-4 [&::-webkit-slider-thumb]:w-6 [&::-webkit-slider-thumb]:h-6 [&::-moz-range-thumb]:w-6 [&::-moz-range-thumb]:h-6";
11
+ sm: string;
12
+ md: string;
13
+ lg: string;
14
+ xl: string;
15
15
  };
16
- export type SliderColorType = keyof typeof SliderColor;
17
- export type SliderSizeType = keyof typeof SliderSize;
18
16
  export type SliderProps = {
19
17
  label?: string;
20
18
  prefixIcon?: React.ReactNode;
21
19
  suffixIcon?: React.ReactNode;
22
- color?: SliderColorType;
23
- sliderSize?: SliderSizeType;
20
+ color?: keyof typeof SliderColor;
21
+ sliderSize?: keyof typeof SliderSize;
24
22
  showTooltip?: boolean;
25
23
  showMarks?: boolean;
26
- showInput?: boolean;
27
- } & Omit<InputHTMLAttributes<HTMLInputElement>, "className" | "size" | "type">;
24
+ } & InputHTMLAttributes<HTMLInputElement>;
28
25
  export declare const Slider: React.FC<SliderProps>;
29
26
  export {};
@@ -1,25 +1,31 @@
1
1
  import { default as React, ReactNode } from 'react';
2
+ declare const DotColors: {
3
+ success: string;
4
+ info: string;
5
+ error: string;
6
+ warning: string;
7
+ primary: string;
8
+ default: string;
9
+ };
2
10
  declare const LineColors: {
3
- readonly default: "border-gray-200 dark:border-neutral-800 md:before:border-gray-200 md:dark:before:border-neutral-800";
4
- readonly primary: "border-primary dark:border-primary-dark md:before:border-primary md:dark:before:border-primary-dark";
5
- readonly success: "border-success dark:border-success-dark md:before:border-success md:dark:before:border-success-dark";
6
- readonly info: "border-info dark:border-info-dark md:before:border-info md:dark:before:border-info-dark";
7
- readonly error: "border-error dark:border-error-dark md:before:border-error md:dark:before:border-error-dark";
8
- readonly warning: "border-warning dark:border-warning-dark md:before:border-warning md:dark:before:border-warning-dark";
11
+ success: string;
12
+ info: string;
13
+ error: string;
14
+ warning: string;
15
+ primary: string;
16
+ default: string;
9
17
  };
10
- export type TimelinePosition = "split" | "right" | "left";
11
- export type TimelineColor = keyof typeof LineColors;
12
18
  export type TimelineProps = {
13
- position?: TimelinePosition;
14
- lineColor?: TimelineColor;
19
+ position?: 'split' | 'right' | 'left';
20
+ lineColor?: keyof typeof LineColors;
15
21
  children: ReactNode;
16
22
  };
17
23
  export type TimelineItemProps = {
18
24
  title: string;
19
25
  time: string;
20
- children?: ReactNode;
21
- dotColor?: TimelineColor;
22
- icon?: ReactNode;
26
+ children: ReactNode;
27
+ dotColor?: keyof typeof DotColors;
28
+ icon?: React.ReactNode;
23
29
  };
24
30
  export declare const Timeline: React.FC<TimelineProps> & {
25
31
  Item: React.FC<TimelineItemProps>;