@ah-automation.nl/component-lib 0.0.33 → 0.0.35

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.
@@ -0,0 +1,7 @@
1
+ import type * as React from "react";
2
+ import type { DayPicker } from "react-day-picker";
3
+ import type { Button } from "@/components/ui/button";
4
+ export type CalendarProps = React.ComponentProps<typeof DayPicker> & {
5
+ buttonVariant?: React.ComponentProps<typeof Button>["variant"];
6
+ };
7
+ //# sourceMappingURL=calendar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../src/types/calendar.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAErD,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,GAAG;IACnE,aAAa,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC;CAChE,CAAC"}
@@ -1,11 +1,12 @@
1
1
  export type { AppHeaderAppItem, AppHeaderAppItemEvent, AppHeaderIcon, AppHeaderLanguageOption, AppHeaderProfileAction, AppHeaderProfileActionEvent, AppHeaderProps, AppHeaderSession, } from "./app-header";
2
2
  export type { AppShellProps } from "./app-shell";
3
+ export type { CalendarProps } from "./calendar";
3
4
  export type { DataTableColumnFilterPlaceholders, DataTableColumnFilterRenderer, DataTableColumnFilterRenderers, DataTableColumnMeta, DataTableExpandedRowRenderer, DataTableGlobalFilterFn, DataTableProps, DataTableRenderProps, DataTableRowClassNameGetter, DataTableRowClickHandler, DataTableSelectionContentProps, DataTableSlotContent, } from "./data-table";
4
5
  export type { CheckboxProps, InputProps, SpinnerProps, SwitchProps, SwitchSize, TextareaProps, } from "./form-primitives";
5
6
  export type { GenericDrawerProps } from "./generic-drawer";
6
7
  export type { MultiSelectOption, MultiSelectProps } from "./multi-select";
7
- export type { PopoverContentPassThroughProps, PopoverTriggerPassThroughProps, } from "./popover";
8
+ export type { PopoverAnchorProps, PopoverContentPassThroughProps, PopoverContentProps, PopoverProps, PopoverTriggerPassThroughProps, PopoverTriggerProps, } from "./popover";
8
9
  export type { SidebarNavGroup, SidebarNavGroupItem, SidebarNavIcon, SidebarNavItem, SidebarNavProps, } from "./sidebar-nav";
9
- export type { SingleSelectOption, SingleSelectProps } from "./single-select";
10
+ export type { SingleSelectOption, SingleSelectOptionAction, SingleSelectOptionActionContext, SingleSelectProps, SingleSelectTopContentContext, } from "./single-select";
10
11
  export type { UserImageProps } from "./user-image";
11
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,gBAAgB,EAChB,qBAAqB,EACrB,aAAa,EACb,uBAAuB,EACvB,sBAAsB,EACtB,2BAA2B,EAC3B,cAAc,EACd,gBAAgB,GACjB,MAAM,cAAc,CAAC;AACtB,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,YAAY,EACV,iCAAiC,EACjC,6BAA6B,EAC7B,8BAA8B,EAC9B,mBAAmB,EACnB,4BAA4B,EAC5B,uBAAuB,EACvB,cAAc,EACd,oBAAoB,EACpB,2BAA2B,EAC3B,wBAAwB,EACxB,8BAA8B,EAC9B,oBAAoB,GACrB,MAAM,cAAc,CAAC;AACtB,YAAY,EACV,aAAa,EACb,UAAU,EACV,YAAY,EACZ,WAAW,EACX,UAAU,EACV,aAAa,GACd,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC1E,YAAY,EACV,8BAA8B,EAC9B,8BAA8B,GAC/B,MAAM,WAAW,CAAC;AACnB,YAAY,EACV,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,eAAe,GAChB,MAAM,eAAe,CAAC;AACvB,YAAY,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAC7E,YAAY,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,gBAAgB,EAChB,qBAAqB,EACrB,aAAa,EACb,uBAAuB,EACvB,sBAAsB,EACtB,2BAA2B,EAC3B,cAAc,EACd,gBAAgB,GACjB,MAAM,cAAc,CAAC;AACtB,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,YAAY,EACV,iCAAiC,EACjC,6BAA6B,EAC7B,8BAA8B,EAC9B,mBAAmB,EACnB,4BAA4B,EAC5B,uBAAuB,EACvB,cAAc,EACd,oBAAoB,EACpB,2BAA2B,EAC3B,wBAAwB,EACxB,8BAA8B,EAC9B,oBAAoB,GACrB,MAAM,cAAc,CAAC;AACtB,YAAY,EACV,aAAa,EACb,UAAU,EACV,YAAY,EACZ,WAAW,EACX,UAAU,EACV,aAAa,GACd,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC1E,YAAY,EACV,kBAAkB,EAClB,8BAA8B,EAC9B,mBAAmB,EACnB,YAAY,EACZ,8BAA8B,EAC9B,mBAAmB,GACpB,MAAM,WAAW,CAAC;AACnB,YAAY,EACV,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,eAAe,GAChB,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,kBAAkB,EAClB,wBAAwB,EACxB,+BAA+B,EAC/B,iBAAiB,EACjB,6BAA6B,GAC9B,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC"}
@@ -1,5 +1,11 @@
1
+ import type { Popover as PopoverPrimitive } from "radix-ui";
1
2
  import type * as React from "react";
