@sia.soul/sia-react-ui 0.1.166 → 0.1.167

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 (40) hide show
  1. package/dist/chart.cjs +4553 -4513
  2. package/dist/chart.d.cts +1850 -1843
  3. package/dist/chart.d.ts +1850 -1843
  4. package/dist/chart.js +1 -1
  5. package/dist/chunk-2FZI7TP6.js +0 -0
  6. package/dist/{chunk-T2F6X3LA.js → chunk-5CGJVE4C.js} +26 -22
  7. package/dist/{chunk-2EC653G5.js → chunk-5KTQXNGL.js} +2 -2
  8. package/dist/{chunk-NHGCGOF2.js → chunk-A7TLMWMM.js} +4754 -4714
  9. package/dist/{chunk-G5EJJFUI.js → chunk-FSO46WEJ.js} +14 -6
  10. package/dist/{chunk-SX4LLT3H.js → chunk-KDNOLFDJ.js} +2 -2
  11. package/dist/{chunk-DKQ5UCN6.js → chunk-S6FA6NN3.js} +519 -220
  12. package/dist/{chunk-23FQ5ARA.js → chunk-XS7AVCHO.js} +27 -17
  13. package/dist/{core-Cnt8r6pj.d.cts → core-C7Was4Vc.d.cts} +6 -9
  14. package/dist/{core-Dy8NWJ1b.d.ts → core-D7C32Rdq.d.ts} +6 -9
  15. package/dist/core.cjs +83 -61
  16. package/dist/core.css +3135 -5340
  17. package/dist/core.d.cts +1 -1
  18. package/dist/core.d.ts +1 -1
  19. package/dist/core.js +4 -4
  20. package/dist/game.cjs +14 -6
  21. package/dist/game.css +1666 -3147
  22. package/dist/game.js +1 -1
  23. package/dist/index.cjs +6625 -6197
  24. package/dist/index.css +8733 -8560
  25. package/dist/index.d.cts +126 -110
  26. package/dist/index.d.ts +126 -110
  27. package/dist/index.js +817 -749
  28. package/dist/markdown-editor.css +461 -0
  29. package/dist/markdown-editor.js +2 -1
  30. package/dist/rich-text-editor.cjs +38 -20
  31. package/dist/rich-text-editor.css +461 -0
  32. package/dist/rich-text-editor.js +4 -3
  33. package/dist/{select-date-range-E1N5-oXv.d.ts → select-date-range-AOleKBXc.d.ts} +6 -9
  34. package/dist/{select-date-range-BnlISSPV.d.cts → select-date-range-BtTkMElI.d.cts} +6 -9
  35. package/dist/select-date-range.cjs +529 -222
  36. package/dist/select-date-range.d.cts +1 -1
  37. package/dist/select-date-range.d.ts +1 -1
  38. package/dist/select-date-range.js +4 -4
  39. package/package.json +5 -1
  40. /package/dist/{chunk-V4I32DPL.js → chunk-GKWSCL5Q.js} +0 -0
