@flamingo-stack/openframe-frontend-core 0.0.514 → 0.0.515-1648.4251.1

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 (102) hide show
  1. package/dist/{chunk-MFRG4Q2T.js → chunk-5RHFQ4JG.js} +36 -9
  2. package/dist/{chunk-MFRG4Q2T.js.map → chunk-5RHFQ4JG.js.map} +1 -1
  3. package/dist/{chunk-4ZUZKMTK.js → chunk-5WKVLIP3.js} +2 -2
  4. package/dist/{chunk-IXMIDBH7.cjs → chunk-5YX7F5G6.cjs} +37 -37
  5. package/dist/{chunk-IXMIDBH7.cjs.map → chunk-5YX7F5G6.cjs.map} +1 -1
  6. package/dist/{chunk-JFNRNKHA.cjs → chunk-7PGYALRK.cjs} +31 -31
  7. package/dist/{chunk-JFNRNKHA.cjs.map → chunk-7PGYALRK.cjs.map} +1 -1
  8. package/dist/{chunk-JX3Z3FL7.cjs → chunk-7QYBXWYI.cjs} +4 -4
  9. package/dist/{chunk-JX3Z3FL7.cjs.map → chunk-7QYBXWYI.cjs.map} +1 -1
  10. package/dist/{chunk-NRS7WK5A.cjs → chunk-AW66QABG.cjs} +3 -3
  11. package/dist/{chunk-NRS7WK5A.cjs.map → chunk-AW66QABG.cjs.map} +1 -1
  12. package/dist/{chunk-3ZD4SMZU.cjs → chunk-B6YOWMZF.cjs} +87 -87
  13. package/dist/{chunk-3ZD4SMZU.cjs.map → chunk-B6YOWMZF.cjs.map} +1 -1
  14. package/dist/{chunk-KSUKPZZ7.cjs → chunk-C646ZLOV.cjs} +26 -26
  15. package/dist/{chunk-KSUKPZZ7.cjs.map → chunk-C646ZLOV.cjs.map} +1 -1
  16. package/dist/{chunk-4RNPMT4R.cjs → chunk-E4IB3CTA.cjs} +14 -14
  17. package/dist/{chunk-4RNPMT4R.cjs.map → chunk-E4IB3CTA.cjs.map} +1 -1
  18. package/dist/{chunk-SFDUS3OE.js → chunk-IA4USSHI.js} +5 -5
  19. package/dist/{chunk-7AQSXQEL.js → chunk-IVTENGMF.js} +5 -2
  20. package/dist/{chunk-7AQSXQEL.js.map → chunk-IVTENGMF.js.map} +1 -1
  21. package/dist/{chunk-4J6RPYDD.js → chunk-J4AL3YOT.js} +2 -2
  22. package/dist/{chunk-AWYGNKF3.cjs → chunk-JT7FFD3R.cjs} +5 -5
  23. package/dist/{chunk-AWYGNKF3.cjs.map → chunk-JT7FFD3R.cjs.map} +1 -1
  24. package/dist/{chunk-5BAGE7AI.cjs → chunk-K26W23C2.cjs} +5 -2
  25. package/dist/chunk-K26W23C2.cjs.map +1 -0
  26. package/dist/{chunk-LF544M72.cjs → chunk-LBIWRR75.cjs} +61 -61
  27. package/dist/{chunk-LF544M72.cjs.map → chunk-LBIWRR75.cjs.map} +1 -1
  28. package/dist/{chunk-OWTY6TBV.js → chunk-MHW4WBMB.js} +4 -4
  29. package/dist/{chunk-PHKKQ3MC.js → chunk-MTII5NXM.js} +6 -6
  30. package/dist/{chunk-V4LFZGGX.js → chunk-NVMRBO7R.js} +2 -2
  31. package/dist/{chunk-MTC6GZIG.cjs → chunk-OUPSNYRI.cjs} +26 -26
  32. package/dist/{chunk-MTC6GZIG.cjs.map → chunk-OUPSNYRI.cjs.map} +1 -1
  33. package/dist/{chunk-IOKEKWPA.js → chunk-P57FCOI6.js} +2 -2
  34. package/dist/{chunk-QRL3GOQD.cjs → chunk-QHTFPOEL.cjs} +7 -7
  35. package/dist/{chunk-QRL3GOQD.cjs.map → chunk-QHTFPOEL.cjs.map} +1 -1
  36. package/dist/{chunk-PGW5MI4I.cjs → chunk-RK6YSRIC.cjs} +11 -11
  37. package/dist/{chunk-PGW5MI4I.cjs.map → chunk-RK6YSRIC.cjs.map} +1 -1
  38. package/dist/{chunk-P7T2VPUP.js → chunk-S7YXEFDC.js} +2 -2
  39. package/dist/{chunk-3KWXCPJ4.js → chunk-U7RF7YXN.js} +2 -2
  40. package/dist/{chunk-GRRLIALM.cjs → chunk-UEIW2ISS.cjs} +36 -9
  41. package/dist/chunk-UEIW2ISS.cjs.map +1 -0
  42. package/dist/{chunk-DWCGF6DS.js → chunk-WQ4QJWEE.js} +2 -2
  43. package/dist/{chunk-T2J3BDYT.js → chunk-XAAF6UPI.js} +2 -2
  44. package/dist/{chunk-EEJ5RVUJ.js → chunk-XM5DPWKV.js} +4 -4
  45. package/dist/{chunk-DENHGZNV.js → chunk-Y4LJ52RB.js} +2 -2
  46. package/dist/{chunk-2R4HUBA5.cjs → chunk-YY4FGIRU.cjs} +9 -9
  47. package/dist/{chunk-2R4HUBA5.cjs.map → chunk-YY4FGIRU.cjs.map} +1 -1
  48. package/dist/components/calendar.cjs +2 -2
  49. package/dist/components/calendar.d.ts.map +1 -1
  50. package/dist/components/calendar.js +1 -1
  51. package/dist/components/case-studies/index.cjs +8 -8
  52. package/dist/components/case-studies/index.js +2 -2
  53. package/dist/components/chat/index.cjs +2 -2
  54. package/dist/components/chat/index.js +1 -1
  55. package/dist/components/contact/index.cjs +3 -3
  56. package/dist/components/contact/index.js +2 -2
  57. package/dist/components/docs/index.cjs +5 -5
  58. package/dist/components/docs/index.js +4 -4
  59. package/dist/components/embeds/index.cjs +3 -3
  60. package/dist/components/embeds/index.js +2 -2
  61. package/dist/components/faq/index.cjs +3 -3
  62. package/dist/components/faq/index.js +2 -2
  63. package/dist/components/features/index.cjs +2 -2
  64. package/dist/components/features/index.js +1 -1
  65. package/dist/components/help-center-pages/index.cjs +22 -22
  66. package/dist/components/help-center-pages/index.js +13 -13
  67. package/dist/components/index.cjs +132 -132
  68. package/dist/components/index.js +11 -11
  69. package/dist/components/meeting-scheduler/index.cjs +36 -36
  70. package/dist/components/meeting-scheduler/index.js +4 -4
  71. package/dist/components/navigation/index.cjs +2 -2
  72. package/dist/components/navigation/index.js +1 -1
  73. package/dist/components/onboarding-guides/index.cjs +5 -5
  74. package/dist/components/onboarding-guides/index.js +4 -4
  75. package/dist/components/related-content/index.cjs +3 -3
  76. package/dist/components/related-content/index.js +2 -2
  77. package/dist/components/tickets/index.cjs +6 -6
  78. package/dist/components/tickets/index.js +5 -5
  79. package/dist/components/ui/date-picker.d.ts.map +1 -1
  80. package/dist/components/ui/index.cjs +2 -2
  81. package/dist/components/ui/index.js +1 -1
  82. package/dist/index.cjs +2 -2
  83. package/dist/index.js +1 -1
  84. package/package.json +1 -1
  85. package/src/components/calendar.tsx +5 -1
  86. package/src/components/ui/__tests__/date-picker-bounds.test.tsx +120 -0
  87. package/src/components/ui/date-picker.tsx +64 -8
  88. package/dist/chunk-5BAGE7AI.cjs.map +0 -1
  89. package/dist/chunk-GRRLIALM.cjs.map +0 -1
  90. /package/dist/{chunk-4ZUZKMTK.js.map → chunk-5WKVLIP3.js.map} +0 -0
  91. /package/dist/{chunk-SFDUS3OE.js.map → chunk-IA4USSHI.js.map} +0 -0
  92. /package/dist/{chunk-4J6RPYDD.js.map → chunk-J4AL3YOT.js.map} +0 -0
  93. /package/dist/{chunk-OWTY6TBV.js.map → chunk-MHW4WBMB.js.map} +0 -0
  94. /package/dist/{chunk-PHKKQ3MC.js.map → chunk-MTII5NXM.js.map} +0 -0
  95. /package/dist/{chunk-V4LFZGGX.js.map → chunk-NVMRBO7R.js.map} +0 -0
  96. /package/dist/{chunk-IOKEKWPA.js.map → chunk-P57FCOI6.js.map} +0 -0
  97. /package/dist/{chunk-P7T2VPUP.js.map → chunk-S7YXEFDC.js.map} +0 -0
  98. /package/dist/{chunk-3KWXCPJ4.js.map → chunk-U7RF7YXN.js.map} +0 -0
  99. /package/dist/{chunk-DWCGF6DS.js.map → chunk-WQ4QJWEE.js.map} +0 -0
  100. /package/dist/{chunk-T2J3BDYT.js.map → chunk-XAAF6UPI.js.map} +0 -0
  101. /package/dist/{chunk-EEJ5RVUJ.js.map → chunk-XM5DPWKV.js.map} +0 -0
  102. /package/dist/{chunk-DENHGZNV.js.map → chunk-Y4LJ52RB.js.map} +0 -0
