@journ/nude 0.1.1 → 0.1.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 (145) hide show
  1. package/dist/accordion-parts.d.ts +6 -5
  2. package/dist/accordion.d.ts +4 -4
  3. package/dist/alert-dialog-parts.d.ts +9 -8
  4. package/dist/alert-dialog.d.ts +10 -9
  5. package/dist/alert.d.ts +13 -6
  6. package/dist/animated-size.d.ts +3 -3
  7. package/dist/animated-size.js +1 -1
  8. package/dist/avatar-parts.d.ts +5 -4
  9. package/dist/avatar.d.ts +3 -3
  10. package/dist/badge.d.ts +2 -1
  11. package/dist/breadcrumbs.d.ts +13 -6
  12. package/dist/bulk-bar.d.ts +8 -3
  13. package/dist/button.d.ts +4 -4
  14. package/dist/calendar-parts.d.ts +23 -26
  15. package/dist/calendar-parts.js +5 -3
  16. package/dist/card.d.ts +15 -7
  17. package/dist/carousel-parts.d.ts +20 -11
  18. package/dist/carousel-parts.js +3 -2
  19. package/dist/checkbox-parts.d.ts +3 -2
  20. package/dist/checkbox.d.ts +3 -2
  21. package/dist/chip.d.ts +9 -7
  22. package/dist/collapsible-parts.d.ts +4 -3
  23. package/dist/collapsible.d.ts +4 -3
  24. package/dist/combobox-parts.d.ts +19 -63
  25. package/dist/combobox-parts.js +8 -2
  26. package/dist/combobox.d.ts +13 -76
  27. package/dist/command-palette-parts.d.ts +3 -3
  28. package/dist/command-palette-parts.js +1 -1
  29. package/dist/command-palette.d.ts +8 -54
  30. package/dist/composer.d.ts +5 -2
  31. package/dist/context-menu-parts.d.ts +8 -4
  32. package/dist/context-menu-parts.js +5 -1
  33. package/dist/context-menu.d.ts +8 -7
  34. package/dist/currency-input-parts.d.ts +4 -3
  35. package/dist/currency-input-parts.js +5 -2
  36. package/dist/data-table-parts.d.ts +18 -25
  37. package/dist/data-table-parts.js +1 -2
  38. package/dist/date-input-parts.d.ts +4 -3
  39. package/dist/date-input-parts.js +3 -2
  40. package/dist/date-picker-parts.d.ts +11 -10
  41. package/dist/date-picker-parts.js +6 -1
  42. package/dist/date-picker.d.ts +7 -21
  43. package/dist/date-range-picker-parts.d.ts +11 -10
  44. package/dist/date-range-picker-parts.js +6 -1
  45. package/dist/date-range-picker.d.ts +7 -21
  46. package/dist/description-list.d.ts +7 -3
  47. package/dist/dialog-parts.d.ts +8 -7
  48. package/dist/dialog.d.ts +10 -9
  49. package/dist/divider.d.ts +2 -1
  50. package/dist/drawer-parts.d.ts +9 -20
  51. package/dist/drawer.d.ts +10 -22
  52. package/dist/dropdown-menu-parts.d.ts +8 -4
  53. package/dist/dropdown-menu-parts.js +5 -1
  54. package/dist/dropdown-menu.d.ts +8 -7
  55. package/dist/empty-state.d.ts +11 -5
  56. package/dist/field-parts.d.ts +8 -7
  57. package/dist/field-parts.js +1 -1
  58. package/dist/file-dropzone-parts.d.ts +8 -7
  59. package/dist/file-dropzone.d.ts +4 -4
  60. package/dist/heading.d.ts +3 -3
  61. package/dist/hover-card-parts.d.ts +4 -4
  62. package/dist/hover-card.d.ts +3 -3
  63. package/dist/icon-button.d.ts +3 -2
  64. package/dist/icon.d.ts +3 -3
  65. package/dist/index.d.ts +2 -1
  66. package/dist/index.js +2 -1
  67. package/dist/input.d.ts +2 -1
  68. package/dist/lib/commit-on.d.ts +6 -5
  69. package/dist/lib/menu-parts.d.ts +9 -7
  70. package/dist/lib/modal-content.d.ts +5 -4
  71. package/dist/lib/modal-parts.d.ts +3 -2
  72. package/dist/lib/part.d.ts +3 -2
  73. package/dist/lib/picker.d.ts +18 -15
  74. package/dist/lib/picker.js +2 -1
  75. package/dist/link.d.ts +3 -3
  76. package/dist/list-row.d.ts +22 -0
  77. package/dist/list-row.js +14 -0
  78. package/dist/markdown.d.ts +2 -2
  79. package/dist/message.d.ts +9 -6
  80. package/dist/month-picker-parts.d.ts +2 -2
  81. package/dist/month-picker-parts.js +2 -2
  82. package/dist/month-stepper-parts.d.ts +7 -6
  83. package/dist/month-stepper-parts.js +3 -2
  84. package/dist/multiple-selector-parts.d.ts +23 -11
  85. package/dist/multiple-selector-parts.js +8 -3
  86. package/dist/multiple-selector.d.ts +11 -64
  87. package/dist/nav-bar.d.ts +5 -2
  88. package/dist/navigation-menu-parts.d.ts +8 -7
  89. package/dist/navigation-menu.d.ts +6 -6
  90. package/dist/otp-input-parts.d.ts +4 -3
  91. package/dist/otp-input.d.ts +4 -3
  92. package/dist/page-header.d.ts +7 -3
  93. package/dist/page.d.ts +7 -3
  94. package/dist/pagination.d.ts +12 -7
  95. package/dist/pill-select.d.ts +2 -1
  96. package/dist/popover-parts.d.ts +5 -5
  97. package/dist/popover.d.ts +4 -4
  98. package/dist/portal.d.ts +1 -1
  99. package/dist/progress-parts.d.ts +5 -4
  100. package/dist/progress-parts.js +1 -1
  101. package/dist/quantity-input-parts.d.ts +7 -6
  102. package/dist/quantity-input-parts.js +5 -2
  103. package/dist/radio-parts.d.ts +4 -3
  104. package/dist/radio.d.ts +2 -2
  105. package/dist/scroll-area-parts.d.ts +7 -6
  106. package/dist/scroll-area.d.ts +4 -4
  107. package/dist/select-parts.d.ts +10 -9
  108. package/dist/select.d.ts +6 -6
  109. package/dist/sheet-parts.d.ts +5 -5
  110. package/dist/sheet.d.ts +9 -7
  111. package/dist/sidebar.d.ts +19 -9
  112. package/dist/skeleton.d.ts +2 -1
  113. package/dist/slider-parts.d.ts +5 -4
  114. package/dist/slider.d.ts +5 -4
  115. package/dist/spinner.d.ts +2 -2
  116. package/dist/stack-parts.d.ts +8 -7
  117. package/dist/stack-parts.js +2 -1
  118. package/dist/stat.d.ts +9 -4
  119. package/dist/step-button.d.ts +4 -3
  120. package/dist/stepper-parts.d.ts +15 -10
  121. package/dist/stepper-parts.js +3 -2
  122. package/dist/stepper.d.ts +3 -3
  123. package/dist/styled.d.ts +5 -0
  124. package/dist/styled.js +0 -0
  125. package/dist/switch-parts.d.ts +3 -2
  126. package/dist/switch.d.ts +3 -2
  127. package/dist/table.d.ts +15 -7
  128. package/dist/tabs-parts.d.ts +5 -4
  129. package/dist/tabs.d.ts +5 -4
  130. package/dist/tag-input-parts.d.ts +18 -8
  131. package/dist/tag-input-parts.js +4 -2
  132. package/dist/text-morph.d.ts +3 -3
  133. package/dist/text-morph.js +1 -1
  134. package/dist/text-shimmer.d.ts +3 -3
  135. package/dist/text.d.ts +2 -1
  136. package/dist/textarea.d.ts +2 -1
  137. package/dist/time-range-parts.d.ts +6 -6
  138. package/dist/time-range-parts.js +3 -2
  139. package/dist/toast-parts.d.ts +7 -6
  140. package/dist/toggle-group-parts.d.ts +3 -2
  141. package/dist/toggle-group.d.ts +3 -2
  142. package/dist/tooltip-parts.d.ts +5 -5
  143. package/dist/tooltip.d.ts +3 -3
  144. package/dist/touch-target.d.ts +2 -2
  145. package/package.json +3 -3
