smarthr-ui 79.1.0 → 80.0.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/esm/_virtual/cjs.js +1 -1
  2. package/esm/_virtual/index.js +4 -4
  3. package/esm/_virtual/index2.js +4 -4
  4. package/esm/_virtual/index3.js +4 -4
  5. package/esm/components/AccordionPanel/AccordionPanelContent.js +1 -1
  6. package/esm/components/AppHeader/components/mobile/MenuDialog.js +1 -1
  7. package/esm/components/Combobox/MultiCombobox/MultiCombobox.js +1 -1
  8. package/esm/components/Combobox/SingleCombobox/SingleCombobox.js +1 -1
  9. package/esm/components/Combobox/helper.js +1 -1
  10. package/esm/components/Combobox/useOptions.js +1 -1
  11. package/esm/components/Dialog/DialogOverlap.js +1 -1
  12. package/esm/components/Dropdown/DropdownMenuButton/DropdownMenuButton.js +1 -1
  13. package/esm/components/Dropdown/FilterDropdown/FilterDropdown.js +1 -1
  14. package/esm/components/FileViewer/PDFViewer.js +3 -3
  15. package/esm/components/FormControl/FormControl.js +1 -1
  16. package/esm/components/Heading/PageHeading/PageHeading.d.ts +12 -0
  17. package/esm/components/Heading/PageHeading/PageHeading.js +28 -4
  18. package/esm/components/Heading/PageHeading/PageHeading.js.map +1 -1
  19. package/esm/components/Icon/Icon.js +1 -1
  20. package/esm/components/Icon/LanguageIcon.js +1 -1
  21. package/esm/components/Icon/SparklesIcon.js +1 -1
  22. package/esm/components/Icon/WarningIcon.js +1 -1
  23. package/esm/components/InformationPanel/InformationPanel.d.ts +4 -4
  24. package/esm/components/InformationPanel/InformationPanel.js +6 -6
  25. package/esm/components/InformationPanel/InformationPanel.js.map +1 -1
  26. package/esm/components/NotificationBar/NotificationBar.js +1 -1
  27. package/esm/components/NotificationBar/NotificationBar.js.map +1 -1
  28. package/esm/components/Tooltip/Tooltip.js +1 -1
  29. package/esm/libs/lodash.js +2 -2
  30. package/esm/vendor/.pnpm/{merge-refs@1.3.0_@types_react@18.3.26 → merge-refs@1.3.0_@types_react@18.3.27}/vendor/merge-refs/dist/esm/index.js.map +1 -1
  31. package/esm/vendor/.pnpm/{react-draggable@4.5.0_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-draggable@4.5.0_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-draggable/build/cjs/Draggable.js.map +1 -1
  32. package/esm/vendor/.pnpm/{react-draggable@4.5.0_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-draggable@4.5.0_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-draggable/build/cjs/DraggableCore.js.map +1 -1
  33. package/esm/vendor/.pnpm/{react-draggable@4.5.0_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-draggable@4.5.0_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-draggable/build/cjs/cjs.js.map +1 -1
  34. package/esm/vendor/.pnpm/{react-draggable@4.5.0_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-draggable@4.5.0_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-draggable/build/cjs/utils/domFns.js.map +1 -1
  35. package/esm/vendor/.pnpm/{react-draggable@4.5.0_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-draggable@4.5.0_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-draggable/build/cjs/utils/getPrefix.js.map +1 -1
  36. package/esm/vendor/.pnpm/{react-draggable@4.5.0_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-draggable@4.5.0_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-draggable/build/cjs/utils/log.js.map +1 -1
  37. package/esm/vendor/.pnpm/{react-draggable@4.5.0_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-draggable@4.5.0_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-draggable/build/cjs/utils/positionFns.js.map +1 -1
  38. package/esm/vendor/.pnpm/{react-draggable@4.5.0_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-draggable@4.5.0_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-draggable/build/cjs/utils/shims.js.map +1 -1
  39. package/esm/vendor/.pnpm/{react-icons@5.5.0_react@19.2.0 → react-icons@5.5.0_react@19.2.1}/vendor/react-icons/fa6/index.js.map +1 -1
  40. package/esm/vendor/.pnpm/{react-icons@5.5.0_react@19.2.0 → react-icons@5.5.0_react@19.2.1}/vendor/react-icons/lib/iconBase.js.map +1 -1
  41. package/esm/vendor/.pnpm/{react-icons@5.5.0_react@19.2.0 → react-icons@5.5.0_react@19.2.1}/vendor/react-icons/lib/iconContext.js.map +1 -1
  42. package/esm/vendor/.pnpm/{react-innertext@1.1.5_@types_react@18.3.26_react@19.2.0 → react-innertext@1.1.5_@types_react@18.3.27_react@19.2.1}/vendor/react-innertext/index.js.map +1 -1
  43. package/esm/vendor/.pnpm/{react-pdf@9.2.1_@types_react@18.3.26_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-pdf@9.2.1_@types_react@18.3.27_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-pdf/dist/esm/Document.js.map +1 -1
  44. package/esm/vendor/.pnpm/{react-pdf@9.2.1_@types_react@18.3.26_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-pdf@9.2.1_@types_react@18.3.27_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-pdf/dist/esm/DocumentContext.js.map +1 -1
  45. package/esm/vendor/.pnpm/{react-pdf@9.2.1_@types_react@18.3.26_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-pdf@9.2.1_@types_react@18.3.27_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-pdf/dist/esm/LinkService.js.map +1 -1
  46. package/esm/vendor/.pnpm/{react-pdf@9.2.1_@types_react@18.3.26_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-pdf@9.2.1_@types_react@18.3.27_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-pdf/dist/esm/Message.js.map +1 -1
  47. package/esm/vendor/.pnpm/{react-pdf@9.2.1_@types_react@18.3.26_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-pdf@9.2.1_@types_react@18.3.27_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-pdf/dist/esm/Page/AnnotationLayer.js.map +1 -1
  48. package/esm/vendor/.pnpm/{react-pdf@9.2.1_@types_react@18.3.26_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-pdf@9.2.1_@types_react@18.3.27_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-pdf/dist/esm/Page/Canvas.js +1 -1
  49. package/esm/vendor/.pnpm/{react-pdf@9.2.1_@types_react@18.3.26_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-pdf@9.2.1_@types_react@18.3.27_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-pdf/dist/esm/Page/Canvas.js.map +1 -1
  50. package/esm/vendor/.pnpm/{react-pdf@9.2.1_@types_react@18.3.26_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-pdf@9.2.1_@types_react@18.3.27_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-pdf/dist/esm/Page/TextLayer.js.map +1 -1
  51. package/esm/vendor/.pnpm/{react-pdf@9.2.1_@types_react@18.3.26_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-pdf@9.2.1_@types_react@18.3.27_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-pdf/dist/esm/Page.js +1 -1
  52. package/esm/vendor/.pnpm/{react-pdf@9.2.1_@types_react@18.3.26_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-pdf@9.2.1_@types_react@18.3.27_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-pdf/dist/esm/Page.js.map +1 -1
  53. package/esm/vendor/.pnpm/{react-pdf@9.2.1_@types_react@18.3.26_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-pdf@9.2.1_@types_react@18.3.27_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-pdf/dist/esm/PageContext.js.map +1 -1
  54. package/esm/vendor/.pnpm/{react-pdf@9.2.1_@types_react@18.3.26_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-pdf@9.2.1_@types_react@18.3.27_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-pdf/dist/esm/PasswordResponses.js.map +1 -1
  55. package/esm/vendor/.pnpm/{react-pdf@9.2.1_@types_react@18.3.26_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-pdf@9.2.1_@types_react@18.3.27_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-pdf/dist/esm/StructTree.js.map +1 -1
  56. package/esm/vendor/.pnpm/{react-pdf@9.2.1_@types_react@18.3.26_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-pdf@9.2.1_@types_react@18.3.27_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-pdf/dist/esm/StructTreeItem.js.map +1 -1
  57. package/esm/vendor/.pnpm/{react-pdf@9.2.1_@types_react@18.3.26_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-pdf@9.2.1_@types_react@18.3.27_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-pdf/dist/esm/index.js.map +1 -1
  58. package/esm/vendor/.pnpm/{react-pdf@9.2.1_@types_react@18.3.26_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-pdf@9.2.1_@types_react@18.3.27_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-pdf/dist/esm/shared/constants.js.map +1 -1
  59. package/esm/vendor/.pnpm/{react-pdf@9.2.1_@types_react@18.3.26_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-pdf@9.2.1_@types_react@18.3.27_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-pdf/dist/esm/shared/hooks/useDocumentContext.js.map +1 -1
  60. package/esm/vendor/.pnpm/{react-pdf@9.2.1_@types_react@18.3.26_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-pdf@9.2.1_@types_react@18.3.27_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-pdf/dist/esm/shared/hooks/usePageContext.js.map +1 -1
  61. package/esm/vendor/.pnpm/{react-pdf@9.2.1_@types_react@18.3.26_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-pdf@9.2.1_@types_react@18.3.27_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-pdf/dist/esm/shared/hooks/useResolver.js.map +1 -1
  62. package/esm/vendor/.pnpm/{react-pdf@9.2.1_@types_react@18.3.26_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-pdf@9.2.1_@types_react@18.3.27_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-pdf/dist/esm/shared/structTreeUtils.js.map +1 -1
  63. package/esm/vendor/.pnpm/{react-pdf@9.2.1_@types_react@18.3.26_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-pdf@9.2.1_@types_react@18.3.27_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-pdf/dist/esm/shared/utils.js.map +1 -1
  64. package/esm/vendor/.pnpm/{react-transition-group@4.4.5_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-transition-group@4.4.5_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-transition-group/esm/CSSTransition.js.map +1 -1
  65. package/esm/vendor/.pnpm/{react-transition-group@4.4.5_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-transition-group@4.4.5_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-transition-group/esm/Transition.js.map +1 -1
  66. package/esm/vendor/.pnpm/{react-transition-group@4.4.5_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-transition-group@4.4.5_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-transition-group/esm/TransitionGroupContext.js.map +1 -1
  67. package/esm/vendor/.pnpm/{react-transition-group@4.4.5_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-transition-group@4.4.5_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-transition-group/esm/config.js.map +1 -1
  68. package/esm/vendor/.pnpm/{react-transition-group@4.4.5_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-transition-group@4.4.5_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-transition-group/esm/utils/reflow.js.map +1 -1
  69. package/lib/components/Heading/PageHeading/PageHeading.d.ts +12 -0
  70. package/lib/components/Heading/PageHeading/PageHeading.js +29 -2
  71. package/lib/components/Heading/PageHeading/PageHeading.js.map +1 -1
  72. package/lib/components/InformationPanel/InformationPanel.d.ts +4 -4
  73. package/lib/components/InformationPanel/InformationPanel.js +6 -6
  74. package/lib/components/InformationPanel/InformationPanel.js.map +1 -1
  75. package/lib/components/NotificationBar/NotificationBar.js +1 -1
  76. package/lib/components/NotificationBar/NotificationBar.js.map +1 -1
  77. package/package.json +9 -7
  78. /package/esm/vendor/.pnpm/{merge-refs@1.3.0_@types_react@18.3.26 → merge-refs@1.3.0_@types_react@18.3.27}/vendor/merge-refs/dist/esm/index.js +0 -0
  79. /package/esm/vendor/.pnpm/{react-draggable@4.5.0_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-draggable@4.5.0_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-draggable/build/cjs/Draggable.js +0 -0
  80. /package/esm/vendor/.pnpm/{react-draggable@4.5.0_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-draggable@4.5.0_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-draggable/build/cjs/DraggableCore.js +0 -0
  81. /package/esm/vendor/.pnpm/{react-draggable@4.5.0_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-draggable@4.5.0_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-draggable/build/cjs/cjs.js +0 -0
  82. /package/esm/vendor/.pnpm/{react-draggable@4.5.0_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-draggable@4.5.0_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-draggable/build/cjs/utils/domFns.js +0 -0
  83. /package/esm/vendor/.pnpm/{react-draggable@4.5.0_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-draggable@4.5.0_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-draggable/build/cjs/utils/getPrefix.js +0 -0
  84. /package/esm/vendor/.pnpm/{react-draggable@4.5.0_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-draggable@4.5.0_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-draggable/build/cjs/utils/log.js +0 -0
  85. /package/esm/vendor/.pnpm/{react-draggable@4.5.0_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-draggable@4.5.0_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-draggable/build/cjs/utils/positionFns.js +0 -0
  86. /package/esm/vendor/.pnpm/{react-draggable@4.5.0_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-draggable@4.5.0_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-draggable/build/cjs/utils/shims.js +0 -0
  87. /package/esm/vendor/.pnpm/{react-icons@5.5.0_react@19.2.0 → react-icons@5.5.0_react@19.2.1}/vendor/react-icons/fa6/index.js +0 -0
  88. /package/esm/vendor/.pnpm/{react-icons@5.5.0_react@19.2.0 → react-icons@5.5.0_react@19.2.1}/vendor/react-icons/lib/iconBase.js +0 -0
  89. /package/esm/vendor/.pnpm/{react-icons@5.5.0_react@19.2.0 → react-icons@5.5.0_react@19.2.1}/vendor/react-icons/lib/iconContext.js +0 -0
  90. /package/esm/vendor/.pnpm/{react-innertext@1.1.5_@types_react@18.3.26_react@19.2.0 → react-innertext@1.1.5_@types_react@18.3.27_react@19.2.1}/vendor/react-innertext/index.js +0 -0
  91. /package/esm/vendor/.pnpm/{react-pdf@9.2.1_@types_react@18.3.26_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-pdf@9.2.1_@types_react@18.3.27_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-pdf/dist/esm/Document.js +0 -0
  92. /package/esm/vendor/.pnpm/{react-pdf@9.2.1_@types_react@18.3.26_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-pdf@9.2.1_@types_react@18.3.27_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-pdf/dist/esm/DocumentContext.js +0 -0
  93. /package/esm/vendor/.pnpm/{react-pdf@9.2.1_@types_react@18.3.26_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-pdf@9.2.1_@types_react@18.3.27_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-pdf/dist/esm/LinkService.js +0 -0
  94. /package/esm/vendor/.pnpm/{react-pdf@9.2.1_@types_react@18.3.26_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-pdf@9.2.1_@types_react@18.3.27_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-pdf/dist/esm/Message.js +0 -0
  95. /package/esm/vendor/.pnpm/{react-pdf@9.2.1_@types_react@18.3.26_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-pdf@9.2.1_@types_react@18.3.27_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-pdf/dist/esm/Page/AnnotationLayer.js +0 -0
  96. /package/esm/vendor/.pnpm/{react-pdf@9.2.1_@types_react@18.3.26_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-pdf@9.2.1_@types_react@18.3.27_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-pdf/dist/esm/Page/TextLayer.js +0 -0
  97. /package/esm/vendor/.pnpm/{react-pdf@9.2.1_@types_react@18.3.26_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-pdf@9.2.1_@types_react@18.3.27_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-pdf/dist/esm/PageContext.js +0 -0
  98. /package/esm/vendor/.pnpm/{react-pdf@9.2.1_@types_react@18.3.26_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-pdf@9.2.1_@types_react@18.3.27_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-pdf/dist/esm/PasswordResponses.js +0 -0
  99. /package/esm/vendor/.pnpm/{react-pdf@9.2.1_@types_react@18.3.26_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-pdf@9.2.1_@types_react@18.3.27_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-pdf/dist/esm/StructTree.js +0 -0
  100. /package/esm/vendor/.pnpm/{react-pdf@9.2.1_@types_react@18.3.26_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-pdf@9.2.1_@types_react@18.3.27_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-pdf/dist/esm/StructTreeItem.js +0 -0
  101. /package/esm/vendor/.pnpm/{react-pdf@9.2.1_@types_react@18.3.26_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-pdf@9.2.1_@types_react@18.3.27_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-pdf/dist/esm/index.js +0 -0
  102. /package/esm/vendor/.pnpm/{react-pdf@9.2.1_@types_react@18.3.26_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-pdf@9.2.1_@types_react@18.3.27_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-pdf/dist/esm/shared/constants.js +0 -0
  103. /package/esm/vendor/.pnpm/{react-pdf@9.2.1_@types_react@18.3.26_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-pdf@9.2.1_@types_react@18.3.27_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-pdf/dist/esm/shared/hooks/useDocumentContext.js +0 -0
  104. /package/esm/vendor/.pnpm/{react-pdf@9.2.1_@types_react@18.3.26_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-pdf@9.2.1_@types_react@18.3.27_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-pdf/dist/esm/shared/hooks/usePageContext.js +0 -0
  105. /package/esm/vendor/.pnpm/{react-pdf@9.2.1_@types_react@18.3.26_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-pdf@9.2.1_@types_react@18.3.27_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-pdf/dist/esm/shared/hooks/useResolver.js +0 -0
  106. /package/esm/vendor/.pnpm/{react-pdf@9.2.1_@types_react@18.3.26_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-pdf@9.2.1_@types_react@18.3.27_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-pdf/dist/esm/shared/structTreeUtils.js +0 -0
  107. /package/esm/vendor/.pnpm/{react-pdf@9.2.1_@types_react@18.3.26_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-pdf@9.2.1_@types_react@18.3.27_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-pdf/dist/esm/shared/utils.js +0 -0
  108. /package/esm/vendor/.pnpm/{react-transition-group@4.4.5_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-transition-group@4.4.5_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-transition-group/esm/CSSTransition.js +0 -0
  109. /package/esm/vendor/.pnpm/{react-transition-group@4.4.5_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-transition-group@4.4.5_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-transition-group/esm/Transition.js +0 -0
  110. /package/esm/vendor/.pnpm/{react-transition-group@4.4.5_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-transition-group@4.4.5_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-transition-group/esm/TransitionGroupContext.js +0 -0
  111. /package/esm/vendor/.pnpm/{react-transition-group@4.4.5_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-transition-group@4.4.5_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-transition-group/esm/config.js +0 -0
  112. /package/esm/vendor/.pnpm/{react-transition-group@4.4.5_react-dom@19.2.0_react@19.2.0__react@19.2.0 → react-transition-group@4.4.5_react-dom@19.2.1_react@19.2.1__react@19.2.1}/vendor/react-transition-group/esm/utils/reflow.js +0 -0
@@ -1,5 +1,5 @@
1
1
  import { getDefaultExportFromCjs } from './_commonjsHelpers.js';
2
- import { __require as requireCjs } from './../vendor/.pnpm/react-draggable@4.5.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/vendor/react-draggable/build/cjs/cjs.js';
2
+ import { __require as requireCjs } from './../vendor/.pnpm/react-draggable@4.5.0_react-dom@19.2.1_react@19.2.1__react@19.2.1/vendor/react-draggable/build/cjs/cjs.js';
3
3
 
4
4
  var cjsExports = requireCjs();
5
5
  var Draggable = /*@__PURE__*/getDefaultExportFromCjs(cjsExports);
@@ -1,8 +1,8 @@
1
1
  import { getDefaultExportFromCjs } from './_commonjsHelpers.js';
2
- import { __require as requireLodash_merge } from './../vendor/.pnpm/lodash.merge@4.6.2/vendor/lodash.merge/index.js';
2
+ import { __require as requireReactInnertext } from './../vendor/.pnpm/react-innertext@1.1.5_@types_react@18.3.27_react@19.2.1/vendor/react-innertext/index.js';
3
3
 
4
- var lodash_mergeExports = requireLodash_merge();
5
- var _merge = /*@__PURE__*/getDefaultExportFromCjs(lodash_mergeExports);
4
+ var reactInnertextExports = requireReactInnertext();
5
+ var innerText = /*@__PURE__*/getDefaultExportFromCjs(reactInnertextExports);
6
6
 
7
- export { _merge as default };
7
+ export { innerText as default };
8
8
  //# sourceMappingURL=index.js.map
@@ -1,8 +1,8 @@
1
1
  import { getDefaultExportFromCjs } from './_commonjsHelpers.js';
2
- import { __require as requireLodash_range } from './../vendor/.pnpm/lodash.range@3.2.0/vendor/lodash.range/index.js';
2
+ import { __require as requireLodash_merge } from './../vendor/.pnpm/lodash.merge@4.6.2/vendor/lodash.merge/index.js';
3
3
 
4
- var lodash_rangeExports = requireLodash_range();
5
- var _range = /*@__PURE__*/getDefaultExportFromCjs(lodash_rangeExports);
4
+ var lodash_mergeExports = requireLodash_merge();
5
+ var _merge = /*@__PURE__*/getDefaultExportFromCjs(lodash_mergeExports);
6
6
 
7
- export { _range as default };
7
+ export { _merge as default };
8
8
  //# sourceMappingURL=index2.js.map
@@ -1,8 +1,8 @@
1
1
  import { getDefaultExportFromCjs } from './_commonjsHelpers.js';
2
- import { __require as requireReactInnertext } from './../vendor/.pnpm/react-innertext@1.1.5_@types_react@18.3.26_react@19.2.0/vendor/react-innertext/index.js';
2
+ import { __require as requireLodash_range } from './../vendor/.pnpm/lodash.range@3.2.0/vendor/lodash.range/index.js';
3
3
 
4
- var reactInnertextExports = requireReactInnertext();
5
- var innerText = /*@__PURE__*/getDefaultExportFromCjs(reactInnertextExports);
4
+ var lodash_rangeExports = requireLodash_range();
5
+ var _range = /*@__PURE__*/getDefaultExportFromCjs(lodash_rangeExports);
6
6
 
7
- export { innerText as default };
7
+ export { _range as default };
8
8
  //# sourceMappingURL=index3.js.map
@@ -5,7 +5,7 @@ import { tv as ce } from './../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindc
5
5
  import { getIsInclude } from '../../libs/map.js';
6
6
  import { AccordionPanelContext } from './AccordionPanel.js';
7
7
  import { AccordionPanelItemContext } from './AccordionPanelItem.js';
8
- import Transition from './../../vendor/.pnpm/react-transition-group@4.4.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/vendor/react-transition-group/esm/Transition.js';
8
+ import Transition from './../../vendor/.pnpm/react-transition-group@4.4.5_react-dom@19.2.1_react@19.2.1__react@19.2.1/vendor/react-transition-group/esm/Transition.js';
9
9
 
10
10
  const classNameGenerator = ce({
11
11
  base: [
@@ -25,7 +25,7 @@ import { Navigation } from './Navigation.js';
25
25
  import { NavigationContext } from './NavigationContext.js';
26
26
  import { ReleaseNote } from './ReleaseNote.js';
27
27
  import { ReleaseNoteContext } from './ReleaseNoteContext.js';
28
- import CSSTransition from './../../../../vendor/.pnpm/react-transition-group@4.4.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/vendor/react-transition-group/esm/CSSTransition.js';
28
+ import CSSTransition from './../../../../vendor/.pnpm/react-transition-group@4.4.5_react-dom@19.2.1_react@19.2.1__react@19.2.1/vendor/react-transition-group/esm/CSSTransition.js';
29
29
 
30
30
  const classNameGenerator = ce({
31
31
  slots: {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from 'react/jsx-runtime';
3
3
  import { memo, useMemo, useRef, useState, useCallback, useImperativeHandle, useEffect, useId } from 'react';
4
- import innerText from '../../../_virtual/index3.js';
4
+ import innerText from '../../../_virtual/index.js';
5
5
  import { tv as ce } from './../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.18_ts-node@10.9.2_@swc_core@1.13.5_@types_node@20.19.20_typescript@5.8.3__/vendor/tailwind-variants/dist/index.js';
6
6
  import { useOuterClick } from '../../../hooks/useOuterClick.js';
7
7
  import '../../../intl/IntlProvider.js';
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
3
3
  import { useRef, useState, useImperativeHandle, useCallback, useMemo, useEffect } from 'react';
4
- import innerText from '../../../_virtual/index3.js';
4
+ import innerText from '../../../_virtual/index.js';
5
5
  import { tv as ce } from './../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.18_ts-node@10.9.2_@swc_core@1.13.5_@types_node@20.19.20_typescript@5.8.3__/vendor/tailwind-variants/dist/index.js';
6
6
  import { useClick } from '../../../hooks/useClick.js';
7
7
  import { useDecorators } from '../../../hooks/useDecorators.js';
@@ -1,4 +1,4 @@
1
- import innerText from '../../_virtual/index3.js';
1
+ import innerText from '../../_virtual/index.js';
2
2
 
3
3
  function convertMatchableString(original) {
4
4
  return (original
@@ -1,5 +1,5 @@
1
1
  import { useCallback, useId, useMemo } from 'react';
2
- import innerText from '../../_virtual/index3.js';
2
+ import innerText from '../../_virtual/index.js';
3
3
  import { areItemsEqual, convertMatchableString } from './helper.js';
4
4
 
5
5
  const defaultIsItemSelected = (targetItem, selectedItems) => selectedItems.some((item) => areItemsEqual(item, targetItem));
@@ -7,7 +7,7 @@ import '../Layout/Reel/Reel.js';
7
7
  import '../Layout/Sidebar/Sidebar.js';
8
8
  import { Center } from '../Layout/Center/Center.js';
9
9
  import '../Layout/Container/Container.js';
10
- import CSSTransition from './../../vendor/.pnpm/react-transition-group@4.4.5_react-dom@19.2.0_react@19.2.0__react@19.2.0/vendor/react-transition-group/esm/CSSTransition.js';
10
+ import CSSTransition from './../../vendor/.pnpm/react-transition-group@4.4.5_react-dom@19.2.1_react@19.2.1__react@19.2.1/vendor/react-transition-group/esm/CSSTransition.js';
11
11
 
12
12
  const classNameGenerator = ce({
13
13
  base: [
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from 'react/jsx-runtime';
3
3
  import { memo, useContext, useMemo, useRef, Children, isValidElement, Fragment, cloneElement } from 'react';
4
- import innerText from '../../../_virtual/index3.js';
4
+ import innerText from '../../../_virtual/index.js';
5
5
  import { tv as ce } from './../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.18_ts-node@10.9.2_@swc_core@1.13.5_@types_node@20.19.20_typescript@5.8.3__/vendor/tailwind-variants/dist/index.js';
6
6
  import { DropdownContext, Dropdown } from '../Dropdown.js';
7
7
  import { DropdownTrigger } from '../DropdownTrigger.js';
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsxs, jsx } from 'react/jsx-runtime';
3
3
  import { useMemo } from 'react';
4
- import innerText from '../../../_virtual/index3.js';
4
+ import innerText from '../../../_virtual/index.js';
5
5
  import { tv as ce } from './../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.18_ts-node@10.9.2_@swc_core@1.13.5_@types_node@20.19.20_typescript@5.8.3__/vendor/tailwind-variants/dist/index.js';
6
6
  import { useDecorators } from '../../../hooks/useDecorators.js';
7
7
  import { useResponseStatus } from '../../../hooks/useResponseStatus.js';
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
3
3
  import { memo, useState, useCallback, useMemo } from 'react';
4
- import './../../vendor/.pnpm/react-pdf@9.2.1_@types_react@18.3.26_react-dom@19.2.0_react@19.2.0__react@19.2.0/vendor/react-pdf/dist/esm/index.js';
4
+ import './../../vendor/.pnpm/react-pdf@9.2.1_@types_react@18.3.27_react-dom@19.2.1_react@19.2.1__react@19.2.1/vendor/react-pdf/dist/esm/index.js';
5
5
  import { ReactPDFStyle } from './generatedReactPDFStyle.js';
6
- import Document from './../../vendor/.pnpm/react-pdf@9.2.1_@types_react@18.3.26_react-dom@19.2.0_react@19.2.0__react@19.2.0/vendor/react-pdf/dist/esm/Document.js';
7
- import Page from './../../vendor/.pnpm/react-pdf@9.2.1_@types_react@18.3.26_react-dom@19.2.0_react@19.2.0__react@19.2.0/vendor/react-pdf/dist/esm/Page.js';
6
+ import Document from './../../vendor/.pnpm/react-pdf@9.2.1_@types_react@18.3.27_react-dom@19.2.1_react@19.2.1__react@19.2.1/vendor/react-pdf/dist/esm/Document.js';
7
+ import Page from './../../vendor/.pnpm/react-pdf@9.2.1_@types_react@18.3.27_react-dom@19.2.1_react@19.2.1__react@19.2.1/vendor/react-pdf/dist/esm/Page.js';
8
8
  import { version as __webpack_exports__version, GlobalWorkerOptions as __webpack_exports__GlobalWorkerOptions } from './../../vendor/.pnpm/pdfjs-dist@4.8.69/vendor/pdfjs-dist/build/pdf.js';
9
9
 
10
10
  if (typeof window !== 'undefined') {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { memo, useMemo, isValidElement, useId, useRef, Fragment as Fragment$1, createElement, useEffect } from 'react';
3
3
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
4
- import innerText from '../../_virtual/index3.js';
4
+ import innerText from '../../_virtual/index.js';
5
5
  import { tv as ce } from './../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.18_ts-node@10.9.2_@swc_core@1.13.5_@types_node@20.19.20_typescript@5.8.3__/vendor/tailwind-variants/dist/index.js';
6
6
  import { FaCircleExclamationIcon } from '../Icon/Icon.js';
7
7
  import '../Icon/generateIcon.js';
@@ -10,6 +10,12 @@ export type Props = PropsWithChildren<{
10
10
  size?: Extract<TextProps['size'], 'XXL' | 'XL' | 'L'>;
11
11
  /** 視覚的に非表示にするフラグ */
12
12
  visuallyHidden?: boolean;
13
+ /** title要素の自動生成フラグ */
14
+ autoPageTitle?: boolean;
15
+ /** title要素のprefix */
16
+ pageTitle?: string;
17
+ /** title要素のsuffix */
18
+ pageTitleSuffix?: string;
13
19
  }>;
14
20
  export declare const PageHeading: import("react").NamedExoticComponent<{
15
21
  /**
@@ -20,6 +26,12 @@ export declare const PageHeading: import("react").NamedExoticComponent<{
20
26
  size?: Extract<TextProps["size"], "XXL" | "XL" | "L">;
21
27
  /** 視覚的に非表示にするフラグ */
22
28
  visuallyHidden?: boolean;
29
+ /** title要素の自動生成フラグ */
30
+ autoPageTitle?: boolean;
31
+ /** title要素のprefix */
32
+ pageTitle?: string;
33
+ /** title要素のsuffix */
34
+ pageTitleSuffix?: string;
23
35
  } & {
24
36
  children?: import("react").ReactNode | undefined;
25
37
  } & ElementProps>;
@@ -1,9 +1,10 @@
1
1
  "use client";
2
2
  import { jsx } from 'react/jsx-runtime';
3
- import { memo, useMemo } from 'react';
3
+ import { memo, useMemo, useId, useEffect } from 'react';
4
+ import innerText from '../../../_virtual/index.js';
4
5
  import { tv as ce } from './../../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.18_ts-node@10.9.2_@swc_core@1.13.5_@types_node@20.19.20_typescript@5.8.3__/vendor/tailwind-variants/dist/index.js';
5
6
  import { STYLE_TYPE_MAP, Text } from '../../Text/Text.js';
6
- import { VisuallyHiddenText } from '../../VisuallyHiddenText/VisuallyHiddenText.js';
7
+ import { visuallyHiddenTextClassNameGenerator, VisuallyHiddenText } from '../../VisuallyHiddenText/VisuallyHiddenText.js';
7
8
 
8
9
  const classNameGenerator = ce({
9
10
  base: 'smarthr-ui-Heading smarthr-ui-PageHeading',
@@ -16,7 +17,8 @@ const classNameGenerator = ce({
16
17
  visuallyHidden: false,
17
18
  },
18
19
  });
19
- const PageHeading = memo(({ size, className, visuallyHidden, ...props }) => {
20
+ const PSEUDO_TITLE_CLASS_NAME = visuallyHiddenTextClassNameGenerator();
21
+ const PageHeading = memo(({ size, className, visuallyHidden, autoPageTitle = true, pageTitleSuffix = 'SmartHR(スマートHR)', pageTitle, children, ...props }) => {
20
22
  const actualClassName = useMemo(() => classNameGenerator({ visuallyHidden, className }), [className, visuallyHidden]);
21
23
  const actualTypography = useMemo(() => {
22
24
  const defaultTypography = STYLE_TYPE_MAP.screenTitle;
@@ -25,8 +27,30 @@ const PageHeading = memo(({ size, className, visuallyHidden, ...props }) => {
25
27
  }
26
28
  return defaultTypography;
27
29
  }, [size]);
30
+ const pseudoTitleId = useId();
31
+ const titleText = useMemo(() => (autoPageTitle ? `${pageTitle || innerText(children)}|${pageTitleSuffix}` : ''), [children, pageTitle, pageTitleSuffix, autoPageTitle]);
32
+ useEffect(() => {
33
+ if (titleText) {
34
+ // HINT: SPAで遷移する場合などの対策としてbody直下にaria-liveを仕込む
35
+ // head内はスクリーンリーダーの変更検知のチェック対象外のため、title要素にaria-liveは設定しない
36
+ const pseudoTitle = (document.getElementById(pseudoTitleId) ||
37
+ document.createElement('div'));
38
+ pseudoTitle.setAttribute('id', pseudoTitleId);
39
+ pseudoTitle.setAttribute('class', PSEUDO_TITLE_CLASS_NAME);
40
+ pseudoTitle.setAttribute('aria-live', 'polite');
41
+ document.body.prepend(pseudoTitle);
42
+ document.title = titleText;
43
+ requestAnimationFrame(() => {
44
+ pseudoTitle.innerText = titleText;
45
+ });
46
+ return () => {
47
+ pseudoTitle.remove();
48
+ };
49
+ }
50
+ return undefined;
51
+ }, [titleText, pseudoTitleId]);
28
52
  const Component = visuallyHidden ? VisuallyHiddenText : Text;
29
- return jsx(Component, { ...props, ...actualTypography, as: "h1", className: actualClassName });
53
+ return (jsx(Component, { ...props, ...actualTypography, as: "h1", className: actualClassName, children: children }));
30
54
  });
31
55
 
32
56
  export { PageHeading };
@@ -1 +1 @@
1
- {"version":3,"file":"PageHeading.js","sources":["../../../../src/components/Heading/PageHeading/PageHeading.tsx"],"sourcesContent":["'use client'\n\nimport { type PropsWithChildren, memo, useMemo } from 'react'\nimport { tv } from 'tailwind-variants'\n\nimport { STYLE_TYPE_MAP, Text, type TextProps } from '../../Text'\nimport { VisuallyHiddenText } from '../../VisuallyHiddenText'\n\nimport type { ElementProps } from '../Heading'\n\nexport type Props = PropsWithChildren<{\n /**\n * テキストのサイズ\n *\n * @default 'XL'\n */\n size?: Extract<TextProps['size'], 'XXL' | 'XL' | 'L'>\n\n /** 視覚的に非表示にするフラグ */\n visuallyHidden?: boolean\n}>\n\nconst classNameGenerator = tv({\n base: 'smarthr-ui-Heading smarthr-ui-PageHeading',\n variants: {\n visuallyHidden: {\n false: 'shr-m-[unset]',\n },\n },\n defaultVariants: {\n visuallyHidden: false,\n },\n})\n\nexport const PageHeading = memo<Props & ElementProps>(\n ({ size, className, visuallyHidden, ...props }) => {\n const actualClassName = useMemo(\n () => classNameGenerator({ visuallyHidden, className }),\n [className, visuallyHidden],\n )\n const actualTypography = useMemo(() => {\n const defaultTypography = STYLE_TYPE_MAP.screenTitle\n\n if (size) {\n return { ...defaultTypography, size }\n }\n\n return defaultTypography\n }, [size])\n const Component = visuallyHidden ? VisuallyHiddenText : Text\n\n return <Component {...props} {...actualTypography} as=\"h1\" className={actualClassName} />\n },\n)\n"],"names":[],"mappings":";;;;;;;AAsBA;AACE;AACA;AACE;AACE;AACD;AACF;AACD;AACE;AACD;AACF;AAEM;;AAMH;AACE;;AAGE;;AAGF;AACF;;AAGA;AACF;;"}
1
+ {"version":3,"file":"PageHeading.js","sources":["../../../../src/components/Heading/PageHeading/PageHeading.tsx"],"sourcesContent":["'use client'\n\nimport { type PropsWithChildren, memo, useEffect, useId, useMemo } from 'react'\nimport innerText from 'react-innertext'\nimport { tv } from 'tailwind-variants'\n\nimport { STYLE_TYPE_MAP, Text, type TextProps } from '../../Text'\nimport { VisuallyHiddenText, visuallyHiddenTextClassNameGenerator } from '../../VisuallyHiddenText'\n\nimport type { ElementProps } from '../Heading'\n\nexport type Props = PropsWithChildren<{\n /**\n * テキストのサイズ\n *\n * @default 'XL'\n */\n size?: Extract<TextProps['size'], 'XXL' | 'XL' | 'L'>\n /** 視覚的に非表示にするフラグ */\n visuallyHidden?: boolean\n /** title要素の自動生成フラグ */\n autoPageTitle?: boolean\n /** title要素のprefix */\n pageTitle?: string\n /** title要素のsuffix */\n pageTitleSuffix?: string\n}>\n\nconst classNameGenerator = tv({\n base: 'smarthr-ui-Heading smarthr-ui-PageHeading',\n variants: {\n visuallyHidden: {\n false: 'shr-m-[unset]',\n },\n },\n defaultVariants: {\n visuallyHidden: false,\n },\n})\n\nconst PSEUDO_TITLE_CLASS_NAME = visuallyHiddenTextClassNameGenerator()\n\nexport const PageHeading = memo<Props & ElementProps>(\n ({\n size,\n className,\n visuallyHidden,\n autoPageTitle = true,\n pageTitleSuffix = 'SmartHR(スマートHR)',\n pageTitle,\n children,\n ...props\n }) => {\n const actualClassName = useMemo(\n () => classNameGenerator({ visuallyHidden, className }),\n [className, visuallyHidden],\n )\n const actualTypography = useMemo(() => {\n const defaultTypography = STYLE_TYPE_MAP.screenTitle\n\n if (size) {\n return { ...defaultTypography, size }\n }\n\n return defaultTypography\n }, [size])\n\n const pseudoTitleId = useId()\n const titleText = useMemo(\n () => (autoPageTitle ? `${pageTitle || innerText(children)}|${pageTitleSuffix}` : ''),\n [children, pageTitle, pageTitleSuffix, autoPageTitle],\n )\n\n useEffect(() => {\n if (titleText) {\n // HINT: SPAで遷移する場合などの対策としてbody直下にaria-liveを仕込む\n // head内はスクリーンリーダーの変更検知のチェック対象外のため、title要素にaria-liveは設定しない\n const pseudoTitle: HTMLDivElement = (document.getElementById(pseudoTitleId) ||\n document.createElement('div')) as HTMLDivElement\n\n pseudoTitle.setAttribute('id', pseudoTitleId)\n pseudoTitle.setAttribute('class', PSEUDO_TITLE_CLASS_NAME)\n pseudoTitle.setAttribute('aria-live', 'polite')\n document.body.prepend(pseudoTitle)\n\n document.title = titleText\n requestAnimationFrame(() => {\n pseudoTitle.innerText = titleText\n })\n\n return () => {\n pseudoTitle.remove()\n }\n }\n\n return undefined\n }, [titleText, pseudoTitleId])\n\n const Component = visuallyHidden ? VisuallyHiddenText : Text\n\n return (\n <Component {...props} {...actualTypography} as=\"h1\" className={actualClassName}>\n {children}\n </Component>\n )\n },\n)\n"],"names":[],"mappings":";;;;;;;;AA4BA;AACE;AACA;AACE;AACE;AACD;AACF;AACD;AACE;AACD;AACF;AAED;AAEO;;AAeH;AACE;;AAGE;;AAGF;AACF;AAEA;AACA;;;;;;AAUM;AAEF;AACA;AACA;AACA;AAEA;;AAEE;AACF;AAEA;;AAEA;;AAGF;AACF;;AAIA;AAKF;;"}
@@ -1,4 +1,4 @@
1
- import { FaCheck, FaCircleInfo, FaUpRightFromSquare, FaCaretDown, FaEllipsis, FaCircleExclamation, FaTriangleExclamation, FaAngleDown, FaMagnifyingGlassMinus, FaMagnifyingGlassPlus, FaArrowRotateLeft, FaMagnifyingGlass, FaTrashCan, FaFolderOpen, FaCircleQuestion, FaArrowLeft, FaGrip, FaXmark, FaAnglesRight, FaChevronRight, FaAnglesLeft, FaChevronLeft, FaSortUp, FaSortDown, FaCaretRight, FaRotate, FaCircleCheck, FaCalendarDays, FaCirclePlus, FaCircleXmark, FaToolbox, FaGlobe, FaAngleRight, FaArrowRight, FaStar, FaUser, FaGear, FaGraduationCap, FaCaretUp, FaBars, FaUserLarge, FaAddressBook, FaAddressCard, FaAngleLeft, FaAngleUp, FaArrowDown, FaArrowDownWideShort, FaArrowRightArrowLeft, FaArrowRotateRight, FaArrowUp19, FaArrowUp, FaArrowUpWideShort, FaArrowsRotate, FaAsterisk, FaAt, FaBabyCarriage, FaBan, FaBarsStaggered, FaBell, FaBellSlash, FaBolt, FaBook, FaBookOpen, FaBoxArchive, FaBuilding, FaBullhorn, FaCakeCandles, FaCalculator, FaCalendarCheck, FaCalendarXmark, FaCamera, FaCaretLeft, FaChartArea, FaChartBar, FaChartColumn, FaChartLine, FaChartPie, FaChevronDown, FaCircleDot, FaCircle, FaCircleMinus, FaCircleUser, FaClipboardCheck, FaClipboard, FaClipboardList, FaClipboardQuestion, FaClock, FaClockRotateLeft, FaCloudArrowDown, FaCloudArrowUp, FaCode, FaCommentDots, FaComment, FaComments, FaCompress, FaCopy, FaCube, FaCubes, FaDatabase, FaDoorOpen, FaDownLeftAndUpRightToCenter, FaEllipsisVertical, FaEnvelope, FaEnvelopeOpen, FaExpand, FaEye, FaEyeSlash, FaFileArrowDown, FaFileCirclePlus, FaFileCode, FaFileCsv, FaFileExcel, FaFileExport, FaFile, FaFileLines, FaFilePdf, FaFilePowerpoint, FaFileWord, FaFilter, FaFloppyDisk, FaFolder, FaFolderPlus, FaFont, FaGauge, FaGears, FaGripLines, FaGripLinesVertical, FaGripVertical, FaHourglassHalf, FaHouse, FaIdBadge, FaIdCard, FaImage, FaImages, FaInbox, FaIntercom, FaKey, FaLeftLong, FaLeftRight, FaLightbulb, FaLink, FaLinkSlash, FaList, FaListOl, FaListUl, FaLock, FaLockOpen, FaMessage, FaMicrosoft, FaMoneyCheckDollar, FaPaintbrush, FaPaperPlane, FaPaperclip, FaPen, FaPenToSquare, FaPencil, FaPiggyBank, FaPlus, FaPowerOff, FaPrint, FaRegCircleQuestion, FaRegLightbulb, FaReply, FaRightFromBracket, FaRightLeft, FaRightLong, FaRightToBracket, FaRobot, FaRocket, FaRotateLeft, FaShareNodes, FaShieldHalved, FaSliders, FaSort, FaSquareCheck, FaSquareMinus, FaSquarePlus, FaSquarePollVertical, FaSuitcaseMedical, FaTable, FaTableList, FaTableColumns, FaTag, FaTags, FaThumbtack, FaTrash, FaTruck, FaTruckRampBox, FaUpDown, FaUpRightAndDownLeftFromCenter, FaUserCheck, FaUserClock, FaUserPen, FaUserPlus, FaUsers, FaWindowMaximize, FaWindowMinimize, FaWindowRestore, FaYenSign, FaMinus } from './../../vendor/.pnpm/react-icons@5.5.0_react@19.2.0/vendor/react-icons/fa6/index.js';
1
+ import { FaCheck, FaCircleInfo, FaUpRightFromSquare, FaCaretDown, FaEllipsis, FaCircleExclamation, FaTriangleExclamation, FaAngleDown, FaMagnifyingGlassMinus, FaMagnifyingGlassPlus, FaArrowRotateLeft, FaMagnifyingGlass, FaTrashCan, FaFolderOpen, FaCircleQuestion, FaArrowLeft, FaGrip, FaXmark, FaAnglesRight, FaChevronRight, FaAnglesLeft, FaChevronLeft, FaSortUp, FaSortDown, FaCaretRight, FaRotate, FaCircleCheck, FaCalendarDays, FaCirclePlus, FaCircleXmark, FaToolbox, FaGlobe, FaAngleRight, FaArrowRight, FaStar, FaUser, FaGear, FaGraduationCap, FaCaretUp, FaBars, FaUserLarge, FaAddressBook, FaAddressCard, FaAngleLeft, FaAngleUp, FaArrowDown, FaArrowDownWideShort, FaArrowRightArrowLeft, FaArrowRotateRight, FaArrowUp19, FaArrowUp, FaArrowUpWideShort, FaArrowsRotate, FaAsterisk, FaAt, FaBabyCarriage, FaBan, FaBarsStaggered, FaBell, FaBellSlash, FaBolt, FaBook, FaBookOpen, FaBoxArchive, FaBuilding, FaBullhorn, FaCakeCandles, FaCalculator, FaCalendarCheck, FaCalendarXmark, FaCamera, FaCaretLeft, FaChartArea, FaChartBar, FaChartColumn, FaChartLine, FaChartPie, FaChevronDown, FaCircleDot, FaCircle, FaCircleMinus, FaCircleUser, FaClipboardCheck, FaClipboard, FaClipboardList, FaClipboardQuestion, FaClock, FaClockRotateLeft, FaCloudArrowDown, FaCloudArrowUp, FaCode, FaCommentDots, FaComment, FaComments, FaCompress, FaCopy, FaCube, FaCubes, FaDatabase, FaDoorOpen, FaDownLeftAndUpRightToCenter, FaEllipsisVertical, FaEnvelope, FaEnvelopeOpen, FaExpand, FaEye, FaEyeSlash, FaFileArrowDown, FaFileCirclePlus, FaFileCode, FaFileCsv, FaFileExcel, FaFileExport, FaFile, FaFileLines, FaFilePdf, FaFilePowerpoint, FaFileWord, FaFilter, FaFloppyDisk, FaFolder, FaFolderPlus, FaFont, FaGauge, FaGears, FaGripLines, FaGripLinesVertical, FaGripVertical, FaHourglassHalf, FaHouse, FaIdBadge, FaIdCard, FaImage, FaImages, FaInbox, FaIntercom, FaKey, FaLeftLong, FaLeftRight, FaLightbulb, FaLink, FaLinkSlash, FaList, FaListOl, FaListUl, FaLock, FaLockOpen, FaMessage, FaMicrosoft, FaMoneyCheckDollar, FaPaintbrush, FaPaperPlane, FaPaperclip, FaPen, FaPenToSquare, FaPencil, FaPiggyBank, FaPlus, FaPowerOff, FaPrint, FaRegCircleQuestion, FaRegLightbulb, FaReply, FaRightFromBracket, FaRightLeft, FaRightLong, FaRightToBracket, FaRobot, FaRocket, FaRotateLeft, FaShareNodes, FaShieldHalved, FaSliders, FaSort, FaSquareCheck, FaSquareMinus, FaSquarePlus, FaSquarePollVertical, FaSuitcaseMedical, FaTable, FaTableList, FaTableColumns, FaTag, FaTags, FaThumbtack, FaTrash, FaTruck, FaTruckRampBox, FaUpDown, FaUpRightAndDownLeftFromCenter, FaUserCheck, FaUserClock, FaUserPen, FaUserPlus, FaUsers, FaWindowMaximize, FaWindowMinimize, FaWindowRestore, FaYenSign, FaMinus } from './../../vendor/.pnpm/react-icons@5.5.0_react@19.2.1/vendor/react-icons/fa6/index.js';
2
2
  import { generateIcon } from './generateIcon.js';
3
3
  export { WarningIcon } from './WarningIcon.js';
4
4
  export { SparklesIcon } from './SparklesIcon.js';
@@ -1,6 +1,6 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
2
  import { generateIcon } from './generateIcon.js';
3
- import { IconBase } from './../../vendor/.pnpm/react-icons@5.5.0_react@19.2.0/vendor/react-icons/lib/iconBase.js';
3
+ import { IconBase } from './../../vendor/.pnpm/react-icons@5.5.0_react@19.2.1/vendor/react-icons/lib/iconBase.js';
4
4
 
5
5
  const LanguageIcon = /*#__PURE__*/ generateIcon((props) => (jsx(IconBase, { ...props, viewBox: "0 0 16 16", children: jsx("path", { fillRule: "evenodd", d: "M14.5 8c0 .606-.083 1.193-.238 1.75h-2.206c.066-.563.1-1.149.1-1.75s-.034-1.187-.1-1.75h2.206c.155.557.238 1.144.238 1.75Zm-3.955-1.75c.072.554.111 1.14.111 1.75 0 .61-.04 1.196-.111 1.75H5.424A13.58 13.58 0 0 1 5.312 8c0-.61.04-1.196.112-1.75h5.12Zm1.253-1.5h1.832a6.529 6.529 0 0 0-2.802-2.604c.408.729.74 1.613.97 2.604ZM7.988 1.5c.312.002.959.276 1.616 1.537.253.485.475 1.063.648 1.713H5.717c.173-.65.394-1.228.647-1.713.656-1.258 1.3-1.533 1.614-1.537h.01ZM7.968 0a8 8 0 0 0 0 16H8a8 8 0 1 0-.033-16Zm2.86 13.854a6.528 6.528 0 0 0 2.802-2.604h-1.832c-.23.99-.562 1.875-.97 2.604Zm-.576-2.604H5.717c.173.65.394 1.228.647 1.713.656 1.258 1.3 1.533 1.614 1.537h.01c.312-.002.959-.275 1.616-1.537a8.418 8.418 0 0 0 .648-1.713Zm-5.123 2.583c-.402-.725-.73-1.602-.958-2.583H2.37a6.53 6.53 0 0 0 2.76 2.583ZM3.913 9.75H1.738A6.506 6.506 0 0 1 1.5 8c0-.606.083-1.193.238-1.75h2.175a15.158 15.158 0 0 0 0 3.5Zm.258-5H2.37a6.53 6.53 0 0 1 2.76-2.583c-.403.725-.731 1.602-.959 2.583Z" }) })));
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
2
  import { generateIcon } from './generateIcon.js';
3
- import { IconBase } from './../../vendor/.pnpm/react-icons@5.5.0_react@19.2.0/vendor/react-icons/lib/iconBase.js';
3
+ import { IconBase } from './../../vendor/.pnpm/react-icons@5.5.0_react@19.2.1/vendor/react-icons/lib/iconBase.js';
4
4
 
5
5
  const SparklesIcon = /*#__PURE__*/ generateIcon((props) => (jsx(IconBase, { ...props, viewBox: "0 0 16 16", children: jsx("path", { d: "M.373 8.616c-.497-.188-.497-.906 0-1.094l3.31-1.25a.578.578 0 0 0 .338-.345l1.225-3.38a.567.567 0 0 1 1.072 0l1.225 3.38c.058.16.181.285.337.345l3.31 1.25c.498.188.498.906 0 1.094l-3.31 1.25a.577.577 0 0 0-.337.345l-1.225 3.38a.567.567 0 0 1-1.072 0l-1.225-3.38a.577.577 0 0 0-.337-.344l-3.31-1.25ZM10.396 13.412c-.147-.056-.147-.269 0-.324l.982-.371a.17.17 0 0 0 .1-.102l.363-1.002a.168.168 0 0 1 .318 0l.363 1.002a.17.17 0 0 0 .1.102l.982.37c.147.056.147.27 0 .325l-.982.371a.17.17 0 0 0-.1.102l-.363 1.002a.168.168 0 0 1-.318 0l-.363-1.002a.17.17 0 0 0-.1-.102l-.982-.37ZM10.47 4.187c-.246-.093-.246-.448 0-.54l1.636-.619a.285.285 0 0 0 .167-.17l.605-1.67a.28.28 0 0 1 .53 0l.605 1.67c.029.079.09.141.167.17l1.636.618c.245.093.245.448 0 .541l-1.636.618a.285.285 0 0 0-.167.17l-.605 1.67a.28.28 0 0 1-.53 0l-.605-1.67a.285.285 0 0 0-.167-.17l-1.636-.618Z" }) })));
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import { generateIcon } from './generateIcon.js';
3
- import { IconBase } from './../../vendor/.pnpm/react-icons@5.5.0_react@19.2.0/vendor/react-icons/lib/iconBase.js';
3
+ import { IconBase } from './../../vendor/.pnpm/react-icons@5.5.0_react@19.2.1/vendor/react-icons/lib/iconBase.js';
4
4
 
5
5
  const WarningIcon = /*#__PURE__*/ generateIcon((props) => (jsxs(IconBase, { ...props, viewBox: "0 0 16 16", children: [jsx("path", { d: "m8.863 1.745 6.75 11.5a.998.998 0 0 1-.862 1.505H1.25c-.358 0-.69-.193-.868-.502a1.005 1.005 0 0 1 .005-1.003l6.75-11.5a.998.998 0 0 1 1.725 0Z", className: "smarthr-ui-WarningIcon-wrapper shr-fill-warning-yellow shr-stroke-black shr-stroke-0.5" }), jsx("path", { className: "smarthr-ui-WarningIcon-mark shr-fill-black", d: "M8 5a.748.748 0 0 0-.75.75v3.5c0 .416.334.75.75.75s.75-.334.75-.75v-3.5A.748.748 0 0 0 8 5Zm1 7a1 1 0 1 0-2 0 1 1 0 0 0 2 0Z" })] })));
6
6
 
@@ -11,7 +11,7 @@ type AbstractProps = PropsWithChildren<{
11
11
  */
12
12
  titleTag?: HeadingTagTypes;
13
13
  /** `true` のとき、開閉ボタンを表示する */
14
- togglable?: boolean;
14
+ toggleable?: boolean;
15
15
  /** 開閉ボタン押下時に発火するコールバック関数 */
16
16
  onClickTrigger?: (active: boolean) => void;
17
17
  /** コンポーネント内の文言を変更するための関数を設定 */
@@ -44,7 +44,7 @@ export declare const classNameGenerator: import("tailwind-variants").TVReturnTyp
44
44
  wrapper: string;
45
45
  header: string;
46
46
  heading: string;
47
- togglableButton: string;
47
+ toggleableButton: string;
48
48
  content: string[];
49
49
  }, undefined, import("tailwind-variants/dist/config.js").TVConfig<{
50
50
  type: {
@@ -113,7 +113,7 @@ export declare const classNameGenerator: import("tailwind-variants").TVReturnTyp
113
113
  wrapper: string;
114
114
  header: string;
115
115
  heading: string;
116
- togglableButton: string;
116
+ toggleableButton: string;
117
117
  content: string[];
118
118
  }, import("tailwind-variants").TVReturnType<{
119
119
  type: {
@@ -140,7 +140,7 @@ export declare const classNameGenerator: import("tailwind-variants").TVReturnTyp
140
140
  wrapper: string;
141
141
  header: string;
142
142
  heading: string;
143
- togglableButton: string;
143
+ toggleableButton: string;
144
144
  content: string[];
145
145
  }, undefined, import("tailwind-variants/dist/config.js").TVConfig<{
146
146
  type: {
@@ -28,7 +28,7 @@ const classNameGenerator = ce({
28
28
  wrapper: 'smarthr-ui-InformationPanel shr-shadow-layer-3',
29
29
  header: 'shr-p-1.5',
30
30
  heading: 'smarthr-ui-InformationPanel-title',
31
- togglableButton: 'smarthr-ui-InformationPanel-closeButton -shr-my-0.5 shr-ms-auto',
31
+ toggleableButton: 'smarthr-ui-InformationPanel-closeButton -shr-my-0.5 shr-ms-auto',
32
32
  content: [
33
33
  'smarthr-ui-InformationPanel-content',
34
34
  'shr-p-1.5 shr-pt-0 shr-text-base aria-hidden:shr-hidden',
@@ -92,7 +92,7 @@ const classNameGenerator = ce({
92
92
  },
93
93
  ],
94
94
  });
95
- const InformationPanel = ({ title, titleTag, type = 'info', togglable, active: activeProps = true, bold, className, children, onClickTrigger, decorators, ...props }) => {
95
+ const InformationPanel = ({ title, titleTag, type = 'info', toggleable, active: activeProps = true, bold, className, children, onClickTrigger, decorators, ...props }) => {
96
96
  const [active, setActive] = useState(activeProps);
97
97
  const id = useId();
98
98
  const titleId = `${id}-title`;
@@ -117,23 +117,23 @@ const InformationPanel = ({ title, titleTag, type = 'info', togglable, active: a
117
117
  wrapper: withActive.wrapper(wrapperProps),
118
118
  header: withActive.header(),
119
119
  heading: withActive.heading(),
120
- togglableButton: withActive.togglableButton(),
120
+ toggleableButton: withActive.toggleableButton(),
121
121
  content: withActive.content(),
122
122
  },
123
123
  inactive: {
124
124
  wrapper: withInactive.wrapper(wrapperProps),
125
125
  header: withInactive.header(),
126
126
  heading: withInactive.heading(),
127
- togglableButton: withInactive.togglableButton(),
127
+ toggleableButton: withInactive.toggleableButton(),
128
128
  content: withInactive.content(),
129
129
  },
130
130
  };
131
131
  }, [bold, type, className]);
132
132
  const classNames = classNamesMapper[active ? 'active' : 'inactive'];
133
- return (jsxs(Base, { ...props, overflow: "hidden", as: "section", className: classNames.wrapper, children: [jsxs(Sidebar, { align: "baseline", right: true, className: classNames.header, children: [jsx(MemoizedHeading, { tag: titleTag, id: titleId, className: classNames.heading, type: type, children: title }), togglable && (jsx(TogglableButton, { active: active, onClickTrigger: onClickTrigger, setActive: setActive, contentId: contentId, className: classNames.togglableButton, decorators: decorators }))] }), jsx("div", { id: contentId, "aria-hidden": !active, className: classNames.content, children: children })] }));
133
+ return (jsxs(Base, { ...props, overflow: "hidden", as: "section", className: classNames.wrapper, children: [jsxs(Sidebar, { align: "baseline", right: true, className: classNames.header, children: [jsx(MemoizedHeading, { tag: titleTag, id: titleId, className: classNames.heading, type: type, children: title }), toggleable && (jsx(ToggleableButton, { active: active, onClickTrigger: onClickTrigger, setActive: setActive, contentId: contentId, className: classNames.toggleableButton, decorators: decorators }))] }), jsx("div", { id: contentId, "aria-hidden": !active, className: classNames.content, children: children })] }));
134
134
  };
135
135
  const MemoizedHeading = memo(({ type, children, ...rest }) => (jsx(Heading, { ...rest, type: "blockTitle", children: jsx(ResponseMessage, { type: type, iconGap: 0.5, children: children }) })));
136
- const TogglableButton = ({ active, onClickTrigger, setActive, contentId, className, decorators }) => {
136
+ const ToggleableButton = ({ active, onClickTrigger, setActive, contentId, className, decorators }) => {
137
137
  const { localize } = useIntl();
138
138
  const decoratorDefaultTexts = useMemo(() => ({
139
139
  openButtonLabel: localize({
@@ -1 +1 @@
1
- {"version":3,"file":"InformationPanel.js","sources":["../../../src/components/InformationPanel/InformationPanel.tsx"],"sourcesContent":["'use client'\n\nimport {\n type FC,\n type PropsWithChildren,\n type ReactNode,\n memo,\n useEffect,\n useId,\n useMemo,\n useState,\n} from 'react'\nimport { type VariantProps, tv } from 'tailwind-variants'\n\nimport { type DecoratorsType, useDecorators } from '../../hooks/useDecorators'\nimport { useIntl } from '../../intl'\nimport { Base, type BaseElementProps } from '../Base'\nimport { Button } from '../Button'\nimport { Heading, type HeadingTagTypes } from '../Heading'\nimport { FaCaretDownIcon, FaCaretUpIcon } from '../Icon'\nimport { Sidebar } from '../Layout'\nimport { ResponseMessage } from '../ResponseMessage'\n\ntype AbstractProps = PropsWithChildren<{\n /** パネルのタイトル */\n title: ReactNode\n /**\n * @deprecated titleTagは非推奨です\n */\n titleTag?: HeadingTagTypes\n /** `true` のとき、開閉ボタンを表示する */\n togglable?: boolean\n /** 開閉ボタン押下時に発火するコールバック関数 */\n onClickTrigger?: (active: boolean) => void\n /** コンポーネント内の文言を変更するための関数を設定 */\n decorators?: DecoratorsType<DecoratorKeyTypes>\n}> &\n VariantProps<typeof classNameGenerator>\n\ntype DecoratorKeyTypes = 'openButtonLabel' | 'closeButtonLabel'\n\ntype Props = AbstractProps & Omit<BaseElementProps, keyof AbstractProps>\n\nexport const classNameGenerator = tv({\n slots: {\n wrapper: 'smarthr-ui-InformationPanel shr-shadow-layer-3',\n header: 'shr-p-1.5',\n heading: 'smarthr-ui-InformationPanel-title',\n togglableButton: 'smarthr-ui-InformationPanel-closeButton -shr-my-0.5 shr-ms-auto',\n content: [\n 'smarthr-ui-InformationPanel-content',\n 'shr-p-1.5 shr-pt-0 shr-text-base aria-hidden:shr-hidden',\n ],\n },\n variants: {\n type: {\n success: {},\n info: {},\n warning: {},\n error: {},\n sync: {},\n },\n active: {\n true: {},\n false: {\n header: 'shr-py-1',\n },\n },\n bold: {\n true: {\n header: 'shr-py-1',\n content: 'shr-pt-1',\n },\n false: {},\n },\n },\n compoundVariants: [\n {\n type: ['success', 'warning', 'error'],\n bold: true,\n className: {\n header: 'shr-text-white',\n heading: '[&_.smarthr-ui-Icon]:shr-fill-white',\n },\n },\n {\n type: 'success',\n bold: true,\n className: {\n header: 'shr-bg-main',\n },\n },\n {\n type: 'warning',\n bold: true,\n className: {\n header: 'shr-bg-warning-yellow shr-text-black',\n heading: [\n '[&_.smarthr-ui-WarningIcon-wrapper]:shr-fill-black',\n '[&_.smarthr-ui-WarningIcon-mark]:shr-fill-warning-yellow',\n ],\n },\n },\n {\n type: 'error',\n bold: true,\n className: {\n header: 'shr-bg-danger',\n },\n },\n ],\n})\n\nexport const InformationPanel: FC<Props> = ({\n title,\n titleTag,\n type = 'info',\n togglable,\n active: activeProps = true,\n bold,\n className,\n children,\n onClickTrigger,\n decorators,\n ...props\n}) => {\n const [active, setActive] = useState(activeProps)\n const id = useId()\n const titleId = `${id}-title`\n const contentId = `${id}-content`\n\n useEffect(() => {\n setActive(activeProps)\n }, [activeProps])\n\n const classNamesMapper = useMemo(() => {\n const withActive = classNameGenerator({\n type,\n active: true,\n bold,\n })\n const withInactive = classNameGenerator({\n type,\n active: false,\n bold,\n })\n\n const wrapperProps = { className }\n\n return {\n active: {\n wrapper: withActive.wrapper(wrapperProps),\n header: withActive.header(),\n heading: withActive.heading(),\n togglableButton: withActive.togglableButton(),\n content: withActive.content(),\n },\n inactive: {\n wrapper: withInactive.wrapper(wrapperProps),\n header: withInactive.header(),\n heading: withInactive.heading(),\n togglableButton: withInactive.togglableButton(),\n content: withInactive.content(),\n },\n }\n }, [bold, type, className])\n\n const classNames = classNamesMapper[active ? 'active' : 'inactive']\n\n return (\n <Base {...props} overflow=\"hidden\" as=\"section\" className={classNames.wrapper}>\n <Sidebar align=\"baseline\" right className={classNames.header}>\n {/* eslint-disable-next-line smarthr/a11y-heading-in-sectioning-content */}\n <MemoizedHeading tag={titleTag} id={titleId} className={classNames.heading} type={type}>\n {title}\n </MemoizedHeading>\n {togglable && (\n <TogglableButton\n active={active}\n onClickTrigger={onClickTrigger}\n setActive={setActive}\n contentId={contentId}\n className={classNames.togglableButton}\n decorators={decorators}\n />\n )}\n </Sidebar>\n <div id={contentId} aria-hidden={!active} className={classNames.content}>\n {children}\n </div>\n </Base>\n )\n}\n\nconst MemoizedHeading = memo<\n Pick<Props, 'type'> & {\n tag: Props['titleTag']\n id: string\n className: string\n children: Props['title']\n }\n>(({ type, children, ...rest }) => (\n <Heading {...rest} type=\"blockTitle\">\n <ResponseMessage type={type} iconGap={0.5}>\n {children}\n </ResponseMessage>\n </Heading>\n))\n\nconst TogglableButton: FC<\n Pick<Props, 'onClickTrigger' | 'decorators'> & {\n active: boolean\n setActive: (flg: boolean) => void\n contentId: string\n className: string\n }\n> = ({ active, onClickTrigger, setActive, contentId, className, decorators }) => {\n const { localize } = useIntl()\n\n const decoratorDefaultTexts = useMemo(\n () => ({\n openButtonLabel: localize({\n id: 'smarthr-ui/InformationPanel/openButtonLabel',\n defaultText: '開く',\n }),\n closeButtonLabel: localize({\n id: 'smarthr-ui/InformationPanel/closeButtonLabel',\n defaultText: '閉じる',\n }),\n }),\n [localize],\n )\n\n const decorated = useDecorators<DecoratorKeyTypes>(decoratorDefaultTexts, decorators)\n\n const onClick = useMemo(\n () => (onClickTrigger ? () => onClickTrigger(active) : () => setActive(!active)),\n [active, onClickTrigger, setActive],\n )\n\n return (\n <Button\n aria-expanded={active}\n aria-controls={contentId}\n onClick={onClick}\n suffix={active ? <FaCaretUpIcon /> : <FaCaretDownIcon />}\n size=\"s\"\n className={className}\n >\n {decorated[active ? 'closeButtonLabel' : 'openButtonLabel']}\n </Button>\n )\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AA2CO;AACL;AACE;AACA;AACA;AACA;AACA;;;AAGC;AACF;AACD;AACE;AACE;AACA;AACA;AACA;AACA;AACD;AACD;AACE;AACA;AACE;AACD;AACF;AACD;AACE;AACE;AACA;AACD;AACD;AACD;AACF;AACD;AACE;AACE;AACA;AACA;AACE;AACA;AACD;AACF;AACD;AACE;AACA;AACA;AACE;AACD;AACF;AACD;AACE;AACA;AACA;AACE;AACA;;;AAGC;AACF;AACF;AACD;AACE;AACA;AACA;AACE;AACD;AACF;AACF;AACF;AAEM;;AAcL;AACA;AACA;;;AAIA;AAEA;;;AAGI;;AAED;;;AAGC;;AAED;AAED;;AAGE;AACE;AACA;AACA;AACA;AACA;AACD;AACD;AACE;AACA;AACA;AACA;AACA;AACD;;;AAIL;;AAyBF;AAEA;AAeA;AAQE;AAEA;;AAGM;AACA;;;AAGA;AACA;;AAEH;;AAMH;;AAiBF;;"}
1
+ {"version":3,"file":"InformationPanel.js","sources":["../../../src/components/InformationPanel/InformationPanel.tsx"],"sourcesContent":["'use client'\n\nimport {\n type FC,\n type PropsWithChildren,\n type ReactNode,\n memo,\n useEffect,\n useId,\n useMemo,\n useState,\n} from 'react'\nimport { type VariantProps, tv } from 'tailwind-variants'\n\nimport { type DecoratorsType, useDecorators } from '../../hooks/useDecorators'\nimport { useIntl } from '../../intl'\nimport { Base, type BaseElementProps } from '../Base'\nimport { Button } from '../Button'\nimport { Heading, type HeadingTagTypes } from '../Heading'\nimport { FaCaretDownIcon, FaCaretUpIcon } from '../Icon'\nimport { Sidebar } from '../Layout'\nimport { ResponseMessage } from '../ResponseMessage'\n\ntype AbstractProps = PropsWithChildren<{\n /** パネルのタイトル */\n title: ReactNode\n /**\n * @deprecated titleTagは非推奨です\n */\n titleTag?: HeadingTagTypes\n /** `true` のとき、開閉ボタンを表示する */\n toggleable?: boolean\n /** 開閉ボタン押下時に発火するコールバック関数 */\n onClickTrigger?: (active: boolean) => void\n /** コンポーネント内の文言を変更するための関数を設定 */\n decorators?: DecoratorsType<DecoratorKeyTypes>\n}> &\n VariantProps<typeof classNameGenerator>\n\ntype DecoratorKeyTypes = 'openButtonLabel' | 'closeButtonLabel'\n\ntype Props = AbstractProps & Omit<BaseElementProps, keyof AbstractProps>\n\nexport const classNameGenerator = tv({\n slots: {\n wrapper: 'smarthr-ui-InformationPanel shr-shadow-layer-3',\n header: 'shr-p-1.5',\n heading: 'smarthr-ui-InformationPanel-title',\n toggleableButton: 'smarthr-ui-InformationPanel-closeButton -shr-my-0.5 shr-ms-auto',\n content: [\n 'smarthr-ui-InformationPanel-content',\n 'shr-p-1.5 shr-pt-0 shr-text-base aria-hidden:shr-hidden',\n ],\n },\n variants: {\n type: {\n success: {},\n info: {},\n warning: {},\n error: {},\n sync: {},\n },\n active: {\n true: {},\n false: {\n header: 'shr-py-1',\n },\n },\n bold: {\n true: {\n header: 'shr-py-1',\n content: 'shr-pt-1',\n },\n false: {},\n },\n },\n compoundVariants: [\n {\n type: ['success', 'warning', 'error'],\n bold: true,\n className: {\n header: 'shr-text-white',\n heading: '[&_.smarthr-ui-Icon]:shr-fill-white',\n },\n },\n {\n type: 'success',\n bold: true,\n className: {\n header: 'shr-bg-main',\n },\n },\n {\n type: 'warning',\n bold: true,\n className: {\n header: 'shr-bg-warning-yellow shr-text-black',\n heading: [\n '[&_.smarthr-ui-WarningIcon-wrapper]:shr-fill-black',\n '[&_.smarthr-ui-WarningIcon-mark]:shr-fill-warning-yellow',\n ],\n },\n },\n {\n type: 'error',\n bold: true,\n className: {\n header: 'shr-bg-danger',\n },\n },\n ],\n})\n\nexport const InformationPanel: FC<Props> = ({\n title,\n titleTag,\n type = 'info',\n toggleable,\n active: activeProps = true,\n bold,\n className,\n children,\n onClickTrigger,\n decorators,\n ...props\n}) => {\n const [active, setActive] = useState(activeProps)\n const id = useId()\n const titleId = `${id}-title`\n const contentId = `${id}-content`\n\n useEffect(() => {\n setActive(activeProps)\n }, [activeProps])\n\n const classNamesMapper = useMemo(() => {\n const withActive = classNameGenerator({\n type,\n active: true,\n bold,\n })\n const withInactive = classNameGenerator({\n type,\n active: false,\n bold,\n })\n\n const wrapperProps = { className }\n\n return {\n active: {\n wrapper: withActive.wrapper(wrapperProps),\n header: withActive.header(),\n heading: withActive.heading(),\n toggleableButton: withActive.toggleableButton(),\n content: withActive.content(),\n },\n inactive: {\n wrapper: withInactive.wrapper(wrapperProps),\n header: withInactive.header(),\n heading: withInactive.heading(),\n toggleableButton: withInactive.toggleableButton(),\n content: withInactive.content(),\n },\n }\n }, [bold, type, className])\n\n const classNames = classNamesMapper[active ? 'active' : 'inactive']\n\n return (\n <Base {...props} overflow=\"hidden\" as=\"section\" className={classNames.wrapper}>\n <Sidebar align=\"baseline\" right className={classNames.header}>\n {/* eslint-disable-next-line smarthr/a11y-heading-in-sectioning-content */}\n <MemoizedHeading tag={titleTag} id={titleId} className={classNames.heading} type={type}>\n {title}\n </MemoizedHeading>\n {toggleable && (\n <ToggleableButton\n active={active}\n onClickTrigger={onClickTrigger}\n setActive={setActive}\n contentId={contentId}\n className={classNames.toggleableButton}\n decorators={decorators}\n />\n )}\n </Sidebar>\n <div id={contentId} aria-hidden={!active} className={classNames.content}>\n {children}\n </div>\n </Base>\n )\n}\n\nconst MemoizedHeading = memo<\n Pick<Props, 'type'> & {\n tag: Props['titleTag']\n id: string\n className: string\n children: Props['title']\n }\n>(({ type, children, ...rest }) => (\n <Heading {...rest} type=\"blockTitle\">\n <ResponseMessage type={type} iconGap={0.5}>\n {children}\n </ResponseMessage>\n </Heading>\n))\n\nconst ToggleableButton: FC<\n Pick<Props, 'onClickTrigger' | 'decorators'> & {\n active: boolean\n setActive: (flg: boolean) => void\n contentId: string\n className: string\n }\n> = ({ active, onClickTrigger, setActive, contentId, className, decorators }) => {\n const { localize } = useIntl()\n\n const decoratorDefaultTexts = useMemo(\n () => ({\n openButtonLabel: localize({\n id: 'smarthr-ui/InformationPanel/openButtonLabel',\n defaultText: '開く',\n }),\n closeButtonLabel: localize({\n id: 'smarthr-ui/InformationPanel/closeButtonLabel',\n defaultText: '閉じる',\n }),\n }),\n [localize],\n )\n\n const decorated = useDecorators<DecoratorKeyTypes>(decoratorDefaultTexts, decorators)\n\n const onClick = useMemo(\n () => (onClickTrigger ? () => onClickTrigger(active) : () => setActive(!active)),\n [active, onClickTrigger, setActive],\n )\n\n return (\n <Button\n aria-expanded={active}\n aria-controls={contentId}\n onClick={onClick}\n suffix={active ? <FaCaretUpIcon /> : <FaCaretDownIcon />}\n size=\"s\"\n className={className}\n >\n {decorated[active ? 'closeButtonLabel' : 'openButtonLabel']}\n </Button>\n )\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AA2CO;AACL;AACE;AACA;AACA;AACA;AACA;;;AAGC;AACF;AACD;AACE;AACE;AACA;AACA;AACA;AACA;AACD;AACD;AACE;AACA;AACE;AACD;AACF;AACD;AACE;AACE;AACA;AACD;AACD;AACD;AACF;AACD;AACE;AACE;AACA;AACA;AACE;AACA;AACD;AACF;AACD;AACE;AACA;AACA;AACE;AACD;AACF;AACD;AACE;AACA;AACA;AACE;AACA;;;AAGC;AACF;AACF;AACD;AACE;AACA;AACA;AACE;AACD;AACF;AACF;AACF;AAEM;;AAcL;AACA;AACA;;;AAIA;AAEA;;;AAGI;;AAED;;;AAGC;;AAED;AAED;;AAGE;AACE;AACA;AACA;AACA;AACA;AACD;AACD;AACE;AACA;AACA;AACA;AACA;AACD;;;AAIL;;AAyBF;AAEA;AAeA;AAQE;AAEA;;AAGM;AACA;;;AAGA;AACA;;AAEH;;AAMH;;AAiBF;;"}
@@ -179,7 +179,7 @@ const NotificationBar = ({ type, bold, animate, subActionArea, onClose, children
179
179
  };
180
180
  const MessageArea = memo(({ children, bold, type, classNames }) => {
181
181
  const Icon = ICON_MAPPER[bold ? 'bold' : 'normal'][type];
182
- return (jsx(Text, { prefixIcon: jsx(Icon, { iconGap: 0.5, className: classNames.icon }), className: classNames.messageArea, as: "div", children: children }));
182
+ return (jsx(Text, { prefixIcon: jsx(Icon, { iconGap: 0.5, className: classNames.icon }), className: classNames.messageArea, as: "div", iconGap: 0.5, children: children }));
183
183
  });
184
184
  const CloseButton = memo(({ onClose, className }) => onClose && (jsx(Button, { variant: "text", size: "s", onClick: onClose, className: className, children: jsx(FaXmarkIcon, { alt: jsx(Localizer, { id: "smarthr-ui/NotificationBar/closeButtonIconAlt", defaultText: "\u9589\u3058\u308B" }) }) })));
185
185
 
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationBar.js","sources":["../../../src/components/NotificationBar/NotificationBar.tsx"],"sourcesContent":["import {\n type ComponentProps,\n type ComponentPropsWithoutRef,\n type FC,\n Fragment,\n type PropsWithChildren,\n type ReactNode,\n memo,\n useMemo,\n} from 'react'\nimport { type VariantProps, tv } from 'tailwind-variants'\n\nimport { Localizer } from '../../intl'\nimport { Base } from '../Base'\nimport { Button } from '../Button'\nimport {\n FaCircleCheckIcon,\n FaCircleExclamationIcon,\n FaCircleInfoIcon,\n FaRotateIcon,\n FaTriangleExclamationIcon,\n FaXmarkIcon,\n WarningIcon,\n} from '../Icon'\nimport { Cluster } from '../Layout'\nimport { Text } from '../Text'\n\nconst classNameGenerator = tv({\n slots: {\n wrapper:\n 'smarthr-ui-NotificationBar shr-flex shr-items-baseline shr-justify-between shr-gap-0.5 shr-p-0.75',\n inner: 'shr-flex-grow',\n messageArea: [\n 'smarthr-ui-NotificationBar-messageArea',\n 'shr-flex shr-grow',\n '[&_.smarthr-ui-Icon-withText]:shr-leading-tight',\n ],\n icon: '',\n actionArea: 'smarthr-ui-NotificationBar-actionArea -shr-my-0.5 shr-shrink-0',\n closeButton:\n 'smarthr-ui-NotificationBar-closeButton -shr-mb-0.5 -shr-mr-0.5 -shr-mt-0.5 shr-flex-shrink-0 shr-text-black',\n },\n variants: {\n /** 下地 */\n base: {\n none: {},\n base: {\n wrapper: 'shr-py-1 shr-pe-1 shr-ps-1.5',\n },\n },\n /** メッセージの種類 */\n type: {\n info: {\n icon: 'shr-text-grey',\n },\n success: {},\n warning: {\n icon: 'shr-text-black',\n },\n error: {},\n sync: {\n icon: 'shr-text-main',\n },\n },\n /** 強調するかどうか */\n bold: {\n true: '',\n false: '',\n },\n /** スライドインするかどうか */\n animate: {\n true: {\n wrapper: 'shr-animate-[notification-bar-slide-in_0.2s_ease-out]',\n },\n },\n },\n compoundVariants: [\n {\n type: ['info', 'success', 'warning', 'error', 'sync'],\n bold: false,\n className: {\n wrapper: 'shr-bg-white shr-text-black',\n },\n },\n {\n type: 'success',\n bold: false,\n className: {\n icon: 'shr-text-main',\n },\n },\n {\n type: 'error',\n bold: false,\n className: {\n icon: 'shr-text-danger',\n },\n },\n {\n type: ['info', 'sync'],\n bold: true,\n className: {\n wrapper: 'shr-bg-white',\n },\n },\n {\n type: 'success',\n bold: true,\n className: {\n wrapper: 'shr-bg-main shr-text-white',\n icon: 'shr-text-white',\n closeButton:\n 'shr-text-white hover:[&]:shr-bg-main-darken focus-visible:[&]:shr-bg-main-darken',\n },\n },\n {\n type: 'warning',\n bold: true,\n className: {\n wrapper: 'shr-bg-warning-yellow shr-text-black',\n closeButton:\n 'shr-text-black hover:[&]:shr-bg-warning-yellow-darken focus-visible:[&]:shr-bg-warning-yellow-darken',\n },\n },\n {\n type: 'error',\n bold: true,\n className: {\n wrapper: 'shr-bg-danger shr-text-white',\n icon: 'shr-text-white',\n closeButton:\n 'shr-text-white hover:[&]:shr-bg-danger-darken focus-visible:[&]:shr-bg-danger-darken',\n },\n },\n ],\n})\n\ntype StyleVariants = VariantProps<typeof classNameGenerator>\ntype Props = PropsWithChildren<\n Omit<StyleVariants, 'type'> &\n Required<Pick<StyleVariants, 'type'>> & {\n /** コンポーネント右の領域 */\n subActionArea?: ReactNode\n /** 閉じるボタン押下時に発火させる関数 */\n onClose?: () => void\n /** role 属性 */\n role?: 'alert' | 'status'\n }\n>\ntype ElementProps = Omit<ComponentPropsWithoutRef<'div'>, keyof Props>\ntype BaseProps = Pick<ComponentProps<typeof Base>, 'layer'>\ntype ActualProps = Props & ElementProps & BaseProps\n\nconst ABSTRACT_ICON_MAPPER = {\n info: FaCircleInfoIcon,\n success: FaCircleCheckIcon,\n error: FaCircleExclamationIcon,\n sync: FaRotateIcon,\n}\nconst ICON_MAPPER = {\n normal: {\n ...ABSTRACT_ICON_MAPPER,\n warning: WarningIcon,\n },\n bold: {\n ...ABSTRACT_ICON_MAPPER,\n warning: FaTriangleExclamationIcon,\n },\n} as const\n\nconst ROLE_STATUS_TYPE_REGEX = /^(info|sync)$/\n\nexport const NotificationBar: FC<ActualProps> = ({\n type,\n bold,\n animate,\n subActionArea,\n onClose,\n children,\n role,\n base,\n layer,\n className,\n ...props\n}) => {\n const actualRole = useMemo(() => {\n if (role) {\n return role\n }\n\n return ROLE_STATUS_TYPE_REGEX.test(type) ? 'status' : 'alert'\n }, [role, type])\n const { WrapBase, baseProps } = useMemo(\n () =>\n base === 'base'\n ? {\n WrapBase: Base,\n baseProps: {\n layer,\n overflow: 'hidden' as ComponentProps<typeof Base>['overflow'],\n },\n }\n : {\n WrapBase: Fragment,\n baseProps: {},\n },\n [base, layer],\n )\n const classNames = useMemo(() => {\n const { wrapper, inner, messageArea, icon, actionArea, closeButton } = classNameGenerator({\n type,\n bold: !!bold,\n base: base || 'none',\n })\n\n return {\n wrapper: wrapper({ animate, className }),\n inner: inner(),\n messageArea: messageArea(),\n icon: icon(),\n actionArea: actionArea(),\n closeButton: closeButton(),\n }\n }, [animate, base, bold, type, className])\n\n return (\n <WrapBase {...baseProps}>\n <div {...props} className={classNames.wrapper} role={actualRole}>\n <Cluster gap={1} align=\"center\" justify=\"flex-end\" className={classNames.inner}>\n <MessageArea bold={bold} type={type} classNames={classNames}>\n {children}\n </MessageArea>\n {subActionArea && (\n <Cluster align=\"center\" justify=\"flex-end\" className={classNames.actionArea}>\n {subActionArea}\n </Cluster>\n )}\n </Cluster>\n <CloseButton onClose={onClose} className={classNames.closeButton} />\n </div>\n </WrapBase>\n )\n}\n\nconst MessageArea = memo<\n Pick<ActualProps, 'children' | 'bold' | 'type'> & {\n classNames: { messageArea: string; icon: string }\n }\n>(({ children, bold, type, classNames }) => {\n const Icon = ICON_MAPPER[bold ? 'bold' : 'normal'][type]\n\n return (\n <Text\n prefixIcon={<Icon iconGap={0.5} className={classNames.icon} />}\n className={classNames.messageArea}\n as=\"div\"\n >\n {children}\n </Text>\n )\n})\n\nconst CloseButton = memo<Pick<ActualProps, 'onClose'> & { className: string }>(\n ({ onClose, className }) =>\n onClose && (\n <Button variant=\"text\" size=\"s\" onClick={onClose} className={className}>\n <FaXmarkIcon\n alt={\n <Localizer id=\"smarthr-ui/NotificationBar/closeButtonIconAlt\" defaultText=\"閉じる\" />\n }\n />\n </Button>\n ),\n)\n"],"names":["tv","_jsx","_jsxs"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA2BA,MAAM,kBAAkB,GAAGA,EAAE,CAAC;AAC5B,IAAA,KAAK,EAAE;AACL,QAAA,OAAO,EACL,mGAAmG;AACrG,QAAA,KAAK,EAAE,eAAe;AACtB,QAAA,WAAW,EAAE;YACX,wCAAwC;YACxC,mBAAmB;YACnB,iDAAiD;AAClD,SAAA;AACD,QAAA,IAAI,EAAE,EAAE;AACR,QAAA,UAAU,EAAE,g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AC9D,SAAS,EAAE,UAAU,CAAC,WAAW,EACjC,EAAE,EAAC,KAAK,EAAA,QAAA,EAEP,QAAQ,EAAA,CACJ;AAEX,CAAC,CAAC;AAEF,MAAM,WAAW,GAAG,IAAI,CACtB,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,KACrB,OAAO,KACLA,GAAA,CAAC,MAAM,EAAA,EAAC,OAAO,EAAC,MAAM,EAAC,IAAI,EAAC,GAAG,EAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAA,QAAA,EACpEA,GAAA,CAAC,WAAW,EAAA,EACV,GAAG,EACDA,GAAA,CAAC,SAAS,IAAC,EAAE,EAAC,+CAA+C,EAAC,WAAW,EAAC,oBAAK,EAAA,CAAG,EAAA,CAEpF,EAAA,CACK,CACV,CACJ;;;;"}
1
+ {"version":3,"file":"NotificationBar.js","sources":["../../../src/components/NotificationBar/NotificationBar.tsx"],"sourcesContent":["import {\n type ComponentProps,\n type ComponentPropsWithoutRef,\n type FC,\n Fragment,\n type PropsWithChildren,\n type ReactNode,\n memo,\n useMemo,\n} from 'react'\nimport { type VariantProps, tv } from 'tailwind-variants'\n\nimport { Localizer } from '../../intl'\nimport { Base } from '../Base'\nimport { Button } from '../Button'\nimport {\n FaCircleCheckIcon,\n FaCircleExclamationIcon,\n FaCircleInfoIcon,\n FaRotateIcon,\n FaTriangleExclamationIcon,\n FaXmarkIcon,\n WarningIcon,\n} from '../Icon'\nimport { Cluster } from '../Layout'\nimport { Text } from '../Text'\n\nconst classNameGenerator = tv({\n slots: {\n wrapper:\n 'smarthr-ui-NotificationBar shr-flex shr-items-baseline shr-justify-between shr-gap-0.5 shr-p-0.75',\n inner: 'shr-flex-grow',\n messageArea: [\n 'smarthr-ui-NotificationBar-messageArea',\n 'shr-flex shr-grow',\n '[&_.smarthr-ui-Icon-withText]:shr-leading-tight',\n ],\n icon: '',\n actionArea: 'smarthr-ui-NotificationBar-actionArea -shr-my-0.5 shr-shrink-0',\n closeButton:\n 'smarthr-ui-NotificationBar-closeButton -shr-mb-0.5 -shr-mr-0.5 -shr-mt-0.5 shr-flex-shrink-0 shr-text-black',\n },\n variants: {\n /** 下地 */\n base: {\n none: {},\n base: {\n wrapper: 'shr-py-1 shr-pe-1 shr-ps-1.5',\n },\n },\n /** メッセージの種類 */\n type: {\n info: {\n icon: 'shr-text-grey',\n },\n success: {},\n warning: {\n icon: 'shr-text-black',\n },\n error: {},\n sync: {\n icon: 'shr-text-main',\n },\n },\n /** 強調するかどうか */\n bold: {\n true: '',\n false: '',\n },\n /** スライドインするかどうか */\n animate: {\n true: {\n wrapper: 'shr-animate-[notification-bar-slide-in_0.2s_ease-out]',\n },\n },\n },\n compoundVariants: [\n {\n type: ['info', 'success', 'warning', 'error', 'sync'],\n bold: false,\n className: {\n wrapper: 'shr-bg-white shr-text-black',\n },\n },\n {\n type: 'success',\n bold: false,\n className: {\n icon: 'shr-text-main',\n },\n },\n {\n type: 'error',\n bold: false,\n className: {\n icon: 'shr-text-danger',\n },\n },\n {\n type: ['info', 'sync'],\n bold: true,\n className: {\n wrapper: 'shr-bg-white',\n },\n },\n {\n type: 'success',\n bold: true,\n className: {\n wrapper: 'shr-bg-main shr-text-white',\n icon: 'shr-text-white',\n closeButton:\n 'shr-text-white hover:[&]:shr-bg-main-darken focus-visible:[&]:shr-bg-main-darken',\n },\n },\n {\n type: 'warning',\n bold: true,\n className: {\n wrapper: 'shr-bg-warning-yellow shr-text-black',\n closeButton:\n 'shr-text-black hover:[&]:shr-bg-warning-yellow-darken focus-visible:[&]:shr-bg-warning-yellow-darken',\n },\n },\n {\n type: 'error',\n bold: true,\n className: {\n wrapper: 'shr-bg-danger shr-text-white',\n icon: 'shr-text-white',\n closeButton:\n 'shr-text-white hover:[&]:shr-bg-danger-darken focus-visible:[&]:shr-bg-danger-darken',\n },\n },\n ],\n})\n\ntype StyleVariants = VariantProps<typeof classNameGenerator>\ntype Props = PropsWithChildren<\n Omit<StyleVariants, 'type'> &\n Required<Pick<StyleVariants, 'type'>> & {\n /** コンポーネント右の領域 */\n subActionArea?: ReactNode\n /** 閉じるボタン押下時に発火させる関数 */\n onClose?: () => void\n /** role 属性 */\n role?: 'alert' | 'status'\n }\n>\ntype ElementProps = Omit<ComponentPropsWithoutRef<'div'>, keyof Props>\ntype BaseProps = Pick<ComponentProps<typeof Base>, 'layer'>\ntype ActualProps = Props & ElementProps & BaseProps\n\nconst ABSTRACT_ICON_MAPPER = {\n info: FaCircleInfoIcon,\n success: FaCircleCheckIcon,\n error: FaCircleExclamationIcon,\n sync: FaRotateIcon,\n}\nconst ICON_MAPPER = {\n normal: {\n ...ABSTRACT_ICON_MAPPER,\n warning: WarningIcon,\n },\n bold: {\n ...ABSTRACT_ICON_MAPPER,\n warning: FaTriangleExclamationIcon,\n },\n} as const\n\nconst ROLE_STATUS_TYPE_REGEX = /^(info|sync)$/\n\nexport const NotificationBar: FC<ActualProps> = ({\n type,\n bold,\n animate,\n subActionArea,\n onClose,\n children,\n role,\n base,\n layer,\n className,\n ...props\n}) => {\n const actualRole = useMemo(() => {\n if (role) {\n return role\n }\n\n return ROLE_STATUS_TYPE_REGEX.test(type) ? 'status' : 'alert'\n }, [role, type])\n const { WrapBase, baseProps } = useMemo(\n () =>\n base === 'base'\n ? {\n WrapBase: Base,\n baseProps: {\n layer,\n overflow: 'hidden' as ComponentProps<typeof Base>['overflow'],\n },\n }\n : {\n WrapBase: Fragment,\n baseProps: {},\n },\n [base, layer],\n )\n const classNames = useMemo(() => {\n const { wrapper, inner, messageArea, icon, actionArea, closeButton } = classNameGenerator({\n type,\n bold: !!bold,\n base: base || 'none',\n })\n\n return {\n wrapper: wrapper({ animate, className }),\n inner: inner(),\n messageArea: messageArea(),\n icon: icon(),\n actionArea: actionArea(),\n closeButton: closeButton(),\n }\n }, [animate, base, bold, type, className])\n\n return (\n <WrapBase {...baseProps}>\n <div {...props} className={classNames.wrapper} role={actualRole}>\n <Cluster gap={1} align=\"center\" justify=\"flex-end\" className={classNames.inner}>\n <MessageArea bold={bold} type={type} classNames={classNames}>\n {children}\n </MessageArea>\n {subActionArea && (\n <Cluster align=\"center\" justify=\"flex-end\" className={classNames.actionArea}>\n {subActionArea}\n </Cluster>\n )}\n </Cluster>\n <CloseButton onClose={onClose} className={classNames.closeButton} />\n </div>\n </WrapBase>\n )\n}\n\nconst MessageArea = memo<\n Pick<ActualProps, 'children' | 'bold' | 'type'> & {\n classNames: { messageArea: string; icon: string }\n }\n>(({ children, bold, type, classNames }) => {\n const Icon = ICON_MAPPER[bold ? 'bold' : 'normal'][type]\n\n return (\n <Text\n prefixIcon={<Icon iconGap={0.5} className={classNames.icon} />}\n className={classNames.messageArea}\n as=\"div\"\n iconGap={0.5}\n >\n {children}\n </Text>\n )\n})\n\nconst CloseButton = memo<Pick<ActualProps, 'onClose'> & { className: string }>(\n ({ onClose, className }) =>\n onClose && (\n <Button variant=\"text\" size=\"s\" onClick={onClose} className={className}>\n <FaXmarkIcon\n alt={\n <Localizer id=\"smarthr-ui/NotificationBar/closeButtonIconAlt\" defaultText=\"閉じる\" />\n }\n />\n </Button>\n ),\n)\n"],"names":["tv","_jsx","_jsxs"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA2BA,MAAM,kBAAkB,GAAGA,EAAE,CAAC;AAC5B,IAAA,KAAK,EAAE;AACL,QAAA,OAAO,EACL,mGAAmG;AACrG,QAAA,KAAK,EAAE,eAAe;AACtB,QAAA,WAAW,EAAE;YACX,wCAAwC;YACxC,mBAAmB;YACnB,iDAAiD;AAClD,SAAA;AACD,QAAA,IAAI,EAAE,EAAE;AACR,QAAA,UAAU,EAAE,gEAAgE;AAC5E,QAAA,WAAW,EACT,6GAA6G;AAChH,KAAA;AACD,IAAA,QAAQ,EAAE;;AAER,QAAA,IAAI,EAAE;AACJ,YAAA,IAAI,EAAE,EAAE;AACR,YAAA,IAAI,EAAE;AACJ,gBAAA,OAAO,EAAE,8BAA8B;AACxC,aAAA;AACF,SAAA;;AAED,QAAA,IAAI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C,MAAM,EAAA,EAAC,OAAO,EAAC,MAAM,EAAC,IAAI,EAAC,GAAG,EAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAA,QAAA,EACpEA,GAAA,CAAC,WAAW,EAAA,EACV,GAAG,EACDA,GAAA,CAAC,SAAS,IAAC,EAAE,EAAC,+CAA+C,EAAC,WAAW,EAAC,oBAAK,EAAA,CAAG,EAAA,CAEpF,EAAA,CACK,CACV,CACJ;;;;"}
@@ -2,7 +2,7 @@
2
2
  import { jsx, jsxs } from 'react/jsx-runtime';
3
3
  import { memo, useMemo, useState, useRef, useId, useSyncExternalStore, useCallback, cloneElement } from 'react';
4
4
  import { createPortal } from 'react-dom';
5
- import innerText from '../../_virtual/index3.js';
5
+ import innerText from '../../_virtual/index.js';
6
6
  import { tv as ce } from './../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.18_ts-node@10.9.2_@swc_core@1.13.5_@types_node@20.19.20_typescript@5.8.3__/vendor/tailwind-variants/dist/index.js';
7
7
  import { useEnhancedEffect } from '../../hooks/useEnhancedEffect.js';
8
8
  import { VisuallyHiddenText } from '../VisuallyHiddenText/VisuallyHiddenText.js';
@@ -1,5 +1,5 @@
1
- import _merge from '../_virtual/index.js';
2
- import _range from '../_virtual/index2.js';
1
+ import _merge from '../_virtual/index2.js';
2
+ import _range from '../_virtual/index3.js';
3
3
 
4
4
  const merge = _merge;
5
5
  const range = _range;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../../../../node_modules/.pnpm/merge-refs@1.3.0_@types+react@18.3.26/node_modules/merge-refs/dist/esm/index.js"],"sourcesContent":["/**\n * A function that merges React refs into one.\n * Supports both functions and ref objects created using createRef() and useRef().\n *\n * Usage:\n * ```tsx\n * <div ref={mergeRefs(ref1, ref2, ref3)} />\n * ```\n *\n * @param {(React.Ref<T> | undefined)[]} inputRefs Array of refs\n * @returns {React.Ref<T> | React.RefCallback<T>} Merged refs\n */\nexport default function mergeRefs() {\n var inputRefs = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n inputRefs[_i] = arguments[_i];\n }\n var filteredInputRefs = inputRefs.filter(Boolean);\n if (filteredInputRefs.length <= 1) {\n var firstRef = filteredInputRefs[0];\n return firstRef || null;\n }\n return function mergedRefs(ref) {\n filteredInputRefs.forEach(function (inputRef) {\n if (typeof inputRef === 'function') {\n inputRef(ref);\n }\n else if (inputRef) {\n inputRef.current = ref;\n }\n });\n };\n}\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAAS,SAAS,GAAG;AACpC,IAAI,IAAI,SAAS,GAAG,EAAE;AACtB,IAAI,KAAK,IAAI,EAAE,GAAG,CAAC,EAAE,EAAE,GAAG,SAAS,CAAC,MAAM,EAAE,EAAE,EAAE,EAAE;AAClD,QAAQ,SAAS,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,EAAE,CAAC;AACrC,IAAI;AACJ,IAAI,IAAI,iBAAiB,GAAG,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC;AACrD,IAAI,IAAI,iBAAiB,CAAC,MAAM,IAAI,CAAC,EAAE;AACvC,QAAQ,IAAI,QAAQ,GAAG,iBAAiB,CAAC,CAAC,CAAC;AAC3C,QAAQ,OAAO,QAAQ,IAAI,IAAI;AAC/B,IAAI;AACJ,IAAI,OAAO,SAAS,UAAU,CAAC,GAAG,EAAE;AACpC,QAAQ,iBAAiB,CAAC,OAAO,CAAC,UAAU,QAAQ,EAAE;AACtD,YAAY,IAAI,OAAO,QAAQ,KAAK,UAAU,EAAE;AAChD,gBAAgB,QAAQ,CAAC,GAAG,CAAC;AAC7B,YAAY;AACZ,iBAAiB,IAAI,QAAQ,EAAE;AAC/B,gBAAgB,QAAQ,CAAC,OAAO,GAAG,GAAG;AACtC,YAAY;AACZ,QAAQ,CAAC,CAAC;AACV,IAAI,CAAC;AACL;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../../../../node_modules/.pnpm/merge-refs@1.3.0_@types+react@18.3.27/node_modules/merge-refs/dist/esm/index.js"],"sourcesContent":["/**\n * A function that merges React refs into one.\n * Supports both functions and ref objects created using createRef() and useRef().\n *\n * Usage:\n * ```tsx\n * <div ref={mergeRefs(ref1, ref2, ref3)} />\n * ```\n *\n * @param {(React.Ref<T> | undefined)[]} inputRefs Array of refs\n * @returns {React.Ref<T> | React.RefCallback<T>} Merged refs\n */\nexport default function mergeRefs() {\n var inputRefs = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n inputRefs[_i] = arguments[_i];\n }\n var filteredInputRefs = inputRefs.filter(Boolean);\n if (filteredInputRefs.length <= 1) {\n var firstRef = filteredInputRefs[0];\n return firstRef || null;\n }\n return function mergedRefs(ref) {\n filteredInputRefs.forEach(function (inputRef) {\n if (typeof inputRef === 'function') {\n inputRef(ref);\n }\n else if (inputRef) {\n inputRef.current = ref;\n }\n });\n };\n}\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAAS,SAAS,GAAG;AACpC,IAAI,IAAI,SAAS,GAAG,EAAE;AACtB,IAAI,KAAK,IAAI,EAAE,GAAG,CAAC,EAAE,EAAE,GAAG,SAAS,CAAC,MAAM,EAAE,EAAE,EAAE,EAAE;AAClD,QAAQ,SAAS,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,EAAE,CAAC;AACrC,IAAI;AACJ,IAAI,IAAI,iBAAiB,GAAG,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC;AACrD,IAAI,IAAI,iBAAiB,CAAC,MAAM,IAAI,CAAC,EAAE;AACvC,QAAQ,IAAI,QAAQ,GAAG,iBAAiB,CAAC,CAAC,CAAC;AAC3C,QAAQ,OAAO,QAAQ,IAAI,IAAI;AAC/B,IAAI;AACJ,IAAI,OAAO,SAAS,UAAU,CAAC,GAAG,EAAE;AACpC,QAAQ,iBAAiB,CAAC,OAAO,CAAC,UAAU,QAAQ,EAAE;AACtD,YAAY,IAAI,OAAO,QAAQ,KAAK,UAAU,EAAE;AAChD,gBAAgB,QAAQ,CAAC,GAAG,CAAC;AAC7B,YAAY;AACZ,iBAAiB,IAAI,QAAQ,EAAE;AAC/B,gBAAgB,QAAQ,CAAC,OAAO,GAAG,GAAG;AACtC,YAAY;AACZ,QAAQ,CAAC,CAAC;AACV,IAAI,CAAC;AACL;;;;","x_google_ignoreList":[0]}