scorer-ui-kit 3.0.4 → 3.0.5

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.
@@ -2,7 +2,7 @@ import { a as Icon, c as animation, d as dimensions, f as fontFamily, i as Spinn
2
2
  import styled, { createGlobalStyle, css, keyframes } from "styled-components";
3
3
  import React, { Children, Fragment, cloneElement, createContext, isValidElement, useCallback, useContext, useEffect, useImperativeHandle, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react";
4
4
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
5
- import ReactDom from "react-dom";
5
+ import ReactDOM from "react-dom";
6
6
  import { add, addMonths, eachDayOfInterval, eachWeekOfInterval, endOfDay, endOfMonth, endOfWeek, format, intervalToDuration, isAfter, isEqual, isSameDay, isSameMonth, isToday, isWithinInterval, min, set, startOfDay, startOfMonth } from "date-fns";
7
7
  import { Link, useLocation, useNavigate } from "react-router-dom";
8
8
  import { enUS, ja } from "date-fns/locale";
@@ -2726,7 +2726,7 @@ var Notification = ({ id, type = "info", message, icon = "", isPinned = false, a
2726
2726
  }
2727
2727
  };
2728
2728
  }, []);
2729
- return message && !dismiss ? ReactDom.createPortal(/* @__PURE__ */ jsxs(Container$71, {
2729
+ return message && !dismiss ? ReactDOM.createPortal(/* @__PURE__ */ jsxs(Container$71, {
2730
2730
  $type: type,
2731
2731
  $isClosing: slideUp,
2732
2732
  $isVisible: isVisible,
@@ -2978,7 +2978,7 @@ var Tooltip = ({ icon, message, type, tooltipFor, tooltipPosition, maxWidth }) =
2978
2978
  updateCoords
2979
2979
  ]);
2980
2980
  if (!visible || !coords) return null;
2981
- return ReactDom.createPortal(/* @__PURE__ */ jsxs(TooltipWrapper, {
2981
+ return ReactDOM.createPortal(/* @__PURE__ */ jsxs(TooltipWrapper, {
2982
2982
  ref: tooltipRef,
2983
2983
  $maxWidth: maxWidth,
2984
2984
  $directionStyle: getDirectionStyle(tooltipPosition || dynamicPosition, coords),
@@ -5724,7 +5724,7 @@ var CropTool = ({ title = "Crop Image", cancelBtnTxt = "Cancel", cropBtnTxt = "C
5724
5724
  if (!viewDimensions.isResizing) return;
5725
5725
  viewDimensions.isResizing = false;
5726
5726
  }, []);
5727
- return ReactDom.createPortal(/* @__PURE__ */ jsx(Container$57, { children: /* @__PURE__ */ jsxs(InnerContainer$1, { children: [/* @__PURE__ */ jsxs(ToolHeader, { children: [/* @__PURE__ */ jsxs(TextGroup$1, { children: [/* @__PURE__ */ jsx(Icon, {
5727
+ return ReactDOM.createPortal(/* @__PURE__ */ jsx(Container$57, { children: /* @__PURE__ */ jsxs(InnerContainer$1, { children: [/* @__PURE__ */ jsxs(ToolHeader, { children: [/* @__PURE__ */ jsxs(TextGroup$1, { children: [/* @__PURE__ */ jsx(Icon, {
5728
5728
  icon: "Crop",
5729
5729
  size: 20,
5730
5730
  color: "mono"
@@ -6208,7 +6208,7 @@ var Modal = ({ isOpen = false, isCloseEnable = true, closeText = "", width = "",
6208
6208
  if (dismissCallback) dismissCallback();
6209
6209
  onDismiss();
6210
6210
  }, [onDismiss, dismissCallback]);
6211
- return isOpen ? ReactDom.createPortal(/* @__PURE__ */ jsx(Container$55, { children: /* @__PURE__ */ jsxs(LightBox, {
6211
+ return isOpen ? ReactDOM.createPortal(/* @__PURE__ */ jsx(Container$55, { children: /* @__PURE__ */ jsxs(LightBox, {
6212
6212
  ref: lightBoxRef,
6213
6213
  $width: width,
6214
6214
  $padding: padding,
@@ -12822,19 +12822,20 @@ var Menu = styled.div`
12822
12822
  flex-direction: column;
12823
12823
  align-items: stretch;
12824
12824
  min-width: 216px;
12825
- padding: 4px 0;
12825
+ padding: 0;
12826
+ overflow: hidden;
12826
12827
  background: var(--grey-1);
12827
- border: 1px solid var(--grey-4);
12828
+ border: 1px solid var(--grey-7);
12828
12829
  border-radius: 4px;
12829
12830
  box-shadow: 0px 5px 25px 0px var(--filter-button-shadow-color);
12830
12831
  `;
12831
12832
  var MenuItem = styled.button`
12832
12833
  display: flex;
12833
12834
  align-items: center;
12834
- gap: 4px;
12835
+ gap: 12px;
12835
12836
  width: 100%;
12836
12837
  height: var(--button-height, 32px);
12837
- padding: 3px 8px;
12838
+ padding: 0 8px;
12838
12839
  border: none;
12839
12840
  border-bottom: 1px solid var(--grey-7);
12840
12841
  background: transparent;
@@ -12847,11 +12848,15 @@ var MenuItem = styled.button`
12847
12848
  text-align: left;
12848
12849
  transition: background-color var(--speed-fast) var(--easing-primary-in-out);
12849
12850
 
12850
- & svg [stroke] { stroke: var(--grey-12); }
12851
+ & svg [stroke] { stroke: var(--grey-10); }
12851
12852
 
12852
12853
  &:last-child { border-bottom: none; }
12853
12854
  &:hover:enabled { background-color: var(--grey-3); }
12854
- &:disabled { cursor: not-allowed; opacity: 0.5; }
12855
+ &:disabled {
12856
+ cursor: not-allowed;
12857
+ color: var(--grey-7);
12858
+ & svg [stroke] { stroke: var(--grey-7); }
12859
+ }
12855
12860
 
12856
12861
  ${({ $current }) => $current && css`
12857
12862
  background-color: var(--grey-4);
@@ -12861,6 +12866,8 @@ var MenuItem = styled.button`
12861
12866
  var CheckSlot = styled.span`
12862
12867
  display: flex;
12863
12868
  margin-left: auto;
12869
+
12870
+ & svg [stroke] { stroke: var(--primary-11); }
12864
12871
  `;
12865
12872
  var ChipDropdown = ({ items, icon = "FilterEllipsis", label, selectedId, checkIcon = "Success", triggerLabel, noDivider = false, disabled = false, onOpenChange, onKeyDown, ...props }) => {
12866
12873
  const [isOpen, setIsOpen] = useState(false);
@@ -14996,7 +15003,7 @@ var TopBar = ({ hasNotifications = false, hasLanguage = false, selectedLanguageT
14996
15003
  })
14997
15004
  ] })] })] }),
14998
15005
  bottomAreaElement ? /* @__PURE__ */ jsx(BottomArea, { children: bottomAreaElement }) : null,
14999
- ReactDom.createPortal(/* @__PURE__ */ jsxs(DrawerPortalWrapper, { children: [
15006
+ ReactDOM.createPortal(/* @__PURE__ */ jsxs(DrawerPortalWrapper, { children: [
15000
15007
  /* @__PURE__ */ jsx(Drawer, {
15001
15008
  $isOpen: openDrawer === "user",
15002
15009
  children: /* @__PURE__ */ jsx(UserMenu, {
@@ -15641,7 +15648,7 @@ var MainMenu = ({ content, home = "/", logoMark, logoText, keepOpenText = "Keep
15641
15648
  }, [focusedContext]);
15642
15649
  return /* @__PURE__ */ jsx(PushContainer, {
15643
15650
  $isPinned: menuState.isMenuPinned,
15644
- children: ReactDom.createPortal(/* @__PURE__ */ jsx(Container$9, {
15651
+ children: ReactDOM.createPortal(/* @__PURE__ */ jsx(Container$9, {
15645
15652
  $open: menuState.isMenuOpen,
15646
15653
  $desktopSize: menuState.desktopSize,
15647
15654
  onPointerEnter: menuState.isMenuPinned ? () => {} : autoMenuOpen,