@ncds/ui-admin 1.8.23-alpha.1 → 1.8.23

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.
@@ -16,7 +16,7 @@ const BADGE_ICON_SIZE = 12;
16
16
  /** new-badge 박스 안에 들어가는 'N' 아이콘 크기. 박스는 sm 16px / md 20px 이며 아이콘은 그보다 작다(패딩 포함). */
17
17
  const NEW_BADGE_ICON_SIZE = {
18
18
  sm: 12,
19
- md: 14
19
+ md: 16
20
20
  };
21
21
  const Badge = _ref => {
22
22
  let {
@@ -11,15 +11,11 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
11
11
  const BreadcrumbItem = _ref => {
12
12
  let {
13
13
  href,
14
- ariaLabel,
15
14
  children
16
15
  } = _ref;
17
16
  const ElementType = href ? 'a' : 'span';
18
17
  return (0, _jsxRuntime.jsx)(ElementType, {
19
18
  href: href,
20
- // <span> 은 generic role 이라 aria-label 이 무시될 수 있다. 링크는 이미 이름을 지원하므로 그대로 둔다
21
- role: !href && ariaLabel ? 'img' : undefined,
22
- "aria-label": ariaLabel,
23
19
  className: "ncua-breadcrumb__item",
24
20
  children: children
25
21
  });
@@ -27,27 +23,23 @@ const BreadcrumbItem = _ref => {
27
23
  const BreadCrumb = _ref2 => {
28
24
  let {
29
25
  items,
30
- showHomeIcon = true,
31
26
  className
32
27
  } = _ref2;
33
28
  if (!items || items.length === 0) return null;
34
29
  const renderItem = (item, index) => {
35
30
  const isLast = index === items.length - 1;
36
- // 아이콘 여부는 한 곳에서만 판정한다 — 콘텐츠·모디파이어·aria-label 이 모두 이 값을 따른다
37
- const isHome = showHomeIcon && index === 0;
31
+ const content = index === 0 ? (0, _jsxRuntime.jsx)(_uiAdminIcon.Home01, {
32
+ width: 16,
33
+ height: 16,
34
+ color: "gray500"
35
+ }) : item.label;
38
36
  return (0, _jsxRuntime.jsx)("li", {
39
37
  className: (0, _classnames.default)('ncua-breadcrumb__list-item', {
40
- 'ncua-breadcrumb__list-item--home': isHome,
41
38
  'ncua-breadcrumb__list-item--active': isLast
42
39
  }),
43
40
  children: (0, _jsxRuntime.jsx)(BreadcrumbItem, {
44
41
  href: isLast ? undefined : item.href,
45
- ariaLabel: isHome ? item.label : undefined,
46
- children: isHome ? (0, _jsxRuntime.jsx)(_uiAdminIcon.Home01, {
47
- width: 16,
48
- height: 16,
49
- color: "gray500"
50
- }) : item.label
42
+ children: content
51
43
  })
52
44
  }, index);
53
45
  };