laif-ds 0.1.25 → 0.1.26

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.
@@ -1,5 +1,8 @@
1
1
  "use client";
2
- var e = {};
2
+ import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
3
+ import { __require as e } from "../node_modules/classnames/index.js";
4
+ var s = e();
5
+ const o = /* @__PURE__ */ r(s);
3
6
  export {
4
- e as __exports
7
+ o as default
5
8
  };
@@ -1,8 +1,5 @@
1
1
  "use client";
2
- import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
3
- import { __require as e } from "../node_modules/classnames/index.js";
4
- var s = e();
5
- const o = /* @__PURE__ */ r(s);
2
+ var e = {};
6
3
  export {
7
- o as default
4
+ e as __exports
8
5
  };
@@ -0,0 +1,29 @@
1
+ "use client";
2
+ import { jsxs as o, jsx as l } from "react/jsx-runtime";
3
+ import { Select as n, SelectTrigger as s, SelectValue as u, SelectContent as i, SelectItem as A } from "./select.js";
4
+ import { SelectGroup as h, SelectLabel as x, SelectScrollDownButton as B, SelectScrollUpButton as v, SelectSeparator as j } from "./select.js";
5
+ function b({
6
+ options: t,
7
+ placeholder: c,
8
+ children: p,
9
+ label: r,
10
+ className: S,
11
+ ...a
12
+ }) {
13
+ return /* @__PURE__ */ o(n, { ...a, label: r, children: [
14
+ p || /* @__PURE__ */ l(s, { className: S, children: /* @__PURE__ */ l(u, { placeholder: c }) }),
15
+ /* @__PURE__ */ l(i, { children: t.map((e) => /* @__PURE__ */ l(A, { value: String(e.value), disabled: e.disabled, children: e.label }, e.value)) })
16
+ ] });
17
+ }
18
+ export {
19
+ b as AppSelect,
20
+ i as AppSelectContent,
21
+ h as AppSelectGroup,
22
+ A as AppSelectItem,
23
+ x as AppSelectLabel,
24
+ B as AppSelectScrollDownButton,
25
+ v as AppSelectScrollUpButton,
26
+ j as AppSelectSeparator,
27
+ s as AppSelectTrigger,
28
+ u as AppSelectValue
29
+ };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as o, jsxs as M, Fragment as N } from "react/jsx-runtime";
3
3
  import { useContext as R, useRef as a, useState as s, useCallback as k, useMemo as y, useEffect as u } from "react";
4
- import A from "../../../../../_virtual/index6.js";
4
+ import A from "../../../../../_virtual/index5.js";
5
5
  import B from "../../../../../_virtual/debounce.js";
6
6
  import { GanttContext as F } from "../Gantt/GanttContext.js";
7
7
  import { transformData as O } from "../../utils/transformData.js";
package/dist/index.d.ts CHANGED
@@ -123,6 +123,20 @@ declare const alertVariants: (props?: ({
123
123
 
124
124
  declare type Animation_2 = VariantProps<typeof chatBubbleVariants>["animation"];
125
125
 
126
+ export declare function AppSelect({ options, placeholder, children, label, className, ...props }: AppSelectProps): JSX.Element;
127
+
128
+ export declare interface AppSelectOption {
129
+ value: string | number;
130
+ label: string | React_2.ReactNode;
131
+ disabled?: boolean;
132
+ }
133
+
134
+ export declare interface AppSelectProps extends React_2.ComponentProps<typeof Select> {
135
+ options: AppSelectOption[];
136
+ placeholder?: string;
137
+ className?: string;
138
+ }
139
+
126
140
  export declare function AppSidebar({ navigation, navigationFooter, versions, defaultVersion, headerContent, footerContent, showRail, linkComponent: LinkComponent, linkProps, ...props }: AppSidebarProps): JSX.Element;
127
141
 
128
142
  declare interface AppSidebarProps extends React_2.ComponentProps<typeof Sidebar> {
package/dist/index.js CHANGED
@@ -71,12 +71,13 @@ import { DragStepSizes as Oa } from "./components/ui/gantt/enums/DragStepSizes.j
71
71
  import { DataRepeatTypes as qa } from "./components/ui/gantt/enums/DataRepeatTimes.js";
72
72
  import { AppSidebar as Ka } from "./components/ui/app-sidebar.js";
73
73
  import { Confirmer as Ua, confirm as Wa } from "./components/ui/confirmer.js";
74
- import { useAudioRecording as Ya } from "./hooks/use-audio-recording.js";
75
- import { useAutoScroll as _a } from "./hooks/use-auto-scroll.js";
76
- import { useAutosizeTextArea as en } from "./hooks/use-autosize-textarea.js";
77
- import { useCopyToClipboard as on } from "./hooks/use-copy-to-clipboard.js";
78
- import { useDebounce as an } from "./hooks/use-debounce.js";
79
- import { useIsMobile as pn } from "./hooks/use-mobile.js";
74
+ import { AppSelect as Ya } from "./components/ui/app-select.js";
75
+ import { useAudioRecording as _a } from "./hooks/use-audio-recording.js";
76
+ import { useAutoScroll as en } from "./hooks/use-auto-scroll.js";
77
+ import { useAutosizeTextArea as on } from "./hooks/use-autosize-textarea.js";
78
+ import { useCopyToClipboard as an } from "./hooks/use-copy-to-clipboard.js";
79
+ import { useDebounce as pn } from "./hooks/use-debounce.js";
80
+ import { useIsMobile as ln } from "./hooks/use-mobile.js";
80
81
  export {
81
82
  ne as Accordion,
82
83
  ie as AccordionContent,
@@ -94,6 +95,7 @@ export {
94
95
  Te as AlertDialogTitle,
95
96
  De as AlertDialogTrigger,
96
97
  ge as AlertTitle,
98
+ Ya as AppSelect,
97
99
  Ka as AppSidebar,
98
100
  a as AspectRatio,
99
101
  Ae as AsyncSelect,
@@ -321,12 +323,12 @@ export {
321
323
  C as buttonVariants,
322
324
  Wa as confirm,
323
325
  W as toggleVariants,
324
- Ya as useAudioRecording,
325
- _a as useAutoScroll,
326
- en as useAutosizeTextArea,
327
- on as useCopyToClipboard,
328
- an as useDebounce,
326
+ _a as useAudioRecording,
327
+ en as useAutoScroll,
328
+ on as useAutosizeTextArea,
329
+ an as useCopyToClipboard,
330
+ pn as useDebounce,
329
331
  Nr as useFormField,
330
- pn as useIsMobile,
332
+ ln as useIsMobile,
331
333
  wa as useSidebar
332
334
  };
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { __exports as r } from "../../../_virtual/index5.js";
2
+ import { __exports as r } from "../../../_virtual/index6.js";
3
3
  import { __require as c } from "../../inline-style-parser/index.js";
4
4
  var f;
5
5
  function j() {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "laif-ds",
3
3
  "private": false,
4
- "version": "0.1.25",
4
+ "version": "0.1.26",
5
5
  "type": "module",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",