2
- import type { PopoverContent, PopoverTrigger } from "@/components/ui/popover";
3
- export type PopoverTriggerPassThroughProps = Omit<React.ComponentProps<typeof PopoverTrigger>, "asChild" | "children">;
4
- export type PopoverContentPassThroughProps = Omit<React.ComponentProps<typeof PopoverContent>, "children">;
3
+ export type PopoverProps = React.ComponentProps<typeof PopoverPrimitive.Root>;
4
+ export type PopoverTriggerProps = React.ComponentProps<typeof PopoverPrimitive.Trigger>;
5
+ export type PopoverAnchorProps = React.ComponentProps<typeof PopoverPrimitive.Anchor>;
6
+ export type PopoverContentProps = React.ComponentProps<typeof PopoverPrimitive.Content> & {
7
+ portalContainer?: React.ComponentProps<typeof PopoverPrimitive.Portal>["container"];
8
+ };
9
+ export type PopoverTriggerPassThroughProps = Omit<PopoverTriggerProps, "asChild" | "children">;
10
+ export type PopoverContentPassThroughProps = Omit<PopoverContentProps, "children">;
5
11
  //# sourceMappingURL=popover.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../src/types/popover.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9E,MAAM,MAAM,8BAA8B,GAAG,IAAI,CAC/C,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,EAC3C,SAAS,GAAG,UAAU,CACvB,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG,IAAI,CAC/C,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,EAC3C,UAAU,CACX,CAAC"}
1
+ {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../src/types/popover.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5D,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,CAAC;AAC9E,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,cAAc,CACpD,OAAO,gBAAgB,CAAC,OAAO,CAChC,CAAC;AACF,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,cAAc,CACnD,OAAO,gBAAgB,CAAC,MAAM,CAC/B,CAAC;AACF,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,cAAc,CACpD,OAAO,gBAAgB,CAAC,OAAO,CAChC,GAAG;IACF,eAAe,CAAC,EAAE,KAAK,CAAC,cAAc,CACpC,OAAO,gBAAgB,CAAC,MAAM,CAC/B,CAAC,WAAW,CAAC,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG,IAAI,CAC/C,mBAAmB,EACnB,SAAS,GAAG,UAAU,CACvB,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG,IAAI,CAC/C,mBAAmB,EACnB,UAAU,CACX,CAAC"}
@@ -1,9 +1,29 @@
1
+ import type { ComponentType, ReactNode } from "react";
1
2
  import type { PopoverContentPassThroughProps, PopoverTriggerPassThroughProps } from "@/types/popover";
2
3
  export type SingleSelectOption = {
3
4
  label: string;
4
5
  value: string;
5
6
  disabled?: boolean;
6
7
  };
8
+ export type SingleSelectTopContentContext = {
9
+ searchValue: string;
10
+ selectedValue: string;
11
+ selectedOption?: SingleSelectOption;
12
+ close: () => void;
13
+ };
14
+ export type SingleSelectOptionActionContext = {
15
+ selectedValue: string;
16
+ close: () => void;
17
+ };
18
+ export type SingleSelectOptionAction = {
19
+ id: string;
20
+ label: string;
21
+ icon: ComponentType<{
22
+ className?: string;
23
+ }>;
24
+ disabled?: boolean;
25
+ onClick: (option: SingleSelectOption, context: SingleSelectOptionActionContext) => void;
26
+ };
7
27
  export type SingleSelectProps = {
8
28
  options: SingleSelectOption[];
9
29
  defaultOption?: SingleSelectOption;
@@ -23,5 +43,7 @@ export type SingleSelectProps = {
23
43
  virtualizationOverscan?: number;
24
44
  virtualizationItemHeight?: number;
25
45
  showSearch?: boolean;
46
+ topContent?: ReactNode | ((context: SingleSelectTopContentContext) => ReactNode);
47
+ getOptionActions?: (option: SingleSelectOption) => SingleSelectOptionAction[];
26
48
  };
27
49
  //# sourceMappingURL=single-select.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"single-select.d.ts","sourceRoot":"","sources":["../../src/types/single-select.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,8BAA8B,EAC9B,8BAA8B,EAC/B,MAAM,iBAAiB,CAAC;AAEzB,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAC9B,aAAa,CAAC,EAAE,kBAAkB,CAAC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gB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I,CAAC;CACX,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAC9B,aAAa,CAAC,EAAE,kBAAkB,CAAC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IACrC,mBAAmB,CAAC,EAAE,8BAA8B,CAAC;IACrD,mBAAmB,CAAC,EAAE,8BAA8B,CAAC;IACrD,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EACP,SAAS,GACT,CAAC,CAAC,OAAO,EAAE,6BAA6B,KAAK,SAAS,CAAC,CAAC;IAC5D,gBAAgB,CAAC,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,wBAAwB,EAAE,CAAC;CAC/E,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ah-automation.nl/component-lib",
3
- "version": "0.0.33",
3
+ "version": "0.0.35",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -39,9 +39,11 @@
39
39
  "class-variance-authority": "^0.7.1",
40
40
  "clsx": "^2.1.1",
41
41
  "cmdk": "^1.1.1",
42
+ "date-fns": "^4.1.0",
42
43
  "flag-icons": "^7.5.0",
43
44
  "lucide-react": "^0.577.0",
44
45
  "radix-ui": "^1.4.3",
46
+ "react-day-picker": "^10.0.0",
45
47
  "shadcn": "^4.0.7",
46
48
  "tailwind-merge": "^3.5.0",
47
49
  "tailwindcss": "^4.2.1",