smarthr-ui 96.1.3 → 97.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 (146) hide show
  1. package/lib/components/Combobox/helper.cjs +29 -13
  2. package/lib/components/Combobox/helper.cjs.map +1 -1
  3. package/lib/components/Combobox/helper.d.ts +1 -1
  4. package/lib/components/Combobox/helper.js +29 -13
  5. package/lib/components/Combobox/helper.js.map +1 -1
  6. package/lib/components/Combobox/useOptions.cjs +21 -17
  7. package/lib/components/Combobox/useOptions.cjs.map +1 -1
  8. package/lib/components/Combobox/useOptions.js +21 -17
  9. package/lib/components/Combobox/useOptions.js.map +1 -1
  10. package/lib/components/Dialog/DialogContentInner.cjs +8 -1
  11. package/lib/components/Dialog/DialogContentInner.cjs.map +1 -1
  12. package/lib/components/Dialog/DialogContentInner.js +9 -2
  13. package/lib/components/Dialog/DialogContentInner.js.map +1 -1
  14. package/lib/components/Dialog/ModelessDialog/ModelessDialog.cjs +13 -11
  15. package/lib/components/Dialog/ModelessDialog/ModelessDialog.cjs.map +1 -1
  16. package/lib/components/Dialog/ModelessDialog/ModelessDialog.js +13 -11
  17. package/lib/components/Dialog/ModelessDialog/ModelessDialog.js.map +1 -1
  18. package/lib/components/Dialog/RemoteDialogTrigger/RemoteDialogTrigger.cjs +5 -2
  19. package/lib/components/Dialog/RemoteDialogTrigger/RemoteDialogTrigger.cjs.map +1 -1
  20. package/lib/components/Dialog/RemoteDialogTrigger/RemoteDialogTrigger.js +5 -2
  21. package/lib/components/Dialog/RemoteDialogTrigger/RemoteDialogTrigger.js.map +1 -1
  22. package/lib/components/Disclosure/DisclosureTrigger.cjs +39 -18
  23. package/lib/components/Disclosure/DisclosureTrigger.cjs.map +1 -1
  24. package/lib/components/Disclosure/DisclosureTrigger.js +40 -19
  25. package/lib/components/Disclosure/DisclosureTrigger.js.map +1 -1
  26. package/lib/components/Disclosure/useDisclosure.cjs +8 -14
  27. package/lib/components/Disclosure/useDisclosure.cjs.map +1 -1
  28. package/lib/components/Disclosure/useDisclosure.js +8 -14
  29. package/lib/components/Disclosure/useDisclosure.js.map +1 -1
  30. package/lib/components/Dropdown/DropdownMenuButton/DropdownMenuButton.cjs +4 -2
  31. package/lib/components/Dropdown/DropdownMenuButton/DropdownMenuButton.cjs.map +1 -1
  32. package/lib/components/Dropdown/DropdownMenuButton/DropdownMenuButton.js +4 -2
  33. package/lib/components/Dropdown/DropdownMenuButton/DropdownMenuButton.js.map +1 -1
  34. package/lib/components/Dropdown/DropdownTrigger.cjs +3 -0
  35. package/lib/components/Dropdown/DropdownTrigger.cjs.map +1 -1
  36. package/lib/components/Dropdown/DropdownTrigger.js +3 -0
  37. package/lib/components/Dropdown/DropdownTrigger.js.map +1 -1
  38. package/lib/components/InputFile/InputFileMultiplyAppendable.cjs +12 -17
  39. package/lib/components/InputFile/InputFileMultiplyAppendable.cjs.map +1 -1
  40. package/lib/components/InputFile/InputFileMultiplyAppendable.js +12 -17
  41. package/lib/components/InputFile/InputFileMultiplyAppendable.js.map +1 -1
  42. package/lib/components/LineClamp/LineClamp.cjs +14 -3
  43. package/lib/components/LineClamp/LineClamp.cjs.map +1 -1
  44. package/lib/components/LineClamp/LineClamp.js +14 -3
  45. package/lib/components/LineClamp/LineClamp.js.map +1 -1
  46. package/lib/components/Select/Select.cjs +11 -11
  47. package/lib/components/Select/Select.cjs.map +1 -1
  48. package/lib/components/Select/Select.js +12 -12
  49. package/lib/components/Select/Select.js.map +1 -1
  50. package/lib/components/TabBar/TabItem.cjs +11 -9
  51. package/lib/components/TabBar/TabItem.cjs.map +1 -1
  52. package/lib/components/TabBar/TabItem.d.ts +2 -2
  53. package/lib/components/TabBar/TabItem.js +13 -11
  54. package/lib/components/TabBar/TabItem.js.map +1 -1
  55. package/lib/hooks/useHandleEscape.cjs +4 -4
  56. package/lib/hooks/useHandleEscape.cjs.map +1 -1
  57. package/lib/hooks/useHandleEscape.d.ts +1 -1
  58. package/lib/hooks/useHandleEscape.js +4 -4
  59. package/lib/hooks/useHandleEscape.js.map +1 -1
  60. package/lib/intl/Localizer.d.ts +3 -3
  61. package/lib/intl/locales/en_us.json.cjs +133 -0
  62. package/lib/intl/locales/en_us.json.cjs.map +1 -0
  63. package/lib/intl/locales/en_us.json.js +131 -0
  64. package/lib/intl/locales/en_us.json.js.map +1 -0
  65. package/lib/intl/locales/id_id.json.cjs +133 -0
  66. package/lib/intl/locales/id_id.json.cjs.map +1 -0
  67. package/lib/intl/locales/id_id.json.js +131 -0
  68. package/lib/intl/locales/id_id.json.js.map +1 -0
  69. package/lib/intl/locales/index.cjs +24 -18
  70. package/lib/intl/locales/index.cjs.map +1 -1
  71. package/lib/intl/locales/index.d.ts +1135 -1136
  72. package/lib/intl/locales/index.js +25 -19
  73. package/lib/intl/locales/index.js.map +1 -1
  74. package/lib/intl/locales/ja.json.cjs +133 -0
  75. package/lib/intl/locales/ja.json.cjs.map +1 -0
  76. package/lib/intl/locales/ja.json.js +131 -0
  77. package/lib/intl/locales/ja.json.js.map +1 -0
  78. package/lib/intl/locales/ja_easy.json.cjs +133 -0
  79. package/lib/intl/locales/ja_easy.json.cjs.map +1 -0
  80. package/lib/intl/locales/ja_easy.json.js +131 -0
  81. package/lib/intl/locales/ja_easy.json.js.map +1 -0
  82. package/lib/intl/locales/ko_kr.json.cjs +133 -0
  83. package/lib/intl/locales/ko_kr.json.cjs.map +1 -0
  84. package/lib/intl/locales/ko_kr.json.js +131 -0
  85. package/lib/intl/locales/ko_kr.json.js.map +1 -0
  86. package/lib/intl/locales/pt_br.json.cjs +133 -0
  87. package/lib/intl/locales/pt_br.json.cjs.map +1 -0
  88. package/lib/intl/locales/pt_br.json.js +131 -0
  89. package/lib/intl/locales/pt_br.json.js.map +1 -0
  90. package/lib/intl/locales/vi_vn.json.cjs +133 -0
  91. package/lib/intl/locales/vi_vn.json.cjs.map +1 -0
  92. package/lib/intl/locales/vi_vn.json.js +131 -0
  93. package/lib/intl/locales/vi_vn.json.js.map +1 -0
  94. package/lib/intl/locales/zh_hans_cn.json.cjs +133 -0
  95. package/lib/intl/locales/zh_hans_cn.json.cjs.map +1 -0
  96. package/lib/intl/locales/zh_hans_cn.json.js +131 -0
  97. package/lib/intl/locales/zh_hans_cn.json.js.map +1 -0
  98. package/lib/intl/locales/zh_hant_tw.json.cjs +133 -0
  99. package/lib/intl/locales/zh_hant_tw.json.cjs.map +1 -0
  100. package/lib/intl/locales/zh_hant_tw.json.js +131 -0
  101. package/lib/intl/locales/zh_hant_tw.json.js.map +1 -0
  102. package/lib/intl/useIntl.cjs.map +1 -1
  103. package/lib/intl/useIntl.d.ts +3 -3
  104. package/lib/intl/useIntl.js.map +1 -1
  105. package/metadata.json +1 -1
  106. package/package.json +2 -1
  107. package/lib/intl/locales/en_us.cjs +0 -135
  108. package/lib/intl/locales/en_us.cjs.map +0 -1
  109. package/lib/intl/locales/en_us.d.ts +0 -128
  110. package/lib/intl/locales/en_us.js +0 -133
  111. package/lib/intl/locales/en_us.js.map +0 -1
  112. package/lib/intl/locales/id_id.cjs +0 -135
  113. package/lib/intl/locales/id_id.cjs.map +0 -1
  114. package/lib/intl/locales/id_id.d.ts +0 -128
  115. package/lib/intl/locales/id_id.js +0 -133
  116. package/lib/intl/locales/id_id.js.map +0 -1
  117. package/lib/intl/locales/ja_easy.cjs +0 -135
  118. package/lib/intl/locales/ja_easy.cjs.map +0 -1
  119. package/lib/intl/locales/ja_easy.d.ts +0 -128
  120. package/lib/intl/locales/ja_easy.js +0 -133
  121. package/lib/intl/locales/ja_easy.js.map +0 -1
  122. package/lib/intl/locales/ko_kr.cjs +0 -135
  123. package/lib/intl/locales/ko_kr.cjs.map +0 -1
  124. package/lib/intl/locales/ko_kr.d.ts +0 -128
  125. package/lib/intl/locales/ko_kr.js +0 -133
  126. package/lib/intl/locales/ko_kr.js.map +0 -1
  127. package/lib/intl/locales/pt_br.cjs +0 -135
  128. package/lib/intl/locales/pt_br.cjs.map +0 -1
  129. package/lib/intl/locales/pt_br.d.ts +0 -128
  130. package/lib/intl/locales/pt_br.js +0 -133
  131. package/lib/intl/locales/pt_br.js.map +0 -1
  132. package/lib/intl/locales/vi_vn.cjs +0 -135
  133. package/lib/intl/locales/vi_vn.cjs.map +0 -1
  134. package/lib/intl/locales/vi_vn.d.ts +0 -128
  135. package/lib/intl/locales/vi_vn.js +0 -133
  136. package/lib/intl/locales/vi_vn.js.map +0 -1
  137. package/lib/intl/locales/zh_hans_cn.cjs +0 -135
  138. package/lib/intl/locales/zh_hans_cn.cjs.map +0 -1
  139. package/lib/intl/locales/zh_hans_cn.d.ts +0 -128
  140. package/lib/intl/locales/zh_hans_cn.js +0 -133
  141. package/lib/intl/locales/zh_hans_cn.js.map +0 -1
  142. package/lib/intl/locales/zh_hant_tw.cjs +0 -135
  143. package/lib/intl/locales/zh_hant_tw.cjs.map +0 -1
  144. package/lib/intl/locales/zh_hant_tw.d.ts +0 -128
  145. package/lib/intl/locales/zh_hant_tw.js +0 -133
  146. package/lib/intl/locales/zh_hant_tw.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"TabItem.cjs","sources":["../../../src/components/TabBar/TabItem.tsx"],"sourcesContent":["import {\n type ComponentProps,\n type FC,\n type MouseEvent,\n type PropsWithChildren,\n type ReactNode,\n memo,\n useCallback,\n useMemo,\n} from 'react'\nimport { tv } from 'tailwind-variants'\n\nimport { UnstyledButton } from '../Button'\nimport { FaCircleInfoIcon } from '../Icon'\nimport { Tooltip } from '../Tooltip'\n\nconst classNameGenerator = tv({\n slots: {\n wrapper: [\n 'smarthr-ui-TabItem',\n 'shr-group/tabitem',\n 'shr-relative shr-inline-flex shr-items-center shr-gap-0.5 shr-px-1 shr-py-0.75',\n 'hover:shr-bg-white-darken',\n 'focus-visible:shr-focus-indicator focus-visible:shr-z-1',\n 'disabled:shr-cursor-not-allowed disabled:shr-bg-transparent',\n 'aria-selected:before:shr-absolute aria-selected:before:shr-inset-x-0 aria-selected:before:shr-bottom-0 aria-selected:before:shr-z-1 aria-selected:before:shr-block aria-selected:before:shr-h-0.25 aria-selected:before:shr-bg-main aria-selected:before:shr-content-[\"\"]',\n 'forced-colors:aria-selected:before:shr-bg-[Highlight]',\n ],\n label: [\n 'shr-font-bold shr-leading-none shr-text-grey',\n 'group-hover/tabitem:shr-text-black',\n 'group-disabled/tabitem:shr-text-grey/50',\n 'group-aria-selected/tabitem:shr-text-black',\n ],\n suffixWrapper: [\n // Badge など内包要素に依って高さが変わらないようにするため、ネガティブマージンを指定\n '-shr-my-0.25',\n // 内包アイコンの leading を詰める\n '[&_.smarthr-ui-Icon]:shr-block',\n ],\n },\n})\n\ntype AbstractProps = PropsWithChildren<{\n /** タブの ID */\n id: string\n /** ボタン内の末尾に表示する内容 */\n suffix?: ReactNode\n /** `true` のとき、タブが選択状態のスタイルになる */\n selected?: boolean\n /** `true` のとき、タブを無効状態にしてクリック不能にする */\n disabled?: boolean\n /**\n * 無効な理由\n */\n disabledReason?: {\n icon?: ReactNode\n message: ReactNode\n }\n /** タブをクリックした時に発火するコールバック関数 */\n onClick: (tabId: string) => void\n}>\ntype Props = AbstractProps &\n Omit<ComponentProps<typeof UnstyledButton>, keyof AbstractProps | 'aria-selected' | 'type'>\n\nexport const TabItem: FC<Props> = ({ selected = false, disabled, disabledReason, ...rest }) => {\n const tabAttrs = {\n role: 'tab',\n 'aria-selected': selected,\n }\n\n if (disabled && disabledReason) {\n const Icon = disabledReason.icon || <FaCircleInfoIcon color=\"TEXT_GREY\" />\n\n return (\n <Tooltip\n {...tabAttrs}\n message={disabledReason.message}\n aria-disabled={disabled}\n className=\"focus-visible:shr-focus-indicator\"\n >\n <TabButton {...rest} disabled={disabled} suffix={Icon} />\n </Tooltip>\n )\n }\n\n return <TabButton {...rest} {...tabAttrs} disabled={disabled} />\n}\n\nconst TabButton: FC<Props> = ({ id, children, suffix, onClick, className, ...rest }) => {\n const classNames = useMemo(() => {\n const { wrapper, label, suffixWrapper } = classNameGenerator()\n\n return {\n wrapper: wrapper({ className }),\n label: label(),\n suffixWrapper: suffixWrapper(),\n }\n }, [className])\n\n const actualOnClick = useCallback(\n (e: MouseEvent<HTMLButtonElement>) => onClick(e.currentTarget.value),\n [onClick],\n )\n\n return (\n <UnstyledButton\n {...rest}\n type=\"button\"\n value={id}\n id={id}\n className={classNames.wrapper}\n onClick={actualOnClick}\n >\n <TabLabel className={classNames.label}>{children}</TabLabel>\n <TabButtonSuffix className={classNames.suffixWrapper}>{suffix}</TabButtonSuffix>\n </UnstyledButton>\n )\n}\n\nconst TabLabel = memo<PropsWithChildren<{ className: string }>>(({ children, className }) => (\n <span className={className}>{children}</span>\n))\nconst TabButtonSuffix = memo<PropsWithChildren<{ className: string }>>(\n ({ children, className }) => children && <span className={className}>{children}</span>,\n)\n"],"names":["tv","_jsx","FaCircleInfoIcon","Tooltip","useMemo","useCallback","_jsxs","UnstyledButton","memo"],"mappings":";;;;;;;;;;;;;;AAgBA,MAAM,kBAAkB,GAAGA,QAAE,CAAC;AAC5B,IAAA,KAAK,EAAE;AACL,QAAA,OAAO,EAAE;YACP,oBAAoB;YACpB,mBAAmB;YACnB,gFAAgF;YAChF,2BAA2B;YAC3B,yDAAyD;YACzD,6DAA6D;YAC7D,2QAA2Q;YAC3Q,uDAAuD;AACxD,SAAA;AACD,QAAA,KAAK,EAAE;YACL,8CAA8C;YAC9C,oCAAoC;YACpC,yCAAyC;YACzC,4CAA4C;AAC7C,SAAA;AACD,QAAA,aAAa,EAAE;;YAEb,cAAc;;YAEd,gCAAgC;AACjC,SAAA;AACF,KAAA;AACF,CAAA,CAAC;AAwBK,MAAM,OAAO,GAAc,CAAC,EAAE,QAAQ,GAAG,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,KAAI;AAC5F,IAAA,MAAM,QAAQ,GAAG;AACf,QAAA,IAAI,EAAE,KAAK;AACX,QAAA,eAAe,EAAE,QAAQ;KAC1B;AAED,IAAA,IAAI,QAAQ,IAAI,cAAc,EAAE;AAC9B,QAAA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,OAAO,EAC7B,OAAO,EAAE,aAAa,EAAA,QAAA,EAAA,CAEtBN,cAAA,CAAC,QAAQ,EAAA,EAAC,SAAS,EAAE,UAAU,CAAC,KAAK,EAAA,QAAA,EAAG,QAAQ,EAAA,CAAY,EAC5DA,eAAC,eAAe,EAAA,EAAC,SAAS,EAAE,UAAU,CAAC,aAAa,EAAA,QAAA,EAAG,MAAM,EAAA,CAAmB,CAAA,EAAA,CACjE;AAErB,CAAC;AAED,MAAM,QAAQ,GAAGO,UAAI,CAA2C,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,MACtFP,cAAA,CAAA,MAAA,EAAA,EAAM,SAAS,EAAE,SAAS,YAAG,QAAQ,EAAA,CAAQ,CAC9C,CAAC;AACF,MAAM,eAAe,GAAGO,UAAI,CAC1B,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,QAAQ,IAAIP,cAAA,CAAA,MAAA,EAAA,EAAM,SAAS,EAAE,SAAS,EAAA,QAAA,EAAG,QAAQ,EAAA,CAAQ,CACvF;;;;"}