package/dist/core.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- export { d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, h as Card, i as CardAccent, j as CardProps, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, I as FloatingScrollbarProvider, J as FloatingScrollbarProviderProps, M as Icon, N as IconName, O as IconProps, P as IconVariant, Y as Input, Z as InputProps, a4 as MessageConfig, a5 as MessageHandle, a6 as MessageKey, a7 as MessageType, af as Progress, ag as ProgressProps, ah as ProgressStatus, ak as Result, al as ResultProps, am as ResultStatus, an as Segmented, ao as SegmentedOption, ap as SegmentedProps, aq as SegmentedValue, ar as Skeleton, as as SkeletonProps, az as TabItem, aA as Tabs, aC as TabsOrientation, aD as TabsPosition, aE as TabsProps, aF as TabsType, aG as Tag, aH as TagProps, aI as TagSize, T as TagStatus, aJ as TagVariant, aN as Toolbar, aO as ToolbarItem, aP as ToolbarProps, a_ as Typography, a$ as TypographyLinkProps, b0 as TypographyProps, b1 as TypographyTitleProps, b2 as TypographyType, b3 as Upload, b4 as UploadChangeInfo, b5 as UploadDraggerProps, b6 as UploadFile, b7 as UploadFileStatus, ba as UploadProps, be as UploadRequestOptions, bi as message } from './core-Cnt8r6pj.cjs';
1
+ export { d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, h as Card, i as CardAccent, j as CardProps, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, I as FloatingScrollbarProvider, J as FloatingScrollbarProviderProps, M as Icon, N as IconName, O as IconProps, P as IconVariant, Y as Input, Z as InputProps, a4 as MessageConfig, a5 as MessageHandle, a6 as MessageKey, a7 as MessageType, af as Progress, ag as ProgressProps, ah as ProgressStatus, ak as Result, al as ResultProps, am as ResultStatus, an as Segmented, ao as SegmentedOption, ap as SegmentedProps, aq as SegmentedValue, ar as Skeleton, as as SkeletonProps, az as TabItem, aA as Tabs, aC as TabsOrientation, aD as TabsPosition, aE as TabsProps, aF as TabsType, aG as Tag, aH as TagProps, aI as TagSize, T as TagStatus, aJ as TagVariant, aN as Toolbar, aO as ToolbarItem, aP as ToolbarProps, a_ as Typography, a$ as TypographyLinkProps, b0 as TypographyProps, b1 as TypographyTitleProps, b2 as TypographyType, b3 as Upload, b4 as UploadChangeInfo, b5 as UploadDraggerProps, b6 as UploadFile, b7 as UploadFileStatus, ba as UploadProps, be as UploadRequestOptions, bi as message } from './core-C7Was4Vc.cjs';
2
2
  export { b as Button, B as ButtonProps, a as ButtonSize, c as ButtonVariant } from './Button-xLR4Yt57.cjs';
3
3
  export { e as Modal, d as ModalActionResult, M as ModalOpenConfig, f as ModalProps, g as ModalType, a as OverlayApiHandle, h as Select, S as SelectOption, c as SelectProps, j as SelectValue } from './Select-Dxevc0f6.cjs';
4
4
  import 'react';
package/dist/core.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, h as Card, i as CardAccent, j as CardProps, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, I as FloatingScrollbarProvider, J as FloatingScrollbarProviderProps, M as Icon, N as IconName, O as IconProps, P as IconVariant, Y as Input, Z as InputProps, a4 as MessageConfig, a5 as MessageHandle, a6 as MessageKey, a7 as MessageType, af as Progress, ag as ProgressProps, ah as ProgressStatus, ak as Result, al as ResultProps, am as ResultStatus, an as Segmented, ao as SegmentedOption, ap as SegmentedProps, aq as SegmentedValue, ar as Skeleton, as as SkeletonProps, az as TabItem, aA as Tabs, aC as TabsOrientation, aD as TabsPosition, aE as TabsProps, aF as TabsType, aG as Tag, aH as TagProps, aI as TagSize, T as TagStatus, aJ as TagVariant, aN as Toolbar, aO as ToolbarItem, aP as ToolbarProps, a_ as Typography, a$ as TypographyLinkProps, b0 as TypographyProps, b1 as TypographyTitleProps, b2 as TypographyType, b3 as Upload, b4 as UploadChangeInfo, b5 as UploadDraggerProps, b6 as UploadFile, b7 as UploadFileStatus, ba as UploadProps, be as UploadRequestOptions, bi as message } from './core-Dy8NWJ1b.js';
1
+ export { d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, h as Card, i as CardAccent, j as CardProps, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, I as FloatingScrollbarProvider, J as FloatingScrollbarProviderProps, M as Icon, N as IconName, O as IconProps, P as IconVariant, Y as Input, Z as InputProps, a4 as MessageConfig, a5 as MessageHandle, a6 as MessageKey, a7 as MessageType, af as Progress, ag as ProgressProps, ah as ProgressStatus, ak as Result, al as ResultProps, am as ResultStatus, an as Segmented, ao as SegmentedOption, ap as SegmentedProps, aq as SegmentedValue, ar as Skeleton, as as SkeletonProps, az as TabItem, aA as Tabs, aC as TabsOrientation, aD as TabsPosition, aE as TabsProps, aF as TabsType, aG as Tag, aH as TagProps, aI as TagSize, T as TagStatus, aJ as TagVariant, aN as Toolbar, aO as ToolbarItem, aP as ToolbarProps, a_ as Typography, a$ as TypographyLinkProps, b0 as TypographyProps, b1 as TypographyTitleProps, b2 as TypographyType, b3 as Upload, b4 as UploadChangeInfo, b5 as UploadDraggerProps, b6 as UploadFile, b7 as UploadFileStatus, ba as UploadProps, be as UploadRequestOptions, bi as message } from './core-D7C32Rdq.js';
2
2
  export { b as Button, B as ButtonProps, a as ButtonSize, c as ButtonVariant } from './Button-B59TIes7.js';
