welcome-ui 10.0.0-alpha.11 → 10.0.0-alpha.12

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.
@@ -3,10 +3,10 @@ export declare const actions: readonly ["asterisk", "info-circle", "chart-line",
3
3
  export declare const chat: string[];
4
4
  export declare const miscellaneous: readonly ["music", "rocket", "file-alt", "user-square", "book-reader", "file-question-alt", "sad-solid", "smile-beam-solid", "sad", "smile-beam", "sign-right", "exclamation-triangle", "exclamation-circle", "exclamation-octagon", "chart-pie", "paperclip", "chart-bar", "fire", "user-check", "apps", "trophy", "bookmark-solid", "bookmark", "clock", "comment-alt-lines", "file-edit-alt", "illustration", "calendar", "users-alt", "globe", "graduation-cap", "envelope", "equal-circle", "minus", "venus", "mars", "estate", "info-circle", "columns", "english-to-chinese", "bag-alt", "chart-line", "map-marker-alt", "lock-alt", "flag", "at", "user", "user-circle", "clipboard-check", "building", "compass", "phone", "pin", "microphone", "user-search", "house-user", "star-solid", "star", "coins", "euro-circle", "file-search-alt", "question-circle", "gift", "birthday-cake", "bunting-flags", "tag-alt", "tablet", "mobile", "video", "plus-circle", "pen", "check-circle", "certified", "plug"];
5
5
  export declare const player: readonly ["play", "stop-circle-solid", "pause-circle-solid", "previous", "step-forward", "expand-arrows-alt", "compress-arrows", "screen-share", "stop-screen-share", "microphone", "microphone-slash", "cast", "cast-connected", "cast-unavailable", "video", "video-slash", "airplay", "history", "playlist", "volume-up", "volume-mute", "closed-captioning"];
6
- export declare const wtf: readonly ["package", "basketball", "book-alt", "lightbulb-alt", "life-ring", "calculator-alt", "camera", "shopping-cart", "clipboard-notes", "coffee", "ruler", "desktop", "hard-hat", "credit-card", "moon-solid", "moon", "crosshair", "crown", "restaurant", "diamond", "industry", "fingerprint", "flag", "flag-solid", "setting", "handshake", "hashtag", "headphones", "heart", "estate", "balance-scale", "key-skeleton", "leaf", "map", "masonry", "masonry-plus", "megaphone", "microphone", "processor", "euro-circle", "mountains", "pen", "images", "chart-pie-alt", "pizza-slice", "puzzle-piece-solid", "puzzle-piece", "shield", "wrench", "sparkles", "server", "sun", "hunting", "thumbs-up", "thumbs-down", "trees", "sofa", "exit", "redo", "play", "ban"];
6
+ export declare const wtf: readonly ["icons", "package", "basketball", "book-alt", "lightbulb-alt", "life-ring", "calculator-alt", "camera", "shopping-cart", "clipboard-notes", "coffee", "ruler", "desktop", "hard-hat", "credit-card", "moon-solid", "moon", "crosshair", "crown", "restaurant", "diamond", "industry", "fingerprint", "flag", "flag-solid", "setting", "handshake", "hashtag", "headphones", "heart", "estate", "balance-scale", "key-skeleton", "leaf", "map", "masonry", "masonry-plus", "megaphone", "microphone", "processor", "euro-circle", "mountains", "pen", "images", "chart-pie-alt", "pizza-slice", "puzzle-piece-solid", "puzzle-piece", "shield", "wrench", "sparkles", "server", "sun", "hunting", "thumbs-up", "thumbs-down", "trees", "sofa", "exit", "redo", "play", "ban"];
7
7
  export declare const foldersAndFiles: readonly ["folder", "folder-open", "folder-full", "file", "image"];
8
8
  export declare const markdown: readonly ["bold", "arrow", "brackets-curly", "italic", "list-ol-alt", "list-ul", "quote", "text-strike-through", "heading", "heading-1", "heading-2", "heading-3", "heading-4", "heading-5", "heading-6", "font", "underline"];
9
9
  export declare const brands: readonly ["behance", "dribbble", "facebook", "github", "google", "instagram", "linkedin", "npm", "pinterest", "slack", "stackoverflow", "tiktok", "twitch", "x", "xing", "youtube", "zapier"];
10
10
  export declare const welcome: readonly ["symbol", "wttj"];
11
11
  export declare const flags: readonly ["flag-fr", "flag-en", "flag-us"];
12
- export declare const icons: readonly ["asterisk", "info-circle", "chart-line", "plus", "chart-line", "archive-alt", "arrows-merge-v", "arrows-shrink-v", "apps", "edit", "user-check", "user-plus", "user-times", "check", "times", "trash", "import", "upload", "draggable-dots", "copy", "pen", "left-arrow-from-left", "arrow-from-right", "resize-handle", "arrow-resize-diagonal", "external-link-alt", "heart-solid", "heart", "filter", "eye", "eye-slash", "link", "sign-out-alt", "bars", "ellipsis-v", "ellipsis-h", "move-arrow", "bell", "print", "bolt-alt", "redo", "save", "search", "setting", "share-alt", "share", "angle-left-b", "angle-right-b", "angle-up", "angle-down", "arrow-left", "arrow-right", "arrow-up", "arrow-down", "left-arrow-to-left", "arrow-to-right", "top-arrow-to-top", "arrow-to-bottom", "angle-double-left", "angle-double-right", "angle-left", "angle-right", "behance", "dribbble", "facebook", "github", "google", "instagram", "linkedin", "npm", "pinterest", "slack", "stackoverflow", "tiktok", "twitch", "x", "xing", "youtube", "zapier", ...string[], "folder", "folder-open", "folder-full", "file", "image", "flag-fr", "flag-en", "flag-us", "bold", "arrow", "brackets-curly", "italic", "list-ol-alt", "list-ul", "quote", "text-strike-through", "heading", "heading-1", "heading-2", "heading-3", "heading-4", "heading-5", "heading-6", "font", "underline", "music", "rocket", "file-alt", "user-square", "book-reader", "file-question-alt", "sad-solid", "smile-beam-solid", "sad", "smile-beam", "sign-right", "exclamation-triangle", "exclamation-circle", "exclamation-octagon", "chart-pie", "paperclip", "chart-bar", "fire", "user-check", "apps", "trophy", "bookmark-solid", "bookmark", "clock", "comment-alt-lines", "file-edit-alt", "illustration", "calendar", "users-alt", "globe", "graduation-cap", "envelope", "equal-circle", "minus", "venus", "mars", "estate", "info-circle", "columns", "english-to-chinese", "bag-alt", "chart-line", "map-marker-alt", "lock-alt", "flag", "at", "user", "user-circle", "clipboard-check", "building", "compass", "phone", "pin", "microphone", "user-search", "house-user", "star-solid", "star", "coins", "euro-circle", "file-search-alt", "question-circle", "gift", "birthday-cake", "bunting-flags", "tag-alt", "tablet", "mobile", "video", "plus-circle", "pen", "check-circle", "certified", "plug", "play", "stop-circle-solid", "pause-circle-solid", "previous", "step-forward", "expand-arrows-alt", "compress-arrows", "screen-share", "stop-screen-share", "microphone", "microphone-slash", "cast", "cast-connected", "cast-unavailable", "video", "video-slash", "airplay", "history", "playlist", "volume-up", "volume-mute", "closed-captioning", "symbol", "wttj", "package", "basketball", "book-alt", "lightbulb-alt", "life-ring", "calculator-alt", "camera", "shopping-cart", "clipboard-notes", "coffee", "ruler", "desktop", "hard-hat", "credit-card", "moon-solid", "moon", "crosshair", "crown", "restaurant", "diamond", "industry", "fingerprint", "flag", "flag-solid", "setting", "handshake", "hashtag", "headphones", "heart", "estate", "balance-scale", "key-skeleton", "leaf", "map", "masonry", "masonry-plus", "megaphone", "microphone", "processor", "euro-circle", "mountains", "pen", "images", "chart-pie-alt", "pizza-slice", "puzzle-piece-solid", "puzzle-piece", "shield", "wrench", "sparkles", "server", "sun", "hunting", "thumbs-up", "thumbs-down", "trees", "sofa", "exit", "redo", "play", "ban"];
12
+ export declare const icons: readonly ["asterisk", "info-circle", "chart-line", "plus", "chart-line", "archive-alt", "arrows-merge-v", "arrows-shrink-v", "apps", "edit", "user-check", "user-plus", "user-times", "check", "times", "trash", "import", "upload", "draggable-dots", "copy", "pen", "left-arrow-from-left", "arrow-from-right", "resize-handle", "arrow-resize-diagonal", "external-link-alt", "heart-solid", "heart", "filter", "eye", "eye-slash", "link", "sign-out-alt", "bars", "ellipsis-v", "ellipsis-h", "move-arrow", "bell", "print", "bolt-alt", "redo", "save", "search", "setting", "share-alt", "share", "angle-left-b", "angle-right-b", "angle-up", "angle-down", "arrow-left", "arrow-right", "arrow-up", "arrow-down", "left-arrow-to-left", "arrow-to-right", "top-arrow-to-top", "arrow-to-bottom", "angle-double-left", "angle-double-right", "angle-left", "angle-right", "behance", "dribbble", "facebook", "github", "google", "instagram", "linkedin", "npm", "pinterest", "slack", "stackoverflow", "tiktok", "twitch", "x", "xing", "youtube", "zapier", ...string[], "folder", "folder-open", "folder-full", "file", "image", "flag-fr", "flag-en", "flag-us", "bold", "arrow", "brackets-curly", "italic", "list-ol-alt", "list-ul", "quote", "text-strike-through", "heading", "heading-1", "heading-2", "heading-3", "heading-4", "heading-5", "heading-6", "font", "underline", "music", "rocket", "file-alt", "user-square", "book-reader", "file-question-alt", "sad-solid", "smile-beam-solid", "sad", "smile-beam", "sign-right", "exclamation-triangle", "exclamation-circle", "exclamation-octagon", "chart-pie", "paperclip", "chart-bar", "fire", "user-check", "apps", "trophy", "bookmark-solid", "bookmark", "clock", "comment-alt-lines", "file-edit-alt", "illustration", "calendar", "users-alt", "globe", "graduation-cap", "envelope", "equal-circle", "minus", "venus", "mars", "estate", "info-circle", "columns", "english-to-chinese", "bag-alt", "chart-line", "map-marker-alt", "lock-alt", "flag", "at", "user", "user-circle", "clipboard-check", "building", "compass", "phone", "pin", "microphone", "user-search", "house-user", "star-solid", "star", "coins", "euro-circle", "file-search-alt", "question-circle", "gift", "birthday-cake", "bunting-flags", "tag-alt", "tablet", "mobile", "video", "plus-circle", "pen", "check-circle", "certified", "plug", "play", "stop-circle-solid", "pause-circle-solid", "previous", "step-forward", "expand-arrows-alt", "compress-arrows", "screen-share", "stop-screen-share", "microphone", "microphone-slash", "cast", "cast-connected", "cast-unavailable", "video", "video-slash", "airplay", "history", "playlist", "volume-up", "volume-mute", "closed-captioning", "symbol", "wttj", "icons", "package", "basketball", "book-alt", "lightbulb-alt", "life-ring", "calculator-alt", "camera", "shopping-cart", "clipboard-notes", "coffee", "ruler", "desktop", "hard-hat", "credit-card", "moon-solid", "moon", "crosshair", "crown", "restaurant", "diamond", "industry", "fingerprint", "flag", "flag-solid", "setting", "handshake", "hashtag", "headphones", "heart", "estate", "balance-scale", "key-skeleton", "leaf", "map", "masonry", "masonry-plus", "megaphone", "microphone", "processor", "euro-circle", "mountains", "pen", "images", "chart-pie-alt", "pizza-slice", "puzzle-piece-solid", "puzzle-piece", "shield", "wrench", "sparkles", "server", "sun", "hunting", "thumbs-up", "thumbs-down", "trees", "sofa", "exit", "redo", "play", "ban"];
@@ -36,6 +36,7 @@ export interface SelectOptions {
36
36
  renderGroupHeader?: (option: SelectOptionGroup) => React.ReactNode;
37
37
  renderItem?: (item: SelectOption, isItemSelected?: boolean) => React.ReactElement | string;
38
38
  renderMultiple?: (values: SelectOption[], handleRemove: (value: string) => void) => React.ReactElement;
39
+ renderNoResults?: (inputValue: SelectValue) => React.ReactNode;
39
40
  size?: Size;
40
41
  transparent?: boolean;
41
42
  value?: SelectValue;
@@ -0,0 +1,2 @@
1
+ import { TabProps } from './types';
2
+ export declare const Tab: import('../../utils').FunctionComponentWithAs<"button", TabProps>;
@@ -1,2 +1,2 @@
1
- import { TabPanelProps } from '../../types';
1
+ import { TabPanelProps } from './types';
2
2
  export declare const TabPanel: import('react').ForwardRefExoticComponent<TabPanelProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -1,8 +1,9 @@
1
- import { TabProps } from './types';
2
- export declare const TabComponent: import('../../utils').FunctionComponentWithAs<"button", TabProps>;
3
- export declare const Tab: import('../../utils').FunctionComponentWithAs<"button", TabProps> & {
4
- List: import('react').ForwardRefExoticComponent<import('./types').TabListProps & import('react').RefAttributes<HTMLDivElement>>;
5
- Panel: import('react').ForwardRefExoticComponent<import('./types').TabPanelProps & import('react').RefAttributes<HTMLDivElement>>;
1
+ import { default as React } from 'react';
2
+ import { TabListProps } from './types';
3
+ export declare const TabsComponent: React.ForwardRefExoticComponent<TabListProps & React.RefAttributes<HTMLDivElement>>;
4
+ export declare const Tabs: React.ForwardRefExoticComponent<TabListProps & React.RefAttributes<HTMLDivElement>> & {
5
+ Panel: React.ForwardRefExoticComponent<import('./types').TabPanelProps & React.RefAttributes<HTMLDivElement>>;
6
+ Tab: import('../../utils').FunctionComponentWithAs<"button", import('./types').TabProps>;
6
7
  };
7
8
  export { useTabStore as useTab } from '@ariakit/react';
8
9
  export type { TabStore as UseTab, TabStoreProps as UseTabProps, TabStoreState as UseTabState, } from '@ariakit/react';
@@ -1,16 +1,7 @@
1
1
  import { TabStore, TabStoreProps } from '@ariakit/react';
2
- import { UseTab, UseTabState } from '.';
3
- export interface ActiveBarProps {
4
- activeTab: HTMLElement;
5
- listRef: React.MutableRefObject<undefined>;
6
- orientation: Omit<UseTabState['orientation'], 'both'>;
7
- }
8
- export interface ActiveBarReturn {
9
- offset?: number;
10
- orientation?: Omit<UseTabState['orientation'], 'both'>;
11
- size?: number;
12
- }
13
- export type Size = 'md' | 'sm';
2
+ import { IconName } from '../Icon/types';
3
+ import { UseTab } from './index';
4
+ export type Size = 'lg' | 'md';
14
5
  export type TabListProps = {
15
6
  children: React.ReactNode;
16
7
  className?: string;
@@ -18,8 +9,11 @@ export type TabListProps = {
18
9
  store: UseTab;
19
10
  };
20
11
  export interface TabOptions {
12
+ badge?: number | string;
21
13
  children: React.ReactNode;
22
14
  className?: string;
15
+ icon?: IconName | React.ReactNode;
16
+ iconColor?: 'blue' | 'green' | 'orange' | 'pink' | 'teal' | 'violet' | 'warm';
23
17
  id?: string;
24
18
  size?: Size;
25
19
  store: TabStore;
@@ -1,7 +1,4 @@
1
- import { default as React } from 'react';
2
- import { UseTabState } from '.';
3
- export declare const getParentScale: (element: HTMLElement | null) => number;
4
- export declare function useTrackActiveTabs(selectedId: UseTabState['selectedId'], children: React.ReactNode): {
5
- activeTab: HTMLElement | null;
6
- tabs: React.ReactNode;
7
- };
1
+ import { TabProps } from './types';
2
+ export declare function getIcon({ icon, iconColor, isActive, }: Pick<TabProps, 'icon' | 'iconColor'> & {
3
+ isActive: boolean;
4
+ }): number | true | Iterable<import('react').ReactNode> | import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "welcome-ui",
3
- "version": "10.0.0-alpha.11",
3
+ "version": "10.0.0-alpha.12",
4
4
  "description": "Customizable design system with react, typescript, tailwindcss and ariakit.",
5
5
  "files": [
6
6
  "dist"
@@ -1,5 +0,0 @@
1
- import { ActiveBarProps } from '../../types';
2
- export declare const ActiveBar: {
3
- ({ activeTab, listRef, orientation }: ActiveBarProps): import("react/jsx-runtime").JSX.Element;
4
- displayName: string;
5
- };
@@ -1,3 +0,0 @@
1
- import { default as React } from 'react';
2
- import { TabListProps } from '../../types';
3
- export declare const TabList: React.ForwardRefExoticComponent<TabListProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,17 +0,0 @@
1
- "use client";
2
- import { useEffect as n, useLayoutEffect as o, useState as d } from "react";
3
- const r = typeof window > "u" ? n : o;
4
- function w() {
5
- const [t, e] = d({ height: void 0, width: void 0 });
6
- return r(() => {
7
- e({ height: window.innerHeight, width: window.innerWidth });
8
- function i() {
9
- e({ height: window.innerHeight, width: window.innerWidth });
10
- }
11
- return window.addEventListener("resize", i), () => window.removeEventListener("resize", i);
12
- }, []), t;
13
- }
14
- export {
15
- r as a,
16
- w as u
17
- };
@@ -1,22 +0,0 @@
1
- "use client";
2
- import u, { useRef as o, useMemo as f } from "react";
3
- function i(e) {
4
- return u.isValidElement(e) && Object.prototype.hasOwnProperty.call(e, "ref") ? e == null ? void 0 : e.ref : null;
5
- }
6
- function s(...e) {
7
- return (t) => {
8
- e.forEach((n) => a(n, t));
9
- };
10
- }
11
- function a(e, t) {
12
- e && (typeof e == "function" && t !== void 0 ? e(t) : e.current = t ?? null);
13
- }
14
- function R(e, t) {
15
- const n = o(null), r = f(() => s(e, n, t), [e, n, t]);
16
- return [n, r];
17
- }
18
- export {
19
- i as g,
20
- s as m,
21
- R as u
22
- };