1
+ {"version":3,"file":"TabItem.cjs","sources":["../../../src/components/TabBar/TabItem.tsx"],"sourcesContent":["import {\n type ComponentProps,\n type FC,\n type MouseEvent,\n type PropsWithChildren,\n type ReactNode,\n memo,\n useCallback,\n useMemo,\n useRef,\n} from 'react'\nimport { tv } from 'tailwind-variants'\n\nimport { UnstyledButton } from '../Button'\nimport { FaCircleInfoIcon } from '../Icon'\nimport { Tooltip } from '../Tooltip'\n\nconst classNameGenerator = tv({\n slots: {\n wrapper: [\n 'smarthr-ui-TabItem',\n 'shr-group/tabitem',\n 'shr-relative shr-inline-flex shr-items-center shr-gap-0.5 shr-px-1 shr-py-0.75',\n 'hover:shr-bg-white-darken',\n 'focus-visible:shr-focus-indicator focus-visible:shr-z-1',\n 'disabled:shr-cursor-not-allowed disabled:shr-bg-transparent',\n 'aria-selected:before:shr-absolute aria-selected:before:shr-inset-x-0 aria-selected:before:shr-bottom-0 aria-selected:before:shr-z-1 aria-selected:before:shr-block aria-selected:before:shr-h-0.25 aria-selected:before:shr-bg-main aria-selected:before:shr-content-[\"\"]',\n 'forced-colors:aria-selected:before:shr-bg-[Highlight]',\n ],\n label: [\n 'shr-font-bold shr-leading-none shr-text-grey',\n 'group-hover/tabitem:shr-text-black',\n 'group-disabled/tabitem:shr-text-grey/50',\n 'group-aria-selected/tabitem:shr-text-black',\n ],\n suffixWrapper: [\n // Badge など内包要素に依って高さが変わらないようにするため、ネガティブマージンを指定\n '-shr-my-0.25',\n // 内包アイコンの leading を詰める\n '[&_.smarthr-ui-Icon]:shr-block',\n ],\n },\n})\n\ntype AbstractProps = PropsWithChildren<{\n /** タブの ID */\n id: string\n /** ボタン内の末尾に表示する内容 */\n suffix?: ReactNode\n /** `true` のとき、タブが選択状態のスタイルになる */\n selected?: boolean\n /** `true` のとき、タブを無効状態にしてクリック不能にする */\n disabled?: boolean\n /**\n * 無効な理由\n */\n disabledReason?: {\n icon?: ReactNode\n message: ReactNode\n }\n /** タブをクリックした時に発火するコールバック関数 */\n onClick: (e: MouseEvent<HTMLButtonElement>) => void\n}>\ntype Props = AbstractProps &\n Omit<ComponentProps<typeof UnstyledButton>, keyof AbstractProps | 'aria-selected' | 'type'>\n\nexport const TabItem: FC<Props> = ({\n selected = false,\n disabled,\n disabledReason,\n onClick,\n ...rest\n}) => {\n const tabAttrs = {\n role: 'tab',\n 'aria-selected': selected,\n }\n const onClickRef = useRef(onClick)\n onClickRef.current = onClick\n\n const actualOnClick = useCallback((e: MouseEvent<HTMLButtonElement>) => {\n onClickRef.current(e)\n }, [])\n\n if (disabled && disabledReason) {\n const Icon = disabledReason.icon || <FaCircleInfoIcon color=\"TEXT_GREY\" />\n\n return (\n <Tooltip\n {...tabAttrs}\n message={disabledReason.message}\n aria-disabled={disabled}\n className=\"focus-visible:shr-focus-indicator\"\n >\n <TabButton {...rest} onClick={actualOnClick} disabled={disabled} suffix={Icon} />\n </Tooltip>\n )\n }\n\n return <TabButton {...rest} {...tabAttrs} onClick={actualOnClick} disabled={disabled} />\n}\n\nconst TabButton = memo<PropsWithChildren<Props>>(({ id, children, suffix, className, ...rest }) => {\n const classNames = useMemo(() => {\n const { wrapper, label, suffixWrapper } = classNameGenerator()\n\n return {\n wrapper: wrapper({ className }),\n label: label(),\n suffixWrapper: suffixWrapper(),\n }\n }, [className])\n\n return (\n <UnstyledButton {...rest} type=\"button\" value={id} id={id} className={classNames.wrapper}>\n <span className={classNames.label}>{children}</span>\n {suffix && <span className={classNames.suffixWrapper}>{suffix}</span>}\n </UnstyledButton>\n )\n})\n"],"names":["tv","useRef","useCallback","_jsx","FaCircleInfoIcon","Tooltip","memo","useMemo","_jsxs","UnstyledButton"],"mappings":";;;;;;;;;;;;;;AAiBA,MAAM,kBAAkB,GAAGA,QAAE,CAAC;AAC5B,IAAA,KAAK,EAAE;AACL,QAAA,OAAO,EAAE;YACP,oBAAoB;YACpB,mBAAmB;YACnB,gFAAgF;YAChF,2BAA2B;YAC3B,yDAAyD;YACzD,6DAA6D;YAC7D,2QAA2Q;YAC3Q,uDAAuD;AACxD,SAAA;AACD,QAAA,KAAK,EAAE;YACL,8CAA8C;YAC9C,oCAAoC;YACpC,yCAAyC;YACzC,4CAA4C;AAC7C,SAAA;AACD,QAAA,aAAa,EAAE;;YAEb,cAAc;;YAEd,gCAAgC;AACjC,SAAA;AACF,KAAA;AACF,CAAA,CAAC;MAwBW,OAAO,GAAc,CAAC,EACjC,QAAQ,GAAG,KAAK,EAChB,QAAQ,EACR,cAAc,EACd,OAAO,EACP,GAAG,IAAI,EACR,KAAI;AACH,IAAA,MAAM,QAAQ,GAAG;AACf,QAAA,IAAI,EAAE,KAAK;AACX,QAAA,eAAe,EAAE,QAAQ;KAC1B;AACD,IAAA,MAAM,UAAU,GAAGC,YAAM,CAAC,OAAO,CAAC;AAClC,IAAA,UAAU,CAAC,OAAO,GAAG,OAAO;AAE5B,IAAA,MAAM,aAAa,GAAGC,iBAAW,CAAC,CAAC,CAAg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,EAAE,EAAE,EAAE,SAAS,EAAE,UAAU,CAAC,OAAO,aACtFN,cAAA,CAAA,MAAA,EAAA,EAAM,SAAS,EAAE,UAAU,CAAC,KAAK,EAAA,QAAA,EAAG,QAAQ,EAAA,CAAQ,EACnD,MAAM,IAAIA,yBAAM,SAAS,EAAE,UAAU,CAAC,aAAa,YAAG,MAAM,EAAA,CAAQ,CAAA,EAAA,CACtD;AAErB,CAAC,CAAC;;;;"}
@@ -1,4 +1,4 @@
1
- import { type ComponentProps, type FC, type PropsWithChildren, type ReactNode } from 'react';
1
+ import { type ComponentProps, type FC, type MouseEvent, type PropsWithChildren, type ReactNode } from 'react';
2
2
  import { UnstyledButton } from '../Button';
