periplo-ui 4.11.5 → 4.13.0

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.
Files changed (40) hide show
  1. package/dist/components/inputs/CountrySelect/CountrySelect.d.ts +26 -0
  2. package/dist/components/inputs/CountrySelect/CountrySelect.js +78 -0
  3. package/dist/components/inputs/CountrySelect/CountrySelect.js.map +1 -0
  4. package/dist/components/inputs/CountrySelect/index.d.ts +2 -0
  5. package/dist/components/inputs/CountrySelect/index.js +2 -0
  6. package/dist/components/inputs/CountrySelect/types.d.ts +9 -0
  7. package/dist/components/inputs/CountrySelect/types.js +1 -0
  8. package/dist/components/inputs/PhoneInput/PhoneInput.js +2 -2
  9. package/dist/components/inputs/PhoneInput/hooks/usePhoneField.js +1 -1
  10. package/dist/components/inputs/PhoneInput/phone.js +1 -1
  11. package/dist/components/navigation/Sidebar/Sidebar.d.ts +13 -77
  12. package/dist/components/navigation/Sidebar/Sidebar.js +194 -316
  13. package/dist/components/navigation/Sidebar/Sidebar.js.map +1 -1
  14. package/dist/components/navigation/Sidebar/SidebarMenu.d.ts +61 -0
  15. package/dist/components/navigation/Sidebar/SidebarMenu.js +444 -0
  16. package/dist/components/navigation/Sidebar/SidebarMenu.js.map +1 -0
  17. package/dist/components/navigation/Sidebar/SidebarPage.d.ts +5 -0
  18. package/dist/components/navigation/Sidebar/SidebarPage.js +72 -0
  19. package/dist/components/navigation/Sidebar/SidebarPage.js.map +1 -0
  20. package/dist/components/navigation/Sidebar/SidebarUser.d.ts +21 -0
  21. package/dist/components/navigation/Sidebar/SidebarUser.js +172 -0
  22. package/dist/components/navigation/Sidebar/SidebarUser.js.map +1 -0
  23. package/dist/components/navigation/Sidebar/context.d.ts +17 -0
  24. package/dist/components/navigation/Sidebar/context.js +18 -0
  25. package/dist/components/navigation/Sidebar/context.js.map +1 -0
  26. package/dist/components/navigation/Sidebar/index.d.ts +5 -0
  27. package/dist/components/navigation/Sidebar/index.js +6 -2
  28. package/dist/components/navigation/Sidebar/styles.d.ts +6 -0
  29. package/dist/components/navigation/Sidebar/styles.js +11 -0
  30. package/dist/components/navigation/Sidebar/styles.js.map +1 -0
  31. package/dist/index.d.ts +1 -0
  32. package/dist/index.js +7 -2
  33. package/dist/lib/inputModality.d.ts +5 -0
  34. package/dist/lib/inputModality.js +37 -0
  35. package/dist/lib/inputModality.js.map +1 -0
  36. package/dist/lib/marquee.d.ts +14 -0
  37. package/dist/lib/marquee.js +76 -0
  38. package/dist/lib/marquee.js.map +1 -0
  39. package/dist/theme.css +3 -3
  40. package/package.json +1 -1
