@rinzai/zen 0.9.0 → 0.10.0

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 (112) hide show
  1. package/dist/animated-number/index.d.ts +6 -2
  2. package/dist/animated-number/index.d.ts.map +1 -1
  3. package/dist/animated-number/index.js +68 -17
  4. package/dist/calendar-heatmap/index.d.ts +25 -0
  5. package/dist/calendar-heatmap/index.d.ts.map +1 -0
  6. package/dist/calendar-heatmap/index.js +48 -0
  7. package/dist/chart/allocation.d.ts +30 -0
  8. package/dist/chart/allocation.d.ts.map +1 -0
  9. package/dist/chart/allocation.js +69 -0
  10. package/dist/chart/index.d.ts +1 -0
  11. package/dist/chart/index.d.ts.map +1 -1
  12. package/dist/chart/index.js +85 -83
  13. package/dist/code-block/index.d.ts +1 -1
  14. package/dist/code-block/index.d.ts.map +1 -1
  15. package/dist/code-block/index.js +31 -22
  16. package/dist/collapse/index.d.ts +3 -2
  17. package/dist/collapse/index.d.ts.map +1 -1
  18. package/dist/collapse/index.js +1 -1
  19. package/dist/date-picker/index.d.ts +10 -2
  20. package/dist/date-picker/index.d.ts.map +1 -1
  21. package/dist/date-picker/index.js +43 -21
  22. package/dist/dialog/index.d.ts +4 -2
  23. package/dist/dialog/index.d.ts.map +1 -1
  24. package/dist/dialog/index.js +69 -113
  25. package/dist/editable-cell/index.d.ts +2 -1
  26. package/dist/editable-cell/index.d.ts.map +1 -1
  27. package/dist/editable-cell/index.js +24 -17
  28. package/dist/filter-bar/index.d.ts +21 -0
  29. package/dist/filter-bar/index.d.ts.map +1 -0
  30. package/dist/filter-bar/index.js +90 -0
  31. package/dist/icon-picker/index.d.ts +38 -0
  32. package/dist/icon-picker/index.d.ts.map +1 -0
  33. package/dist/icon-picker/index.js +112 -0
  34. package/dist/icons/arrow-left.js +23 -0
  35. package/dist/icons/micro/arrow-trending-down.d.ts +3 -0
  36. package/dist/icons/micro/arrow-trending-down.d.ts.map +1 -0
  37. package/dist/icons/micro/arrow-trending-down.js +21 -0
  38. package/dist/icons/micro/arrow-trending-up.d.ts +3 -0
  39. package/dist/icons/micro/arrow-trending-up.d.ts.map +1 -0
  40. package/dist/icons/micro/arrow-trending-up.js +21 -0
  41. package/dist/index.d.ts +17 -5
  42. package/dist/index.d.ts.map +1 -1
  43. package/dist/kbd/index.d.ts +4 -0
  44. package/dist/kbd/index.d.ts.map +1 -0
  45. package/dist/kbd/index.js +12 -0
  46. package/dist/keypad/index.d.ts +20 -0
  47. package/dist/keypad/index.d.ts.map +1 -0
  48. package/dist/keypad/index.js +42 -0
  49. package/dist/lib.js +92 -77
  50. package/dist/load-more/index.d.ts +19 -0
  51. package/dist/load-more/index.d.ts.map +1 -0
  52. package/dist/load-more/index.js +37 -0
  53. package/dist/menu/index.d.ts +22 -3
  54. package/dist/menu/index.d.ts.map +1 -1
  55. package/dist/menu/index.js +132 -45
  56. package/dist/meter/index.d.ts +3 -1
  57. package/dist/meter/index.d.ts.map +1 -1
  58. package/dist/meter/index.js +19 -14
  59. package/dist/money-input/index.d.ts +3 -3
  60. package/dist/page-transition/index.d.ts +10 -0
  61. package/dist/page-transition/index.d.ts.map +1 -0
  62. package/dist/page-transition/index.js +16 -0
  63. package/dist/progress-ring/index.d.ts +4 -1
  64. package/dist/progress-ring/index.d.ts.map +1 -1
  65. package/dist/progress-ring/index.js +47 -38
  66. package/dist/range-slider/index.d.ts +26 -0
  67. package/dist/range-slider/index.d.ts.map +1 -0
  68. package/dist/range-slider/index.js +44 -0
  69. package/dist/repeat-picker/index.d.ts +22 -0
  70. package/dist/repeat-picker/index.d.ts.map +1 -0
  71. package/dist/repeat-picker/index.js +115 -0
  72. package/dist/slider/index.d.ts +2 -0
  73. package/dist/slider/index.d.ts.map +1 -1
  74. package/dist/slider/index.js +19 -18
  75. package/dist/sortable/index.d.ts +33 -0
  76. package/dist/sortable/index.d.ts.map +1 -0
  77. package/dist/sortable/index.js +147 -0
  78. package/dist/table/index.d.ts +5 -1
  79. package/dist/table/index.d.ts.map +1 -1
  80. package/dist/table/index.js +90 -58
  81. package/dist/table/selection.d.ts +55 -0
  82. package/dist/table/selection.d.ts.map +1 -0
  83. package/dist/table/selection.js +83 -0
  84. package/dist/table/swipe.d.ts +18 -0
  85. package/dist/table/swipe.d.ts.map +1 -0
  86. package/dist/table/swipe.js +53 -0
  87. package/dist/tabs/index.d.ts.map +1 -1
  88. package/dist/tabs/index.js +101 -51
  89. package/dist/theme-toggle/index.js +6 -6
  90. package/dist/theme.css +184 -11
  91. package/dist/toast/index.js +25 -25
  92. package/dist/toggle/index.d.ts.map +1 -1
  93. package/dist/toggle/index.js +1 -1
  94. package/dist/trend/index.d.ts +19 -0
  95. package/dist/trend/index.d.ts.map +1 -0
  96. package/dist/trend/index.js +27 -0
  97. package/dist/utils/date.d.ts +34 -0
  98. package/dist/utils/date.d.ts.map +1 -1
  99. package/dist/utils/date.js +45 -12
  100. package/dist/utils/money.d.ts +3 -1
  101. package/dist/utils/money.d.ts.map +1 -1
  102. package/dist/utils/money.js +24 -1
  103. package/dist/utils/repeat.d.ts +17 -0
  104. package/dist/utils/repeat.d.ts.map +1 -0
  105. package/dist/utils/repeat.js +38 -0
  106. package/dist/utils/swipe.d.ts +29 -0
  107. package/dist/utils/swipe.d.ts.map +1 -0
  108. package/dist/utils/swipe.js +85 -0
  109. package/dist/utils/useAnchoredPopup.d.ts.map +1 -1
  110. package/dist/utils/useAnchoredPopup.js +3 -9
  111. package/dist/zen.css +1 -1
  112. package/package.json +3 -1