@@ -17831,7 +17831,7 @@ var formatDateRange2 = (range, formatFn) => {
17831
17831
  if (!range.to) return formatFn(range.from);
17832
17832
  return `${formatFn(range.from)} - ${formatFn(range.to)}`;
17833
17833
  };
17834
- function CalendarNavButton({ direction, onClick, "aria-label": ariaLabel }) {
17834
+ function CalendarNavButton({ direction, onClick, disabled, "aria-label": ariaLabel }) {
17835
17835
  return /* @__PURE__ */ jsx111(
17836
17836
  Button,
17837
17837
  {
@@ -17839,6 +17839,7 @@ function CalendarNavButton({ direction, onClick, "aria-label": ariaLabel }) {
17839
17839
  variant: "outline",
17840
17840
  size: "icon",
17841
17841
  onClick,
17842
+ disabled,
17842
17843
  "aria-label": ariaLabel,
17843
17844
  leftIcon: direction === "left" ? /* @__PURE__ */ jsx111(ChevronLeft, { className: "size-6" }) : /* @__PURE__ */ jsx111(ChevronRight2, { className: "size-6" })
17844
17845
  }
@@ -17925,7 +17926,21 @@ function DatePickerCalendar({
17925
17926
  mode === "range" && "range-selected"
17926
17927
  ),
17927
17928
  outside: "text-ods-border opacity-50 hover:!bg-transparent",
17928
- disabled: "text-ods-border cursor-not-allowed hover:!bg-transparent",
17929
+ // Out of bounds: greyed, un-hoverable, and not-allowed under the cursor.
17930
+ //
17931
+ // Every rule here is `!`, and the inner button is targeted explicitly —
17932
+ // neither is decoration. react-day-picker CONCATENATES the modifier's classes
17933
+ // onto the base `day` ones (no tailwind-merge), so `text-ods-text-disabled`
17934
+ // and `text-ods-text-primary` both land on the cell and the winner comes down
17935
+ // to their order in the generated stylesheet, not in the attribute; without
17936
+ // `!` the disabled day rendered in full white, indistinguishable from a
17937
+ // selectable one. The cursor needs the child selector on top of that: it is
17938
+ // the `day_button` INSIDE the cell that carries `cursor-pointer`, and a
17939
+ // `disabled` <button> does not inherit the cell's cursor on its own.
17940
+ disabled: cn(
17941
+ "!text-ods-text-disabled !cursor-not-allowed hover:!bg-transparent",
17942
+ "[&>button]:!cursor-not-allowed [&>button]:!text-ods-text-disabled"
17943
+ ),
17929
17944
  hidden: "invisible",
17930
17945
  // Range styles matching Figma design:
17931
17946
  // - range_start: bright yellow #ffc008, bold, left radius (full radius if single selection)
@@ -17945,6 +17960,16 @@ function DatePickerCalendar({
17945
17960
  const [month, setMonth] = React49.useState(
17946
17961
  mode === "single" ? selected || today : selected?.from || today
17947
17962
  );
17963
+ const disabledDays = React49.useMemo(() => {
17964
+ const matchers = [];
17965
+ if (fromDate) matchers.push({ before: fromDate });
17966
+ if (toDate3) matchers.push({ after: toDate3 });
17967
+ return matchers;
17968
+ }, [fromDate, toDate3]);
17969
+ const monthIndex = (date) => date.getFullYear() * 12 + date.getMonth();
17970
+ const lastVisibleMonth = monthIndex(month) + (monthsToShow === 2 ? 1 : 0);
17971
+ const canGoPrevious = !fromDate || monthIndex(month) > monthIndex(fromDate);
17972
+ const canGoNext = !toDate3 || lastVisibleMonth < monthIndex(toDate3);
17948
17973
  const handlePreviousMonth = () => {
17949
17974
  setMonth((prev) => {
17950
17975
  const newMonth = new Date(prev);
@@ -18004,6 +18029,7 @@ function DatePickerCalendar({
18004
18029
  {
18005
18030
  direction: "left",
18006
18031
  onClick: handlePreviousMonth,
18032
+ disabled: !canGoPrevious,
18007
18033
  "aria-label": "Previous month"
18008
18034
  }
18009
18035
  ),
@@ -18013,6 +18039,7 @@ function DatePickerCalendar({
18013
18039
  {
18014
18040
  direction: "right",
18015
18041
  onClick: handleNextMonth,
18042
+ disabled: !canGoNext,
18016
18043
  "aria-label": "Next month"
18017
18044
  }
18018
18045
  )
@@ -18028,8 +18055,7 @@ function DatePickerCalendar({
18028
18055
  classNames,
18029
18056
  showOutsideDays: true,
18030
18057
  fixedWeeks: true,
18031
- fromDate,
18032
- toDate: toDate3,
18058
+ disabled: disabledDays,
18033
18059
  locale,
18034
18060
  hideNavigation: true
18035
18061
  }
@@ -18051,6 +18077,7 @@ function DatePickerCalendar({
18051
18077
  {
18052
18078
  direction: "left",
18053
18079
  onClick: handlePreviousMonth,
18080
+ disabled: !canGoPrevious,
18054
18081
  "aria-label": "Previous month"
18055
18082
  }
18056
18083
  ),
@@ -18060,6 +18087,7 @@ function DatePickerCalendar({
18060
18087
  {
18061
18088
  direction: "right",
18062
18089
  onClick: handleNextMonth,
18090
+ disabled: !canGoNext,
18063
18091
  "aria-label": "Next month"
18064
18092
  }
18065
18093
  ),
@@ -18079,8 +18107,7 @@ function DatePickerCalendar({
18079
18107
  classNames,
18080
18108
  showOutsideDays: true,
18081
18109
  fixedWeeks: true,
18082
- fromDate,
18083
- toDate: toDate3,
18110
+ disabled: disabledDays,
18084
18111
  locale,
18085
18112
  hideNavigation: true
18086
18113
  }
@@ -18095,6 +18122,7 @@ function DatePickerCalendar({
18095
18122
  {
18096
18123
  direction: "right",
18097
18124
  onClick: handleNextMonth,
18125
+ disabled: !canGoNext,
18098
18126
  "aria-label": "Next month"
18099
18127
  }
18100
18128
  )
@@ -18112,8 +18140,7 @@ function DatePickerCalendar({
18112
18140
  classNames,
18113
18141
  showOutsideDays: true,
18114
18142
  fixedWeeks: true,
18115
- fromDate,
18116
- toDate: toDate3,
18143
+ disabled: disabledDays,
18117
18144
  locale,
18118
18145
  hideNavigation: true
18119
18146
  }
@@ -61009,4 +61036,4 @@ export {
61009
61036
  LogsList,
61010
61037
  assets
61011
61038
  };
61012
- //# sourceMappingURL=chunk-MFRG4Q2T.js.map
61039
+ //# sourceMappingURL=chunk-5RHFQ4JG.js.map