@@ -0,0 +1,26 @@
1
+ import { ComboboxSingleProps } from '../Combobox';
2
+ import { Country, CountrySelectAccessors } from './types';
3
+ import type * as React from 'react';
4
+ type CountrySelectComboboxProps = Pick<ComboboxSingleProps<object>, 'id' | 'className' | 'disabled' | 'error' | 'value' | 'placeholder' | 'searchPlaceholder' | 'emptyMessage' | 'aria-invalid' | 'aria-describedby'>;
5
+ type CountrySelectBaseProps<T> = CountrySelectComboboxProps & {
6
+ /** ISO codes pinned above the list, in order. */
7
+ priorityCountries?: Array<string>;
8
+ onChange?: (value: string, country: T) => void;
9
+ };
10
+ type ResolvedCountrySelectProps<T extends object> = CountrySelectBaseProps<T> & Partial<CountrySelectAccessors<T>> & {
11
+ /** Defaults to the generated list. */
12
+ countries?: Array<T>;
13
+ /** Ignored when `countries` is passed. */
14
+ locale?: string;
15
+ };
16
+ export type CountrySelectDefaultProps = ResolvedCountrySelectProps<Country>;
17
+ export type CountrySelectCustomProps<T extends object> = CountrySelectBaseProps<T> & CountrySelectAccessors<T> & {
18
+ countries: Array<T>;
19
+ };
20
+ export type CountrySelectProps<T extends object = Country> = CountrySelectDefaultProps | CountrySelectCustomProps<T>;
21
+ export declare function CountrySelect(props: CountrySelectDefaultProps): React.ReactElement;
22
+ export declare function CountrySelect<T extends object>(props: CountrySelectCustomProps<T>): React.ReactElement;
23
+ export declare namespace CountrySelect {
24
+ var displayName: string;
25
+ }
26
+ export {};
@@ -0,0 +1,78 @@
1
+ import { cn, createSearchMatcher } from "../../../lib/utils.js";
2
+ import { Combobox } from "../Combobox/Combobox.js";
3
+ import { buildCountries, isoToFlag, regionName, resolveIso, splitByPriority } from "../../../lib/countries.js";
4
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
5
+ import { CheckIcon } from "@phosphor-icons/react/dist/ssr/Check";
6
+ import { GlobeIcon } from "@phosphor-icons/react/dist/ssr/Globe";
7
+ //#region src/components/inputs/CountrySelect/CountrySelect.tsx
8
+ function CountrySelect(props) {
9
+ const { countries, locale = "en", priorityCountries, onChange, getCountryValue, getCountryIsoCode, getCountryName, getCountrySearchTerms, className, disabled = false, placeholder = "Select country", ...comboboxProps } = props;
10
+ const options = countries ?? buildCountries(locale);
11
+ const valueOf = getCountryValue ?? ((option) => option.isoCode);
12
+ const nameOf = getCountryName ?? ((option) => option.name);
13
+ const isoOf = (option) => resolveIso(valueOf(option), getCountryIsoCode?.(option));
14
+ const { priority, rest } = splitByPriority(options, priorityCountries, isoOf);
15
+ const filterOptions = (list, search) => {
16
+ const matches = createSearchMatcher(search);
17
+ return list.filter((option) => {
18
+ const iso = isoOf(option);
19
+ const terms = [
20
+ nameOf(option),
21
+ iso ?? "",
22
+ ...getCountrySearchTerms?.(option) ?? []
23
+ ];
24
+ if (!countries && iso && locale !== "en") terms.push(regionName(iso));
25
+ return matches(terms);
26
+ });
27
+ };
28
+ const renderCountry = (option) => {
29
+ const iso = isoOf(option);
30
+ return /* @__PURE__ */ jsxs("span", {
31
+ className: "flex min-w-0 items-center gap-2",
32
+ children: [iso && /* @__PURE__ */ jsx("span", {
33
+ className: "text-lg leading-none",
34
+ children: isoToFlag(iso)
35
+ }), /* @__PURE__ */ jsx("span", {
36
+ className: "truncate",
37
+ children: nameOf(option)
38
+ })]
39
+ });
40
+ };
41
+ return /* @__PURE__ */ jsx(Combobox, {
42
+ ...comboboxProps,
43
+ className: cn("w-full", className),
44
+ disabled: disabled || options.length <= 1 && !!comboboxProps.value,
45
+ placeholder: /* @__PURE__ */ jsxs("span", {
46
+ className: "flex items-center gap-2",
47
+ children: [/* @__PURE__ */ jsx(GlobeIcon, {
48
+ className: "h-5 w-5 shrink-0",
49
+ "aria-hidden": true
50
+ }), /* @__PURE__ */ jsx("span", {
51
+ className: "truncate",
52
+ children: placeholder
53
+ })]
54
+ }),
55
+ options: rest,
56
+ specialOptions: priority,
57
+ getOptionValue: valueOf,
58
+ getOptionLabel: nameOf,
59
+ filterOptions,
60
+ clearable: false,
61
+ onOpenAutoFocus: true,
62
+ onChange: (value) => {
63
+ const country = options.find((option) => valueOf(option) === value);
64
+ if (country) onChange?.(value, country);
65
+ },
66
+ renderLabel: renderCountry,
67
+ renderOption: (option, isSelected) => /* @__PURE__ */ jsxs(Fragment, { children: [renderCountry(option), isSelected && /* @__PURE__ */ jsx(CheckIcon, {
68
+ "data-testid": "selected-check",
69
+ weight: "bold",
70
+ className: "ml-auto h-4 w-4 shrink-0 text-neutral-950"
71
+ })] })
72
+ });
73
+ }
74
+ CountrySelect.displayName = "CountrySelect";
75
+ //#endregion
76
+ export { CountrySelect };
77
+
78
+ //# sourceMappingURL=CountrySelect.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CountrySelect.js","names":["_Fragment"],"sources":["../../../../src/components/inputs/CountrySelect/CountrySelect.tsx"],"sourcesContent":["import { CheckIcon } from '@phosphor-icons/react/dist/ssr/Check'\nimport { GlobeIcon } from '@phosphor-icons/react/dist/ssr/Globe'\nimport type * as React from 'react'\n\nimport { Combobox, type ComboboxSingleProps } from '../Combobox'\n\nimport type { Country, CountrySelectAccessors } from './types'\n\nimport { buildCountries, isoToFlag, regionName, resolveIso, splitByPriority } from '@/lib/countries'\nimport { cn, createSearchMatcher } from '@/lib/utils'\n\ntype CountrySelectComboboxProps = Pick<\n ComboboxSingleProps<object>,\n | 'id'\n | 'className'\n | 'disabled'\n | 'error'\n | 'value'\n | 'placeholder'\n | 'searchPlaceholder'\n | 'emptyMessage'\n | 'aria-invalid'\n | 'aria-describedby'\n>\n\ntype CountrySelectBaseProps<T> = CountrySelectComboboxProps & {\n /** ISO codes pinned above the list, in order. */\n priorityCountries?: Array<string>\n onChange?: (value: string, country: T) => void\n}\n\ntype ResolvedCountrySelectProps<T extends object> = CountrySelectBaseProps<T> &\n Partial<CountrySelectAccessors<T>> & {\n /** Defaults to the generated list. */\n countries?: Array<T>\n /** Ignored when `countries` is passed. */\n locale?: string\n }\n\nexport type CountrySelectDefaultProps = ResolvedCountrySelectProps<Country>\n\nexport type CountrySelectCustomProps<T extends object> = CountrySelectBaseProps<T> &\n CountrySelectAccessors<T> & {\n countries: Array<T>\n }\n\nexport type CountrySelectProps<T extends object = Country> = CountrySelectDefaultProps | CountrySelectCustomProps<T>\n\nexport function CountrySelect(props: CountrySelectDefaultProps): React.ReactElement\nexport function CountrySelect<T extends object>(props: CountrySelectCustomProps<T>): React.ReactElement\nexport function CountrySelect<T extends object>(props: ResolvedCountrySelectProps<T>): React.ReactElement {\n const {\n countries,\n locale = 'en',\n priorityCountries,\n onChange,\n getCountryValue,\n getCountryIsoCode,\n getCountryName,\n getCountrySearchTerms,\n className,\n disabled = false,\n placeholder = 'Select country',\n ...comboboxProps\n } = props\n\n const options = countries ?? (buildCountries(locale) as unknown as Array<T>)\n const valueOf = getCountryValue ?? ((option: T) => (option as unknown as Country).isoCode)\n const nameOf = getCountryName ?? ((option: T) => (option as unknown as Country).name)\n const isoOf = (option: T) => resolveIso(valueOf(option), getCountryIsoCode?.(option))\n\n const { priority, rest } = splitByPriority(options, priorityCountries, isoOf)\n\n const filterOptions = (list: Array<T>, search: string) => {\n const matches = createSearchMatcher(search)\n return list.filter((option) => {\n const iso = isoOf(option)\n const terms = [nameOf(option), iso ?? '', ...(getCountrySearchTerms?.(option) ?? [])]\n if (!countries && iso && locale !== 'en') terms.push(regionName(iso))\n return matches(terms)\n })\n }\n\n const renderCountry = (option: T) => {\n const iso = isoOf(option)\n return (\n <span className=\"flex min-w-0 items-center gap-2\">\n {iso && <span className=\"text-lg leading-none\">{isoToFlag(iso)}</span>}\n <span className=\"truncate\">{nameOf(option)}</span>\n </span>\n )\n }\n\n return (\n <Combobox<T>\n {...comboboxProps}\n className={cn('w-full', className)}\n disabled={disabled || (options.length <= 1 && !!comboboxProps.value)}\n placeholder={\n <span className=\"flex items-center gap-2\">\n <GlobeIcon className=\"h-5 w-5 shrink-0\" aria-hidden />\n <span className=\"truncate\">{placeholder}</span>\n </span>\n }\n options={rest}\n specialOptions={priority}\n getOptionValue={valueOf}\n getOptionLabel={nameOf}\n filterOptions={filterOptions}\n clearable={false}\n onOpenAutoFocus\n onChange={(value) => {\n const country = options.find((option) => valueOf(option) === value)\n if (country) onChange?.(value, country)\n }}\n renderLabel={renderCountry}\n renderOption={(option, isSelected) => (\n <>\n {renderCountry(option)}\n {isSelected && (\n <CheckIcon\n data-testid=\"selected-check\"\n weight=\"bold\"\n className=\"ml-auto h-4 w-4 shrink-0 text-neutral-950\"\n />\n )}\n </>\n )}\n />\n )\n}\n\nCountrySelect.displayName = 'CountrySelect'\n"],"mappings":";;;;;;;AAkDA,SAAgB,cAAgC,OAA0D;CACxG,MAAM,EACJ,WACA,SAAS,MACT,mBACA,UACA,iBACA,mBACA,gBACA,uBACA,WACA,WAAW,OACX,cAAc,kBACd,GAAG,kBACD;CAEJ,MAAM,UAAU,aAAc,eAAe,MAAM;CACnD,MAAM,UAAU,qBAAqB,WAAe,OAA8B;CAClF,MAAM,SAAS,oBAAoB,WAAe,OAA8B;CAChF,MAAM,SAAS,WAAc,WAAW,QAAQ,MAAM,GAAG,oBAAoB,MAAM,CAAC;CAEpF,MAAM,EAAE,UAAU,SAAS,gBAAgB,SAAS,mBAAmB,KAAK;CAE5E,MAAM,iBAAiB,MAAgB,WAAmB;EACxD,MAAM,UAAU,oBAAoB,MAAM;EAC1C,OAAO,KAAK,QAAQ,WAAW;GAC7B,MAAM,MAAM,MAAM,MAAM;GACxB,MAAM,QAAQ;IAAC,OAAO,MAAM;IAAG,OAAO;IAAI,GAAI,wBAAwB,MAAM,KAAK,CAAC;GAAE;GACpF,IAAI,CAAC,aAAa,OAAO,WAAW,MAAM,MAAM,KAAK,WAAW,GAAG,CAAC;GACpE,OAAO,QAAQ,KAAK;EACtB,CAAC;CACH;CAEA,MAAM,iBAAiB,WAAc;EACnC,MAAM,MAAM,MAAM,MAAM;EACxB,OACE,qBAAC,QAAD;GAAM,WAAU;GAAhB,UAAA,CACG,OAAO,oBAAC,QAAD;IAAM,WAAU;IAAwB,UAAA,UAAU,GAAG;GAAQ,CAAA,GACrE,oBAAC,QAAD;IAAM,WAAU;IAAY,UAAA,OAAO,MAAM;GAAQ,CAAA,CAC7C;;CAEV;CAEA,OACE,oBAAC,UAAD;EACE,GAAI;EACJ,WAAW,GAAG,UAAU,SAAS;EACjC,UAAU,YAAa,QAAQ,UAAU,KAAK,CAAC,CAAC,cAAc;EAC9D,aACE,qBAAC,QAAD;GAAM,WAAU;GAAhB,UAAA,CACE,oBAAC,WAAD;IAAW,WAAU;IAAmB,eAAA;GAAa,CAAA,GACrD,oBAAC,QAAD;IAAM,WAAU;IAAY,UAAA;GAAkB,CAAA,CAC1C;;EAER,SAAS;EACT,gBAAgB;EAChB,gBAAgB;EAChB,gBAAgB;EACD;EACf,WAAW;EACX,iBAAA;EACA,WAAW,UAAU;GACnB,MAAM,UAAU,QAAQ,MAAM,WAAW,QAAQ,MAAM,MAAM,KAAK;GAClE,IAAI,SAAS,WAAW,OAAO,OAAO;EACxC;EACA,aAAa;EACb,eAAe,QAAQ,eACrB,qBAAAA,UAAA,EAAA,UAAA,CACG,cAAc,MAAM,GACpB,cACC,oBAAC,WAAD;GACE,eAAY;GACZ,QAAO;GACP,WAAU;EACX,CAAA,CAEH,EAAA,CAAA;CAEL,CAAA;AAEL;AAEA,cAAc,cAAc"}
@@ -0,0 +1,2 @@
1
+ export * from './CountrySelect';
2
+ export * from './types';
@@ -0,0 +1,2 @@
1
+ import { CountrySelect } from "./CountrySelect.js";
2
+ export { CountrySelect };
@@ -0,0 +1,9 @@
1
+ export type { Country } from '../../../lib/countries';
2
+ export type CountrySelectAccessors<T> = {
3
+ getCountryValue: (country: T) => string;
4
+ getCountryName: (country: T) => string;
5
+ /** Optional when `getCountryValue` already returns an ISO code. */
6
+ getCountryIsoCode?: (country: T) => string | undefined;
7
+ /** Extra search terms, e.g. aliases. */
8
+ getCountrySearchTerms?: (country: T) => Array<string>;
9
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -2,15 +2,15 @@ import { cn, createSearchMatcher } from "../../../lib/utils.js";
2
2
  import { useListScroll } from "../../../lib/useListScroll.js";
3
3
  import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator } from "../../utils/Command/Command.js";