@@ -0,0 +1,21 @@
1
+ "use client";
2
+ import { jsx as e } from "react/jsx-runtime";
3
+ //#region packages/icons/micro/arrow-trending-up.tsx
4
+ function t(t) {
5
+ return /* @__PURE__ */ e("svg", {
6
+ className: "size-4",
7
+ xmlns: "http://www.w3.org/2000/svg",
8
+ viewBox: "0 0 16 16",
9
+ fill: "currentColor",
10
+ "aria-hidden": "true",
11
+ "data-slot": "icon",
12
+ ...t,
13
+ children: /* @__PURE__ */ e("path", {
14
+ fillRule: "evenodd",
15
+ d: "M9.808 4.057a.75.75 0 0 1 .92-.527l3.116.849a.75.75 0 0 1 .528.915l-.823 3.121a.75.75 0 0 1-1.45-.382l.337-1.281a23.484 23.484 0 0 0-3.609 3.056.75.75 0 0 1-1.07.01L6 8.06l-3.72 3.72a.75.75 0 1 1-1.06-1.061l4.25-4.25a.75.75 0 0 1 1.06 0l1.756 1.755a25.015 25.015 0 0 1 3.508-2.85l-1.46-.398a.75.75 0 0 1-.526-.92Z",
16
+ clipRule: "evenodd"
17
+ })
18
+ });
19
+ }
20
+ //#endregion
21
+ export { t as default };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { default as Menu, MenuContent, type MenuContentProps, MenuHeader, MenuItem, type MenuItemProps, type MenuProps, MenuSeparator, MenuTrigger, type MenuTriggerProps, } from './menu';
1
+ export { default as Menu, MenuContent, type MenuContentProps, MenuContextTrigger, type MenuContextTriggerProps, MenuHeader, MenuItem, type MenuItemProps, type MenuProps, MenuSeparator, MenuTrigger, type MenuTriggerProps, } from './menu';
2
2
  export { default as AnimatedNumber, AnimatedMoney, type AnimatedNumberProps } from './animated-number';
3
3
  export { default as Avatar, type AvatarProps, cropImageToSquare, ImageCropError } from './avatar';
4
4
  export { default as Backdrop } from './backdrop';
@@ -23,10 +23,10 @@ export { default as InputGroup, InputGroupAddon, InputGroupInput } from './input
23
23
  export { default as Meter, type MeterProps } from './meter';
24
24
  export { default as MonthPicker, type MonthPickerProps } from './month-picker';
25
25
  export { default as Checkbox, type CheckboxProps } from './checkbox';
26
- export { default as Chart, ChartArea, type ChartAreaProps, ChartBar, type ChartBarProps, ChartLine, type ChartLineProps, type ChartProps, ChartReference, type ChartPalette, type ChartReferenceProps, type ChartSeriesProps, ChartTooltipCard, type ChartTooltipCardProps, DonutChart, type DonutChartProps, paletteColor, niceTicks, } from './chart';
26
+ export { default as Chart, ChartArea, type ChartAreaProps, ChartBar, type ChartBarProps, ChartLine, type ChartLineProps, type ChartProps, ChartReference, type ChartPalette, type ChartReferenceProps, type ChartSeriesProps, ChartTooltipCard, type ChartTooltipCardProps, AllocationBar, type AllocationBarProps, type AllocationItem, DonutChart, type DonutChartProps, paletteColor, niceTicks, } from './chart';
27
27
  export { Radio, default as RadioGroup, type RadioGroupProps, type RadioProps } from './radio-group';
28
28
  export { default as Calendar, type CalendarProps, type CalendarRangeProps, type CalendarSingleProps } from './calendar';
29
- export { default as DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps } from './date-picker';
29
+ export { default as DatePicker, type DatePickerProps, type DateRangePreset, DateRangePicker, type DateRangePickerProps, } from './date-picker';
30
30
  export { type CurrencyConversion, default as MoneyInput, MoneyConversionHint, MoneyCurrencyMenu, type MoneyInputOptions, type MoneyInputProps, type MoneyInputState, useMoneyInput, } from './money-input';
31
31
  export { RadioCard, type RadioCardProps, default as RadioCards, type RadioCardsProps } from './radio-cards';
32
32
  export { default as Pills, Pill, PillIndicator } from './pills';
@@ -40,7 +40,7 @@ export { default as Skeleton } from './skeleton';
40
40
  export { default as Slider, type SliderProps } from './slider';
41
41
  export { default as Spinner } from './spinner';
42
42
  export { default as TabBar, TabBarItem, type TabBarItemProps, type TabBarProps } from './tab-bar';
43
- export { default as Table, type SortDirection, TableBody, TableCell, type TableCellProps, TableContainer, type TableContainerProps, TableEmpty, TableFooter, TableFooterCell, TableHead, TableHeader, type TableHeadProps, TableRow, TableSpacerRow, useSort, } from './table';
43
+ export { default as Table, type SortDirection, TableBody, TableCell, type TableCellProps, TableContainer, type TableContainerProps, TableEmpty, TableFooter, TableFooterCell, TableHead, TableHeader, type TableHeadProps, TableRow, SelectionBar, type SelectionBarProps, TableSelectCell, type TableSelectCellProps, TableSelectHead, type TableSelectHeadProps, TableSpacerRow, TableSwipeAction, type TableSwipeActionProps, TableSwipeRow, type TableSwipeRowProps, useSelection, useSort, } from './table';
44
44
  export { default as TableOfContents, type TableOfContentsItem } from './table-of-contents';
45
45
  export { default as Tabs, Tab, TabList, TabPanel } from './tabs';
46
46
  export { type Tree, TreeCell, TreeLabel, TreeRow, type TreeRowData, TreeToggle, useTree } from './tree';
@@ -58,7 +58,7 @@ export { followSectionLink } from './utils/section-link';
58
58
  export { reducedMotion } from './utils/motion';
59
59
  export { useHydrated } from './utils/useHydrated';
60
60
  export { addMonths, currentMonth, formatMonth, fromMonthIndex, isMonth, type Month, monthIndex, monthNames, monthRange, monthsBetween, } from './utils/month';
61
- export { addDays, addMonthsToDate, type DateRange, type DateString, type DateStyle, dayIndex, dayOfWeek, daysBetween, daysInMonth, formatDate, formatDateRange, fromDayIndex, isDate, today, weekdayNames, weekStart, } from './utils/date';
61
+ export { addDays, addMonthsToDate, type DateRange, commonRanges, type DateString, type DateStyle, dayIndex, dayOfWeek, daysBetween, daysInMonth, formatDate, formatDateRange, fromDayIndex, isDate, today, weekdayNames, weekStart, } from './utils/date';
62
62
  export { type AnchoredPopupOptions, useAnchoredPopup } from './utils/useAnchoredPopup';