@@ -1,28 +1,14 @@
1
- import { ModalContentProps } from "./lib/modal-content.js";
2
- import { PickerProviderProps } from "./lib/picker.js";
3
- import { Calendar, DatePickerActions, DatePickerContextValue, DatePickerMeta, DatePickerState, Root, RootProps, Value, useDatePicker } from "./date-picker-parts.js";
1
+ import { Content, Description, Title } from "./drawer-parts.js";
2
+ import { Calendar, DatePickerActions, DatePickerContextValue, DatePickerMeta, DatePickerState, Provider, Root, RootProps, Trigger, Value, useDatePicker } from "./date-picker-parts.js";
4
3
  //#region src/date-picker.d.ts
5
4
  declare const DatePicker: {
6
- Provider: ({ children, ...props }: PickerProviderProps<Date, DatePickerMeta>) => import("react").JSX.Element;
5
+ Provider: typeof Provider;
7
6
  Root: typeof Root;
8
- Trigger: (props: import("react").ComponentPropsWithRef<'button'>) => import("react").JSX.Element;
7
+ Trigger: typeof Trigger;
9
8
  Value: typeof Value;
10
- Content: ({ classNames, overlayRef, ...props }: ModalContentProps<{
11
- Root: typeof import("vaul").Root;
12
- NestedRoot: typeof import("vaul").NestedRoot;
13
- Content: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
14
- Overlay: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
15
- Trigger: React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
16
- Portal: typeof import("vaul").Portal;
17
- Handle: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
18
- preventCycle?: boolean | undefined;
19
- } & React.RefAttributes<HTMLDivElement>>;
20
- Close: React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
21
- Title: React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogTitleProps & React.RefAttributes<HTMLHeadingElement>>;
22
- Description: React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
23
- }>) => import("react").JSX.Element;
24
- Title: (props: import("@radix-ui/react-dialog").DialogTitleProps & import("react").RefAttributes<HTMLHeadingElement>) => import("react").ReactNode;
25
- Description: (props: import("@radix-ui/react-dialog").DialogDescriptionProps & import("react").RefAttributes<HTMLParagraphElement>) => import("react").ReactNode;
9
+ Content: typeof Content;
10
+ Title: typeof Title;
11
+ Description: typeof Description;
26
12
  Calendar: typeof Calendar;
27
13
  };
28
14
  //#endregion
@@ -1,6 +1,6 @@
1
1
  import { RootProps as RootProps$1 } from "./calendar-parts.js";
2
- import { PickerActions, PickerContextValue, PickerProviderProps, PickerState } from "./lib/picker.js";
3
- import { ComponentProps, ReactNode } from "react";
2
+ import { Picker, PickerActions, PickerContextValue, PickerState } from "./lib/picker.js";
3
+ import { ComponentProps, JSX, ReactNode } from "react";
4
4
  //#region src/date-range-picker-parts.d.ts
