@ncds/ui-admin 0.0.13 → 0.0.15

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.
@@ -59,7 +59,12 @@ var Select = exports.Select = /*#__PURE__*/(0, _react.forwardRef)(function (_a,
59
59
  children: [icon ? (0, _jsxRuntime.jsx)("span", __assign({
60
60
  className: "ncua-select__icon"
61
61
  }, {
62
- children: icon
62
+ children: (0, _jsxRuntime.jsx)(_uiAdminIcon.default, {
63
+ name: icon.icon,
64
+ width: icon.size,
65
+ height: icon.size,
66
+ color: icon.color
67
+ })
63
68
  })) : (0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {}), (0, _jsxRuntime.jsxs)("select", __assign({
64
69
  value: value,
65
70
  ref: ref,
@@ -52,7 +52,12 @@ export var Select = /*#__PURE__*/forwardRef(function (_a, ref) {
52
52
  children: [icon ? _jsx("span", __assign({
53
53
  className: "ncua-select__icon"
54
54
  }, {
55
- children: icon
55
+ children: _jsx(Icon, {
56
+ name: icon.icon,
57
+ width: icon.size,
58
+ height: icon.size,
59
+ color: icon.color
60
+ })
56
61
  })) : _jsx(_Fragment, {}), _jsxs("select", __assign({
57
62
  value: value,
58
63
  ref: ref,
@@ -1,13 +1,20 @@
1
+ import Icon, { IconName } from '@ncds/ui-admin-icon';
1
2
  import { Size } from '@ncds/ui/constant/size';
2
- import { ComponentPropsWithRef, PropsWithChildren, ReactNode } from 'react';
3
+ import { ComponentPropsWithRef, PropsWithChildren } from 'react';
3
4
  import { UseFormRegisterReturn } from 'react-hook-form';
5
+ import { COLOR } from '@ncds/ui-admin/constant/color';
4
6
  type BaseSelectProps = Omit<ComponentPropsWithRef<'select'>, 'size'>;
5
7
  export type OptionType = {
6
8
  id: string | number;
7
9
  label: string;
8
10
  };
11
+ type Icon = {
12
+ icon: IconName;
13
+ color?: keyof typeof COLOR;
14
+ size?: number;
15
+ };
9
16
  export interface SelectProps extends PropsWithChildren<BaseSelectProps> {
10
- icon?: ReactNode;
17
+ icon?: Icon;
11
18
  placeholder?: string;
12
19
  disabledPlaceholder?: boolean;
13
20
  hintText?: string;
@@ -126,8 +126,8 @@
126
126
 
127
127
  body {
128
128
  font-family: "CommerceSans", sans-serif;
129
- font-size: 16px;
130
- line-height: 1.5;
129
+ font-size: var(--font-size-xs);
130
+ line-height: var(--line-heights-xs);
131
131
  }
132
132
 
133
133
  ol,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ncds/ui-admin",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "description": "nhn-commerce의 어드민 디자인 시스템입니다.",
5
5
  "scripts": {
6
6
  "barrel": "node barrel.js",