63
63
  export { useVirtualList, type VirtualItem, type VirtualListOptions } from './utils/useVirtualList';
64
64
  export { applyGraphicsMode, detectGraphicsMode, type GraphicsMode } from './utils/graphics';
@@ -79,4 +79,16 @@ export { default as Sparkline, type SparklineProps } from './sparkline';
79
79
  export { Step, type StepProps, default as Stepper, type StepperProps } from './stepper';
80
80
  export { default as TagInput, type TagInputProps } from './tag-input';
81
81
  export { default as Timeline, TimelineItem, type TimelineItemProps } from './timeline';
82
+ export { default as Kbd } from './kbd';
83
+ export { default as RangeSlider, type RangeSliderProps } from './range-slider';
84
+ export { default as FilterBar, FilterChip, type FilterBarProps, type FilterChipProps } from './filter-bar';
85
+ export { default as Keypad, type KeypadProps } from './keypad';
86
+ export { default as CalendarHeatmap, type CalendarHeatmapProps } from './calendar-heatmap';
87
+ export { default as Trend, type TrendProps } from './trend';
88
+ export { default as IconPicker, ICON_COLORS, type IconColor, type IconPickerProps } from './icon-picker';
89
+ export { default as RepeatPicker, type RepeatPickerProps } from './repeat-picker';
90
+ export { describeRepeat, nextOccurrences, type Repeat } from './utils/repeat';
91
+ export { default as LoadMore, type LoadMoreProps } from './load-more';
92
+ export { SortableHandle, type SortableHandleProps, SortableItem, type SortableItemProps, SortableList, type SortableListProps, } from './sortable';
93
+ export { default as PageTransition } from './page-transition';
82
94
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../packages/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,CAAC;AACf,OAAO,EACH,OAAO,IAAI,IAAI,EACf,WAAW,EACX,KAAK,gBAAgB,EACrB,UAAU,EACV,QAAQ,EACR,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,aAAa,EACb,WAAW,EACX,KAAK,gBAAgB,GACxB,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,aAAa,EAAE,KAAK,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACvG,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,KAAK,WAAW,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAClG,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,gBAAgB,EAAE,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAC9F,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC7D,OAAO,EACH,OAAO,IAAI,IAAI,EACf,eAAe,EACf,UAAU,EACV,KAAK,SAAS,EACd,SAAS,EACT,KAAK,cAAc,EACnB,IAAI,EACJ,OAAO,GACV,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,KA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EAAE,MAAM,aAAa,CAAC;AACtE,OAAO,EACH,cAAc,EACd,KAAK,mBAAmB,EACxB,YAAY,EACZ,KAAK,iBAAiB,EACtB,YAAY,EACZ,KAAK,iBAAiB,GACzB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { ComponentProps } from 'react';
2
+ /** A key on the keyboard, for shortcuts in hints and tooltips: <Kbd>⌘</Kbd><Kbd>K</Kbd>. Sized from the text around it. */
3
+ export default function Kbd({ className, ...rest }: ComponentProps<'kbd'>): import('react').JSX.Element;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/kbd/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,2HAA2H;AAC3H,MAAM,CAAC,OAAO,UAAU,GAAG,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,+BAUxE"}
@@ -0,0 +1,12 @@
1
+ "use client";
2
+ import { cx as e } from "../utils/cx.js";
3
+ import { jsx as t } from "react/jsx-runtime";
4
+ //#region packages/kbd/index.tsx
5
+ function n({ className: n, ...r }) {
6
+ return /* @__PURE__ */ t("kbd", {
7
+ className: e("zen__kbd border-tint/15 bg-tint/[0.06] text-muted-foreground inline-flex h-[1.7em] min-w-[1.7em] items-center justify-center rounded-[0.4em] border px-[0.45em] font-sans text-[0.8em] leading-none font-medium shadow-[inset_0_-1px_0_oklch(var(--tint)/0.12)]", n),
8
+ ...r
9
+ });
10
+ }
11
+ //#endregion
12
+ export { n as default };
@@ -0,0 +1,20 @@
1
+ /**
2
+ * A number pad for typing an amount on a phone, where the system keyboard
3
+ * covers half the screen. The value is the text typed ("12.5"), so a
4
+ * trailing point or zero stays until you convert it: no leading zeros, one
5
+ * point, at most `decimals` digits after it.
6
+ */
7
+ export default function Keypad({ value, onValueChange, decimals, maxLength, deleteLabel, 'aria-label': label, className, }: KeypadProps): import('react').JSX.Element;
8
+ export interface KeypadProps {
9
+ /** What's been typed, e.g. "12.5". */
10
+ value: string;
11
+ onValueChange: (value: string) => void;
12
+ /** Digits allowed after the point (default 2; 0 hides the point). */
13
+ decimals?: number;
14
+ maxLength?: number;
15
+ /** The delete key's name for screen readers. */
16
+ deleteLabel?: string;
17
+ 'aria-label'?: string;
18
+ className?: string;
19
+ }
20
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/keypad/index.tsx"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAC3B,KAAK,EACL,aAAa,EACb,QAAY,EACZ,SAAc,EACd,WAAsB,EACtB,YAAY,EAAE,KAAgB,EAC9B,SAAS,GACZ,EAAE,WAAW,+BA4Bb;AAED,MAAM,WAAW,WAAW;IACxB,sCAAsC;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,qEAAqE;IACrE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB"}
@@ -0,0 +1,42 @@
1
+ "use client";
2
+ import { cx as e } from "../utils/cx.js";
3
+ import t from "../icons/arrow-left.js";
4
+ import { jsx as n } from "react/jsx-runtime";
5
+ //#region packages/keypad/index.tsx
6
+ var r = [
7
+ "1",
8
+ "2",
9
+ "3",
10
+ "4",
11
+ "5",
12
+ "6",
13
+ "7",
14
+ "8",
15
+ "9",
16
+ ".",
17
+ "0",
18
+ "back"
19
+ ];
20
+ function i({ value: i, onValueChange: a, decimals: o = 2, maxLength: s = 12, deleteLabel: c = "Delete", "aria-label": l = "Keypad", className: u }) {
21
+ let d = (e) => {
22
+ if (e === "back") return a(i.slice(0, -1));
23
+ let t = i.indexOf(".");
24
+ if (e === ".") return o === 0 || t !== -1 ? void 0 : a((i || "0") + ".");
25
+ t !== -1 && i.length - t > o || i.length >= s || a(i === "0" ? e : i + e);
26
+ };
27
+ return /* @__PURE__ */ n("div", {
28
+ role: "group",
29
+ "aria-label": l,
30
+ className: e("zen__keypad grid grid-cols-3 gap-2", u),
31
+ children: r.map((e) => /* @__PURE__ */ n("button", {
32
+ type: "button",
33
+ "aria-label": e === "back" ? c : void 0,
34
+ disabled: e === "." && o === 0,
35
+ onClick: () => d(e),
36
+ className: "bg-tint/[0.05] hover:bg-tint/[0.09] focus-visible:ring-ring/50 grid h-14 cursor-pointer place-items-center rounded-xl text-xl font-medium tabular-nums outline-hidden transition-[background-color,scale] duration-150 select-none focus-visible:ring-2 active:scale-95 disabled:invisible",
37
+ children: e === "back" ? /* @__PURE__ */ n(t, { className: "size-5" }) : e
38
+ }, e))
39
+ });
40
+ }
41
+ //#endregion
42
+ export { i as default };
package/dist/lib.js CHANGED
@@ -3,80 +3,95 @@
3
3
  import { cx as e } from "./utils/cx.js";