3
3
  type AbstractProps = PropsWithChildren<{
4
4
  /** タブの ID */
@@ -17,7 +17,7 @@ type AbstractProps = PropsWithChildren<{
17
17
  message: ReactNode;
18
18
  };
19
19
  /** タブをクリックした時に発火するコールバック関数 */
20
- onClick: (tabId: string) => void;
20
+ onClick: (e: MouseEvent<HTMLButtonElement>) => void;
21
21
  }>;
22
22
  type Props = AbstractProps & Omit<ComponentProps<typeof UnstyledButton>, keyof AbstractProps | 'aria-selected' | 'type'>;
23
23
  export declare const TabItem: FC<Props>;
@@ -1,5 +1,5 @@
1
- import { jsx, jsxs } from 'react/jsx-runtime';
2
- import { memo, useMemo, useCallback } from 'react';
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import { memo, useMemo, useRef, useCallback } from 'react';
3
3
  import { tv as ce } from './../../vendor/.pnpm/tailwind-variants@0.3.1_tailwindcss@3.4.19_ts-node@10.9.2_@swc_core@1.15.17_@types_node@20.19.35_typescript@5.9.3__/vendor/tailwind-variants/dist/index.js';
4
4
  import '../Button/Button.js';
5
5
  import '../Button/AnchorButton.js';
@@ -36,18 +36,23 @@ const classNameGenerator = ce({
36
36
  ],
37
37
  },
38
38
  });
