pentatrion-design 1.0.2 → 1.0.3

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 (196) hide show
  1. package/dist/components/accordion/Accordion.js +2 -2
  2. package/dist/components/accordion/AccordionContent.js +1 -1
  3. package/dist/components/accordion/AccordionItem.js +1 -1
  4. package/dist/components/accordion/AccordionTrigger.js +1 -1
  5. package/dist/components/accordion/index.d.ts +3 -3
  6. package/dist/components/accordion/index.js +3 -3
  7. package/dist/components/autocomplete/Autocomplete.d.ts +3 -3
  8. package/dist/components/autocomplete/Autocomplete.js +8 -8
  9. package/dist/components/autocomplete/AutocompleteOption.d.ts +1 -1
  10. package/dist/components/autocomplete/AutocompleteOption.js +2 -2
  11. package/dist/components/autocomplete/LazyAutocomplete.d.ts +2 -2
  12. package/dist/components/autocomplete/LazyAutocomplete.js +3 -3
  13. package/dist/components/autocomplete/SimpleAutocomplete.d.ts +2 -2
  14. package/dist/components/autocomplete/SimpleAutocomplete.js +3 -3
  15. package/dist/components/autocomplete/index.d.ts +6 -6
  16. package/dist/components/autocomplete/index.js +6 -6
  17. package/dist/components/autocomplete/useAutocompleteContext.d.ts +1 -1
  18. package/dist/components/autocomplete/util.d.ts +1 -1
  19. package/dist/components/badge/Badge.d.ts +1 -1
  20. package/dist/components/badge/Badge.js +3 -3
  21. package/dist/components/badge/index.d.ts +1 -1
  22. package/dist/components/badge/index.js +1 -1
  23. package/dist/components/button/Button.d.ts +1 -1
  24. package/dist/components/button/Button.js +3 -3
  25. package/dist/components/button/HrefButton.d.ts +1 -1
  26. package/dist/components/button/HrefButton.js +2 -2
  27. package/dist/components/button/LinkButton.d.ts +1 -1
  28. package/dist/components/button/LinkButton.js +2 -2
  29. package/dist/components/button/index.d.ts +3 -3
  30. package/dist/components/button/index.js +3 -3
  31. package/dist/components/card/index.d.ts +1 -1
  32. package/dist/components/card/index.js +1 -1
  33. package/dist/components/code/index.d.ts +1 -1
  34. package/dist/components/code/index.js +1 -1
  35. package/dist/components/context-menu/ContextMenu.js +2 -2
  36. package/dist/components/context-menu/index.d.ts +2 -2
  37. package/dist/components/context-menu/index.js +2 -2
  38. package/dist/components/dialog/Dialog.d.ts +1 -1
  39. package/dist/components/dialog/index.d.ts +1 -1
  40. package/dist/components/dialog/index.js +1 -1
  41. package/dist/components/draggable/index.d.ts +6 -6
  42. package/dist/components/draggable/index.js +6 -6
  43. package/dist/components/draggable/useDraggableItem.d.ts +1 -1
  44. package/dist/components/draggable/useDraggableItem.js +1 -1
  45. package/dist/components/draggable/useDraggableMonitor.js +2 -2
  46. package/dist/components/draggable/useDraggableMonitorIndex.js +2 -2
  47. package/dist/components/draggable/util.d.ts +1 -1
  48. package/dist/components/draggable/util.js +1 -1
  49. package/dist/components/draggable-advanced/_fixtures.d.ts +1 -1
  50. package/dist/components/draggable-advanced/context.d.ts +1 -1
  51. package/dist/components/draggable-advanced/context.js +1 -1
  52. package/dist/components/draggable-advanced/registry.js +1 -1
  53. package/dist/components/dropdown-menu/DropdownMenu.d.ts +1 -1
  54. package/dist/components/dropdown-menu/DropdownMenu.js +4 -4
  55. package/dist/components/dropdown-menu/DropdownMenuItem.js +2 -2
  56. package/dist/components/dropdown-menu/index.d.ts +5 -5
  57. package/dist/components/dropdown-menu/index.js +4 -4
  58. package/dist/components/dropdown-menu/interface.d.ts +1 -1
  59. package/dist/components/dropdown-menu/useDropdownMenu.d.ts +2 -2
  60. package/dist/components/dropdown-menu/useDropdownMenuContext.d.ts +2 -2
  61. package/dist/components/dropdown-menu-nested/DropdownMenuNested.d.ts +1 -1
  62. package/dist/components/dropdown-menu-nested/DropdownMenuNested.js +1 -1
  63. package/dist/components/dropdown-menu-nested/MenuItem.js +1 -1
  64. package/dist/components/dropdown-menu-nested/MenuItemWithChildren.d.ts +1 -1
  65. package/dist/components/dropdown-menu-nested/MenuItemWithChildren.js +3 -3
  66. package/dist/components/dropdown-menu-nested/index.d.ts +3 -3
  67. package/dist/components/dropdown-menu-nested/index.js +3 -3
  68. package/dist/components/flash/Flash.d.ts +1 -1
  69. package/dist/components/flash/index.d.ts +1 -1
  70. package/dist/components/flash/index.js +1 -1
  71. package/dist/components/form/InputField.js +1 -1
  72. package/dist/components/form/SelectField.d.ts +1 -1
  73. package/dist/components/form/SelectField.js +1 -1
  74. package/dist/components/form/index.d.ts +2 -2
  75. package/dist/components/form/index.js +2 -2
  76. package/dist/components/highlight/index.d.ts +1 -1
  77. package/dist/components/highlight/index.js +1 -1
  78. package/dist/components/input/AudioRange.d.ts +1 -1
  79. package/dist/components/input/Checkbox.d.ts +2 -2
  80. package/dist/components/input/Checkbox.js +1 -1
  81. package/dist/components/input/Color.d.ts +1 -1
  82. package/dist/components/input/Color.js +1 -1
  83. package/dist/components/input/Input.d.ts +1 -1
  84. package/dist/components/input/InputButton.d.ts +1 -1
  85. package/dist/components/input/InputButton.js +1 -1
  86. package/dist/components/input/MappedStars.js +2 -2
  87. package/dist/components/input/Radio.d.ts +2 -2
  88. package/dist/components/input/Radio.js +1 -1
  89. package/dist/components/input/Range.d.ts +1 -1
  90. package/dist/components/input/Stars.js +2 -2
  91. package/dist/components/input/Toggle.d.ts +1 -1
  92. package/dist/components/input/TotpInput.js +1 -1
  93. package/dist/components/input/index.d.ts +11 -11
  94. package/dist/components/input/index.js +11 -11
  95. package/dist/components/loader/Loader.d.ts +1 -1
  96. package/dist/components/loader/index.d.ts +1 -1
  97. package/dist/components/loader/index.js +1 -1
  98. package/dist/components/media-preview/FileIcon.d.ts +1 -1
  99. package/dist/components/media-preview/FileIcon.js +1 -1
  100. package/dist/components/media-preview/MediaPreview.d.ts +1 -1
  101. package/dist/components/media-preview/MediaPreview.js +2 -2
  102. package/dist/components/media-preview/index.d.ts +5 -5
  103. package/dist/components/media-preview/index.js +4 -4
  104. package/dist/components/media-preview/util.d.ts +1 -1
  105. package/dist/components/modal/Components.js +3 -3
  106. package/dist/components/modal/Modal.d.ts +1 -1
  107. package/dist/components/modal/Modal.js +2 -2
  108. package/dist/components/modal/ModalContent.js +2 -2
  109. package/dist/components/modal/ModalTrigger.d.ts +1 -1
  110. package/dist/components/modal/ModalTrigger.js +2 -2
  111. package/dist/components/modal/index.d.ts +7 -7
  112. package/dist/components/modal/index.js +6 -6
  113. package/dist/components/modal/interface.d.ts +1 -1
  114. package/dist/components/modal/useModal.d.ts +2 -2
  115. package/dist/components/modal/useModalContext.d.ts +2 -2
  116. package/dist/components/notification/NotificationsContext.d.ts +1 -1
  117. package/dist/components/notification/NotificationsContext.js +1 -1
  118. package/dist/components/notification/NotificationsProvider.js +2 -2
  119. package/dist/components/notification/index.d.ts +4 -4
  120. package/dist/components/notification/index.js +4 -4
  121. package/dist/components/notification/useContextNotifications.d.ts +1 -1
  122. package/dist/components/notification/useContextNotifications.js +1 -1
  123. package/dist/components/notification/useFetch.d.ts +1 -1
  124. package/dist/components/notification/useFetch.js +2 -2
  125. package/dist/components/popover/Components.js +2 -2
  126. package/dist/components/popover/Popover.d.ts +1 -1
  127. package/dist/components/popover/Popover.js +1 -1
  128. package/dist/components/popover/PopoverContent.js +3 -3
  129. package/dist/components/popover/PopoverTrigger.js +2 -2
  130. package/dist/components/popover/index.d.ts +7 -7
  131. package/dist/components/popover/index.js +6 -6
  132. package/dist/components/popover/interface.d.ts +1 -1
  133. package/dist/components/popover/usePopover.d.ts +2 -2
  134. package/dist/components/popover/usePopoverContext.d.ts +2 -2
  135. package/dist/components/portal/index.d.ts +1 -1
  136. package/dist/components/portal/index.js +1 -1
  137. package/dist/components/resizable/Resizable.js +1 -1
  138. package/dist/components/resizable/ResizableHandle.js +1 -1
  139. package/dist/components/resizable/ResizablePanel.js +1 -1
  140. package/dist/components/resizable/index.d.ts +3 -3
  141. package/dist/components/resizable/index.js +3 -3
  142. package/dist/components/resize-area/index.d.ts +1 -1
  143. package/dist/components/resize-area/index.js +1 -1
  144. package/dist/components/scroll/index.d.ts +1 -1
  145. package/dist/components/scroll/index.js +1 -1
  146. package/dist/components/select/Select.d.ts +3 -3
  147. package/dist/components/select/Select.js +6 -6
  148. package/dist/components/select/SelectOption.d.ts +1 -1
  149. package/dist/components/select/SelectOption.js +1 -1
  150. package/dist/components/select/SelectSelection.d.ts +1 -1
  151. package/dist/components/select/SelectSelection.js +1 -1
  152. package/dist/components/select/index.d.ts +5 -5
  153. package/dist/components/select/index.js +4 -4
  154. package/dist/components/slot/Slot.js +1 -1
  155. package/dist/components/slot/index.d.ts +1 -1
  156. package/dist/components/slot/index.js +1 -1
  157. package/dist/components/snack/Snack.d.ts +1 -1
  158. package/dist/components/snack/Snack.js +4 -4
  159. package/dist/components/snack/index.d.ts +1 -1
  160. package/dist/components/snack/index.js +1 -1
  161. package/dist/components/steps/index.d.ts +2 -2
  162. package/dist/components/steps/index.js +2 -2
  163. package/dist/components/table/index.d.ts +7 -7
  164. package/dist/components/table/index.js +7 -7
  165. package/dist/components/tabs/index.d.ts +1 -1
  166. package/dist/components/tabs/index.js +1 -1
  167. package/dist/components/textarea/Textarea.d.ts +1 -1
  168. package/dist/components/textarea/index.d.ts +1 -1
  169. package/dist/components/textarea/index.js +1 -1
  170. package/dist/components/toast/Toasts.js +2 -2
  171. package/dist/components/toast/index.d.ts +3 -3
  172. package/dist/components/toast/index.js +2 -2
  173. package/dist/components/toast/toastsManager.d.ts +1 -1
  174. package/dist/components/toast/toastsManager.js +1 -1
  175. package/dist/components/tooltip/SimpleTooltip.d.ts +1 -1
  176. package/dist/components/tooltip/SimpleTooltip.js +3 -3
  177. package/dist/components/tooltip/Tooltip.d.ts +1 -1
  178. package/dist/components/tooltip/Tooltip.js +2 -2
  179. package/dist/components/tooltip/TooltipContent.js +3 -3
  180. package/dist/components/tooltip/TooltipTrigger.js +1 -1
  181. package/dist/components/tooltip/index.d.ts +6 -6
  182. package/dist/components/tooltip/index.js +6 -6
  183. package/dist/components/tooltip/interface.d.ts +1 -1
  184. package/dist/components/tooltip/useTooltip.d.ts +2 -2
  185. package/dist/components/tooltip/useTooltipContext.d.ts +2 -2
  186. package/dist/hooks/index.d.ts +12 -12
  187. package/dist/hooks/index.js +12 -12
  188. package/dist/hooks/useEventListener.js +1 -1
  189. package/dist/hooks/useOnClickOutside.js +1 -1
  190. package/dist/hooks/useRipple.js +1 -1
  191. package/dist/lib/error.d.ts +1 -1
  192. package/dist/lib/index.d.ts +5 -5
  193. package/dist/lib/index.js +5 -5
  194. package/dist/lib/tailwindVariants.d.ts +1 -1
  195. package/package.json +2 -1
  196. package/tsconfig.build.json +3 -0
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useMemo, useState } from "react";
3
- import { AccordionContext } from "./useAccordion";
4
- import { useEffectEvent } from "../../hooks";
3
+ import { AccordionContext } from "./useAccordion.js";
4
+ import { useEffectEvent } from "../../hooks/index.js";
5
5
  const noop = () => { };