4
4
  import { PopoverContent, PopoverRoot, PopoverTrigger } from "../../utils/Popover/Popover.js";
5
- import { exampleNational } from "./phone.js";
6
5
  import { buildCountries, splitByPriority } from "../../../lib/countries.js";
6
+ import { exampleNational } from "./phone.js";
7
7
  import { usePhoneField } from "./hooks/usePhoneField.js";
8
8
  import * as React$1 from "react";
9
9
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
10
10
  import { CheckIcon } from "@phosphor-icons/react/dist/ssr/Check";
11
11
  import { CaretDownIcon } from "@phosphor-icons/react/dist/ssr/CaretDown";
12
- import { WarningCircleIcon } from "@phosphor-icons/react/dist/ssr/WarningCircle";
13
12
  import { GlobeIcon } from "@phosphor-icons/react/dist/ssr/Globe";
13
+ import { WarningCircleIcon } from "@phosphor-icons/react/dist/ssr/WarningCircle";
14
14
  //#region src/components/inputs/PhoneInput/PhoneInput.tsx
15
15
  var defaultAccessors = {
16
16
  getCountryValue: (country) => country.isoCode,
@@ -1,5 +1,5 @@
1
- import { describe, detectIntl, formatNational, isPartialCallingCode, parseDigits, pickCountryOption, toIntlCandidate } from "../phone.js";
2
1
  import { resolveIso } from "../../../../lib/countries.js";
2
+ import { describe, detectIntl, formatNational, isPartialCallingCode, parseDigits, pickCountryOption, toIntlCandidate } from "../phone.js";
3
3
  import * as React$1 from "react";
4
4
  //#region src/components/inputs/PhoneInput/hooks/usePhoneField.ts
5
5
  var CARET_END = Number.MAX_SAFE_INTEGER;
@@ -1,5 +1,5 @@
1
- import examples from "libphonenumber-js/examples.mobile.json";
2
1
  import { AsYouType, formatIncompletePhoneNumber, getCountries, getCountryCallingCode, getExampleNumber, isValidPhoneNumber, parseDigits, parsePhoneNumberFromString } from "libphonenumber-js/min";
2
+ import examples from "libphonenumber-js/examples.mobile.json";
3
3
  //#region src/components/inputs/PhoneInput/phone.ts
4
4
  var callingCodeIndex;
5
5
  function indexCallingCodes() {
@@ -1,18 +1,5 @@
1
- import { TooltipContent } from '../../data-display/Tooltip';
1
+ import { SidebarSize } from './context';
2
2
  import * as React from 'react';
3
- export type SidebarSize = 'small' | 'medium' | 'big';
4
- type SidebarContext = {
5
- state: 'expanded' | 'collapsed';
6
- open: boolean;
7
- setOpen: (open: boolean) => void;
8
- openMobile: boolean;
9
- setOpenMobile: (open: boolean) => void;
10
- isMobile: boolean;
11
- toggleSidebar: () => void;
12
- size: SidebarSize;
13
- };
14
- declare const SidebarContext: React.Context<SidebarContext | null>;
15
- declare function useSidebar(): SidebarContext;
16
3
  declare const SidebarProvider: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
17
4
  defaultOpen?: boolean;
18
5
  open?: boolean;
@@ -20,24 +7,20 @@ declare const SidebarProvider: React.ForwardRefExoticComponent<Omit<React.ClassA
20
7
  size?: SidebarSize;
21
8
  }, "ref"> & React.RefAttributes<HTMLDivElement>>;
22
9
  declare const SidebarRoot: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
10
+ /** @deprecated The sidebar is always on the left; this prop is ignored. */
23
11
  side?: "left" | "right";
24
12
  variant?: "default" | "hidden";
25
13
  }, "ref"> & React.RefAttributes<HTMLDivElement>>;