39
- const TabItem = ({ selected = false, disabled, disabledReason, ...rest }) => {
39
+ const TabItem = ({ selected = false, disabled, disabledReason, onClick, ...rest }) => {
40
40
  const tabAttrs = {
41
41
  role: 'tab',
42
42
  'aria-selected': selected,
43
43
  };
44
+ const onClickRef = useRef(onClick);
45
+ onClickRef.current = onClick;
46
+ const actualOnClick = useCallback((e) => {
47
+ onClickRef.current(e);
48
+ }, []);
44
49
  if (disabled && disabledReason) {
45
50
  const Icon = disabledReason.icon || jsx(FaCircleInfoIcon, { color: "TEXT_GREY" });
46
- return (jsx(Tooltip, { ...tabAttrs, message: disabledReason.message, "aria-disabled": disabled, className: "focus-visible:shr-focus-indicator", children: jsx(TabButton, { ...rest, disabled: disabled, suffix: Icon }) }));
51
+ return (jsx(Tooltip, { ...tabAttrs, message: disabledReason.message, "aria-disabled": disabled, className: "focus-visible:shr-focus-indicator", children: jsx(TabButton, { ...rest, onClick: actualOnClick, disabled: disabled, suffix: Icon }) }));
47
52
  }
48
- return jsx(TabButton, { ...rest, ...tabAttrs, disabled: disabled });
53
+ return jsx(TabButton, { ...rest, ...tabAttrs, onClick: actualOnClick, disabled: disabled });
49
54
  };
50
- const TabButton = ({ id, children, suffix, onClick, className, ...rest }) => {
55
+ const TabButton = memo(({ id, children, suffix, className, ...rest }) => {
51
56
  const classNames = useMemo(() => {
52
57
  const { wrapper, label, suffixWrapper } = classNameGenerator();
53
58
  return {
@@ -56,11 +61,8 @@ const TabButton = ({ id, children, suffix, onClick, className, ...rest }) => {
56
61
  suffixWrapper: suffixWrapper(),
57
62
  };
58
63
  }, [className]);
59
- const actualOnClick = useCallback((e) => onClick(e.currentTarget.value), [onClick]);
60
- return (jsxs(UnstyledButton, { ...rest, type: "button", value: id, id: id, className: classNames.wrapper, onClick: actualOnClick, children: [jsx(TabLabel, { className: classNames.label, children: children }), jsx(TabButtonSuffix, { className: classNames.suffixWrapper, children: suffix })] }));
61
- };
62
- const TabLabel = memo(({ children, className }) => (jsx("span", { className: className, children: children })));
63
- const TabButtonSuffix = memo(({ children, className }) => children && jsx("span", { className: className, children: children }));
64
+ return (jsxs(UnstyledButton, { ...rest, type: "button", value: id, id: id, className: classNames.wrapper, children: [jsx("span", { className: classNames.label, children: children }), suffix && jsx("span", { className: classNames.suffixWrapper, children: suffix })] }));
65
+ });
64
66
 
65
67
  export { TabItem };
66
68
  //# sourceMappingURL=TabItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TabItem.js","sources":["../../../src/components/TabBar/TabItem.tsx"],"sourcesContent":["import {\n type ComponentProps,\n type FC,\n type MouseEvent,\n type PropsWithChildren,\n type ReactNode,\n memo,\n useCallback,\n useMemo,\n} from 'react'\nimport { tv } from 'tailwind-variants'\n\nimport { UnstyledButton } from '../Button'\nimport { FaCircleInfoIcon } from '../Icon'\nimport { Tooltip } from '../Tooltip'\n\nconst classNameGenerator = tv({\n slots: {\n wrapper: [\n 'smarthr-ui-TabItem',\n 'shr-group/tabitem',\n 'shr-relative shr-inline-flex shr-items-center shr-gap-0.5 shr-px-1 shr-py-0.75',\n 'hover:shr-bg-white-darken',\n 'focus-visible:shr-focus-indicator focus-visible:shr-z-1',\n 'disabled:shr-cursor-not-allowed disabled:shr-bg-transparent',\n 'aria-selected:before:shr-absolute aria-selected:before:shr-inset-x-0 aria-selected:before:shr-bottom-0 aria-selected:before:shr-z-1 aria-selected:before:shr-block aria-selected:before:shr-h-0.25 aria-selected:before:shr-bg-main aria-selected:before:shr-content-[\"\"]',\n 'forced-colors:aria-selected:before:shr-bg-[Highlight]',\n ],\n label: [\n 'shr-font-bold shr-leading-none shr-text-grey',\n 'group-hover/tabitem:shr-text-black',\n 'group-disabled/tabitem:shr-text-grey/50',\n 'group-aria-selected/tabitem:shr-text-black',\n ],\n suffixWrapper: [\n // Badge など内包要素に依って高さが変わらないようにするため、ネガティブマージンを指定\n '-shr-my-0.25',\n // 内包アイコンの leading を詰める\n '[&_.smarthr-ui-Icon]:shr-block',\n ],\n },\n})\n\ntype AbstractProps = PropsWithChildren<{\n /** タブの ID */\n id: string\n /** ボタン内の末尾に表示する内容 */\n suffix?: ReactNode\n /** `true` のとき、タブが選択状態のスタイルになる */\n selected?: boolean\n /** `true` のとき、タブを無効状態にしてクリック不能にする */\n disabled?: boolean\n /**\n * 無効な理由\n */\n disabledReason?: {\n icon?: ReactNode\n message: ReactNode\n }\n /** タブをクリックした時に発火するコールバック関数 */\n onClick: (tabId: string) => void\n}>\ntype Props = AbstractProps &\n Omit<ComponentProps<typeof UnstyledButton>, keyof AbstractProps | 'aria-selected' | 'type'>\n\nexport const TabItem: FC<Props> = ({ selected = false, disabled, disabledReason, ...rest }) => {\n const tabAttrs = {\n role: 'tab',\n 'aria-selected': selected,\n }\n\n if (disabled && disabledReason) {\n const Icon = disabledReason.icon || <FaCircleInfoIcon color=\"TEXT_GREY\" />\n\n return (\n <Tooltip\n {...tabAttrs}\n message={disabledReason.message}\n aria-disabled={disabled}\n className=\"focus-visible:shr-focus-indicator\"\n >\n <TabButton {...rest} disabled={disabled} suffix={Icon} />\n </Tooltip>\n )\n }\n\n return <TabButton {...rest} {...tabAttrs} disabled={disabled} />\n}\n\nconst TabButton: FC<Props> = ({ id, children, suffix, onClick, className, ...rest }) => {\n const classNames = useMemo(() => {\n const { wrapper, label, suffixWrapper } = classNameGenerator()\n\n return {\n wrapper: wrapper({ className }),\n label: label(),\n suffixWrapper: suffixWrapper(),\n }\n }, [className])\n\n const actualOnClick = useCallback(\n (e: MouseEvent<HTMLButtonElement>) => onClick(e.currentTarget.value),\n [onClick],\n )\n\n return (\n <UnstyledButton\n {...rest}\n type=\"button\"\n value={id}\n id={id}\n className={classNames.wrapper}\n onClick={actualOnClick}\n >\n <TabLabel className={classNames.label}>{children}</TabLabel>\n <TabButtonSuffix className={classNames.suffixWrapper}>{suffix}</TabButtonSuffix>\n </UnstyledButton>\n )\n}\n\nconst TabLabel = memo<PropsWithChildren<{ className: string }>>(({ children, className }) => (\n <span className={className}>{children}</span>\n))\nconst TabButtonSuffix = memo<PropsWithChildren<{ className: string }>>(\n ({ children, className }) => children && <span className={className}>{children}</span>,\n)\n"],"names":["t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E,KAAK,QAAQ,IAAIA,GAAA,CAAA,MAAA,EAAA,EAAM,SAAS,EAAE,SAAS,EAAA,QAAA,EAAG,QAAQ,EAAA,CAAQ,CACvF;;;;"}
1
+ {"version":3,"file":"TabItem.js","sources":["../../../src/components/TabBar/TabItem.tsx"],"sourcesContent":["import {\n type ComponentProps,\n type FC,\n type MouseEvent,\n type PropsWithChildren,\n type ReactNode,\n memo,\n useCallback,\n useMemo,\n useRef,\n} from 'react'\nimport { tv } from 'tailwind-variants'\n\nimport { UnstyledButton } from '../Button'\nimport { FaCircleInfoIcon } from '../Icon'\nimport { Tooltip } from '../Tooltip'\n\nconst classNameGenerator = tv({\n slots: {\n wrapper: [\n 'smarthr-ui-TabItem',\n 'shr-group/tabitem',\n 'shr-relative shr-inline-flex shr-items-center shr-gap-0.5 shr-px-1 shr-py-0.75',\n 'hover:shr-bg-white-darken',\n 'focus-visible:shr-focus-indicator focus-visible:shr-z-1',\n 'disabled:shr-cursor-not-allowed disabled:shr-bg-transparent',\n 'aria-selected:before:shr-absolute aria-selected:before:shr-inset-x-0 aria-selected:before:shr-bottom-0 aria-selected:before:shr-z-1 aria-selected:before:shr-block aria-selected:before:shr-h-0.25 aria-selected:before:shr-bg-main aria-selected:before:shr-content-[\"\"]',\n 'forced-colors:aria-selected:before:shr-bg-[Highlight]',\n ],\n label: [\n 'shr-font-bold shr-leading-none shr-text-grey',\n 'group-hover/tabitem:shr-text-black',\n 'group-disabled/tabitem:shr-text-grey/50',\n 'group-aria-selected/tabitem:shr-text-black',\n ],\n suffixWrapper: [\n // Badge など内包要素に依って高さが変わらないようにするため、ネガティブマージンを指定\n '-shr-my-0.25',\n // 内包アイコンの leading を詰める\n '[&_.smarthr-ui-Icon]:shr-block',\n ],\n },\n})\n\ntype AbstractProps = PropsWithChildren<{\n /** タブの ID */\n id: string\n /** ボタン内の末尾に表示する内容 */\n suffix?: ReactNode\n /** `true` のとき、タブが選択状態のスタイルになる */\n selected?: boolean\n /** `true` のとき、タブを無効状態にしてクリック不能にする */\n disabled?: boolean\n /**\n * 無効な理由\n */\n disabledReason?: {\n icon?: ReactNode\n message: ReactNode\n }\n /** タブをクリックした時に発火するコールバック関数 */\n onClick: (e: MouseEvent<HTMLButtonElement>) => void\n}>\ntype Props = AbstractProps &\n Omit<ComponentProps<typeof UnstyledButton>, keyof AbstractProps | 'aria-selected' | 'type'>\n\nexport const TabItem: FC<Props> = ({\n selected = false,\n disabled,\n disabledReason,\n onClick,\n ...rest\n}) => {\n const tabAttrs = {\n role: 'tab',\n 'aria-selected': selected,\n }\n const onClickRef = useRef(onClick)\n onClickRef.current = onClick\n\n const actualOnClick = useCallback((e: MouseEvent<HTMLButtonElement>) => {\n onClickRef.current(e)\n }, [])\n\n if (disabled && disabledReason) {\n const Icon = disabledReason.icon || <FaCircleInfoIcon color=\"TEXT_GREY\" />\n\n return (\n <Tooltip\n {...tabAttrs}\n message={disabledReason.message}\n aria-disabled={disabled}\n className=\"focus-visible:shr-focus-indicator\"\n >\n <TabButton {...rest} onClick={actualOnClick} disabled={disabled} suffix={Icon} />\n </Tooltip>\n )\n }\n\n return <TabButton {...rest} {...tabAttrs} onClick={actualOnClick} disabled={disabled} />\n}\n\nconst TabButton = memo<PropsWithChildren<Props>>(({ id, children, suffix, className, ...rest }) => {\n const classNames = useMemo(() => {\n const { wrapper, label, suffixWrapper } = classNameGenerator()\n\n return {\n wrapper: wrapper({ className }),\n label: label(),\n suffixWrapper: suffixWrapper(),\n }\n }, [className])\n\n return (\n <UnstyledButton {...rest} type=\"button\" value={id} id={id} className={classNames.wrapper}>\n <span className={classNames.label}>{children}</span>\n {suffix && <span className={classNames.suffixWrapper}>{suffix}</span>}\n </UnstyledButton>\n )\n})\n"],"names":["tv","_jsx","_jsxs"],"mappings":";;;;;;;;;;;;AAiBA,MAAM,kBAAkB,GAAGA,EAAE,CAAC;AAC5B,IAAA,KAAK,EAAE;AACL,QAAA,OAAO,EAAE;YACP,oBAAoB;YACpB,mBAAmB;YACnB,g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EAAA,GAAK,IAAI,KAAM,QAAQ,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,QAAQ,GAAI;AAC1F;AAEA,MAAM,SAAS,GAAG,IAAI,CAA2B,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,KAAI;AAChG,IAAA,MAAM,UAAU,GAAG,OAAO,CAAC,MAAK;QAC9B,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,GAAG,kBAAkB,EAAE;QAE9D,OAAO;AACL,YAAA,OAAO,EAAE,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC;YAC/B,KAAK,EAAE,KAAK,EAAE;YACd,aAAa,EAAE,aAAa,EAAE;SAC/B;AACH,IAAA,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC;IAEf,QACEC,KAAC,cAAc,EAAA,EAAA,GAAK,IAAI,EAAE,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,UAAU,CAAC,OAAO,aACtFD,GAAA,CAAA,MAAA,EAAA,EAAM,SAAS,EAAE,UAAU,CAAC,KAAK,EAAA,QAAA,EAAG,QAAQ,EAAA,CAAQ,EACnD,MAAM,IAAIA,cAAM,SAAS,EAAE,UAAU,CAAC,aAAa,YAAG,MAAM,EAAA,CAAQ,CAAA,EAAA,CACtD;AAErB,CAAC,CAAC;;;;"}
@@ -5,19 +5,19 @@ var React = require('react');
5
5
  // https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key
6
6
  // Esc is a IE/Edge specific value
7
7
  const ESCAPE_KEY_REGEX = /^Esc(ape)?$/;
8
- const useHandleEscape = (cb) => {
8
+ const useHandleEscape = (memoizedCallback) => {
9
9
  React.useEffect(() => {
10
- if (!cb) {
10
+ if (!memoizedCallback) {
11
11
  return;
12
12
  }
13
13
  const handleKeyPress = (e) => {
14
14
  if (ESCAPE_KEY_REGEX.test(e.key)) {
15
- cb();
15
+ memoizedCallback();
16
16
  }
17
17
  };
18
18
  document.addEventListener('keydown', handleKeyPress);
19
19
  return () => document.removeEventListener('keydown', handleKeyPress);
20
- }, [cb]);
20
+ }, [memoizedCallback]);
21
21
  };
22
22
 
23
23
  exports.useHandleEscape = useHandleEscape;
@@ -1 +1 @@
1
- {"version":3,"file":"useHandleEscape.cjs","sources":["../../src/hooks/useHandleEscape.ts"],"sourcesContent":["import { useEffect } from 'react'\n\n// https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key\n// Esc is a IE/Edge specific value\nconst ESCAPE_KEY_REGEX = /^Esc(ape)?$/\n\nexport const useHandleEscape = (cb?: () => void) => {\n useEffect(() => {\n if (!cb) {\n return\n }\n\n const handleKeyPress = (e: KeyboardEvent) => {\n if (ESCAPE_KEY_REGEX.test(e.key)) {\n cb()\n }\n }\n\n document.addEventListener('keydown', handleKeyPress)\n\n return () => document.removeEventListener('keydown', handleKeyPress)\n }, [cb])\n}\n"],"names":["useEffect"],"mappings":";;;;AAEA;AACA;AACA,MAAM,gBAAgB,GAAG,aAAa;AAE/B,MAAM,eAAe,GAAG,CAAC,EAAe,KAAI;IACjDA,eAAS,CAAC,MAAK;QACb,IAAI,CAAC,EAAE,EAAE;YACP;QACF;AAEA,QAAA,MAAM,cAAc,GAAG,CAAC,CAAgB,KAAI;YAC1C,IAAI,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE;AAChC,gBAAA,EAAE,EAAE;YACN;AACF,QAAA,CAAC;AAED,QAAA,QAAQ,CAAC,gBAAgB,CAAC,SAAS,EAAE,cAAc,CAAC;QAEpD,OAAO,MAAM,QAAQ,CAAC,mBAAmB,CAAC,SAAS,EAAE,cAAc,CAAC;AACtE,IAAA,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AACV;;;;"}
1
+ {"version":3,"file":"useHandleEscape.cjs","sources":["../../src/hooks/useHandleEscape.ts"],"sourcesContent":["import { useEffect } from 'react'\n\n// https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key\n// Esc is a IE/Edge specific value\nconst ESCAPE_KEY_REGEX = /^Esc(ape)?$/\n\nexport const useHandleEscape = (memoizedCallback?: () => void) => {\n useEffect(() => {\n if (!memoizedCallback) {\n return\n }\n\n const handleKeyPress = (e: KeyboardEvent) => {\n if (ESCAPE_KEY_REGEX.test(e.key)) {\n memoizedCallback()\n }\n }\n\n document.addEventListener('keydown', handleKeyPress)\n\n return () => document.removeEventListener('keydown', handleKeyPress)\n }, [memoizedCallback])\n}\n"],"names":["useEffect"],"mappings":";;;;AAEA;AACA;AACA,MAAM,gBAAgB,GAAG,aAAa;AAE/B,MAAM,eAAe,GAAG,CAAC,gBAA6B,KAAI;IAC/DA,eAAS,CAAC,MAAK;QACb,IAAI,CAAC,gBAAgB,EAAE;YACrB;QACF;AAEA,QAAA,MAAM,cAAc,GAAG,CAAC,CAAgB,KAAI;YAC1C,IAAI,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE;AAChC,gBAAA,gBAAgB,EAAE;YACpB;AACF,QAAA,CAAC;AAED,QAAA,QAAQ,CAAC,gBAAgB,CAAC,SAAS,EAAE,cAAc,CAAC;QAEpD,OAAO,MAAM,QAAQ,CAAC,mBAAmB,CAAC,SAAS,EAAE,cAAc,CAAC;AACtE,IAAA,CAAC,EAAE,CAAC,gBAAgB,CAAC,CAAC;AACxB;;;;"}
@@ -1 +1 @@
1
- export declare const useHandleEscape: (cb?: () => void) => void;
1
+ export declare const useHandleEscape: (memoizedCallback?: () => void) => void;
@@ -3,19 +3,19 @@ import { useEffect } from 'react';
3
3
  // https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key
4
4
  // Esc is a IE/Edge specific value
5
5
  const ESCAPE_KEY_REGEX = /^Esc(ape)?$/;
6
- const useHandleEscape = (cb) => {
6
+ const useHandleEscape = (memoizedCallback) => {
7
7
  useEffect(() => {
8
- if (!cb) {
8
+ if (!memoizedCallback) {
9
9
  return;
10
10
  }
11
11
  const handleKeyPress = (e) => {
12
12
  if (ESCAPE_KEY_REGEX.test(e.key)) {
13
- cb();
13
+ memoizedCallback();
14
14
  }
15
15
  };
16
16
  document.addEventListener('keydown', handleKeyPress);
17
17
  return () => document.removeEventListener('keydown', handleKeyPress);
18
- }, [cb]);
18
+ }, [memoizedCallback]);
19
19
  };
20
20
 
21
21
  export { useHandleEscape };
@@ -1 +1 @@
1
- {"version":3,"file":"useHandleEscape.js","sources":["../../src/hooks/useHandleEscape.ts"],"sourcesContent":["import { useEffect } from 'react'\n\n// https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key\n// Esc is a IE/Edge specific value\nconst ESCAPE_KEY_REGEX = /^Esc(ape)?$/\n\nexport const useHandleEscape = (cb?: () => void) => {\n useEffect(() => {\n if (!cb) {\n return\n }\n\n const handleKeyPress = (e: KeyboardEvent) => {\n if (ESCAPE_KEY_REGEX.test(e.key)) {\n cb()\n }\n }\n\n document.addEventListener('keydown', handleKeyPress)\n\n return () => document.removeEventListener('keydown', handleKeyPress)\n }, [cb])\n}\n"],"names":[],"mappings":";;AAEA;AACA;AACA,MAAM,gBAAgB,GAAG,aAAa;AAE/B,MAAM,eAAe,GAAG,CAAC,EAAe,KAAI;IACjD,SAAS,CAAC,MAAK;QACb,IAAI,CAAC,EAAE,EAAE;YACP;QACF;AAEA,QAAA,MAAM,cAAc,GAAG,CAAC,CAAgB,KAAI;YAC1C,IAAI,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE;AAChC,gBAAA,EAAE,EAAE;YACN;AACF,QAAA,CAAC;AAED,QAAA,QAAQ,CAAC,gBAAgB,CAAC,SAAS,EAAE,cAAc,CAAC;QAEpD,OAAO,MAAM,QAAQ,CAAC,mBAAmB,CAAC,SAAS,EAAE,cAAc,CAAC;AACtE,IAAA,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AACV;;;;"}
1
+ {"version":3,"file":"useHandleEscape.js","sources":["../../src/hooks/useHandleEscape.ts"],"sourcesContent":["import { useEffect } from 'react'\n\n// https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key\n// Esc is a IE/Edge specific value\nconst ESCAPE_KEY_REGEX = /^Esc(ape)?$/\n\nexport const useHandleEscape = (memoizedCallback?: () => void) => {\n useEffect(() => {\n if (!memoizedCallback) {\n return\n }\n\n const handleKeyPress = (e: KeyboardEvent) => {\n if (ESCAPE_KEY_REGEX.test(e.key)) {\n memoizedCallback()\n }\n }\n\n document.addEventListener('keydown', handleKeyPress)\n\n return () => document.removeEventListener('keydown', handleKeyPress)\n }, [memoizedCallback])\n}\n"],"names":[],"mappings":";;AAEA;AACA;AACA,MAAM,gBAAgB,GAAG,aAAa;AAE/B,MAAM,eAAe,GAAG,CAAC,gBAA6B,KAAI;IAC/D,SAAS,CAAC,MAAK;QACb,IAAI,CAAC,gBAAgB,EAAE;YACrB;QACF;AAEA,QAAA,MAAM,cAAc,GAAG,CAAC,CAAgB,KAAI;YAC1C,IAAI,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE;AAChC,gBAAA,gBAAgB,EAAE;YACpB;AACF,QAAA,CAAC;AAED,QAAA,QAAQ,CAAC,gBAAgB,CAAC,SAAS,EAAE,cAAc,CAAC;QAEpD,OAAO,MAAM,QAAQ,CAAC,mBAAmB,CAAC,SAAS,EAAE,cAAc,CAAC;AACtE,IAAA,CAAC,EAAE,CAAC,gBAAgB,CAAC,CAAC;AACxB;;;;"}
@@ -1,10 +1,10 @@
1
1
  import { FormattedMessage as ReactIntlFormattedMessage } from 'react-intl';
2
- import type { ja } from './locales';
2
+ import type { typedJa } from './locales';
3
3
  import type { ComponentProps } from 'react';
4
- type Messages = Record<keyof typeof ja, string>;
4
+ type Messages = Record<keyof typeof typedJa, string>;
5
5
  type Props<Id extends keyof Messages> = {
6
6
  id: Id;
7
- defaultText: (typeof ja)[Id];
7
+ defaultText: (typeof typedJa)[Id];
8
8
  values?: ComponentProps<typeof ReactIntlFormattedMessage>['values'];
9
9
  };
10
10
  export declare const Localizer: <ID extends keyof Messages>({ values, id, defaultText, ...rest }: Props<ID>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,133 @@
1
+ 'use strict';
2
+
3
+ var enUs = {
4
+ "smarthr-ui/common/language": "English",
5
+ "smarthr-ui/ActionDialog/closeButtonLabel": "Cancel",
6
+ "smarthr-ui/AppHeader/school": "SmartHR School",
7
+ "smarthr-ui/AppHeader/help": "Help",
8
+ "smarthr-ui/AppHeader/userSettings": "Personal Settings",
9
+ "smarthr-ui/AppHeader/releaseNotes": "Release Notes",
10
+ "smarthr-ui/AppHeader/releaseNotesLoadError": "Failed to load the release notes. Please try again later.",
11
+ "smarthr-ui/AppHeader/seeAllReleaseNotes": "View all release notes",
12
+ "smarthr-ui/AppHeader/DesktopHeader/appLauncherLabel": "Apps",
13
+ "smarthr-ui/AppHeader/MobileHeader/account": "Account",
14
+ "smarthr-ui/AppHeader/MobileHeader/openMenu": "Open menu",
15
+ "smarthr-ui/AppHeader/MobileHeader/closeMenu": "Close menu",
16
+ "smarthr-ui/AppHeader/MobileHeader/allAppButton": "All Apps",
17
+ "smarthr-ui/AppHeader/MobileHeader/managementMenu": "Admin Menu",
18
+ "smarthr-ui/AppHeader/MobileHeader/latestReleaseNotes": "Latest Release Notes",
19
+ "smarthr-ui/AppHeader/MobileHeader/back": "Back",
20
+ "smarthr-ui/AppHeader/MobileHeader/openMenuAccordion": "Open",
21
+ "smarthr-ui/AppHeader/MobileHeader/closeMenuAccordion": "Close",
22
+ "smarthr-ui/AppHeader/Launcher/searchInputTitle": "Enter the name of the App.",
23
+ "smarthr-ui/AppHeader/Launcher/favoriteModeText": "Favorite Apps",
24
+ "smarthr-ui/AppHeader/Launcher/allModeText": "All Apps",
25
+ "smarthr-ui/AppHeader/Launcher/listText": "App List",
26
+ "smarthr-ui/AppHeader/Launcher/helpText": "About Favorite Apps",
27
+ "smarthr-ui/AppHeader/Launcher/searchResultText": "Search results",
28
+ "smarthr-ui/AppHeader/Launcher/emptyText": "App not found.",
29
+ "smarthr-ui/AppHeader/Launcher/sortDropdownLabel": "Sort by",
30
+ "smarthr-ui/AppHeader/Launcher/sortDropdownSelected": "Selected",
31
+ "smarthr-ui/AppHeader/Launcher/sortDropdownOrderDefault": "Default order",
32
+ "smarthr-ui/AppHeader/Launcher/sortDropdownOrderNameAsc": "App name (A→Z)",
33
+ "smarthr-ui/AppHeader/Launcher/sortDropdownOrderNameDesc": "App name (Z→A)",
34
+ "smarthr-ui/AppLauncher/showAllText": "View all",
35
+ "smarthr-ui/AppLauncher/triggerLabel": "Apps",
36
+ "smarthr-ui/Browser/notFoundDescription": "Try changing the filter criteria.",
37
+ "smarthr-ui/Browser/notFoundTitle": "No items found.",
38
+ "smarthr-ui/Button/loading": "In Progress",
39
+ "smarthr-ui/Calendar/currentYear": "Current year",
40
+ "smarthr-ui/Calendar/nextMonth": "Next month",
41
+ "smarthr-ui/Calendar/previousMonth": "Previous month",
42
+ "smarthr-ui/Calendar/selectYear": "Select year",
43
+ "smarthr-ui/Combobox/addItemButtonLabel": "Add “{name}”",
44
+ "smarthr-ui/Combobox/loadingText": "In Progress",
45
+ "smarthr-ui/Combobox/noResultsText": "No matching results found.",
46
+ "smarthr-ui/DropdownMenuButton/triggerActive": "Hide options",
47
+ "smarthr-ui/DropdownMenuButton/triggerInactive": "Show options",
48
+ "smarthr-ui/DropZone/selectButtonLabel": "Choose file to upload",
49
+ "smarthr-ui/FileViewer/rotateAlt": "Rotate Left",
50
+ "smarthr-ui/FileViewer/scaleDownAlt": "Zoom Out",
51
+ "smarthr-ui/FileViewer/scaleRateLabel": "Zoom Factor (%)",
52
+ "smarthr-ui/FileViewer/scaleUpAlt": "Zoom In",
53
+ "smarthr-ui/FileViewer/unsupportedFileText": "Unsupported file format.",
54
+ "smarthr-ui/FilterDropdown/applyText": "Apply",
55
+ "smarthr-ui/FilterDropdown/cancelText": "Cancel",
56
+ "smarthr-ui/FilterDropdown/resetText": "Clear filters",
57
+ "smarthr-ui/FilterDropdown/status": "Filters applied",
58
+ "smarthr-ui/FilterDropdown/triggerText": "Filter",
59
+ "smarthr-ui/FormDialog/closeButtonLabel": "Cancel",
60
+ "smarthr-ui/InformationPanel/closeButtonLabel": "Close",
61
+ "smarthr-ui/InformationPanel/openButtonLabel": "Open",
62
+ "smarthr-ui/InputFile/destroy": "Delete",
63
+ "smarthr-ui/LanguageSwitcher/checkIconAlt": "Selected",
64
+ "smarthr-ui/Loader/alt": "In Progress",
65
+ "smarthr-ui/MessageDialog/closeButtonLabel": "Close",
66
+ "smarthr-ui/ModelessDialog/closeButtonIconAlt": "Close",
67
+ "smarthr-ui/ModelessDialog/dialogHandlerAriaLabel": "Dialog position",
68
+ "smarthr-ui/ModelessDialog/dialogHandlerAriaRoleDescription": "Can be dragged",
69
+ "smarthr-ui/ModelessDialog/dialogHandlerDescription": "Can be moved up, down, left, or right using arrow keys",
70
+ "smarthr-ui/ModelessDialog/dialogHandlerLiveRegionText": "{top}px from top, {left}px from left",
71
+ "smarthr-ui/MultiCombobox/destroyButtonIconAltSuffix": ": remove",
72
+ "smarthr-ui/MultiCombobox/selectedListAriaLabel": "Selected items",
73
+ "smarthr-ui/NotificationBar/closeButtonIconAlt": "Close",
74
+ "smarthr-ui/Pagination/controllerItemButtonFirstLabel": "First",
75
+ "smarthr-ui/Pagination/controllerItemButtonLastLabel": "Last",
76
+ "smarthr-ui/Pagination/controllerItemButtonNextLabel": "Next",
77
+ "smarthr-ui/Pagination/controllerItemButtonPreviousLabel": "Previous",
78
+ "smarthr-ui/Pagination/itemButtonLabel": "Page {page}",
79
+ "smarthr-ui/Pagination/navigationLabel": "Pagination",
80
+ "smarthr-ui/RequiredLabel/text": "Required",
81
+ "smarthr-ui/SearchInput/iconAlt": "Search",
82
+ "smarthr-ui/SideMenu/navigationLabel": "Sidebar",
83
+ "smarthr-ui/SingleCombobox/destroyButtonIconAlt": "Clear",
84
+ "smarthr-ui/SortDropdown/applyText": "Apply",
85
+ "smarthr-ui/SortDropdown/ascLabel": "Ascending",
86
+ "smarthr-ui/SortDropdown/cancelText": "Cancel",
87
+ "smarthr-ui/SortDropdown/descLabel": "Descending",
88
+ "smarthr-ui/SortDropdown/sortFieldLabel": "Sort items",
89
+ "smarthr-ui/SortDropdown/sortOrderLegend": "Order",
90
+ "smarthr-ui/StepFormDialog/backButtonLabel": "Back",
91
+ "smarthr-ui/StepFormDialog/closeButtonLabel": "Cancel",
92
+ "smarthr-ui/StepFormDialog/nextButtonLabel": "Next",
93
+ "smarthr-ui/StepStatusIcon/closedAlt": "Interrupted",
94
+ "smarthr-ui/StepStatusIcon/completedAlt": "Completed",
95
+ "smarthr-ui/Textarea/availableLetters": "{availableLetters} characters left",
96
+ "smarthr-ui/Textarea/maxLettersExceeded": "{exceededLetters} characters over limit",
97
+ "smarthr-ui/Textarea/screenReaderMaxLettersDescription": "Maximum {maxLetters} characters",
98
+ "smarthr-ui/OpenInNewTabIcon/openInNewTab": "Open in another tab",
99
+ "smarthr-ui/Th/sortDirectionAsc": "Ascending",
100
+ "smarthr-ui/Th/sortDirectionDesc": "Descending",
101
+ "smarthr-ui/Th/sortDirectionNone": "No sorting",
102
+ "smarthr-ui/ThCheckbox/checkAllInvisibleLabel": "Select/Deselect All",
103
+ "smarthr-ui/ThCheckbox/checkColumnName": "Select",
104
+ "smarthr-ui/ErrorScreen/homeLink": "Back to Home",
105
+ "smarthr-ui/ErrorScreen/smarthrLink": "Back to SmartHR",
106
+ "smarthr-ui/AuthErrorScreen/title": "Authentication Issue",
107
+ "smarthr-ui/ForbiddenErrorScreen/title": "You don’t have permission to view this page",
108
+ "smarthr-ui/ForbiddenErrorScreen/description": "For more details, please contact the administrator at your company.",
109
+ "smarthr-ui/NotFoundErrorScreen/title": "Page Not Found",
110
+ "smarthr-ui/NotFoundErrorScreen/description": "The page you are looking for is temporarily unavailable, or it may have been moved or deleted.",
111
+ "smarthr-ui/UnauthorizedErrorScreen/title": "Logged Out Due to Inactivity",
112
+ "smarthr-ui/UnauthorizedErrorScreen/description1": "You have been automatically logged out due to inactivity.",
113
+ "smarthr-ui/UnauthorizedErrorScreen/description2": "Please log in again to access the requested page.",
114
+ "smarthr-ui/UnauthorizedErrorScreen/reLoginButton": "Log in again",
115
+ "smarthr-ui/UnexpectedErrorScreen/title": "Unexpected Error",
116
+ "smarthr-ui/UnexpectedErrorScreen/apology": "We apologize for the inconvenience.",
117
+ "smarthr-ui/UnexpectedErrorScreen/possibleCause": "This error may have occurred due to a temporary connection issue, your device or browser settings, or the contents of the file you uploaded.",
118
+ "smarthr-ui/UnexpectedErrorScreen/pleaseRetry": "We apologize for the trouble. Please try the following:",
119
+ "smarthr-ui/UnexpectedErrorScreen/retryItem1": "Wait a moment, then try again.",
120
+ "smarthr-ui/UnexpectedErrorScreen/retryItem2": "Check {maintenanceLink}. Note that the information about maintenance and major system issues may take some time to be posted.",
121
+ "smarthr-ui/UnexpectedErrorScreen/ifNotResolved": "If the issues is not resolved, try the steps below:",
122
+ "smarthr-ui/UnexpectedErrorScreen/checkItem1": "Check if you’re using a recommended browser/settings (see {environmentLink})",
123
+ "smarthr-ui/UnexpectedErrorScreen/checkItem2": "Try clearing your browser’s cookies and cache. For details, see {cookieCacheLink}.",
124
+ "smarthr-ui/UnexpectedErrorScreen/contactAdmin": "If the issue persists after checking the above, please contact your company’s HR representative, or another person with SmartHR administrator privileges, and provide the information listed here: {errorInfoLink}.",
125
+ "smarthr-ui/UnexpectedErrorScreen/adminContact": "If you have SmartHR administrator privileges, please contact us using the chat icon in the lower right and provide the following information: {errorInfoLink}.",
126
+ "smarthr-ui/UnexpectedErrorScreen/maintenanceLink": "Maintenance & Service Alerts",
127
+ "smarthr-ui/UnexpectedErrorScreen/environmentLink": "SmartHR system requirements",
128
+ "smarthr-ui/UnexpectedErrorScreen/cookieCacheLink": "Q. How do I clear my browser’s cookies and cache?",
129
+ "smarthr-ui/UnexpectedErrorScreen/errorOccursInformation": "Information needed to investigate the error"
130
+ };
131
+
132
+ module.exports = enUs;
133
+ //# sourceMappingURL=en_us.json.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"en_us.json.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,131 @@
1
+ var enUs = {
2
+ "smarthr-ui/common/language": "English",
3
+ "smarthr-ui/ActionDialog/closeButtonLabel": "Cancel",
4
+ "smarthr-ui/AppHeader/school": "SmartHR School",
5
+ "smarthr-ui/AppHeader/help": "Help",
6
+ "smarthr-ui/AppHeader/userSettings": "Personal Settings",
7
+ "smarthr-ui/AppHeader/releaseNotes": "Release Notes",
8
+ "smarthr-ui/AppHeader/releaseNotesLoadError": "Failed to load the release notes. Please try again later.",
9
+ "smarthr-ui/AppHeader/seeAllReleaseNotes": "View all release notes",
10
+ "smarthr-ui/AppHeader/DesktopHeader/appLauncherLabel": "Apps",
11
+ "smarthr-ui/AppHeader/MobileHeader/account": "Account",
12
+ "smarthr-ui/AppHeader/MobileHeader/openMenu": "Open menu",
13
+ "smarthr-ui/AppHeader/MobileHeader/closeMenu": "Close menu",
14
+ "smarthr-ui/AppHeader/MobileHeader/allAppButton": "All Apps",
15
+ "smarthr-ui/AppHeader/MobileHeader/managementMenu": "Admin Menu",
16
+ "smarthr-ui/AppHeader/MobileHeader/latestReleaseNotes": "Latest Release Notes",
17
+ "smarthr-ui/AppHeader/MobileHeader/back": "Back",
18
+ "smarthr-ui/AppHeader/MobileHeader/openMenuAccordion": "Open",
19
+ "smarthr-ui/AppHeader/MobileHeader/closeMenuAccordion": "Close",
20
+ "smarthr-ui/AppHeader/Launcher/searchInputTitle": "Enter the name of the App.",
21
+ "smarthr-ui/AppHeader/Launcher/favoriteModeText": "Favorite Apps",
22
+ "smarthr-ui/AppHeader/Launcher/allModeText": "All Apps",
23
+ "smarthr-ui/AppHeader/Launcher/listText": "App List",
24
+ "smarthr-ui/AppHeader/Launcher/helpText": "About Favorite Apps",
25
+ "smarthr-ui/AppHeader/Launcher/searchResultText": "Search results",
26
+ "smarthr-ui/AppHeader/Launcher/emptyText": "App not found.",
27
+ "smarthr-ui/AppHeader/Launcher/sortDropdownLabel": "Sort by",
28
+ "smarthr-ui/AppHeader/Launcher/sortDropdownSelected": "Selected",
29
+ "smarthr-ui/AppHeader/Launcher/sortDropdownOrderDefault": "Default order",
30
+ "smarthr-ui/AppHeader/Launcher/sortDropdownOrderNameAsc": "App name (A→Z)",
31
+ "smarthr-ui/AppHeader/Launcher/sortDropdownOrderNameDesc": "App name (Z→A)",
32
+ "smarthr-ui/AppLauncher/showAllText": "View all",
33
+ "smarthr-ui/AppLauncher/triggerLabel": "Apps",
34
+ "smarthr-ui/Browser/notFoundDescription": "Try changing the filter criteria.",
35
+ "smarthr-ui/Browser/notFoundTitle": "No items found.",
36
+ "smarthr-ui/Button/loading": "In Progress",
37
+ "smarthr-ui/Calendar/currentYear": "Current year",
38
+ "smarthr-ui/Calendar/nextMonth": "Next month",
39
+ "smarthr-ui/Calendar/previousMonth": "Previous month",
40
+ "smarthr-ui/Calendar/selectYear": "Select year",
41
+ "smarthr-ui/Combobox/addItemButtonLabel": "Add “{name}”",
42
+ "smarthr-ui/Combobox/loadingText": "In Progress",
43
+ "smarthr-ui/Combobox/noResultsText": "No matching results found.",
44
+ "smarthr-ui/DropdownMenuButton/triggerActive": "Hide options",
45
+ "smarthr-ui/DropdownMenuButton/triggerInactive": "Show options",
46
+ "smarthr-ui/DropZone/selectButtonLabel": "Choose file to upload",
47
+ "smarthr-ui/FileViewer/rotateAlt": "Rotate Left",
48
+ "smarthr-ui/FileViewer/scaleDownAlt": "Zoom Out",
49
+ "smarthr-ui/FileViewer/scaleRateLabel": "Zoom Factor (%)",
50
+ "smarthr-ui/FileViewer/scaleUpAlt": "Zoom In",
51
+ "smarthr-ui/FileViewer/unsupportedFileText": "Unsupported file format.",
52
+ "smarthr-ui/FilterDropdown/applyText": "Apply",
53
+ "smarthr-ui/FilterDropdown/cancelText": "Cancel",
54
+ "smarthr-ui/FilterDropdown/resetText": "Clear filters",
55
+ "smarthr-ui/FilterDropdown/status": "Filters applied",
56
+ "smarthr-ui/FilterDropdown/triggerText": "Filter",
57
+ "smarthr-ui/FormDialog/closeButtonLabel": "Cancel",
58
+ "smarthr-ui/InformationPanel/closeButtonLabel": "Close",
59
+ "smarthr-ui/InformationPanel/openButtonLabel": "Open",
60
+ "smarthr-ui/InputFile/destroy": "Delete",
61
+ "smarthr-ui/LanguageSwitcher/checkIconAlt": "Selected",
62
+ "smarthr-ui/Loader/alt": "In Progress",
63
+ "smarthr-ui/MessageDialog/closeButtonLabel": "Close",
64
+ "smarthr-ui/ModelessDialog/closeButtonIconAlt": "Close",
65
+ "smarthr-ui/ModelessDialog/dialogHandlerAriaLabel": "Dialog position",
66
+ "smarthr-ui/ModelessDialog/dialogHandlerAriaRoleDescription": "Can be dragged",
67
+ "smarthr-ui/ModelessDialog/dialogHandlerDescription": "Can be moved up, down, left, or right using arrow keys",
68
+ "smarthr-ui/ModelessDialog/dialogHandlerLiveRegionText": "{top}px from top, {left}px from left",
69
+ "smarthr-ui/MultiCombobox/destroyButtonIconAltSuffix": ": remove",
70
+ "smarthr-ui/MultiCombobox/selectedListAriaLabel": "Selected items",
71
+ "smarthr-ui/NotificationBar/closeButtonIconAlt": "Close",
72
+ "smarthr-ui/Pagination/controllerItemButtonFirstLabel": "First",
73
+ "smarthr-ui/Pagination/controllerItemButtonLastLabel": "Last",
74
+ "smarthr-ui/Pagination/controllerItemButtonNextLabel": "Next",
75
+ "smarthr-ui/Pagination/controllerItemButtonPreviousLabel": "Previous",
76
+ "smarthr-ui/Pagination/itemButtonLabel": "Page {page}",
77
+ "smarthr-ui/Pagination/navigationLabel": "Pagination",
78
+ "smarthr-ui/RequiredLabel/text": "Required",
79
+ "smarthr-ui/SearchInput/iconAlt": "Search",
80
+ "smarthr-ui/SideMenu/navigationLabel": "Sidebar",
81
+ "smarthr-ui/SingleCombobox/destroyButtonIconAlt": "Clear",
82
+ "smarthr-ui/SortDropdown/applyText": "Apply",
83
+ "smarthr-ui/SortDropdown/ascLabel": "Ascending",
84
+ "smarthr-ui/SortDropdown/cancelText": "Cancel",
85
+ "smarthr-ui/SortDropdown/descLabel": "Descending",
86
+ "smarthr-ui/SortDropdown/sortFieldLabel": "Sort items",
87
+ "smarthr-ui/SortDropdown/sortOrderLegend": "Order",
88
+ "smarthr-ui/StepFormDialog/backButtonLabel": "Back",
89
+ "smarthr-ui/StepFormDialog/closeButtonLabel": "Cancel",
90
+ "smarthr-ui/StepFormDialog/nextButtonLabel": "Next",
91
+ "smarthr-ui/StepStatusIcon/closedAlt": "Interrupted",
92
+ "smarthr-ui/StepStatusIcon/completedAlt": "Completed",
93
+ "smarthr-ui/Textarea/availableLetters": "{availableLetters} characters left",
94
+ "smarthr-ui/Textarea/maxLettersExceeded": "{exceededLetters} characters over limit",
95
+ "smarthr-ui/Textarea/screenReaderMaxLettersDescription": "Maximum {maxLetters} characters",
96
+ "smarthr-ui/OpenInNewTabIcon/openInNewTab": "Open in another tab",
97
+ "smarthr-ui/Th/sortDirectionAsc": "Ascending",
98
+ "smarthr-ui/Th/sortDirectionDesc": "Descending",
99
+ "smarthr-ui/Th/sortDirectionNone": "No sorting",
100
+ "smarthr-ui/ThCheckbox/checkAllInvisibleLabel": "Select/Deselect All",
101
+ "smarthr-ui/ThCheckbox/checkColumnName": "Select",
102
+ "smarthr-ui/ErrorScreen/homeLink": "Back to Home",
103
+ "smarthr-ui/ErrorScreen/smarthrLink": "Back to SmartHR",
104
+ "smarthr-ui/AuthErrorScreen/title": "Authentication Issue",
105
+ "smarthr-ui/ForbiddenErrorScreen/title": "You don’t have permission to view this page",
106
+ "smarthr-ui/ForbiddenErrorScreen/description": "For more details, please contact the administrator at your company.",
107
+ "smarthr-ui/NotFoundErrorScreen/title": "Page Not Found",
108
+ "smarthr-ui/NotFoundErrorScreen/description": "The page you are looking for is temporarily unavailable, or it may have been moved or deleted.",
109
+ "smarthr-ui/UnauthorizedErrorScreen/title": "Logged Out Due to Inactivity",
110
+ "smarthr-ui/UnauthorizedErrorScreen/description1": "You have been automatically logged out due to inactivity.",
111
+ "smarthr-ui/UnauthorizedErrorScreen/description2": "Please log in again to access the requested page.",
112
+ "smarthr-ui/UnauthorizedErrorScreen/reLoginButton": "Log in again",
113
+ "smarthr-ui/UnexpectedErrorScreen/title": "Unexpected Error",
114
+ "smarthr-ui/UnexpectedErrorScreen/apology": "We apologize for the inconvenience.",
115
+ "smarthr-ui/UnexpectedErrorScreen/possibleCause": "This error may have occurred due to a temporary connection issue, your device or browser settings, or the contents of the file you uploaded.",
116
+ "smarthr-ui/UnexpectedErrorScreen/pleaseRetry": "We apologize for the trouble. Please try the following:",
117
+ "smarthr-ui/UnexpectedErrorScreen/retryItem1": "Wait a moment, then try again.",
118
+ "smarthr-ui/UnexpectedErrorScreen/retryItem2": "Check {maintenanceLink}. Note that the information about maintenance and major system issues may take some time to be posted.",
119
+ "smarthr-ui/UnexpectedErrorScreen/ifNotResolved": "If the issues is not resolved, try the steps below:",
120
+ "smarthr-ui/UnexpectedErrorScreen/checkItem1": "Check if you’re using a recommended browser/settings (see {environmentLink})",
121
+ "smarthr-ui/UnexpectedErrorScreen/checkItem2": "Try clearing your browser’s cookies and cache. For details, see {cookieCacheLink}.",
122
+ "smarthr-ui/UnexpectedErrorScreen/contactAdmin": "If the issue persists after checking the above, please contact your company’s HR representative, or another person with SmartHR administrator privileges, and provide the information listed here: {errorInfoLink}.",
123
+ "smarthr-ui/UnexpectedErrorScreen/adminContact": "If you have SmartHR administrator privileges, please contact us using the chat icon in the lower right and provide the following information: {errorInfoLink}.",
124
+ "smarthr-ui/UnexpectedErrorScreen/maintenanceLink": "Maintenance & Service Alerts",
125
+ "smarthr-ui/UnexpectedErrorScreen/environmentLink": "SmartHR system requirements",
126
+ "smarthr-ui/UnexpectedErrorScreen/cookieCacheLink": "Q. How do I clear my browser’s cookies and cache?",
127
+ "smarthr-ui/UnexpectedErrorScreen/errorOccursInformation": "Information needed to investigate the error"
128
+ };
129
+
130
+ export { enUs as default };
131
+ //# sourceMappingURL=en_us.json.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"en_us.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}