3
3
  export { e as Modal, d as ModalActionResult, M as ModalOpenConfig, f as ModalProps, g as ModalType, a as OverlayApiHandle, h as Select, S as SelectOption, c as SelectProps, j as SelectValue } from './Select-tsENCXQI.js';
4
4
  import 'react';
package/dist/core.js CHANGED
@@ -11,21 +11,21 @@ import {
11
11
  Typography,
12
12
  Upload,
13
13
  message
14
- } from "./chunk-T2F6X3LA.js";
14
+ } from "./chunk-5CGJVE4C.js";
15
15
  import "./chunk-RX242MUO.js";
16
16
  import {
17
17
  Select
18
- } from "./chunk-SX4LLT3H.js";
18
+ } from "./chunk-KDNOLFDJ.js";
19
19
  import {
20
20
  Input,
21
21
  Segmented
22
- } from "./chunk-23FQ5ARA.js";
22
+ } from "./chunk-XS7AVCHO.js";
23
23
  import "./chunk-J6BPKBEL.js";
24
24
  import {
25
25
  Icon,
26
26
  Modal,
27
27
  Skeleton
28
- } from "./chunk-G5EJJFUI.js";
28
+ } from "./chunk-FSO46WEJ.js";
29
29
  import {
30
30
  Button
31
31
  } from "./chunk-PAWEP65C.js";
package/dist/game.cjs CHANGED
@@ -3155,19 +3155,27 @@ function useOverlayLifecycle(open, panelRef, onRequestClose, keyboard = true, au
3155
3155
  closeRef.current();
3156
3156
  return;
3157
3157
  }
3158
- if (event.key !== "Tab" || !panelRef.current) return;
3159
- const focusable = focusableElements(panelRef.current);
3158
+ const panel = panelRef.current;
3159
+ if (event.key !== "Tab" || !panel) return;
3160
+ const focusable = focusableElements(panel);
3160
3161
  if (focusable.length === 0) {
3161
3162
  event.preventDefault();
3162
- panelRef.current.focus();
3163
+ panel.focus();
3163
3164
  return;
3164
3165
  }
3165
3166
  const first = focusable[0];
3166
3167
  const last = focusable.at(-1);
3167
- if (event.shiftKey && document.activeElement === first) {
3168
+ const active = document.activeElement;
3169
+ const insidePanel = active instanceof Node && panel.contains(active);
3170
+ if (!insidePanel || active === panel) {
3171
+ event.preventDefault();
3172
+ (event.shiftKey ? last : first).focus();
3173
+ return;
3174
+ }
3175
+ if (event.shiftKey && active === first) {
3168
3176
  event.preventDefault();
3169
3177
  last.focus();
3170
- } else if (!event.shiftKey && document.activeElement === last) {
3178
+ } else if (!event.shiftKey && active === last) {
3171
3179
  event.preventDefault();
3172
3180
  first.focus();
3173
3181
  }
@@ -3182,7 +3190,7 @@ function useOverlayLifecycle(open, panelRef, onRequestClose, keyboard = true, au
3182
3190
  unlockBody();
3183
3191
  previouslyFocused?.focus({ preventScroll: true });
3184
3192
  };
3185
- }, [keyboard, open, panelRef, autoFocusInput]);
3193
+ }, [keyboard, open, panelRef]);
3186
3194
  (0, import_react11.useEffect)(() => {
3187
3195
  if (!open) return;
3188
3196
  const timer = window.setTimeout(() => {