4
4
  import { applyGraphicsMode as t, detectGraphicsMode as n } from "./utils/graphics.js";
5
5
  import { useAnchoredPopup as r } from "./utils/useAnchoredPopup.js";
6
- import i, { MenuContent as a, MenuHeader as o, MenuItem as s, MenuSeparator as c, MenuTrigger as l } from "./menu/index.js";
7
- import { MoneyParseError as u, currencySymbol as d, formatAmount as f, formatMoney as p, minorDigits as m, parseMoney as h, parseMoneyInput as g } from "./utils/money.js";
8
- import { reducedMotion as _ } from "./utils/motion.js";
9
- import v, { AnimatedMoney as y } from "./animated-number/index.js";
10
- import b, { ImageCropError as x, cropImageToSquare as S } from "./avatar/index.js";
11
- import C from "./backdrop/index.js";
12
- import { cva as w } from "./utils/cva.js";
13
- import T from "./badge/index.js";
14
- import E, { StatusPillAction as D } from "./status-pill/index.js";
15
- import O from "./spinner/index.js";
16
- import k, { buttonVariants as A } from "./button/index.js";
17
- import j, { CardDescription as M, CardHeader as N, CardTitle as P, Stat as F, StatRow as I } from "./card/index.js";
18
- import L from "./code-block/index.js";
19
- import R from "./chip/index.js";
20
- import z, { PopoverClose as B, PopoverContent as V, PopoverTrigger as H } from "./popover/index.js";
21
- import U from "./collapse/index.js";
22
- import W from "./alert/index.js";
23
- import G, { FormMessage as K, useField as q, useFieldProps as J } from "./field/index.js";
24
- import Y, { InputGroupAddon as X, InputGroupInput as Z } from "./input-group/index.js";
25
- import { FieldChevron as Q } from "./utils/field-chevron.js";
26
- import { useVirtualList as $ } from "./utils/useVirtualList.js";
27
- import ee, { ComboboxCreate as te, ComboboxEmpty as ne, ComboboxItem as re, ComboboxList as ie, ComboboxPopup as ae, ComboboxSearch as oe, ComboboxTrigger as se } from "./combobox/index.js";
28
- import ce, { useToast as le, useToastHost as ue } from "./toast/index.js";
29
- import de, { DialogClose as fe, DialogFooter as pe, useModal as me } from "./dialog/index.js";
30
- import he from "./confirm-dialog/index.js";
31
- import ge from "./editable-cell/index.js";
32
- import _e, { DisclosureContent as ve, DisclosureTrigger as ye } from "./disclosure/index.js";
33
- import be from "./header/index.js";
34
- import xe from "./inset/index.js";
35
- import Se from "./input/index.js";
36
- import Ce from "./meter/index.js";
37
- import { addMonths as we, currentMonth as Te, formatMonth as Ee, fromMonthIndex as De, isMonth as Oe, monthIndex as ke, monthNames as Ae, monthRange as je, monthsBetween as Me } from "./utils/month.js";
38
- import Ne from "./month-picker/index.js";
39
- import Pe from "./checkbox/index.js";
40
- import { paletteColor as Fe } from "./chart/palette.js";
41
- import { ChartTooltipCard as Ie } from "./chart/tooltip.js";
42
- import Le from "./chart/donut.js";
43
- import Re, { ChartArea as ze, ChartBar as Be, ChartLine as Ve, ChartReference as He, niceTicks as Ue } from "./chart/index.js";
44
- import We, { Radio as Ge } from "./radio-group/index.js";
45
- import { addDays as Ke, addMonthsToDate as qe, dayIndex as Je, dayOfWeek as Ye, daysBetween as Xe, daysInMonth as Ze, formatDate as Qe, formatDateRange as $e, fromDayIndex as et, isDate as tt, today as nt, weekStart as rt, weekdayNames as it } from "./utils/date.js";
46
- import at from "./calendar/index.js";
47
- import ot, { DateRangePicker as st } from "./date-picker/index.js";
48
- import { RateUnavailableError as ct, convertMinor as lt, isRateTable as ut, rateBetween as dt } from "./utils/fx.js";
49
- import ft, { MoneyConversionHint as pt, MoneyCurrencyMenu as mt, useMoneyInput as ht } from "./money-input/index.js";
50
- import gt, { RadioCard as _t } from "./radio-cards/index.js";
51
- import vt, { Pill as yt, PillIndicator as bt } from "./pills/index.js";
52
- import xt from "./page-header/index.js";
53
- import St from "./progress-ring/index.js";
54
- import Ct, { SegmentedItem as wt } from "./segmented/index.js";
55
- import Tt, { SelectGroup as Et, SelectItem as Dt, SelectSeparator as Ot } from "./select/index.js";
56
- import kt, { SideNavGroup as At, SideNavLink as jt } from "./side-nav/index.js";
57
- import Mt from "./skeleton/index.js";
58
- import Nt from "./slider/index.js";
59
- import Pt, { TabBarItem as Ft } from "./tab-bar/index.js";
60
- import It, { TableBody as Lt, TableCell as Rt, TableContainer as zt, TableEmpty as Bt, TableFooter as Vt, TableFooterCell as Ht, TableHead as Ut, TableHeader as Wt, TableRow as Gt, TableSpacerRow as Kt, useSort as qt } from "./table/index.js";
61
- import { followSectionLink as Jt } from "./utils/section-link.js";
62
- import Yt from "./table-of-contents/index.js";
63
- import Xt, { Tab as Zt, TabList as Qt, TabPanel as $t } from "./tabs/index.js";
64
- import { TreeCell as en, TreeLabel as tn, TreeRow as nn, TreeToggle as rn, useTree as an } from "./tree/index.js";
65
- import on from "./textarea/index.js";
66
- import sn from "./toggle/index.js";
67
- import cn, { TooltipContent as ln, TooltipTrigger as un } from "./tooltip/index.js";
68
- import { DEFAULT_THEME as dn, INTENSITIES as fn, PRESETS as pn, applyPreset as mn, applyTheme as hn, contrastRatio as gn, customize as _n, normalizeTheme as vn, oklchToLinearRgb as yn, resetTheme as bn, themeVars as xn } from "./utils/theme.js";
69
- import { prepareThemeWave as Sn, themeWave as Cn } from "./utils/theme-wave.js";
70
- import wn, { ThemeScript as Tn, themeScript as En } from "./theme-toggle/index.js";
71
- import { useHydrated as Dn } from "./utils/useHydrated.js";
72
- import On, { Breadcrumb as kn } from "./breadcrumbs/index.js";
73
- import An from "./code-input/index.js";
74
- import jn, { useCommandPaletteShortcut as Mn } from "./command-palette/index.js";
75
- import Nn from "./empty-state/index.js";
76
- import Pn, { accepts as Fn } from "./file-drop/index.js";
77
- import In, { pageRange as Ln } from "./pagination/index.js";
78
- import Rn from "./sparkline/index.js";
79
- import zn, { Step as Bn } from "./stepper/index.js";
80
- import Vn from "./tag-input/index.js";
81
- import Hn, { TimelineItem as Un } from "./timeline/index.js";
82
- export { W as Alert, y as AnimatedMoney, v as AnimatedNumber, b as Avatar, C as Backdrop, T as Badge, kn as Breadcrumb, On as Breadcrumbs, k as Button, at as Calendar, j as Card, M as CardDescription, N as CardHeader, P as CardTitle, Re as Chart, ze as ChartArea, Be as ChartBar, Ve as ChartLine, He as ChartReference, Ie as ChartTooltipCard, Pe as Checkbox, R as Chip, L as CodeBlock, An as CodeInput, U as Collapse, ee as Combobox, te as ComboboxCreate, ne as ComboboxEmpty, re as ComboboxItem, ie as ComboboxList, ae as ComboboxPopup, oe as ComboboxSearch, se as ComboboxTrigger, jn as CommandPalette, he as ConfirmDialog, dn as DEFAULT_THEME, ot as DatePicker, st as DateRangePicker, de as Dialog, fe as DialogClose, pe as DialogFooter, _e as Disclosure, ve as DisclosureContent, ye as DisclosureTrigger, Le as DonutChart, ge as EditableCell, Nn as EmptyState, G as Field, Q as FieldChevron, Pn as FileDrop, K as FormMessage, be as Header, fn as INTENSITIES, x as ImageCropError, Se as Input, Y as InputGroup, X as InputGroupAddon, Z as InputGroupInput, xe as Inset, i as Menu, a as MenuContent, o as MenuHeader, s as MenuItem, c as MenuSeparator, l as MenuTrigger, Ce as Meter, pt as MoneyConversionHint, mt as MoneyCurrencyMenu, ft as MoneyInput, u as MoneyParseError, Ne as MonthPicker, pn as PRESETS, xt as PageHeader, In as Pagination, yt as Pill, bt as PillIndicator, vt as Pills, z as Popover, B as PopoverClose, V as PopoverContent, H as PopoverTrigger, St as ProgressRing, Ge as Radio, _t as RadioCard, gt as RadioCards, We as RadioGroup, ct as RateUnavailableError, Ct as Segmented, wt as SegmentedItem, Tt as Select, Et as SelectGroup, Dt as SelectItem, Ot as SelectSeparator, kt as SideNav, At as SideNavGroup, jt as SideNavLink, Mt as Skeleton, Nt as Slider, Rn as Sparkline, O as Spinner, F as Stat, I as StatRow, E as StatusPill, D as StatusPillAction, Bn as Step, zn as Stepper, Zt as Tab, Pt as TabBar, Ft as TabBarItem, Qt as TabList, $t as TabPanel, It as Table, Lt as TableBody, Rt as TableCell, zt as TableContainer, Bt as TableEmpty, Vt as TableFooter, Ht as TableFooterCell, Ut as TableHead, Wt as TableHeader, Yt as TableOfContents, Gt as TableRow, Kt as TableSpacerRow, Xt as Tabs, Vn as TagInput, on as TextArea, Tn as ThemeScript, wn as ThemeToggle, Hn as Timeline, Un as TimelineItem, ce as ToastProvider, sn as Toggle, cn as Tooltip, ln as TooltipContent, un as TooltipTrigger, en as TreeCell, tn as TreeLabel, nn as TreeRow, rn as TreeToggle, Fn as accepts, Ke as addDays, we as addMonths, qe as addMonthsToDate, t as applyGraphicsMode, mn as applyPreset, hn as applyTheme, A as buttonVariants, gn as contrastRatio, lt as convertMinor, S as cropImageToSquare, d as currencySymbol, Te as currentMonth, _n as customize, w as cva, e as cx, Je as dayIndex, Ye as dayOfWeek, Xe as daysBetween, Ze as daysInMonth, n as detectGraphicsMode, Jt as followSectionLink, f as formatAmount, Qe as formatDate, $e as formatDateRange, p as formatMoney, Ee as formatMonth, et as fromDayIndex, De as fromMonthIndex, tt as isDate, Oe as isMonth, ut as isRateTable, m as minorDigits, ke as monthIndex, Ae as monthNames, je as monthRange, Me as monthsBetween, Ue as niceTicks, vn as normalizeTheme, yn as oklchToLinearRgb, Ln as pageRange, Fe as paletteColor, h as parseMoney, g as parseMoneyInput, Sn as prepareThemeWave, dt as rateBetween, _ as reducedMotion, bn as resetTheme, En as themeScript, xn as themeVars, Cn as themeWave, nt as today, r as useAnchoredPopup, Mn as useCommandPaletteShortcut, q as useField, J as useFieldProps, Dn as useHydrated, me as useModal, ht as useMoneyInput, qt as useSort, le as useToast, ue as useToastHost, an as useTree, $ as useVirtualList, rt as weekStart, it as weekdayNames };
6
+ import i, { MenuContent as a, MenuContextTrigger as o, MenuHeader as s, MenuItem as c, MenuSeparator as l, MenuTrigger as u } from "./menu/index.js";
7
+ import { MoneyParseError as d, currencySymbol as f, formatAmount as p, formatMoney as m, minorDigits as h, parseMoney as g, parseMoneyInput as _ } from "./utils/money.js";
8
+ import { reducedMotion as v } from "./utils/motion.js";
9
+ import y, { AnimatedMoney as b } from "./animated-number/index.js";
10
+ import x, { ImageCropError as S, cropImageToSquare as C } from "./avatar/index.js";
11
+ import w from "./backdrop/index.js";
12
+ import { cva as T } from "./utils/cva.js";
13
+ import E from "./badge/index.js";
14
+ import D, { StatusPillAction as O } from "./status-pill/index.js";
15
+ import k from "./spinner/index.js";
16
+ import A, { buttonVariants as j } from "./button/index.js";
17
+ import M, { CardDescription as N, CardHeader as P, CardTitle as F, Stat as I, StatRow as L } from "./card/index.js";
18
+ import R from "./code-block/index.js";
19
+ import z from "./chip/index.js";
20
+ import B, { PopoverClose as V, PopoverContent as H, PopoverTrigger as U } from "./popover/index.js";
21
+ import W from "./collapse/index.js";
22
+ import G from "./alert/index.js";
23
+ import K, { FormMessage as q, useField as J, useFieldProps as Y } from "./field/index.js";
24
+ import X, { InputGroupAddon as Z, InputGroupInput as Q } from "./input-group/index.js";
25
+ import { FieldChevron as $ } from "./utils/field-chevron.js";
26
+ import { useVirtualList as ee } from "./utils/useVirtualList.js";
27
+ import te, { ComboboxCreate as ne, ComboboxEmpty as re, ComboboxItem as ie, ComboboxList as ae, ComboboxPopup as oe, ComboboxSearch as se, ComboboxTrigger as ce } from "./combobox/index.js";
28
+ import le, { useToast as ue, useToastHost as de } from "./toast/index.js";
29
+ import fe, { DialogClose as pe, DialogFooter as me, useModal as he } from "./dialog/index.js";
30
+ import ge from "./confirm-dialog/index.js";
31
+ import _e from "./editable-cell/index.js";
32
+ import ve, { DisclosureContent as ye, DisclosureTrigger as be } from "./disclosure/index.js";
33
+ import xe from "./header/index.js";
34
+ import Se from "./inset/index.js";
35
+ import Ce from "./input/index.js";
36
+ import we from "./meter/index.js";
37
+ import { addMonths as Te, currentMonth as Ee, formatMonth as De, fromMonthIndex as Oe, isMonth as ke, monthIndex as Ae, monthNames as je, monthRange as Me, monthsBetween as Ne } from "./utils/month.js";
38
+ import Pe from "./month-picker/index.js";
39
+ import Fe from "./checkbox/index.js";
40
+ import { paletteColor as Ie } from "./chart/palette.js";
41
+ import { ChartTooltipCard as Le } from "./chart/tooltip.js";
42
+ import Re from "./chart/allocation.js";
43
+ import ze from "./chart/donut.js";
44
+ import Be, { ChartArea as Ve, ChartBar as He, ChartLine as Ue, ChartReference as We, niceTicks as Ge } from "./chart/index.js";
45
+ import Ke, { Radio as qe } from "./radio-group/index.js";
46
+ import { addDays as Je, addMonthsToDate as Ye, commonRanges as Xe, dayIndex as Ze, dayOfWeek as Qe, daysBetween as $e, daysInMonth as et, formatDate as tt, formatDateRange as nt, fromDayIndex as rt, isDate as it, today as at, weekStart as ot, weekdayNames as st } from "./utils/date.js";
47
+ import ct from "./calendar/index.js";
48
+ import lt, { DateRangePicker as ut } from "./date-picker/index.js";
49
+ import { RateUnavailableError as dt, convertMinor as ft, isRateTable as pt, rateBetween as mt } from "./utils/fx.js";
50
+ import ht, { MoneyConversionHint as gt, MoneyCurrencyMenu as _t, useMoneyInput as vt } from "./money-input/index.js";
51
+ import yt, { RadioCard as bt } from "./radio-cards/index.js";
52
+ import xt, { Pill as St, PillIndicator as Ct } from "./pills/index.js";
53
+ import wt from "./page-header/index.js";
54
+ import Tt from "./progress-ring/index.js";
55
+ import Et, { SegmentedItem as Dt } from "./segmented/index.js";
56
+ import Ot, { SelectGroup as kt, SelectItem as At, SelectSeparator as jt } from "./select/index.js";
57
+ import Mt, { SideNavGroup as Nt, SideNavLink as Pt } from "./side-nav/index.js";
58
+ import Ft from "./skeleton/index.js";
59
+ import It from "./slider/index.js";
60
+ import Lt, { TabBarItem as Rt } from "./tab-bar/index.js";
61
+ import { SelectionBar as zt, TableSelectCell as Bt, TableSelectHead as Vt, useSelection as Ht } from "./table/selection.js";
62
+ import { TableSwipeAction as Ut, TableSwipeRow as Wt } from "./table/swipe.js";
63
+ import Gt, { TableBody as Kt, TableCell as qt, TableContainer as Jt, TableEmpty as Yt, TableFooter as Xt, TableFooterCell as Zt, TableHead as Qt, TableHeader as $t, TableRow as en, TableSpacerRow as tn, useSort as nn } from "./table/index.js";
64
+ import { followSectionLink as rn } from "./utils/section-link.js";
65
+ import an from "./table-of-contents/index.js";
66
+ import on, { Tab as sn, TabList as cn, TabPanel as ln } from "./tabs/index.js";
67
+ import { TreeCell as un, TreeLabel as dn, TreeRow as fn, TreeToggle as pn, useTree as mn } from "./tree/index.js";
68
+ import hn from "./textarea/index.js";
69
+ import gn from "./toggle/index.js";
70
+ import _n, { TooltipContent as vn, TooltipTrigger as yn } from "./tooltip/index.js";
71
+ import { DEFAULT_THEME as bn, INTENSITIES as xn, PRESETS as Sn, applyPreset as Cn, applyTheme as wn, contrastRatio as Tn, customize as En, normalizeTheme as Dn, oklchToLinearRgb as On, resetTheme as kn, themeVars as An } from "./utils/theme.js";
72
+ import { prepareThemeWave as jn, themeWave as Mn } from "./utils/theme-wave.js";
73
+ import Nn, { ThemeScript as Pn, themeScript as Fn } from "./theme-toggle/index.js";
74
+ import { useHydrated as In } from "./utils/useHydrated.js";
75
+ import Ln, { Breadcrumb as Rn } from "./breadcrumbs/index.js";
76
+ import zn from "./code-input/index.js";
77
+ import Bn, { useCommandPaletteShortcut as Vn } from "./command-palette/index.js";
78
+ import Hn from "./empty-state/index.js";
79
+ import Un, { accepts as Wn } from "./file-drop/index.js";
80
+ import Gn, { pageRange as Kn } from "./pagination/index.js";
81
+ import qn from "./sparkline/index.js";
82
+ import Jn, { Step as Yn } from "./stepper/index.js";
83
+ import Xn from "./tag-input/index.js";
84
+ import Zn, { TimelineItem as Qn } from "./timeline/index.js";
85
+ import $n from "./kbd/index.js";
86
+ import er from "./range-slider/index.js";
87
+ import tr, { FilterChip as nr } from "./filter-bar/index.js";
88
+ import rr from "./keypad/index.js";
89
+ import ir from "./calendar-heatmap/index.js";
90
+ import ar from "./trend/index.js";
91
+ import or, { ICON_COLORS as sr } from "./icon-picker/index.js";
92
+ import { describeRepeat as cr, nextOccurrences as lr } from "./utils/repeat.js";
93
+ import ur from "./repeat-picker/index.js";
94
+ import dr from "./load-more/index.js";
95
+ import { SortableHandle as fr, SortableItem as pr, SortableList as mr } from "./sortable/index.js";
96
+ import hr from "./page-transition/index.js";
97
+ export { G as Alert, Re as AllocationBar, b as AnimatedMoney, y as AnimatedNumber, x as Avatar, w as Backdrop, E as Badge, Rn as Breadcrumb, Ln as Breadcrumbs, A as Button, ct as Calendar, ir as CalendarHeatmap, M as Card, N as CardDescription, P as CardHeader, F as CardTitle, Be as Chart, Ve as ChartArea, He as ChartBar, Ue as ChartLine, We as ChartReference, Le as ChartTooltipCard, Fe as Checkbox, z as Chip, R as CodeBlock, zn as CodeInput, W as Collapse, te as Combobox, ne as ComboboxCreate, re as ComboboxEmpty, ie as ComboboxItem, ae as ComboboxList, oe as ComboboxPopup, se as ComboboxSearch, ce as ComboboxTrigger, Bn as CommandPalette, ge as ConfirmDialog, bn as DEFAULT_THEME, lt as DatePicker, ut as DateRangePicker, fe as Dialog, pe as DialogClose, me as DialogFooter, ve as Disclosure, ye as DisclosureContent, be as DisclosureTrigger, ze as DonutChart, _e as EditableCell, Hn as EmptyState, K as Field, $ as FieldChevron, Un as FileDrop, tr as FilterBar, nr as FilterChip, q as FormMessage, xe as Header, sr as ICON_COLORS, xn as INTENSITIES, or as IconPicker, S as ImageCropError, Ce as Input, X as InputGroup, Z as InputGroupAddon, Q as InputGroupInput, Se as Inset, $n as Kbd, rr as Keypad, dr as LoadMore, i as Menu, a as MenuContent, o as MenuContextTrigger, s as MenuHeader, c as MenuItem, l as MenuSeparator, u as MenuTrigger, we as Meter, gt as MoneyConversionHint, _t as MoneyCurrencyMenu, ht as MoneyInput, d as MoneyParseError, Pe as MonthPicker, Sn as PRESETS, wt as PageHeader, hr as PageTransition, Gn as Pagination, St as Pill, Ct as PillIndicator, xt as Pills, B as Popover, V as PopoverClose, H as PopoverContent, U as PopoverTrigger, Tt as ProgressRing, qe as Radio, bt as RadioCard, yt as RadioCards, Ke as RadioGroup, er as RangeSlider, dt as RateUnavailableError, ur as RepeatPicker, Et as Segmented, Dt as SegmentedItem, Ot as Select, kt as SelectGroup, At as SelectItem, jt as SelectSeparator, zt as SelectionBar, Mt as SideNav, Nt as SideNavGroup, Pt as SideNavLink, Ft as Skeleton, It as Slider, fr as SortableHandle, pr as SortableItem, mr as SortableList, qn as Sparkline, k as Spinner, I as Stat, L as StatRow, D as StatusPill, O as StatusPillAction, Yn as Step, Jn as Stepper, sn as Tab, Lt as TabBar, Rt as TabBarItem, cn as TabList, ln as TabPanel, Gt as Table, Kt as TableBody, qt as TableCell, Jt as TableContainer, Yt as TableEmpty, Xt as TableFooter, Zt as TableFooterCell, Qt as TableHead, $t as TableHeader, an as TableOfContents, en as TableRow, Bt as TableSelectCell, Vt as TableSelectHead, tn as TableSpacerRow, Ut as TableSwipeAction, Wt as TableSwipeRow, on as Tabs, Xn as TagInput, hn as TextArea, Pn as ThemeScript, Nn as ThemeToggle, Zn as Timeline, Qn as TimelineItem, le as ToastProvider, gn as Toggle, _n as Tooltip, vn as TooltipContent, yn as TooltipTrigger, un as TreeCell, dn as TreeLabel, fn as TreeRow, pn as TreeToggle, ar as Trend, Wn as accepts, Je as addDays, Te as addMonths, Ye as addMonthsToDate, t as applyGraphicsMode, Cn as applyPreset, wn as applyTheme, j as buttonVariants, Xe as commonRanges, Tn as contrastRatio, ft as convertMinor, C as cropImageToSquare, f as currencySymbol, Ee as currentMonth, En as customize, T as cva, e as cx, Ze as dayIndex, Qe as dayOfWeek, $e as daysBetween, et as daysInMonth, cr as describeRepeat, n as detectGraphicsMode, rn as followSectionLink, p as formatAmount, tt as formatDate, nt as formatDateRange, m as formatMoney, De as formatMonth, rt as fromDayIndex, Oe as fromMonthIndex, it as isDate, ke as isMonth, pt as isRateTable, h as minorDigits, Ae as monthIndex, je as monthNames, Me as monthRange, Ne as monthsBetween, lr as nextOccurrences, Ge as niceTicks, Dn as normalizeTheme, On as oklchToLinearRgb, Kn as pageRange, Ie as paletteColor, g as parseMoney, _ as parseMoneyInput, jn as prepareThemeWave, mt as rateBetween, v as reducedMotion, kn as resetTheme, Fn as themeScript, An as themeVars, Mn as themeWave, at as today, r as useAnchoredPopup, Vn as useCommandPaletteShortcut, J as useField, Y as useFieldProps, In as useHydrated, he as useModal, vt as useMoneyInput, Ht as useSelection, nn as useSort, ue as useToast, de as useToastHost, mn as useTree, ee as useVirtualList, ot as weekStart, st as weekdayNames };
@@ -0,0 +1,19 @@
1
+ /**
2
+ * The end of a long list that has more: a "Load more" button, which also
3
+ * presses itself when it scrolls into view (`auto`, default). While `loading`
4
+ * it shows a spinner and won't ask again; once there's nothing left
5
+ * (`hasMore` false) it's gone. Put it after the list, or in a table's last row.
6
+ */
7
+ export default function LoadMore({ onLoadMore, hasMore, loading, auto, label, loadingLabel, className, }: LoadMoreProps): import('react').JSX.Element | null;
8
+ export interface LoadMoreProps {
9
+ onLoadMore: () => void;
10
+ hasMore: boolean;
11
+ /** While true, it shows a spinner and won't ask for more. */
12
+ loading?: boolean;
13
+ /** Load when it scrolls into view, not only on press (default true). */
14
+ auto?: boolean;
15
+ label?: string;
16
+ loadingLabel?: string;
17
+ className?: string;
18
+ }
19
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/load-more/index.tsx"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAC7B,UAAU,EACV,OAAO,EACP,OAAe,EACf,IAAW,EACX,KAAmB,EACnB,YAA8B,EAC9B,SAAS,GACZ,EAAE,aAAa,sCAmCf;AAED,MAAM,WAAW,aAAa;IAC1B,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,6DAA6D;IAC7D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,wEAAwE;IACxE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB"}
@@ -0,0 +1,37 @@
1
+ "use client";
2
+ import { cx as e } from "../utils/cx.js";
3
+ import t from "../spinner/index.js";
4
+ import n from "../button/index.js";
5
+ import { useEffect as r, useRef as i } from "react";
6
+ import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
7
+ //#region packages/load-more/index.tsx
8
+ function c({ onLoadMore: c, hasMore: l, loading: u = !1, auto: d = !0, label: f = "Load more", loadingLabel: p = "Loading more…", className: m }) {
9
+ let h = i(null), g = i(c);
10
+ return r(() => {
11
+ g.current = c;
12
+ }), r(() => {
13
+ let e = h.current;
14
+ if (!d || !l || u || !e || typeof IntersectionObserver > "u") return;
15
+ let t = new IntersectionObserver((e) => {
16
+ e.some((e) => e.isIntersecting) && (t.disconnect(), g.current());
17
+ });
18
+ return t.observe(e), () => t.disconnect();
19
+ }, [
20
+ d,
21
+ l,
22
+ u
23
+ ]), l ? /* @__PURE__ */ o("div", {
24
+ ref: h,
25
+ className: e("zen__load-more flex justify-center py-3", m),
26
+ children: /* @__PURE__ */ o(n, {
27
+ variant: "ghost",
28
+ size: "sm",
29
+ "aria-busy": u,
30
+ disabled: u,
31
+ onClick: c,
32
+ children: u ? /* @__PURE__ */ s(a, { children: [/* @__PURE__ */ o(t, { className: "size-3.5" }), p] }) : f
33
+ })
34
+ }) : null;
35
+ }
36
+ //#endregion
37
+ export { c as default };
@@ -4,7 +4,8 @@ import { ComponentProps, ReactNode } from 'react';
4
4
  * clicks and Escape close it and focus returns to the button. Arrow keys, Home
