@atom-learning/components 6.14.0 → 6.14.4

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.
package/dist/index.cjs.js CHANGED
@@ -67,8 +67,8 @@ let _dnd_kit_core = require("@dnd-kit/core");
67
67
  let _radix_ui_react_popover = require("@radix-ui/react-popover");
68
68
  let dayjs = require("dayjs");
69
69
  dayjs = __toESM(dayjs);
70
- let dayjs_plugin_customParseFormat = require("dayjs/plugin/customParseFormat");
71
- dayjs_plugin_customParseFormat = __toESM(dayjs_plugin_customParseFormat);
70
+ let dayjs_plugin_customParseFormat_js = require("dayjs/plugin/customParseFormat.js");
71
+ dayjs_plugin_customParseFormat_js = __toESM(dayjs_plugin_customParseFormat_js);
72
72
  let dayzed = require("dayzed");
73
73
  let _radix_ui_react_dialog = require("@radix-ui/react-dialog");
74
74
  let _radix_ui_react_dropdown_menu = require("@radix-ui/react-dropdown-menu");
@@ -88,8 +88,8 @@ _radix_ui_react_switch = __toESM(_radix_ui_react_switch);
88
88
  let _radix_ui_react_tabs = require("@radix-ui/react-tabs");
89
89
  let react_hot_toast = require("react-hot-toast");
90
90
  react_hot_toast = __toESM(react_hot_toast);
91
- let react_player_vimeo = require("react-player/vimeo");
92
- react_player_vimeo = __toESM(react_player_vimeo);
91
+ let react_player_vimeo_js = require("react-player/vimeo.js");
92
+ react_player_vimeo_js = __toESM(react_player_vimeo_js);
93
93
  //#region src/styled.tsx
94
94
  tailwind_variants.defaultConfig.twMerge = false;
95
95
  var isArbitraryNumber = (value) => /^\[[\d.]+\]$/.test(value) || !Number.isNaN(Number(value));
@@ -465,7 +465,12 @@ TooltipComponent.displayName = "Tooltip";
465
465
  //#endregion
466
466
  //#region src/utilities/optional-tooltip-wrapper/OptionalTooltipWrapper.tsx
467
467
  var OptionalTooltipWrapper = ({ hasTooltip, label, tooltipSide, children }) => {
468
- if (hasTooltip) return /* @__PURE__ */ react.createElement(Tooltip, null, /* @__PURE__ */ react.createElement(Tooltip.Trigger, { asChild: true }, children), /* @__PURE__ */ react.createElement(Tooltip.Content, { side: tooltipSide }, label));
468
+ if (hasTooltip) return /* @__PURE__ */ react.createElement(Tooltip, null, /* @__PURE__ */ react.createElement(Tooltip.Trigger, {
469
+ asChild: true,
470
+ onFocus: (e) => {
471
+ if (!e.currentTarget.matches(":focus-visible")) e.preventDefault();
472
+ }
473
+ }, children), /* @__PURE__ */ react.createElement(Tooltip.Content, { side: tooltipSide }, label));
469
474
  return /* @__PURE__ */ react.createElement(react.Fragment, null, children);
470
475
  };
471
476
  OptionalTooltipWrapper.displayName = "OptionalTooltipWrapper";
@@ -5607,7 +5612,7 @@ Calendar.displayName = "Calendar";
5607
5612
  var DEFAULT_DATE_FORMAT = "DD/MM/YYYY";
5608
5613
  //#endregion
5609
5614
  //#region src/components/date-input/DateInput.tsx
5610
- dayjs.default.extend(dayjs_plugin_customParseFormat.default);
5615
+ dayjs.default.extend(dayjs_plugin_customParseFormat_js.default);
5611
5616
  var formatDateToString = (date, dateFormat = DEFAULT_DATE_FORMAT) => date ? (0, dayjs.default)(date).format(dateFormat) : "";
5612
5617
  var DateInput = react.forwardRef(({ initialDate, dateFormat = DEFAULT_DATE_FORMAT, firstDayOfWeek = 1, disabled, monthNames, weekdayNames, size = "md", appearance, theme, labels, revalidate, onChange, minDate, maxDate, ...remainingProps }, ref) => {
5613
5618
  const [date, setDate] = react.useState(initialDate ? (0, dayjs.default)(initialDate).toDate() : void 0);
@@ -9460,7 +9465,7 @@ TopBarComponent.displayName = "TopBar";
9460
9465
  var Video = react.forwardRef(({ id, ratio = 9 / 16, className, ...remainingProps }, ref) => /* @__PURE__ */ react.createElement(CSSWrapper, { className }, /* @__PURE__ */ react.createElement("div", {
9461
9466
  style: { "--ratio": `${ratio * 100}%` },
9462
9467
  className: "relative h-0 w-full overflow-hidden rounded-sm pt-(--ratio)"
9463
- }, /* @__PURE__ */ react.createElement(react_player_vimeo.default, {
9468
+ }, /* @__PURE__ */ react.createElement(react_player_vimeo_js.default, {
9464
9469
  ...remainingProps,
9465
9470
  role: "figure",
9466
9471
  url: `https://player.vimeo.com/video/${id}`,