5
5
  type DateRange = {
6
6
  from: Date;
@@ -12,9 +12,10 @@ type DateRangePickerMeta = {
12
12
  type DateRangePickerState = PickerState<DateRange>;
13
13
  type DateRangePickerActions = PickerActions<DateRange>;
14
14
  type DateRangePickerContextValue = PickerContextValue<DateRange, DateRangePickerMeta>;
15
- declare const Provider: ({ children, ...props }: PickerProviderProps<DateRange, DateRangePickerMeta>) => import("react").JSX.Element, Trigger: (props: import("react").ComponentPropsWithRef<'button'>) => import("react").JSX.Element, PickerValue: ({ placeholder, children, ...props }: import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
16
- placeholder?: string;
17
- }) => import("react").JSX.Element, useDateRangePicker: any;
15
+ declare const Provider: Picker<DateRange, DateRangePickerMeta>["Provider"];
16
+ declare const Trigger: Picker<DateRange, DateRangePickerMeta>["Trigger"];
17
+ declare const PickerValue: Picker<DateRange, DateRangePickerMeta>["Value"];
18
+ declare const useDateRangePicker: Picker<DateRange, DateRangePickerMeta>["usePicker"];
18
19
  type RootProps = {
19
20
  value?: DateRange | null;
20
21
  defaultValue?: DateRange | null;
@@ -22,16 +23,16 @@ type RootProps = {
22
23
  locale?: string;
23
24
  children?: ReactNode;
24
25
  };
25
- declare const Root: ({ value, defaultValue, onValueChange, locale, children }: RootProps) => import("react").JSX.Element;
26
- type ValueProps = Omit<ComponentProps<typeof PickerValue>, 'children'> & {
26
+ declare const Root: ({ value, defaultValue, onValueChange, locale, children }: RootProps) => JSX.Element;
27
+ type ValueProps = Omit<ComponentProps<typeof PickerValue>, "children"> & {
27
28
  format?: Intl.DateTimeFormatOptions;
28
29
  };
29
- declare const Value: ({ format, ...props }: ValueProps) => import("react").JSX.Element;
30
- type CalendarProps = Pick<RootProps$1, 'defaultMonth' | 'weekStartsOn' | 'children'>;
30
+ declare const Value: ({ format, ...props }: ValueProps) => JSX.Element;
31
+ type CalendarProps = Pick<RootProps$1, "defaultMonth" | "weekStartsOn" | "children">;
31
32
  /**
32
33
  * The first click sets one end, the second completes the range (in either
33
34
  * order) and closes the picker. A third click on a finished range starts over.
34
35
  */
35
- declare const Calendar: ({ defaultMonth, weekStartsOn, children }: CalendarProps) => import("react").JSX.Element;
36
+ declare const Calendar: ({ defaultMonth, weekStartsOn, children }: CalendarProps) => JSX.Element;
36
37
  //#endregion
37
38
  export { Calendar, type DateRange, type DateRangePickerActions, type DateRangePickerContextValue, type DateRangePickerMeta, type DateRangePickerState, Provider, Root, type RootProps, Trigger, Value, useDateRangePicker };
@@ -4,7 +4,12 @@ import { createPicker } from "./lib/picker.js";
4
4
  import { useState } from "react";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
  //#region src/date-range-picker-parts.tsx
7
- const { Provider, Trigger, Value: PickerValue, usePicker: useDateRangePicker, usePickerState } = createPicker("DateRangePicker", "date-range-picker");
7
+ const picker = createPicker("DateRangePicker", "date-range-picker");
8
+ const Provider = picker.Provider;
9
+ const Trigger = picker.Trigger;
10
+ const PickerValue = picker.Value;
11
+ const useDateRangePicker = picker.usePicker;
12
+ const usePickerState = picker.usePickerState;
8
13
  const Root = ({ value, defaultValue = null, onValueChange, locale = "en", children }) => {
9
14
  const { state, actions } = usePickerState(value, defaultValue, onValueChange);
10
15
  return /* @__PURE__ */ jsx(Provider, {
@@ -1,28 +1,14 @@
1
- import { ModalContentProps } from "./lib/modal-content.js";
2
- import { PickerProviderProps } from "./lib/picker.js";
3
- import { Calendar, DateRange, DateRangePickerActions, DateRangePickerContextValue, DateRangePickerMeta, DateRangePickerState, Root, RootProps, Value, useDateRangePicker } from "./date-range-picker-parts.js";
1
+ import { Content, Description, Title } from "./drawer-parts.js";
2
+ import { Calendar, DateRange, DateRangePickerActions, DateRangePickerContextValue, DateRangePickerMeta, DateRangePickerState, Provider, Root, RootProps, Trigger, Value, useDateRangePicker } from "./date-range-picker-parts.js";
4
3
  //#region src/date-range-picker.d.ts
5
4
  declare const DateRangePicker: {
6
- Provider: ({ children, ...props }: PickerProviderProps<DateRange, DateRangePickerMeta>) => import("react").JSX.Element;
5
+ Provider: typeof Provider;
7
6
  Root: typeof Root;
8
- Trigger: (props: import("react").ComponentPropsWithRef<'button'>) => import("react").JSX.Element;
7
+ Trigger: typeof Trigger;
9
8
  Value: typeof Value;
10
- Content: ({ classNames, overlayRef, ...props }: ModalContentProps<{
11
- Root: typeof import("vaul").Root;
12
- NestedRoot: typeof import("vaul").NestedRoot;
13
- Content: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
14
- Overlay: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
15
- Trigger: React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
16
- Portal: typeof import("vaul").Portal;
17
- Handle: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
18
- preventCycle?: boolean | undefined;
19
- } & React.RefAttributes<HTMLDivElement>>;
20
- Close: React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
21
- Title: React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogTitleProps & React.RefAttributes<HTMLHeadingElement>>;
22
- Description: React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
23
- }>) => import("react").JSX.Element;
24
- Title: (props: import("@radix-ui/react-dialog").DialogTitleProps & import("react").RefAttributes<HTMLHeadingElement>) => import("react").ReactNode;
25
- Description: (props: import("@radix-ui/react-dialog").DialogDescriptionProps & import("react").RefAttributes<HTMLParagraphElement>) => import("react").ReactNode;
9
+ Content: typeof Content;
10
+ Title: typeof Title;
11
+ Description: typeof Description;
26
12
  Calendar: typeof Calendar;
27
13
  };
28
14
  //#endregion
@@ -1,8 +1,12 @@
1
+ import { Styled } from "./styled.js";
1
2
  //#region src/description-list.d.ts
3
+ declare const Root: Styled<"dl">;
4
+ declare const Term: Styled<"dt">;
5
+ declare const Details: Styled<"dd">;
2
6
  declare const DescriptionList: {
3
- Root: (props: import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDListElement>, HTMLDListElement>) => import("react").ReactNode;
4
- Term: (props: import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>) => import("react").ReactNode;
5
- Details: (props: import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>) => import("react").ReactNode;
7
+ Root: typeof Root;
8
+ Term: typeof Term;
9
+ Details: typeof Details;
6
10
  };
7
11
  //#endregion
8
12
  export { DescriptionList };
@@ -1,12 +1,13 @@
1
- import { ModalContentProps } from "./lib/modal-content.js";
1
+ import { Styled } from "./styled.js";
2
+ import { ModalContentPart } from "./lib/modal-content.js";
2
3
  import { Actions, Body } from "./lib/modal-parts.js";
3
4
  import * as RadixDialog from "@radix-ui/react-dialog";
4
5
  //#region src/dialog-parts.d.ts
5
- declare const Root: import("react").FC<RadixDialog.DialogProps>;
6
- declare const Trigger: import("react").ForwardRefExoticComponent<RadixDialog.DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
7
- declare const Close: import("react").ForwardRefExoticComponent<RadixDialog.DialogCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
8
- declare const Content: ({ classNames, overlayRef, ...props }: ModalContentProps<typeof RadixDialog>) => import("react").JSX.Element;
9
- declare const Title: (props: RadixDialog.DialogTitleProps & import("react").RefAttributes<HTMLHeadingElement>) => import("react").ReactNode;
10
- declare const Description: (props: RadixDialog.DialogDescriptionProps & import("react").RefAttributes<HTMLParagraphElement>) => import("react").ReactNode;
6
+ declare const Root: typeof RadixDialog.Root;
7
+ declare const Trigger: typeof RadixDialog.Trigger;
8
+ declare const Close: typeof RadixDialog.Close;
9
+ declare const Content: ModalContentPart<typeof RadixDialog>;
10
+ declare const Title: Styled<typeof RadixDialog.Title>;
11
+ declare const Description: Styled<typeof RadixDialog.Description>;
11
12
  //#endregion
12
13
  export { Actions, Body, Close, Content, Description, Root, Title, Trigger };
package/dist/dialog.d.ts CHANGED
@@ -1,14 +1,15 @@
1
- import { ModalContentProps } from "./lib/modal-content.js";
1
+ import { Actions, Body } from "./lib/modal-parts.js";
2
+ import { Close, Content, Description, Root, Title, Trigger } from "./dialog-parts.js";
2
3
  //#region src/dialog.d.ts
3
4
  declare const Dialog: {
4
- Root: import("react").FC<import("@radix-ui/react-dialog").DialogProps>;
5
- Trigger: import("react").ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
6
- Close: import("react").ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
7
- Content: ({ classNames, overlayRef, ...props }: ModalContentProps<typeof import("@radix-ui/react-dialog")>) => import("react").JSX.Element;
8
- Title: (props: import("@radix-ui/react-dialog").DialogTitleProps & import("react").RefAttributes<HTMLHeadingElement>) => import("react").ReactNode;
9
- Description: (props: import("@radix-ui/react-dialog").DialogDescriptionProps & import("react").RefAttributes<HTMLParagraphElement>) => import("react").ReactNode;
10
- Body: (props: import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => import("react").ReactNode;
11
- Actions: (props: import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => import("react").ReactNode;
5
+ Root: typeof Root;
6
+ Trigger: typeof Trigger;
7
+ Close: typeof Close;
8
+ Content: typeof Content;
9
+ Title: typeof Title;
10
+ Description: typeof Description;
11
+ Body: typeof Body;
12
+ Actions: typeof Actions;
12
13
  };
13
14
  //#endregion
14
15
  export { Dialog };
package/dist/divider.d.ts CHANGED
@@ -1,5 +1,6 @@
1
+ import { Styled } from "./styled.js";
1
2
  import * as Separator from "@radix-ui/react-separator";
2
3
  //#region src/divider.d.ts
3
- declare const Divider: (props: Separator.SeparatorProps & import("react").RefAttributes<HTMLDivElement>) => import("react").ReactNode;
4
+ declare const Divider: Styled<typeof Separator.Root>;
4
5
  //#endregion
5
6
  export { Divider };
@@ -1,24 +1,13 @@
1
- import { ModalContentProps } from "./lib/modal-content.js";
1
+ import { Styled } from "./styled.js";
2
+ import { ModalContentPart } from "./lib/modal-content.js";
2
3
  import { Actions, Body } from "./lib/modal-parts.js";
4
+ import { Drawer } from "vaul";
3
5
  //#region src/drawer-parts.d.ts
4
- declare const Root: typeof import("vaul").Root;
5
- declare const Trigger: import("react").ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
6
- declare const Close: import("react").ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
7
- declare const Content: ({ classNames, overlayRef, ...props }: ModalContentProps<{
8
- Root: typeof import("vaul").Root;
9
- NestedRoot: typeof import("vaul").NestedRoot;
10
- Content: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
- Overlay: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
- Trigger: React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
13
- Portal: typeof import("vaul").Portal;
14
- Handle: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
15
- preventCycle?: boolean | undefined;
16
- } & React.RefAttributes<HTMLDivElement>>;
17
- Close: React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
18
- Title: React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogTitleProps & React.RefAttributes<HTMLHeadingElement>>;
19
- Description: React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
20
- }>) => import("react").JSX.Element;
21
- declare const Title: (props: import("@radix-ui/react-dialog").DialogTitleProps & import("react").RefAttributes<HTMLHeadingElement>) => import("react").ReactNode;
22
- declare const Description: (props: import("@radix-ui/react-dialog").DialogDescriptionProps & import("react").RefAttributes<HTMLParagraphElement>) => import("react").ReactNode;
6
+ declare const Root: typeof Drawer.Root;
7
+ declare const Trigger: typeof Drawer.Trigger;
8
+ declare const Close: typeof Drawer.Close;
9
+ declare const Content: ModalContentPart<typeof Drawer>;
10
+ declare const Title: Styled<typeof Drawer.Title>;
11
+ declare const Description: Styled<typeof Drawer.Description>;
23
12
  //#endregion
24
13
  export { Actions, Body, Close, Content, Description, Root, Title, Trigger };
package/dist/drawer.d.ts CHANGED
@@ -1,27 +1,15 @@
1
- import { ModalContentProps } from "./lib/modal-content.js";
1
+ import { Actions, Body } from "./lib/modal-parts.js";
2
+ import { Close, Content, Description, Root, Title, Trigger } from "./drawer-parts.js";
2
3
  //#region src/drawer.d.ts
3
4
  declare const Drawer: {
4
- Root: typeof import("vaul").Root;
5
- Trigger: import("react").ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
6
- Close: import("react").ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
7
- Content: ({ classNames, overlayRef, ...props }: ModalContentProps<{
8
- Root: typeof import("vaul").Root;
9
- NestedRoot: typeof import("vaul").NestedRoot;
10
- Content: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
- Overlay: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
- Trigger: React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
13
- Portal: typeof import("vaul").Portal;
14
- Handle: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
15
- preventCycle?: boolean | undefined;
16
- } & React.RefAttributes<HTMLDivElement>>;
17
- Close: React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
18
- Title: React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogTitleProps & React.RefAttributes<HTMLHeadingElement>>;
19
- Description: React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
20
- }>) => import("react").JSX.Element;
21
- Title: (props: import("@radix-ui/react-dialog").DialogTitleProps & import("react").RefAttributes<HTMLHeadingElement>) => import("react").ReactNode;
22
- Description: (props: import("@radix-ui/react-dialog").DialogDescriptionProps & import("react").RefAttributes<HTMLParagraphElement>) => import("react").ReactNode;
23
- Body: (props: import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => import("react").ReactNode;
24
- Actions: (props: import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => import("react").ReactNode;
5
+ Root: typeof Root;
6
+ Trigger: typeof Trigger;
7
+ Close: typeof Close;
8
+ Content: typeof Content;
9
+ Title: typeof Title;
10
+ Description: typeof Description;
11
+ Body: typeof Body;
12
+ Actions: typeof Actions;
25
13
  };
26
14
  //#endregion
27
15
  export { Drawer };
@@ -1,8 +1,12 @@
1
+ import { Styled } from "./styled.js";
1
2
  import * as RadixMenu from "@radix-ui/react-dropdown-menu";
2
3
  //#region src/dropdown-menu-parts.d.ts
3
- declare const Root: import("react").FC<RadixMenu.DropdownMenuProps>;
4
- declare const Trigger: import("react").ForwardRefExoticComponent<RadixMenu.DropdownMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
5
- declare const Group: import("react").ForwardRefExoticComponent<RadixMenu.DropdownMenuGroupProps & import("react").RefAttributes<HTMLDivElement>>;
6
- declare const Content: (props: RadixMenu.DropdownMenuContentProps & import("react").RefAttributes<HTMLDivElement>) => import("react").JSX.Element, Item: (props: RadixMenu.DropdownMenuItemProps & import("react").RefAttributes<HTMLDivElement>) => import("react").ReactNode, Label: (props: RadixMenu.DropdownMenuLabelProps & import("react").RefAttributes<HTMLDivElement>) => import("react").ReactNode, Separator: (props: RadixMenu.DropdownMenuSeparatorProps & import("react").RefAttributes<HTMLDivElement>) => import("react").ReactNode;
4
+ declare const Root: typeof RadixMenu.Root;
5
+ declare const Trigger: typeof RadixMenu.Trigger;
6
+ declare const Group: typeof RadixMenu.Group;
7
+ declare const Content: Styled<typeof RadixMenu.Content>;
8
+ declare const Item: Styled<typeof RadixMenu.Item>;
9
+ declare const Label: Styled<typeof RadixMenu.Label>;
10
+ declare const Separator: Styled<typeof RadixMenu.Separator>;
7
11
  //#endregion
8
12
  export { Content, Group, Item, Label, Root, Separator, Trigger };
@@ -5,6 +5,10 @@ import * as RadixMenu from "@radix-ui/react-dropdown-menu";
5
5
  const Root = RadixMenu.Root;
6
6
  const Trigger = RadixMenu.Trigger;
7
7
  const Group = RadixMenu.Group;
8
- const { Content, Item, Label, Separator } = createMenuParts(RadixMenu, "dropdown-menu");
8
+ const menu = createMenuParts(RadixMenu, "dropdown-menu");
9
+ const Content = menu.Content;
10
+ const Item = menu.Item;
11
+ const Label = menu.Label;
12
+ const Separator = menu.Separator;
9
13
  //#endregion
10
14
  export { Content, Group, Item, Label, Root, Separator, Trigger };
@@ -1,12 +1,13 @@
1
+ import { Content, Group, Item, Label, Root, Separator, Trigger } from "./dropdown-menu-parts.js";
1
2
  //#region src/dropdown-menu.d.ts
2
3
  declare const DropdownMenu: {
3
- Root: import("react").FC<import("@radix-ui/react-dropdown-menu").DropdownMenuProps>;
4
- Trigger: import("react").ForwardRefExoticComponent<import("@radix-ui/react-dropdown-menu").DropdownMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
5
- Content: (props: import("@radix-ui/react-dropdown-menu").DropdownMenuContentProps & import("react").RefAttributes<HTMLDivElement>) => import("react").JSX.Element;
6
- Group: import("react").ForwardRefExoticComponent<import("@radix-ui/react-dropdown-menu").DropdownMenuGroupProps & import("react").RefAttributes<HTMLDivElement>>;
7
- Label: (props: import("@radix-ui/react-dropdown-menu").DropdownMenuLabelProps & import("react").RefAttributes<HTMLDivElement>) => import("react").ReactNode;
8
- Item: (props: import("@radix-ui/react-dropdown-menu").DropdownMenuItemProps & import("react").RefAttributes<HTMLDivElement>) => import("react").ReactNode;
9
- Separator: (props: import("@radix-ui/react-dropdown-menu").DropdownMenuSeparatorProps & import("react").RefAttributes<HTMLDivElement>) => import("react").ReactNode;
4
+ Root: typeof Root;
5
+ Trigger: typeof Trigger;
6
+ Content: typeof Content;
7
+ Group: typeof Group;
8
+ Label: typeof Label;
9
+ Item: typeof Item;
10
+ Separator: typeof Separator;
10
11
  };
11
12
  //#endregion
12
13
  export { DropdownMenu };
@@ -1,10 +1,16 @@
1
+ import { Styled } from "./styled.js";
1
2
  //#region src/empty-state.d.ts
3
+ declare const Root: Styled<"div">;
4
+ declare const Icon: Styled<"span">;
5
+ declare const Title: Styled<"h3">;
6
+ declare const Description: Styled<"p">;
7
+ declare const Actions: Styled<"div">;
2
8
  declare const EmptyState: {
3
- Root: (props: import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => import("react").ReactNode;
4
- Icon: (props: import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>) => import("react").ReactNode;
5
- Title: (props: import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>) => import("react").ReactNode;
6
- Description: (props: import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>) => import("react").ReactNode;
7
- Actions: (props: import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => import("react").ReactNode;
9
+ Root: typeof Root;
10
+ Icon: typeof Icon;
11
+ Title: typeof Title;
12
+ Description: typeof Description;
13
+ Actions: typeof Actions;
8
14
  };
9
15
  //#endregion
10
16
  export { EmptyState };
@@ -1,15 +1,16 @@
1
- import { ComponentPropsWithRef } from "react";
1
+ import { Styled } from "./styled.js";
2
+ import { ComponentPropsWithRef, JSX, ReactNode } from "react";
2
3
  import * as RadixLabel from "@radix-ui/react-label";
3
4
  import { Slot } from "@radix-ui/react-slot";
4
5
  //#region src/field-parts.d.ts
5
- type RootProps = ComponentPropsWithRef<'div'> & {
6
+ type RootProps = ComponentPropsWithRef<"div"> & {
6
7
  invalid?: boolean;
7
8
  };
8
- declare const Root: ({ invalid, ...props }: RootProps) => import("react").JSX.Element;
9
- declare const Label: (props: ComponentPropsWithRef<typeof RadixLabel.Root>) => import("react").JSX.Element;
10
- declare const Description: (props: ComponentPropsWithRef<'p'>) => import("react").JSX.Element;
11
- declare const FieldError: (props: ComponentPropsWithRef<'p'>) => import("react").JSX.Element | null;
9
+ declare const Root: ({ invalid, ...props }: RootProps) => JSX.Element;
10
+ declare const Label: Styled<typeof RadixLabel.Root>;
11
+ declare const Description: Styled<"p">;
12
+ declare const FieldError: (props: ComponentPropsWithRef<"p">) => ReactNode;
12
13
  /** Passes the id and aria wiring to its single child, which is usually the input. */
13
- declare const Control: (props: ComponentPropsWithRef<typeof Slot>) => import("react").JSX.Element;
14
+ declare const Control: Styled<typeof Slot>;
14
15
  //#endregion
15
16
  export { Control, Description, FieldError as Error, type RootProps as FieldProps, Label, Root };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { useId } from "react";
3
3
  import { jsx } from "react/jsx-runtime";
4
- import { createRequiredContext } from "@journ/lift";
4
+ import { createRequiredContext } from "@journ/lift/required-context";
5
5
  import * as RadixLabel from "@radix-ui/react-label";
6
6
  import { Slot } from "@radix-ui/react-slot";
7
7
  //#region src/field-parts.tsx
@@ -1,6 +1,7 @@
1
- import { ComponentPropsWithRef } from "react";
1
+ import { Styled } from "./styled.js";
2
+ import { ComponentPropsWithRef, JSX } from "react";
2
3
  //#region src/file-dropzone-parts.d.ts
3
- type RejectionReason = 'type' | 'size' | 'count';
4
+ type RejectionReason = "type" | "size" | "count";
4
5
  type FileRejection = {
5
6
  file: File;
6
7
  reason: RejectionReason;
@@ -15,7 +16,7 @@ declare const sortFiles: (files: File[], { accept, maxSize, multiple }: {
15
16
  accepted: File[];
16
17
  rejected: FileRejection[];
17
18
  };
18
- type RootProps = Omit<ComponentPropsWithRef<'div'>, 'onDrop' | 'onChange'> & {
19
+ type RootProps = Omit<ComponentPropsWithRef<"div">, "onDrop" | "onChange"> & {
19
20
  /** Same syntax as the native input: `image/*,.pdf`. */
20
21
  accept?: string;
21
22
  /** Largest allowed file in bytes. */
@@ -26,9 +27,9 @@ type RootProps = Omit<ComponentPropsWithRef<'div'>, 'onDrop' | 'onChange'> & {
26
27
  onFilesRejected?: (rejections: FileRejection[]) => void;
27
28
  };
28
29
  /** A drop target that is also a button: click or press Enter to open the file picker. */
29
- declare const Root: ({ accept, maxSize, multiple, disabled, onFilesAccepted, onFilesRejected, children, ...props }: RootProps) => import("react").JSX.Element;
30
- declare const Icon: (props: import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>) => import("react").ReactNode;
31
- declare const Title: (props: import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>) => import("react").ReactNode;
32
- declare const Description: (props: import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>) => import("react").ReactNode;
30
+ declare const Root: ({ accept, maxSize, multiple, disabled, onFilesAccepted, onFilesRejected, children, ...props }: RootProps) => JSX.Element;
31
+ declare const Icon: Styled<"span">;
32
+ declare const Title: Styled<"p">;
33
+ declare const Description: Styled<"p">;
33
34
  //#endregion
34
35
  export { Description, type FileRejection, Icon, type RejectionReason, Root, type RootProps, Title, matchesAccept, sortFiles };
@@ -1,10 +1,10 @@
1
- import { FileRejection, RejectionReason, Root } from "./file-dropzone-parts.js";
1
+ import { Description, FileRejection, Icon, RejectionReason, Root, Title } from "./file-dropzone-parts.js";
2
2
  //#region src/file-dropzone.d.ts
3
3
  declare const FileDropzone: {
4
4
  Root: typeof Root;
5
- Icon: (props: import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>) => import("react").ReactNode;
6
- Title: (props: import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>) => import("react").ReactNode;
7
- Description: (props: import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>) => import("react").ReactNode;
5
+ Icon: typeof Icon;
6
+ Title: typeof Title;
7
+ Description: typeof Description;
8
8
  };
9
9
  //#endregion
10
10
  export { FileDropzone, type FileRejection, type RejectionReason };
package/dist/heading.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { ComponentPropsWithRef } from "react";
1
+ import { ComponentPropsWithRef, JSX } from "react";
2
2
  //#region src/heading.d.ts
3
- type HeadingProps = ComponentPropsWithRef<'h1'> & {
3
+ type HeadingProps = ComponentPropsWithRef<"h1"> & {
4
4
  level?: 1 | 2 | 3 | 4 | 5 | 6;
5
5
  };
6
6
  /** `level` sets the document outline. */
7
- declare const Heading: ({ level, ...props }: HeadingProps) => import("react").JSX.Element;
7
+ declare const Heading: ({ level, ...props }: HeadingProps) => JSX.Element;
8
8
  //#endregion
9
9
  export { Heading, type HeadingProps };
@@ -1,8 +1,8 @@
1
- import { ComponentPropsWithRef } from "react";
1
+ import { Styled } from "./styled.js";
2
2
  import * as RadixHoverCard from "@radix-ui/react-hover-card";
3
3
  //#region src/hover-card-parts.d.ts
4
- declare const Root: import("react").FC<RadixHoverCard.HoverCardProps>;
5
- declare const Trigger: import("react").ForwardRefExoticComponent<RadixHoverCard.HoverCardTriggerProps & import("react").RefAttributes<HTMLAnchorElement>>;
6
- declare const Content: (props: ComponentPropsWithRef<typeof RadixHoverCard.Content>) => import("react").JSX.Element;
4
+ declare const Root: typeof RadixHoverCard.Root;
5
+ declare const Trigger: typeof RadixHoverCard.Trigger;
6
+ declare const Content: Styled<typeof RadixHoverCard.Content>;
7
7
  //#endregion
8
8
  export { Content, Root, Trigger };
@@ -1,8 +1,8 @@
1
- import { Content } from "./hover-card-parts.js";
1
+ import { Content, Root, Trigger } from "./hover-card-parts.js";
2
2
  //#region src/hover-card.d.ts
3
3
  declare const HoverCard: {
4
- Root: import("react").FC<import("@radix-ui/react-hover-card").HoverCardProps>;
5
- Trigger: import("react").ForwardRefExoticComponent<import("@radix-ui/react-hover-card").HoverCardTriggerProps & import("react").RefAttributes<HTMLAnchorElement>>;
4
+ Root: typeof Root;
5
+ Trigger: typeof Trigger;
6
6
  Content: typeof Content;
7
7
  };
8
8
  //#endregion
@@ -1,6 +1,7 @@
1
+ import { Styled } from "./styled.js";
1
2
  import { ComponentPropsWithRef } from "react";
2
3
  //#region src/icon-button.d.ts
3
- type IconButtonProps = ComponentPropsWithRef<'button'>;
4
- declare const IconButton: (props: import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>) => import("react").ReactNode;
4
+ type IconButtonProps = ComponentPropsWithRef<"button">;
5
+ declare const IconButton: Styled<"button">;
5
6
  //#endregion
6
7
  export { IconButton, type IconButtonProps };
package/dist/icon.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { ComponentPropsWithRef } from "react";
1
+ import { ComponentPropsWithRef, JSX } from "react";
2
2
  //#region src/icon.d.ts
3
- type IconProps = ComponentPropsWithRef<'span'>;
3
+ type IconProps = ComponentPropsWithRef<"span">;
4
4
  /** Wraps any svg child and hides it from assistive tech unless a label is given. */
5
- declare const Icon: ({ 'aria-label': label, ...props }: IconProps) => import("react").JSX.Element;
5
+ declare const Icon: ({ "aria-label": label, ...props }: IconProps) => JSX.Element;
6
6
  //#endregion
7
7
  export { Icon, type IconProps };
package/dist/index.d.ts CHANGED
@@ -46,6 +46,7 @@ import { Heading } from "./heading.js";
46
46
  import { HoverCard } from "./hover-card.js";
47
47
  import { Icon } from "./icon.js";
48
48
  import { Link } from "./link.js";
49
+ import { ListRow } from "./list-row.js";
49
50
  import { Markdown, MarkdownProps } from "./markdown.js";
50
51
  import { Message } from "./message.js";
51
52
  import { RootProps as RootProps$8 } from "./month-picker-parts.js";
@@ -91,4 +92,4 @@ import { Toast } from "./toast.js";
91
92
  import { ToggleGroup } from "./toggle-group.js";
92
93
  import { Tooltip } from "./tooltip.js";
93
94
  import { TouchTarget } from "./touch-target.js";
94
- export { Accordion, Alert, AlertDialog, AnimatedSize, type AnimatedSizeProps, Avatar, Badge, Breadcrumbs, BulkBar, Button, type ButtonProps, Calendar, type CalendarActions, type CalendarContextValue, type CalendarMeta, type RootProps as CalendarProps, type CalendarState, type CalendarView, Card, Carousel, type RootProps$1 as CarouselProps, Checkbox, Chip, Collapsible, Combobox, type ComboboxActions, type ComboboxContextValue, type RootProps$2 as ComboboxProps, type ComboboxState, CommandPalette, type RootProps$3 as CommandPaletteProps, Composer, ContextMenu, CurrencyInput, type RootProps$4 as CurrencyInputProps, DataTable, type DataTableColumn, type RootProps$5 as DataTableProps, DateInput, DatePicker, type DatePickerActions, type DatePickerContextValue, type DatePickerMeta, type RootProps$6 as DatePickerProps, type DatePickerState, type DateRange, DateRangePicker, type DateRangePickerActions, type DateRangePickerContextValue, type DateRangePickerMeta, type RootProps$7 as DateRangePickerProps, type DateRangePickerState, DescriptionList, Dialog, Divider, Drawer, DropdownMenu, EmptyState, Field, FileDropzone, type FileRejection, Heading, HoverCard, Icon, IconButton, type IconButtonProps, Input, Link, Markdown, type MarkdownProps, Message, MonthPicker, type RootProps$8 as MonthPickerProps, MonthStepper, MultipleSelector, type RootProps$9 as MultipleSelectorProps, NavBar, NavigationMenu, OtpInput, Page, PageHeader, Pagination, PillSelect, Popover, Portal, type PortalProps, Progress, QuantityInput, type RootProps$10 as QuantityInputProps, Radio, type RejectionReason, ScrollArea, Select, Sheet, type ContentProps as SheetContentProps, type Side as SheetSide, Sidebar, Skeleton, Slider, Spinner, Stack, Stat, Stepper, Switch, Table, Tabs, TagInput, type RootProps$11 as TagInputProps, Text, TextMorph, type TextMorphProps, TextShimmer, type TextShimmerProps, Textarea, TimeRange, type RootProps$12 as TimeRangeProps, type TimeRangeValue, Toast, ToggleGroup, Tooltip, TouchTarget, type Weekday, dataTableColumns, selectColumn, useCalendar, useCarousel, useCombobox, useDataTable, useDatePicker, useDateRangePicker, useMultipleSelector, useTagInput };
95
+ export { Accordion, Alert, AlertDialog, AnimatedSize, type AnimatedSizeProps, Avatar, Badge, Breadcrumbs, BulkBar, Button, type ButtonProps, Calendar, type CalendarActions, type CalendarContextValue, type CalendarMeta, type RootProps as CalendarProps, type CalendarState, type CalendarView, Card, Carousel, type RootProps$1 as CarouselProps, Checkbox, Chip, Collapsible, Combobox, type ComboboxActions, type ComboboxContextValue, type RootProps$2 as ComboboxProps, type ComboboxState, CommandPalette, type RootProps$3 as CommandPaletteProps, Composer, ContextMenu, CurrencyInput, type RootProps$4 as CurrencyInputProps, DataTable, type DataTableColumn, type RootProps$5 as DataTableProps, DateInput, DatePicker, type DatePickerActions, type DatePickerContextValue, type DatePickerMeta, type RootProps$6 as DatePickerProps, type DatePickerState, type DateRange, DateRangePicker, type DateRangePickerActions, type DateRangePickerContextValue, type DateRangePickerMeta, type RootProps$7 as DateRangePickerProps, type DateRangePickerState, DescriptionList, Dialog, Divider, Drawer, DropdownMenu, EmptyState, Field, FileDropzone, type FileRejection, Heading, HoverCard, Icon, IconButton, type IconButtonProps, Input, Link, ListRow, Markdown, type MarkdownProps, Message, MonthPicker, type RootProps$8 as MonthPickerProps, MonthStepper, MultipleSelector, type RootProps$9 as MultipleSelectorProps, NavBar, NavigationMenu, OtpInput, Page, PageHeader, Pagination, PillSelect, Popover, Portal, type PortalProps, Progress, QuantityInput, type RootProps$10 as QuantityInputProps, Radio, type RejectionReason, ScrollArea, Select, Sheet, type ContentProps as SheetContentProps, type Side as SheetSide, Sidebar, Skeleton, Slider, Spinner, Stack, Stat, Stepper, Switch, Table, Tabs, TagInput, type RootProps$11 as TagInputProps, Text, TextMorph, type TextMorphProps, TextShimmer, type TextShimmerProps, Textarea, TimeRange, type RootProps$12 as TimeRangeProps, type TimeRangeValue, Toast, ToggleGroup, Tooltip, TouchTarget, type Weekday, dataTableColumns, selectColumn, useCalendar, useCarousel, useCombobox, useDataTable, useDatePicker, useDateRangePicker, useMultipleSelector, useTagInput };
package/dist/index.js CHANGED
@@ -44,6 +44,7 @@ import { Heading } from "./heading.js";
44
44
  import { HoverCard } from "./hover-card.js";
45
45
  import { Icon } from "./icon.js";
46
46
  import { Link } from "./link.js";
47
+ import { ListRow } from "./list-row.js";
47
48
  import { Markdown } from "./markdown.js";
48
49
  import { Message } from "./message.js";
49
50
  import { MonthPicker } from "./month-picker.js";
@@ -84,4 +85,4 @@ import { Toast } from "./toast.js";
84
85
  import { ToggleGroup } from "./toggle-group.js";
85
86
  import { Tooltip } from "./tooltip.js";
86
87
  import { TouchTarget } from "./touch-target.js";
87
- export { Accordion, Alert, AlertDialog, AnimatedSize, Avatar, Badge, Breadcrumbs, BulkBar, Button, Calendar, Card, Carousel, Checkbox, Chip, Collapsible, Combobox, CommandPalette, Composer, ContextMenu, CurrencyInput, DataTable, DateInput, DatePicker, DateRangePicker, DescriptionList, Dialog, Divider, Drawer, DropdownMenu, EmptyState, Field, FileDropzone, Heading, HoverCard, Icon, IconButton, Input, Link, Markdown, Message, MonthPicker, MonthStepper, MultipleSelector, NavBar, NavigationMenu, OtpInput, Page, PageHeader, Pagination, PillSelect, Popover, Portal, Progress, QuantityInput, Radio, ScrollArea, Select, Sheet, Sidebar, Skeleton, Slider, Spinner, Stack, Stat, Stepper, Switch, Table, Tabs, TagInput, Text, TextMorph, TextShimmer, Textarea, TimeRange, Toast, ToggleGroup, Tooltip, TouchTarget, dataTableColumns, selectColumn, useCalendar, useCarousel, useCombobox, useDataTable, useDatePicker, useDateRangePicker, useMultipleSelector, useTagInput };
88
+ export { Accordion, Alert, AlertDialog, AnimatedSize, Avatar, Badge, Breadcrumbs, BulkBar, Button, Calendar, Card, Carousel, Checkbox, Chip, Collapsible, Combobox, CommandPalette, Composer, ContextMenu, CurrencyInput, DataTable, DateInput, DatePicker, DateRangePicker, DescriptionList, Dialog, Divider, Drawer, DropdownMenu, EmptyState, Field, FileDropzone, Heading, HoverCard, Icon, IconButton, Input, Link, ListRow, Markdown, Message, MonthPicker, MonthStepper, MultipleSelector, NavBar, NavigationMenu, OtpInput, Page, PageHeader, Pagination, PillSelect, Popover, Portal, Progress, QuantityInput, Radio, ScrollArea, Select, Sheet, Sidebar, Skeleton, Slider, Spinner, Stack, Stat, Stepper, Switch, Table, Tabs, TagInput, Text, TextMorph, TextShimmer, Textarea, TimeRange, Toast, ToggleGroup, Tooltip, TouchTarget, dataTableColumns, selectColumn, useCalendar, useCarousel, useCombobox, useDataTable, useDatePicker, useDateRangePicker, useMultipleSelector, useTagInput };
package/dist/input.d.ts CHANGED
@@ -1,4 +1,5 @@
1
+ import { Styled } from "./styled.js";
1
2
  //#region src/input.d.ts
2
- declare const Input: (props: import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>) => import("react").ReactNode;
3
+ declare const Input: Styled<"input">;
3
4
  //#endregion
4
5
  export { Input };
@@ -1,5 +1,9 @@
1
- import { FocusEvent, FocusEventHandler, KeyboardEvent, KeyboardEventHandler } from "react";
1
+ import { FocusEventHandler, KeyboardEventHandler } from "react";
2
2
  //#region src/lib/commit-on.d.ts
3
+ type CommitHandlers<T extends HTMLElement> = {
4
+ onBlur: FocusEventHandler<T>;
5
+ onKeyDown: KeyboardEventHandler<T>;
6
+ };
3
7
  /**
4
8
  * Handlers that commit typed text on blur and on Enter, after the caller's own
5
9
  * handlers have run. Spread them on a text field.
@@ -7,9 +11,6 @@ import { FocusEvent, FocusEventHandler, KeyboardEvent, KeyboardEventHandler } fr
7
11
  declare const commitOn: <T extends HTMLElement>(commit: () => void, { onBlur, onKeyDown }?: {
8
12
  onBlur?: FocusEventHandler<T>;
9
13
  onKeyDown?: KeyboardEventHandler<T>;
10
- }) => {
11
- onBlur: (event: FocusEvent<T>) => void;
12
- onKeyDown: (event: KeyboardEvent<T>) => void;
13
- };
14
+ }) => CommitHandlers<T>;
14
15
  //#endregion
15
16
  export { commitOn };