26
- declare const SidebarTrigger: React.ForwardRefExoticComponent<Omit<{
27
- variant?: "primary" | "secondary" | "ghost" | "inverse-ghost" | "text" | "error" | "success";
28
- size?: "sm" | "md" | "lg";
29
- StartIcon?: import('@phosphor-icons/react').Icon;
30
- EndIcon?: import('@phosphor-icons/react').Icon;
31
- loading?: boolean;
32
- iconOnly?: boolean;
33
- children?: React.ReactNode;
34
- iconProps?: Partial<import('@phosphor-icons/react').IconProps>;
35
- } & React.ButtonHTMLAttributes<HTMLButtonElement> & import('class-variance-authority').VariantProps<(props?: ({
36
- variant?: "primary" | "success" | "error" | "secondary" | "text" | "input" | "ghost" | "inverse-ghost" | null | undefined;
37
- size?: "sm" | "md" | "lg" | null | undefined;
38
- } & import('class-variance-authority/types').ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
39
- declare const SidebarRail: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
40
- declare const SidebarInset: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
14
+ declare const SidebarTrigger: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
15
+ icon?: React.ReactNode;
16
+ }, "ref"> & React.RefAttributes<HTMLButtonElement>>;
17
+ declare const SidebarHeaderTrigger: React.ForwardRefExoticComponent<Omit<Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
18
+ icon?: React.ReactNode;
19
+ }, "ref"> & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
20
+ declare const SidebarLogo: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
21
+ asChild?: boolean;
22
+ tag?: React.ReactNode;
23
+ }, "ref"> & React.RefAttributes<HTMLDivElement>>;
41
24
  declare const SidebarInput: React.ForwardRefExoticComponent<Omit<Omit<{
42
25
  htmlType?: "text" | "tel" | "email" | "number" | "password" | "url";
43
26
  startContent?: React.ReactElement;
@@ -75,51 +58,4 @@ declare const SidebarGroupAction: React.ForwardRefExoticComponent<Omit<React.Cla
75
58
  size?: SidebarSize;
76
59
  }, "ref"> & React.RefAttributes<HTMLButtonElement>>;
