@customafk/lunas-ui 0.0.2-n → 0.0.2-o

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.
@@ -4,8 +4,8 @@ import * as class_variance_authority_dist_types from 'class-variance-authority/d
4
4
  import { VariantProps } from 'class-variance-authority';
5
5
 
6
6
  declare const buttonVariants: (props?: ({
7
- variant?: "default" | "outline" | "normal" | "secondary" | "destructive" | "destructive-secondary" | "destructive-outline" | "sort-outline" | null | undefined;
8
- size?: "base" | "small" | "default" | "large" | null | undefined;
7
+ variant?: "default" | "secondary" | "outline" | "destructive" | "destructive-secondary" | "destructive-outline" | "sort-outline" | "normal" | null | undefined;
8
+ size?: "small" | "default" | "base" | "large" | null | undefined;
9
9
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
10
10
 
11
11
  interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
@@ -8,7 +8,7 @@ declare const Command: React.ForwardRefExoticComponent<Omit<{
8
8
  ref?: React.Ref<HTMLDivElement>;
9
9
  } & {
10
10
  asChild?: boolean;
11
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
11
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
12
12
  label?: string;
13
13
  shouldFilter?: boolean;
14
14
  filter?: (value: string, search: string, keywords?: string[]) => number;
@@ -26,7 +26,7 @@ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<
26
26
  ref?: React.Ref<HTMLInputElement>;
27
27
  } & {
28
28
  asChild?: boolean;
29
- }, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
29
+ }, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "value" | "onChange" | "type"> & {
30
30
  value?: string;
31
31
  onValueChange?: (search: string) => void;
32
32
  } & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
@@ -36,7 +36,7 @@ declare const CommandList: React.ForwardRefExoticComponent<Omit<{
36
36
  ref?: React.Ref<HTMLDivElement>;
37
37
  } & {
38
38
  asChild?: boolean;
39
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
39
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
40
40
  label?: string;
41
41
  } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
42
42
  declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
@@ -45,14 +45,14 @@ declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
45
45
  ref?: React.Ref<HTMLDivElement>;
46
46
  } & {
47
47
  asChild?: boolean;
48
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
48
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
49
49
  declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
50
50
  children?: React.ReactNode;
51
51
  } & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
52
52
  ref?: React.Ref<HTMLDivElement>;
53
53
  } & {
54
54
  asChild?: boolean;
55
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "heading"> & {
55
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "heading" | "value"> & {
56
56
  heading?: React.ReactNode;
57
57
  value?: string;
58
58
  forceMount?: boolean;
@@ -61,7 +61,7 @@ declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<R
61
61
  ref?: React.Ref<HTMLDivElement>;
62
62
  } & {
63
63
  asChild?: boolean;
64
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
64
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
65
65
  alwaysRender?: boolean;
66
66
  } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
67
67
  declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
@@ -70,7 +70,7 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
70
70
  ref?: React.Ref<HTMLDivElement>;
71
71
  } & {
72
72
  asChild?: boolean;
73
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "disabled" | "value"> & {
73
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "onSelect" | "disabled"> & {
74
74
  disabled?: boolean;
75
75
  onSelect?: (value: string) => void;
76
76
  value?: string;
@@ -354,6 +354,7 @@ var DialogDescription = React.forwardRef(({ className, ...props }, reference) =>
354
354
  DialogDescription.displayName = DialogPrimitive.Description.displayName;
355
355
 
356
356
  // packages/Atoms/Command/index.tsx
357
+ import { VisuallyHidden } from "@radix-ui/react-visually-hidden";
357
358
  import { Command as CommandPrimitive } from "cmdk";
358
359
  import { Search } from "lucide-react";
359
360
  import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
@@ -370,25 +371,28 @@ var Command = React2.forwardRef(({ className, ...props }, reference) => /* @__PU
370
371
  ));
371
372
  Command.displayName = CommandPrimitive.displayName;
372
373
  var CommandDialog = ({ children, ...props }) => {
373
- return /* @__PURE__ */ jsx2(Dialog, { ...props, children: /* @__PURE__ */ jsx2(DialogContent, { className: "p-0 shadow-lg", children: /* @__PURE__ */ jsx2(
374
- Command,
375
- {
376
- className: cn(
377
- "bg-neutral-50",
378
- "[&_[cmdk-group-heading]]:px-0",
379
- "[&_[cmdk-group-heading]]:font-medium",
380
- "[&_[cmdk-group-heading]]:text-ui-text-800",
381
- "[&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0",
382
- "[&_[cmdk-group]]:px-2",
383
- "[&_[cmdk-input-wrapper]_svg]:size-5",
384
- "[&_[cmdk-input]]:h-12",
385
- "[&_[cmdk-item]]:px-2",
386
- "[&_[cmdk-item]]:py-3",
387
- "[&_[cmdk-item]_svg]:size-5"
388
- ),
389
- children
390
- }
391
- ) }) });
374
+ return /* @__PURE__ */ jsxs2(Dialog, { ...props, children: [
375
+ /* @__PURE__ */ jsx2(DialogContent, { className: "p-0 shadow-lg", children: /* @__PURE__ */ jsx2(
376
+ Command,
377
+ {
378
+ className: cn(
379
+ "bg-neutral-50",
380
+ "[&_[cmdk-group-heading]]:px-0",
381
+ "[&_[cmdk-group-heading]]:font-medium",
382
+ "[&_[cmdk-group-heading]]:text-ui-text-800",
383
+ "[&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0",
384
+ "[&_[cmdk-group]]:px-2",
385
+ "[&_[cmdk-input-wrapper]_svg]:size-5",
386
+ "[&_[cmdk-input]]:h-12",
387
+ "[&_[cmdk-item]]:px-2",
388
+ "[&_[cmdk-item]]:py-3",
389
+ "[&_[cmdk-item]_svg]:size-5"
390
+ ),
391
+ children
392
+ }
393
+ ) }),
394
+ /* @__PURE__ */ jsx2(VisuallyHidden, { children: /* @__PURE__ */ jsx2(DialogTitle, {}) })
395
+ ] });
392
396
  };
393
397
  var CommandInput = React2.forwardRef(({ className, ...props }, reference) => /* @__PURE__ */ jsxs2("div", { className: "flex items-center border-b px-3", children: [
394
398
  /* @__PURE__ */ jsx2(Search, { className: "mr-2 size-4 shrink-0 opacity-50" }),
@@ -0,0 +1,32 @@
1
+ import { FC, ReactNode } from 'react';
2
+
3
+ type TBrand = {
4
+ uuid: string;
5
+ name: string;
6
+ };
7
+
8
+ type TPrice = {
9
+ value: string;
10
+ label: string;
11
+ option: {
12
+ from: number;
13
+ to: number;
14
+ };
15
+ };
16
+
17
+ interface IProps {
18
+ initialLayout: 'GRID' | 'LIST';
19
+ brandData: {
20
+ uuid: string;
21
+ name: string;
22
+ }[];
23
+ onFilterConfirm?: (data?: {
24
+ brand?: TBrand[];
25
+ price?: TPrice;
26
+ sort?: 'price-asc' | 'price-desc' | 'date-asc' | 'date-desc';
27
+ }) => void;
28
+ children?: ReactNode;
29
+ }
30
+ declare const CategoriesPage: FC<IProps>;
31
+
32
+ export { CategoriesPage as default };