5
5
  * and End move between items. Put a MenuTrigger (its content is yours: an icon,
6
6
  * an avatar, a label) and a MenuContent inside; fill the content with MenuItem,
7
- * MenuSeparator and MenuHeader.
7
+ * MenuSeparator and MenuHeader. For a context menu, put a MenuContextTrigger
8
+ * around what it's for instead of a MenuTrigger.
8
9
  */
9
10
  export default function Menu({ onOpenChange, children }: MenuProps): import('react').JSX.Element;
10
11
  /**
@@ -12,8 +13,20 @@ export default function Menu({ onOpenChange, children }: MenuProps): import('rea
12
13
  * icon or avatar; the menu is named after it. With `asChild`, your own button instead.
13
14
  */
14
15
  export declare function MenuTrigger({ asChild, style, children, ...rest }: MenuTriggerProps): import('react').JSX.Element;
15
- /** The menu panel: glass, below the button (above it if there's no room), lined up with its end edge by default. */
16
+ /**
17
+ * The menu panel: glass, below the button (above it if there's no room), lined
18
+ * up with its end edge by default. A context menu opens from the pointer
19
+ * instead; name it with `aria-label`.
20
+ */
16
21
  export declare function MenuContent({ align, offset, className, style, children, ...rest }: MenuContentProps): import('react').JSX.Element;