77
60
  declare const SidebarGroupContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
78
- declare const SidebarMenu: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
79
- declare const SidebarMenuItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
80
- declare const sidebarMenuButtonVariants: (props?: ({
81
- variant?: "element" | "navigation-item" | null | undefined;
82
- size?: "medium" | "small" | "big" | null | undefined;
83
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
84
- declare const SidebarMenuButton: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
85
- asChild?: boolean;
86
- isActive?: boolean;
87
- tooltip?: string | React.ComponentProps<typeof TooltipContent>;
88
- variant?: "navigation-item" | "element";
89
- size?: SidebarSize;
90
- }, "ref"> & React.RefAttributes<HTMLButtonElement>>;
91
- declare const sidebarMenuActionVariants: (props?: ({
92
- size?: "medium" | "small" | "big" | null | undefined;
93
- showOnHover?: boolean | null | undefined;
94
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
95
- declare const SidebarMenuAction: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
96
- asChild?: boolean;
97
- showOnHover?: boolean;
98
- size?: SidebarSize;
99
- }, "ref"> & React.RefAttributes<HTMLButtonElement>>;
100
- declare const sidebarMenuBadgeVariants: (props?: ({
101
- size?: "medium" | "small" | "big" | null | undefined;
102
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
103
- declare const SidebarMenuBadge: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
104
- size?: SidebarSize;
105
- }, "ref"> & React.RefAttributes<HTMLDivElement>>;
106
- declare const SidebarMenuSkeleton: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
107
- showIcon?: boolean;
108
- size?: SidebarSize;
109
- }, "ref"> & React.RefAttributes<HTMLDivElement>>;
110
- declare const sidebarMenuSubVariants: (props?: ({
111
- size?: "medium" | "small" | "big" | null | undefined;
112
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
113
- declare const SidebarMenuSub: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLUListElement> & React.HTMLAttributes<HTMLUListElement> & {
114
- size?: SidebarSize;
115
- }, "ref"> & React.RefAttributes<HTMLUListElement>>;
116
- declare const SidebarMenuSubItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
117
- declare const sidebarMenuSubButtonVariants: (props?: ({
118
- size?: "medium" | "small" | "big" | null | undefined;
119
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
120
- declare const SidebarMenuSubButton: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLAnchorElement> & React.AnchorHTMLAttributes<HTMLAnchorElement> & {
121
- asChild?: boolean;
122
- isActive?: boolean;
123
- size?: SidebarSize;
124
- }, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
125
- export { SidebarRoot, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, sidebarGroupActionVariants, sidebarGroupLabelVariants, sidebarMenuActionVariants, sidebarMenuBadgeVariants, sidebarMenuButtonVariants, sidebarMenuSubButtonVariants, sidebarMenuSubVariants, useSidebar, };
61
+ export { SidebarRoot, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarHeaderTrigger, SidebarInput, SidebarLogo, SidebarProvider, SidebarSeparator, SidebarTrigger, sidebarGroupActionVariants, sidebarGroupLabelVariants, };