6
6
  export function Accordion({ value: controlledValue, defaultValue, onChange = noop, children, }) {
7
7
  const isControlled = typeof controlledValue !== "undefined";
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useEffect, useRef } from "react";
3
- import { useAccordion } from "./useAccordion";
3
+ import { useAccordion } from "./useAccordion.js";
4
4
  import clsx from "clsx";
5
5
  export function AccordionContent({ name, children, ...rest }) {
6
6
  const { value } = useAccordion();
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useAccordion } from "./useAccordion";
2
+ import { useAccordion } from "./useAccordion.js";
3
3
  import clsx from "clsx";
4
4
  export function AccordionItem({ name, children, ...rest }) {
5
5
  const { value } = useAccordion();
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useAccordion } from "./useAccordion";
2
+ import { useAccordion } from "./useAccordion.js";
3
3
  import clsx from "clsx";
4
4
  export function AccordionTrigger({ name, children, ...rest }) {
5
5
  const { value, onChange } = useAccordion();
@@ -1,4 +1,4 @@
1
- export { Accordion } from "./Accordion";
2
- export { AccordionTrigger } from "./AccordionTrigger";
3
- export { AccordionContent } from "./AccordionContent";
1
+ export { Accordion } from "./Accordion.js";
2
+ export { AccordionTrigger } from "./AccordionTrigger.js";
3
+ export { AccordionContent } from "./AccordionContent.js";
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,3 @@
1
- export { Accordion } from "./Accordion";
2
- export { AccordionTrigger } from "./AccordionTrigger";
3
- export { AccordionContent } from "./AccordionContent";
1
+ export { Accordion } from "./Accordion.js";
2
+ export { AccordionTrigger } from "./AccordionTrigger.js";
3
+ export { AccordionContent } from "./AccordionContent.js";
@@ -1,8 +1,8 @@
1
1
  import { ReactNode, ComponentProps, RefObject } from "react";
2
- import type { OptionLike, Option } from "../select";
3
- import { AutocompleteOptionProps } from "./AutocompleteOption";
2
+ import type { OptionLike, Option } from "../select/index.js";
3
+ import { AutocompleteOptionProps } from "./AutocompleteOption.js";
4
4
  import { Placement } from "@floating-ui/react";
5
- import { ThemeColor } from "../../types";
5
+ import { ThemeColor } from "../../types.js";
6
6
  export interface AutocompleteProps<O extends OptionLike = Option> extends ComponentProps<"input"> {
7
7
  icon?: boolean | ReactNode;
8
8
  color?: ThemeColor;
@@ -1,16 +1,16 @@
1
1
  import { createElement as _createElement } from "react";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { useCallback, useMemo, useRef, useState, } from "react";
4
- import { AutocompleteOption } from "./AutocompleteOption";
4
+ import { AutocompleteOption } from "./AutocompleteOption.js";
5
5
  import { FloatingFocusManager, FloatingList, FloatingPortal, autoUpdate, flip, offset, size, useDismiss, useFloating, useInteractions, useListNavigation, useRole, } from "@floating-ui/react";
6
- import { AutocompleteContext } from "./useAutocompleteContext";
6
+ import { AutocompleteContext } from "./useAutocompleteContext.js";
7
7
  import clsx from "clsx";
8
- import { useEffectEvent } from "../../hooks";
9
- import { getOptionLabel, getOptionValue } from "./util";
10
- import { Button } from "../button";
11
- import { Dialog } from "../dialog";
12
- import { Loader } from "../loader";
13
- import { inputConfig, sizeVariant } from "../input/Input";
8
+ import { useEffectEvent } from "../../hooks/index.js";
9
+ import { getOptionLabel, getOptionValue } from "./util.js";
10
+ import { Button } from "../button/index.js";
11
+ import { Dialog } from "../dialog/index.js";
12
+ import { Loader } from "../loader/index.js";
13
+ import { inputConfig, sizeVariant } from "../input/Input.js";
14
14
  export function Autocomplete({ className, autoFocus = false, icon = true, color = "yellow", noSearchSuffix, suffix, placement = "bottom", placeholder = "Search...", selection = null, onChangeSelection, autocompleteOptionComponent, loading = false, clearSearchButton = false, searchValue, onChangeSearchValue, options, selectOnFocus = true, readOnly = false, ref, ...rest }) {
15
15
  const [isOpen, setIsOpen] = useState(false);
16
16
  const [activeIndex, setActiveIndex] = useState(null);
@@ -1,4 +1,4 @@
1
- import { OptionLike } from "../select";
1
+ import { OptionLike } from "../select/index.js";
2
2
  export type AutocompleteOptionProps<O extends OptionLike> = O;
3
3
  export declare const AutocompleteOption: import("react").MemoExoticComponent<(<O extends OptionLike>(props: AutocompleteOptionProps<O>) => import("react/jsx-runtime").JSX.Element)>;
4
4
  //# sourceMappingURL=AutocompleteOption.d.ts.map
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { memo, useId } from "react";
3
3
  import { useListItem } from "@floating-ui/react";
4
- import { useAutocomplete } from "./useAutocompleteContext";
4
+ import { useAutocomplete } from "./useAutocompleteContext.js";
5
5
  import clsx from "clsx";
6
- import { getOptionLabel, getOptionValue } from "./util";
6
+ import { getOptionLabel, getOptionValue } from "./util.js";
7
7
  export const AutocompleteOption = memo(function AutocompleteOption(props) {
8
8
  const label = getOptionLabel(props);
9
9
  const id = useId();
@@ -1,5 +1,5 @@
1
- import { AutocompleteProps } from "./Autocomplete";
2
- import { OptionLike, Option } from "../select";
1
+ import { AutocompleteProps } from "./Autocomplete.js";
2
+ import { OptionLike, Option } from "../select/index.js";
3
3
  interface Props<O extends OptionLike = Option> extends Omit<AutocompleteProps<O>, "searchValue" | "onChangeSearchValue" | "options" | "selectOnFocus"> {
4
4
  onChangeSearchValueCallback: (searchValue: string) => Promise<O[]>;
5
5
  debounce?: number;
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useCallback, useEffect, useRef, useState } from "react";
3
- import { Autocomplete } from "./Autocomplete";
4
- import { getOptionLabel } from "./util";
5
- import { useStateDebounce, useEffectEvent, useIsomorphicLayoutEffect } from "../../hooks";
3
+ import { Autocomplete } from "./Autocomplete.js";
4
+ import { getOptionLabel } from "./util.js";
5
+ import { useStateDebounce, useEffectEvent, useIsomorphicLayoutEffect } from "../../hooks/index.js";
6
6
  export function LazyAutocomplete({ onChangeSearchValueCallback, debounce = 5000, selection = null, onChangeSelection, ...rest }) {
7
7
  const onChangeSelectionStable = useEffectEvent(onChangeSelection);
8
8
  const onChangeSearchValueCallbackStable = useEffectEvent(onChangeSearchValueCallback);
@@ -1,5 +1,5 @@
1
- import { AutocompleteProps } from "./Autocomplete";
2
- import { Option, OptionLike } from "../select";
1
+ import { AutocompleteProps } from "./Autocomplete.js";
2
+ import { Option, OptionLike } from "../select/index.js";
3
3
  interface Props<O extends OptionLike = Option> extends Omit<AutocompleteProps<O>, "searchValue" | "onChangeSearchValue" | "loading" | "clearSearchButton" | "selectOnFocus"> {
4
4
  }
5
5
  export declare function SimpleAutocomplete<O extends OptionLike = Option>({ options, selection, onChangeSelection, ...rest }: Props<O>): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useRef, useState } from "react";
3
- import { Autocomplete } from "./Autocomplete";
4
- import { useEffectEvent, useIsomorphicLayoutEffect } from "../../hooks";
5
- import { getOptionLabel } from "./util";
3
+ import { Autocomplete } from "./Autocomplete.js";
4
+ import { useEffectEvent, useIsomorphicLayoutEffect } from "../../hooks/index.js";
5
+ import { getOptionLabel } from "./util.js";
6
6
  export function SimpleAutocomplete({ options, selection = null, onChangeSelection, ...rest }) {
7
7
  const onChangeSelectionStable = useEffectEvent(onChangeSelection);
8
8
  const [searchValue, setSearchValue] = useState(selection ? getOptionLabel(selection) : "");
@@ -1,7 +1,7 @@
1
- export { Autocomplete, type AutocompleteProps } from "./Autocomplete";
2
- export { SimpleAutocomplete } from "./SimpleAutocomplete";
3
- export { AutocompleteOption } from "./AutocompleteOption";
4
- export { LazyAutocomplete } from "./LazyAutocomplete";
5
- export { useAutocomplete } from "./useAutocompleteContext";
6
- export { getOptionValue, getOptionLabel } from "./util";
1
+ export { Autocomplete, type AutocompleteProps } from "./Autocomplete.js";
2
+ export { SimpleAutocomplete } from "./SimpleAutocomplete.js";
3
+ export { AutocompleteOption } from "./AutocompleteOption.js";
4
+ export { LazyAutocomplete } from "./LazyAutocomplete.js";
5
+ export { useAutocomplete } from "./useAutocompleteContext.js";
6
+ export { getOptionValue, getOptionLabel } from "./util.js";
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -1,6 +1,6 @@
1
- export { Autocomplete } from "./Autocomplete";
2
- export { SimpleAutocomplete } from "./SimpleAutocomplete";
3
- export { AutocompleteOption } from "./AutocompleteOption";
4
- export { LazyAutocomplete } from "./LazyAutocomplete";
5
- export { useAutocomplete } from "./useAutocompleteContext";
6
- export { getOptionValue, getOptionLabel } from "./util";
1
+ export { Autocomplete } from "./Autocomplete.js";
2
+ export { SimpleAutocomplete } from "./SimpleAutocomplete.js";
3
+ export { AutocompleteOption } from "./AutocompleteOption.js";
4
+ export { LazyAutocomplete } from "./LazyAutocomplete.js";
5
+ export { useAutocomplete } from "./useAutocompleteContext.js";
6
+ export { getOptionValue, getOptionLabel } from "./util.js";
@@ -1,5 +1,5 @@
1
1
  import { useInteractions } from "@floating-ui/react";
2
- import { OptionLike } from "../select";
2
+ import { OptionLike } from "../select/index.js";
3
3
  interface AutocompleteContext {
4
4
  activeIndex: number | null;
5
5
  selection: OptionLike | null;
@@ -1,4 +1,4 @@
1
- import { OptionLike } from "../select";
1
+ import { OptionLike } from "../select/index.js";
2
2
  export declare function getOptionLabel(option: OptionLike): string;
3
3
  export declare function getOptionValue(option: OptionLike): string | number;
4
4
  //# sourceMappingURL=util.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from "react";
2
- import { ThemeColor } from "../../types";
2
+ import { ThemeColor } from "../../types.js";
3
3
  interface Props {
4
4
  children: ReactNode;
5
5
  className?: string;
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import clsx from "clsx";
3
- import { Tooltip } from "../tooltip/Tooltip";
4
- import { TooltipContent } from "../tooltip/TooltipContent";
5
- import { TooltipTrigger } from "../tooltip/TooltipTrigger";
3
+ import { Tooltip } from "../tooltip/Tooltip.js";
4
+ import { TooltipContent } from "../tooltip/TooltipContent.js";
5
+ import { TooltipTrigger } from "../tooltip/TooltipTrigger.js";
6
6
  export function Badge({ children, className, onRemove, onClick, tooltip, url, color = "yellow", }) {
7
7
  const clickable = onClick !== undefined || url !== undefined;
8
8
  const badge = (_jsxs("span", { "data-color": color, className: clsx("bg-custom-2/50 text-gray-text relative box-border inline-flex h-(--h-button) items-center truncate leading-5 no-underline [--h-button:1.5rem]", clickable && "cursor-pointer active:translate-y-[1px]", "text-body-xs w-fit rounded-full", className), children: [onClick ? (_jsx("button", { className: "cursor-pointer px-2", onClick: onClick, children: children })) : (_jsx("span", { className: "px-2", children: children })), onRemove && (_jsx("button", { className: "remove cursor-pointer rounded-r-full pr-1 pl-0.5 active:translate-y-[1px]", onClick: onRemove, children: _jsx("i", { className: "fe-cancel" }) }))] }));
@@ -1,2 +1,2 @@
1
- export { Badge } from "./Badge";
1
+ export { Badge } from "./Badge.js";
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- export { Badge } from "./Badge";
1
+ export { Badge } from "./Badge.js";
@@ -1,5 +1,5 @@
1
1
  import { ComponentProps, RefObject } from "react";
2
- import { ThemeColor } from "../../types";
2
+ import { ThemeColor } from "../../types.js";
3
3
  export interface ButtonProps extends Omit<ComponentProps<"button">, "color"> {
4
4
  withRipple?: boolean;
5
5
  variant?: "contained" | "light" | "outlined" | "text" | "ghost";
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useImperativeHandle, useRef } from "react";
3
3
  import clsx from "clsx";
4
- import { Loader } from "../loader";
5
- import { useRipple } from "../../hooks";
6
- import { Slot } from "../slot";
4
+ import { Loader } from "../loader/index.js";
5
+ import { useRipple } from "../../hooks/index.js";
6
+ import { Slot } from "../slot/index.js";
7
7
  import { cva } from "class-variance-authority";
8
8
  function loaderColor(color) {
9
9
  switch (color) {
@@ -1,5 +1,5 @@
1
1
  import { ComponentProps, RefObject } from "react";
2
- import { ButtonProps } from "./Button";
2
+ import { ButtonProps } from "./Button.js";
3
3
  export type HrefButtonProps = ComponentProps<"a"> & Pick<ButtonProps, "withRipple" | "variant" | "size" | "color" | "selected" | "icon" | "disabled" | "width"> & {
4
4
  ref?: RefObject<HTMLAnchorElement>;
5
5
  };
@@ -1,8 +1,8 @@
1
1
  import { jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useImperativeHandle, useRef } from "react";
3
3
  import clsx from "clsx";
4
- import { useRipple } from "../../hooks/useRipple";
5
- import { buttonVariants } from "./Button";
4
+ import { useRipple } from "../../hooks/useRipple.js";
5
+ import { buttonVariants } from "./Button.js";
6
6
  export function HrefButton({ withRipple = true, variant = "contained", color = "yellow", size = "medium", width = "fit", className, disabled, children, selected = false, icon = false, href, ref, ...props }) {
7
7
  const anchorRef = useRef(null);
8
8
  useImperativeHandle(ref, () => anchorRef.current);
@@ -1,5 +1,5 @@
1
1
  import { ComponentProps, RefObject } from "react";
2
- import { ButtonProps } from "./Button";
2
+ import { ButtonProps } from "./Button.js";
3
3
  export type HrefButtonProps = ComponentProps<"a"> & Pick<ButtonProps, "withRipple" | "variant" | "size" | "color" | "selected" | "icon" | "disabled" | "width"> & {
4
4
  ref?: RefObject<HTMLAnchorElement>;
5
5
  };
@@ -1,8 +1,8 @@
1
1
  import { jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useImperativeHandle, useRef } from "react";
3
3
  import clsx from "clsx";
4
- import { useRipple } from "../../hooks/useRipple";
5
- import { buttonVariants } from "./Button";
4
+ import { useRipple } from "../../hooks/useRipple.js";
5
+ import { buttonVariants } from "./Button.js";
6
6
  export function HrefButton({ withRipple = true, variant = "contained", color = "yellow", size = "medium", width = "fit", className, disabled, children, selected = false, icon = false, href, ref, ...props }) {
7
7
  const anchorRef = useRef(null);
8
8
  useImperativeHandle(ref, () => anchorRef.current);
@@ -1,4 +1,4 @@
1
- export { Button, type ButtonProps, buttonVariants } from "./Button";
2
- export { ButtonGroup, buttonGroupVariants } from "./ButtonGroup";
3
- export { HrefButton } from "./HrefButton";
1
+ export { Button, type ButtonProps, buttonVariants } from "./Button.js";
2
+ export { ButtonGroup, buttonGroupVariants } from "./ButtonGroup.js";
3
+ export { HrefButton } from "./HrefButton.js";
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,3 @@
1
- export { Button, buttonVariants } from "./Button";
2
- export { ButtonGroup, buttonGroupVariants } from "./ButtonGroup";
3
- export { HrefButton } from "./HrefButton";
1
+ export { Button, buttonVariants } from "./Button.js";
2
+ export { ButtonGroup, buttonGroupVariants } from "./ButtonGroup.js";
3
+ export { HrefButton } from "./HrefButton.js";
@@ -1,2 +1,2 @@
1
- export { cardConfig } from "./config";
1
+ export { cardConfig } from "./config.js";
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- export { cardConfig } from "./config";
1
+ export { cardConfig } from "./config.js";
@@ -1,2 +1,2 @@
1
- export { Code } from "./Code";
1
+ export { Code } from "./Code.js";
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- export { Code } from "./Code";
1
+ export { Code } from "./Code.js";
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Children, cloneElement, isValidElement, useEffect, useRef, useState, } from "react";
3
3
  import { FloatingFocusManager, FloatingPortal, autoUpdate, flip, offset, shift, size, useDismiss, useFloating, useInteractions, useListNavigation, useRole, useTypeahead, } from "@floating-ui/react";
4
- import { Dialog } from "../dialog/Dialog";
5
- import { useEffectEvent, useRefDebounce } from "../../hooks";
4
+ import { Dialog } from "../dialog/Dialog.js";
5
+ import { useEffectEvent, useRefDebounce } from "../../hooks/index.js";
6
6
  export function ContextMenu({ targetRef, children, style, eventName = "contextmenu" }) {
7
7
  const [activeIndex, setActiveIndex] = useState(null);
8
8
  const [isOpen, setIsOpen] = useState(false);
@@ -1,3 +1,3 @@
1
- export { ContextMenu } from "./ContextMenu";
2
- export { ContextMenuItem, type ContextMenuItemMouseEvent } from "./ContextMenuItem";
1
+ export { ContextMenu } from "./ContextMenu.js";
2
+ export { ContextMenuItem, type ContextMenuItemMouseEvent } from "./ContextMenuItem.js";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,2 @@
1
- export { ContextMenu } from "./ContextMenu";
2
- export { ContextMenuItem } from "./ContextMenuItem";
1
+ export { ContextMenu } from "./ContextMenu.js";
2
+ export { ContextMenuItem } from "./ContextMenuItem.js";
@@ -1,6 +1,6 @@
1
1
  import { Placement } from "@floating-ui/react";
2
2
  import { ComponentProps, ReactNode } from "react";
3
- import type { ThemeColor } from "../../types";
3
+ import type { ThemeColor } from "../../types.js";
4
4
  interface Props extends ComponentProps<"div"> {
5
5
  color?: ThemeColor;
6
6
  placement?: Placement;
@@ -1,2 +1,2 @@
1
- export { Dialog, dialogVariants } from "./Dialog";
1
+ export { Dialog, dialogVariants } from "./Dialog.js";
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- export { Dialog, dialogVariants } from "./Dialog";
1
+ export { Dialog, dialogVariants } from "./Dialog.js";
@@ -1,7 +1,7 @@
1
- export { DropIndicator } from "./DropIndicator";
2
- export { useDraggableItem } from "./useDraggableItem";
3
- export { useDraggableMonitor } from "./useDraggableMonitor";
4
- export { useDraggableMonitorIndex } from "./useDraggableMonitorIndex";
5
- export { dragStateStyles, isItemData, getItemData, triggerPostMoveFlash } from "./util";
6
- export { draggableItemDataKey, type DraggableState, type DraggableItemData } from "./types";
1
+ export { DropIndicator } from "./DropIndicator.js";
2
+ export { useDraggableItem } from "./useDraggableItem.js";
3
+ export { useDraggableMonitor } from "./useDraggableMonitor.js";
4
+ export { useDraggableMonitorIndex } from "./useDraggableMonitorIndex.js";
5
+ export { dragStateStyles, isItemData, getItemData, triggerPostMoveFlash } from "./util.js";
6
+ export { draggableItemDataKey, type DraggableState, type DraggableItemData } from "./types.js";
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -1,6 +1,6 @@
1
- export { DropIndicator } from "./DropIndicator";
2
- export { useDraggableItem } from "./useDraggableItem";
3
- export { useDraggableMonitor } from "./useDraggableMonitor";
4
- export { useDraggableMonitorIndex } from "./useDraggableMonitorIndex";
5
- export { dragStateStyles, isItemData, getItemData, triggerPostMoveFlash } from "./util";
6
- export { draggableItemDataKey } from "./types";
1
+ export { DropIndicator } from "./DropIndicator.js";
2
+ export { useDraggableItem } from "./useDraggableItem.js";
3
+ export { useDraggableMonitor } from "./useDraggableMonitor.js";
4
+ export { useDraggableMonitorIndex } from "./useDraggableMonitorIndex.js";
5
+ export { dragStateStyles, isItemData, getItemData, triggerPostMoveFlash } from "./util.js";
6
+ export { draggableItemDataKey } from "./types.js";
@@ -1,4 +1,4 @@
1
- import { DraggableState } from "./types";
1
+ import { DraggableState } from "./types.js";
2
2
  type UseDraggableItemOptions = {
3
3
  id: string | number;
4
4
  customPreview?: boolean;
@@ -4,7 +4,7 @@ import { setCustomNativeDragPreview } from "@atlaskit/pragmatic-drag-and-drop/el
4
4
  import { pointerOutsideOfPreview } from "@atlaskit/pragmatic-drag-and-drop/element/pointer-outside-of-preview";
5
5
  import { combine } from "@atlaskit/pragmatic-drag-and-drop/combine";
6
6
  import { useEffect, useRef, useState } from "react";
7
- import { getItemData, isItemData } from "./util";
7
+ import { getItemData, isItemData } from "./util.js";
8
8
  const idle = { type: "idle" };
9
9
  export const useDraggableItem = ({ id, customPreview = false }) => {
10
10
  const ref = useRef(null);
@@ -3,8 +3,8 @@ import { monitorForElements } from "@atlaskit/pragmatic-drag-and-drop/element/ad
3
3
  import { extractClosestEdge } from "@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge";
4
4
  import { reorderWithEdge } from "@atlaskit/pragmatic-drag-and-drop-hitbox/util/reorder-with-edge";
5
5
  import { flushSync } from "react-dom";
6
- import { isItemData, triggerPostMoveFlash } from "./util";
7
- import { useEffectEvent } from "../../hooks";
6
+ import { isItemData, triggerPostMoveFlash } from "./util.js";
7
+ import { useEffectEvent } from "../../hooks/index.js";
8
8
  function defaultGetItemIndexById(list, id) {
9
9
  return list.findIndex((item) => item.id === id);
10
10
  }
@@ -3,8 +3,8 @@ import { monitorForElements } from "@atlaskit/pragmatic-drag-and-drop/element/ad
3
3
  import { extractClosestEdge } from "@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge";
4
4
  import { getReorderDestinationIndex } from "@atlaskit/pragmatic-drag-and-drop-hitbox/util/get-reorder-destination-index";
5
5
  import { flushSync } from "react-dom";
6
- import { isItemData, triggerPostMoveFlash } from "./util";
7
- import { useEffectEvent } from "../../hooks";
6
+ import { isItemData, triggerPostMoveFlash } from "./util.js";
7
+ import { useEffectEvent } from "../../hooks/index.js";
8
8
  function defaultGetItemIndexById(list, id) {
9
9
  return list.findIndex((item) => item.id === id);
10
10
  }
@@ -1,4 +1,4 @@
1
- import { DraggableState, DraggableItemData } from "./types";
1
+ import { DraggableState, DraggableItemData } from "./types.js";
2
2
  export declare function getItemData(id: string | number): DraggableItemData;
3
3
  export declare function isItemData(data: Record<string | symbol, unknown>): data is DraggableItemData;
4
4
  export declare const dragStateStyles: {
@@ -1,4 +1,4 @@
1
- import { draggableItemDataKey } from "./types";
1
+ import { draggableItemDataKey } from "./types.js";
2
2
  export function getItemData(id) {
3
3
  return {
4
4
  [draggableItemDataKey]: true,
@@ -1,4 +1,4 @@
1
- import { ColumnMap, Person } from "./types";
1
+ import { ColumnMap, Person } from "./types.js";
2
2
  export declare function getPerson(): Person;
3
3
  export declare function getPersonFromPosition({ position }: {
4
4
  position: number;
@@ -1,4 +1,4 @@
1
- import { ColumnType } from "./types";
1
+ import { ColumnType } from "./types.js";
2
2
  import type { CleanupFn } from "@atlaskit/pragmatic-drag-and-drop/types";
3
3
  export type BoardContextValue = {
4
4
  getColumns: () => ColumnType[];
@@ -1,5 +1,5 @@
1
1
  import { createContext, useContext } from "react";
2
- import { invariant } from "../../lib";
2
+ import { invariant } from "../../lib/index.js";
3
3
  export const BoardContext = createContext(null);
4
4
  export function useBoardContext() {
5
5
  const value = useContext(BoardContext);
@@ -1,4 +1,4 @@
1
- import { invariant } from "../../lib";
1
+ import { invariant } from "../../lib/index.js";
2
2
  export function createRegistry() {
3
3
  const cards = new Map();
4
4
  const columns = new Map();
@@ -1,6 +1,6 @@
1
1
  import { ReactNode, RefObject } from "react";
2
2
  import { ComponentProps } from "react";
3
- import { UseDropdownMenuOptions } from "./interface";
3
+ import { UseDropdownMenuOptions } from "./interface.js";
4
4
  type DropdownMenuProps = ComponentProps<"div"> & UseDropdownMenuOptions & {
5
5
  trigger: ReactNode;
6
6
  ref?: RefObject<HTMLDivElement>;
@@ -1,10 +1,10 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { DropdownMenuContext } from "./useDropdownMenuContext";
3
- import { useDropdownMenu } from "./useDropdownMenu";
2
+ import { DropdownMenuContext } from "./useDropdownMenuContext.js";
3
+ import { useDropdownMenu } from "./useDropdownMenu.js";
4
4
  import { FloatingFocusManager, FloatingList, FloatingPortal, useMergeRefs, } from "@floating-ui/react";
5
5
  import clsx from "clsx";
6
- import { Dialog } from "../dialog";
7
- import { Slot } from "../slot";
6
+ import { Dialog } from "../dialog/index.js";
7
+ import { Slot } from "../slot/index.js";
8
8
  export const DropdownMenu = ({
9
9
  // options
10
10
  trigger, initialOpen, placement, open, onOpen, color, modal, presentation,
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useListItem } from "@floating-ui/react";
3
3
  import clsx from "clsx";
4
- import { useDropdownMenuContext } from "./useDropdownMenuContext";
5
- import { Slot } from "../slot";
4
+ import { useDropdownMenuContext } from "./useDropdownMenuContext.js";
5
+ import { Slot } from "../slot/index.js";
6
6
  export function DropdownMenuItem({ children, className, onClick, type, asChild = false, ...rest }) {
7
7
  const { activeIndex, getItemProps, handleSelect, presentation } = useDropdownMenuContext();
8
8
  const { ref, index } = useListItem({ label: children?.toString() });
@@ -1,6 +1,6 @@
1
- export { DropdownMenu } from "./DropdownMenu";
2
- export { useDropdownMenu } from "./useDropdownMenu";
3
- export { useDropdownMenuContext, DropdownMenuContext } from "./useDropdownMenuContext";
4
- export { DropdownMenuItem } from "./DropdownMenuItem";
5
- export type * from "./interface";
1
+ export { DropdownMenu } from "./DropdownMenu.js";
2
+ export { useDropdownMenu } from "./useDropdownMenu.js";
3
+ export { useDropdownMenuContext, DropdownMenuContext } from "./useDropdownMenuContext.js";
4
+ export { DropdownMenuItem } from "./DropdownMenuItem.js";
5
+ export type * from "./interface.js";
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- export { DropdownMenu } from "./DropdownMenu";
2
- export { useDropdownMenu } from "./useDropdownMenu";
3
- export { useDropdownMenuContext, DropdownMenuContext } from "./useDropdownMenuContext";
4
- export { DropdownMenuItem } from "./DropdownMenuItem";
1
+ export { DropdownMenu } from "./DropdownMenu.js";
2
+ export { useDropdownMenu } from "./useDropdownMenu.js";
3
+ export { useDropdownMenuContext, DropdownMenuContext } from "./useDropdownMenuContext.js";
4
+ export { DropdownMenuItem } from "./DropdownMenuItem.js";
@@ -1,5 +1,5 @@
1
1
  import { Placement } from "@floating-ui/react";
2
- import { ThemeColor } from "../../types";
2
+ import { ThemeColor } from "../../types.js";
3
3
  export interface UseDropdownMenuOptions {
4
4
  initialOpen?: boolean;
5
5
  placement?: Placement;
@@ -1,8 +1,8 @@
1
- import type { UseDropdownMenuOptions } from "./interface";
1
+ import type { UseDropdownMenuOptions } from "./interface.js";
2
2
  export declare function useDropdownMenu({ initialOpen, placement, open: controlledOpen, onOpen: setControlledOpen, color, modal, presentation, }: UseDropdownMenuOptions): {
3
3
  elementsRef: import("react").RefObject<(HTMLElement | null)[]>;
4
4
  labelsRef: import("react").RefObject<(string | null)[]>;
5
- color: import("../../types").ThemeColor | undefined;
5
+ color: import("../../types.js").ThemeColor | undefined;
6
6
  modal: boolean;
7
7
  activeIndex: number | null;
8
8
  handleSelect: () => void;
@@ -1,10 +1,10 @@
1
- import { useDropdownMenu } from "./useDropdownMenu";
1
+ import { useDropdownMenu } from "./useDropdownMenu.js";
2
2
  type ContextType = ReturnType<typeof useDropdownMenu> | null;
3
3
  export declare const DropdownMenuContext: import("react").Context<ContextType>;
4
4
  export declare function useDropdownMenuContext(): {
5
5
  elementsRef: import("react").RefObject<(HTMLElement | null)[]>;
6
6
  labelsRef: import("react").RefObject<(string | null)[]>;
7
- color: import("../../types").ThemeColor | undefined;
7
+ color: import("../../types.js").ThemeColor | undefined;
8
8
  modal: boolean;
9
9
  activeIndex: number | null;
10
10
  handleSelect: () => void;