22
+ /**
23
+ * What a context menu is for, e.g. a row or a card: right-click (or the
24
+ * keyboard's menu key, or Shift+F10) opens the Menu where the pointer is, and
25
+ * so does a long press on a phone. While its menu is open it has
26
+ * `data-popup-open`, to show what the menu is for. With `asChild`, your own
27
+ * element instead of a div.
28
+ */
29
+ export declare function MenuContextTrigger({ asChild, disabled, className, onContextMenu, onPointerDown, onClickCapture, children, ...rest }: MenuContextTriggerProps): import('react').JSX.Element;
17
30
  /**
18
31
  * One choice in a Menu: closes the menu, then runs `onSelect`. An `icon` sits
19
32
  * before the label (muted, or red with the label when `destructive`). With
@@ -36,8 +49,14 @@ export interface MenuTriggerProps extends ComponentProps<'button'> {
36
49
  /** Put the trigger's props on your own button element instead of rendering one. */
37
50
  asChild?: boolean;
38
51
  }
52
+ export interface MenuContextTriggerProps extends ComponentProps<'div'> {
53
+ /** Put its props on your own element (the single child) instead of a div. */
54
+ asChild?: boolean;
55
+ /** Leave the browser's own context menu. */
56
+ disabled?: boolean;
57
+ }
39
58
  export interface MenuContentProps extends ComponentProps<'div'> {
40
- /** Which edge of the button the menu lines up with (default end), or centred on it. */
59
+ /** Which edge of the button the menu lines up with (default end; a context menu starts at the pointer), or centred on it. */
41
60
  align?: 'start' | 'end' | 'center';
42
61
  /** Gap between the button and the menu, in px. */
43
62
  offset?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/menu/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAA4C,SAAS,EAAqB,MAAM,OAAO,CAAC;AAkB/G;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,EAAE,YAAY,EAAE,QAAQ,EAAE,EAAE,SAAS,+BAejE;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,gBAAgB,+BAelF;AAED,oHAAoH;AACpH,wBAAgB,WAAW,CAAC,EAAE,KAAa,EAAE,MAAU,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,gBAAgB,+BA2C/G;AAKD;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,EACrB,IAAI,EACJ,WAAW,EACX,QAAQ,EACR,OAAO,EACP,SAAS,EACT,QAAQ,EACR,OAAO,EACP,GAAG,IAAI,EACV,EAAE,aAAa,+BAwBf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