@npm-questionpro/wick-ui-lib 2.4.0 → 2.5.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/dist/components/appHeader/components/account/ui/_otherMenuItem.d.ts +1 -1
- package/dist/components/appHeader/components/account/ui/_settingsMenuItem.d.ts +1 -1
- package/dist/components/appHeader/components/account/ui/_userMenuItem.d.ts +1 -1
- package/dist/components/appHeader/components/productSwitcher/ui/_categoryDetails.d.ts +1 -1
- package/dist/components/appHeader/components/productSwitcher/ui/_productDropdown.d.ts +1 -1
- package/dist/components/appHeader/components/productSwitcher/ui/_productItem.d.ts +0 -1
- package/dist/components/appHeader/components/productSwitcher/ui/_productList.d.ts +1 -2
- package/dist/components/appHeader/utils/iconMap.d.ts +1 -1
- package/dist/components/checkbox/WuCheckbox.d.ts +1 -1
- package/dist/components/drawer/WuDrawer.d.ts +1 -1
- package/dist/components/formGroup/components/WuLabel.d.ts +1 -1
- package/dist/components/listbox/ui/_item.d.ts +1 -1
- package/dist/components/listbox/ui/_search.d.ts +1 -1
- package/dist/components/menu/WuMenu.d.ts +1 -1
- package/dist/components/menu/ui/WuMenuItemGroup.d.ts +1 -1
- package/dist/components/menu/ui/WuMenuSeparatorItem.d.ts +1 -1
- package/dist/components/menu/ui/WuSubMenu.d.ts +1 -1
- package/dist/components/modal/WuModal.d.ts +1 -1
- package/dist/components/sidebar/WuSidebar.d.ts +1 -1
- package/dist/components/sidebar/index.d.ts +1 -1
- package/dist/components/sidebar/shadcn/sidebar.d.ts +2 -2
- package/dist/components/surveySelect/types/index.d.ts +1 -1
- package/dist/components/tab/WuTab.d.ts +1 -1
- package/dist/components/toast/hooks/useWuShowToast.d.ts +1 -1
- package/dist/components/tooltip/WuTooltip.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/translate/WuTranslateContext.d.ts +2 -0
- package/dist/translate/wtCache.d.ts +15 -0
- package/dist/wick-ui-lib/es/index.js +837 -775
- package/package.json +5 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IWuAppHeaderAccount } from '
|
|
1
|
+
import { IWuAppHeaderAccount } from '../../../../../components/appHeader/types/WuAppHeaderAccount';
|
|
2
2
|
export declare const OtherMenuItem: React.FC<{
|
|
3
3
|
user: IWuAppHeaderAccount;
|
|
4
4
|
dir?: 'ltr' | 'rtl';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IWuAppHeaderAccount } from '
|
|
1
|
+
import { IWuAppHeaderAccount } from '../../../../../components/appHeader/types/WuAppHeaderAccount';
|
|
2
2
|
export declare const SettingsMenuItem: React.FC<{
|
|
3
3
|
settings: IWuAppHeaderAccount['settings'];
|
|
4
4
|
dir?: 'ltr' | 'rtl';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IWuAppHeaderAccount } from '
|
|
1
|
+
import { IWuAppHeaderAccount } from '../../../../../components/appHeader/types/WuAppHeaderAccount';
|
|
2
2
|
export declare const UserMenuItem: React.FC<{
|
|
3
3
|
user: IWuAppHeaderAccount;
|
|
4
4
|
dir?: 'ltr' | 'rtl';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IWuAppHeaderMenuItem } from '
|
|
1
|
+
import { IWuAppHeaderMenuItem } from '../../../../../components/appHeader/types/WuAppHeaderMenuItem';
|
|
2
2
|
interface ICategoryDetailsProps {
|
|
3
3
|
category: IWuAppHeaderMenuItem;
|
|
4
4
|
dir?: 'ltr' | 'rtl';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { RefObject } from 'react';
|
|
2
|
-
import { IWuAppHeaderMenuItem } from '
|
|
2
|
+
import { IWuAppHeaderMenuItem } from '../../../../../components/appHeader/types/WuAppHeaderMenuItem';
|
|
3
3
|
interface IDropdownMenuProps {
|
|
4
4
|
dropdownRef: RefObject<HTMLUListElement | null>;
|
|
5
5
|
dir?: 'ltr' | 'rtl';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { IWuAppHeaderMenuItem } from '
|
|
2
|
+
import { IWuAppHeaderMenuItem } from '../../../../../components/appHeader/types/WuAppHeaderMenuItem';
|
|
3
3
|
interface IProductListProps {
|
|
4
4
|
category: IWuAppHeaderMenuItem;
|
|
5
|
-
currentProduct: string;
|
|
6
5
|
activeProductName: string;
|
|
7
6
|
dir?: 'ltr' | 'rtl';
|
|
8
7
|
focusItem: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Checkbox } from '
|
|
2
|
+
import { Checkbox } from '../../base/ui/checkbox';
|
|
3
3
|
export type IWuCheckboxProps = Omit<React.ComponentPropsWithRef<typeof Checkbox>, 'onChange'> & {
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
checked?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IWuListboxProps } from '../WuListbox';
|
|
3
|
-
import { CommandItem } from '
|
|
3
|
+
import { CommandItem } from '../../../base/ui/command';
|
|
4
4
|
type IWuListItemProps<T extends object> = Omit<React.ComponentProps<typeof CommandItem>, 'value' | 'onSelect'> & {
|
|
5
5
|
option: T;
|
|
6
6
|
accessorKey: IWuListboxProps<T>['accessorKey'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DropdownMenu } from '
|
|
2
|
+
import { DropdownMenu } from '../../base/ui/dropdownMenu';
|
|
3
3
|
export interface IWuMenuProps extends Omit<React.ComponentProps<typeof DropdownMenu>, 'open' | 'onOpenChange'> {
|
|
4
4
|
name?: string;
|
|
5
5
|
MenuTitle?: React.ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DropdownMenuGroup } from '
|
|
2
|
+
import { DropdownMenuGroup } from '../../../base/ui/dropdownMenu';
|
|
3
3
|
export declare const WuMenuItemGroup: React.FC<React.ComponentProps<typeof DropdownMenuGroup> & {
|
|
4
4
|
Label: React.ReactNode;
|
|
5
5
|
}>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DropdownMenuSeparator } from '
|
|
1
|
+
import { DropdownMenuSeparator } from '../../../base/ui/dropdownMenu';
|
|
2
2
|
export declare const WuMenuSeparatorItem: React.FC<React.ComponentProps<typeof DropdownMenuSeparator>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DropdownMenuSub } from '
|
|
2
|
+
import { DropdownMenuSub } from '../../../base/ui/dropdownMenu';
|
|
3
3
|
export interface IWuSubMenuProps extends Omit<React.ComponentProps<typeof DropdownMenuSub>, 'onOpenChange'> {
|
|
4
4
|
Label: React.ReactNode;
|
|
5
5
|
open?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { type FC } from 'react';
|
|
2
2
|
import { IWuButtonProps } from '../button';
|
|
3
|
-
import { DialogContent, DialogFooter, DialogHeader } from '
|
|
3
|
+
import { DialogContent, DialogFooter, DialogHeader } from '../../base/ui/dialog';
|
|
4
4
|
declare const MAX_WIDTH: {
|
|
5
5
|
readonly sm: "400px";
|
|
6
6
|
readonly md: "600px";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Collapsible } from '@base-ui/react/collapsible';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { SidebarContent, SidebarFooter, SidebarGroup, SidebarMenu, SidebarMenuItem, SidebarTrigger } from '
|
|
3
|
+
import { SidebarContent, SidebarFooter, SidebarGroup, SidebarMenu, SidebarMenuItem, SidebarTrigger } from '../../components/sidebar/shadcn/sidebar';
|
|
4
4
|
export type IWuSidebarProps = {
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
Sidebar: React.ReactNode;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { useSidebar as useWuSidebar } from '
|
|
1
|
+
export { useSidebar as useWuSidebar } from '../../components/sidebar/shadcn/sidebar';
|
|
2
2
|
export { WuSidebar, WuSidebarContent, WuSidebarFooter, WuSidebarGroup, WuSidebarItem, WuSidebarMenu, WuSidebarTrigger, WuSidebarCollapsibleMenu, type IWuSidebarCollapsibleMenuProps, type IWuSidebarGroupProps, type IWuSidebarItemProps, type IWuSidebarProps, } from './WuSidebar';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { TooltipContent } from '
|
|
3
|
+
import { TooltipContent } from '../../../base/ui/tooltip';
|
|
4
4
|
type ISidebarContext = {
|
|
5
5
|
state: 'expanded' | 'collapsed';
|
|
6
6
|
open: boolean;
|
|
@@ -21,7 +21,7 @@ declare const Sidebar: React.ForwardRefExoticComponent<Omit<React.ClassAttribute
|
|
|
21
21
|
variant?: "sidebar" | "floating" | "inset";
|
|
22
22
|
collapsible?: "offcanvas" | "icon" | "none";
|
|
23
23
|
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
-
declare const SidebarTrigger: React.ForwardRefExoticComponent<Omit<import("
|
|
24
|
+
declare const SidebarTrigger: React.ForwardRefExoticComponent<Omit<import("../../../base/ui/button").IButtonProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
25
25
|
declare const SidebarInset: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
26
26
|
declare const SidebarHeader: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
27
27
|
declare const SidebarFooter: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { IWuListboxProps } from '
|
|
2
|
+
import { IWuListboxProps } from '../../../components/listbox/WuListbox';
|
|
3
3
|
export type IWuSurveySourceProps<T extends object> = IWuListboxProps<T>;
|
|
4
4
|
export interface IWuSurveyItemProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
|
|
5
5
|
children: React.ReactNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { type FC } from 'react';
|
|
2
2
|
import { IWuTabItem } from './types/IWuItems';
|
|
3
|
-
import { Tabs } from '
|
|
3
|
+
import { Tabs } from '../../components/tab/shadcn/tabs';
|
|
4
4
|
export interface IWuTabProps extends React.ComponentProps<typeof Tabs> {
|
|
5
5
|
items: IWuTabItem[];
|
|
6
6
|
defaultValue?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TooltipTrigger } from '
|
|
2
|
+
import { TooltipTrigger } from '../../base/ui/tooltip';
|
|
3
3
|
export interface IWuTooltipProps extends Omit<React.ComponentProps<typeof TooltipTrigger>, 'content'> {
|
|
4
4
|
/** Content shown inside the tooltip — text or any ReactNode. Omit or pass empty string to suppress. */
|
|
5
5
|
content?: string | React.ReactNode;
|