@ncds/ui-admin 1.6.3 → 1.6.4

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.
@@ -81,7 +81,8 @@ ButtonGroup.Item = function (_a) {
81
81
  disabled = _a.disabled,
82
82
  children = _a.children,
83
83
  isCurrent = _a.isCurrent,
84
- props = __rest(_a, ["label", "size", "onlyIcon", "icon", "disabled", "children", "isCurrent"]);
84
+ className = _a.className,
85
+ props = __rest(_a, ["label", "size", "onlyIcon", "icon", "disabled", "children", "isCurrent", "className"]);
85
86
  var renderIcon = function () {
86
87
  var _a, _b, _c;
87
88
  if (!icon) return null;
@@ -107,7 +108,7 @@ ButtonGroup.Item = function (_a) {
107
108
  'is-only-icon': onlyIcon
108
109
  }, {
109
110
  'is-current': isCurrent
110
- }),
111
+ }, className),
111
112
  disabled: disabled,
112
113
  type: 'button'
113
114
  }, props), (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
@@ -52,7 +52,8 @@ var InputBase = exports.InputBase = /*#__PURE__*/(0, _react.forwardRef)(function
52
52
  showHelpIcon = _a.showHelpIcon,
53
53
  maxLength = _a.maxLength,
54
54
  showTextCount = _a.showTextCount,
55
- props = __rest(_a, ["size", "required", "label", "hintText", "disabled", "validation", "destructive", "leadingElement", "trailingElement", "showHelpIcon", "maxLength", "showTextCount"]);
55
+ className = _a.className,
56
+ props = __rest(_a, ["size", "required", "label", "hintText", "disabled", "validation", "destructive", "leadingElement", "trailingElement", "showHelpIcon", "maxLength", "showTextCount", "className"]);
56
57
  var inputRef = (0, _react.useRef)(null);
57
58
  var _c = (0, _react.useState)(0),
58
59
  textCount = _c[0],
@@ -182,7 +183,7 @@ var InputBase = exports.InputBase = /*#__PURE__*/(0, _react.forwardRef)(function
182
183
  'is-disabled': disabled,
183
184
  'ncua-input__trailing-button': (trailingElement === null || trailingElement === void 0 ? void 0 : trailingElement.type) === 'button',
184
185
  'ncua-input__leading-text-wrap': (leadingElement === null || leadingElement === void 0 ? void 0 : leadingElement.type) === 'text'
185
- })
186
+ }, className)
186
187
  }, {
187
188
  children: [renderLabel(), (0, _jsxRuntime.jsxs)("div", __assign({
188
189
  className: "ncua-input__content-wrap"
@@ -29,7 +29,8 @@ var HorizontalTab = function (_a) {
29
29
  _d = _a.fullWidth,
30
30
  fullWidth = _d === void 0 ? false : _d,
31
31
  _e = _a.menus,
32
- menus = _e === void 0 ? [] : _e;
32
+ menus = _e === void 0 ? [] : _e,
33
+ className = _a.className;
33
34
  var getTabGap = function (type) {
34
35
  var _a;
35
36
  var gap = {
@@ -41,7 +42,7 @@ var HorizontalTab = function (_a) {
41
42
  return (0, _jsxRuntime.jsx)("div", __assign({
42
43
  className: (0, _classnames.default)('ncua-horizontal-tab', "ncua-horizontal-tab--".concat(type), "ncua-horizontal-tab--".concat(size), {
43
44
  'ncua-horizontal-tab--fullWidth': fullWidth
44
- })
45
+ }, className)
45
46
  }, {
46
47
  children: (0, _jsxRuntime.jsx)(_react.Swiper, __assign({
47
48
  slidesPerView: "auto",
@@ -71,7 +71,8 @@ ButtonGroup.Item = function (_a) {
71
71
  disabled = _a.disabled,
72
72
  children = _a.children,
73
73
  isCurrent = _a.isCurrent,
74
- props = __rest(_a, ["label", "size", "onlyIcon", "icon", "disabled", "children", "isCurrent"]);
74
+ className = _a.className,
75
+ props = __rest(_a, ["label", "size", "onlyIcon", "icon", "disabled", "children", "isCurrent", "className"]);
75
76
  var renderIcon = function () {
76
77
  var _a, _b, _c;
77
78
  if (!icon) return null;
@@ -97,7 +98,7 @@ ButtonGroup.Item = function (_a) {
97
98
  'is-only-icon': onlyIcon
98
99
  }, {
99
100
  'is-current': isCurrent
100
- }),
101
+ }, className),
101
102
  disabled: disabled,
102
103
  type: 'button'
103
104
  }, props), _jsxs(_Fragment, {
@@ -45,7 +45,8 @@ export var InputBase = /*#__PURE__*/forwardRef(function (_a, ref) {
45
45
  showHelpIcon = _a.showHelpIcon,
46
46
  maxLength = _a.maxLength,
47
47
  showTextCount = _a.showTextCount,
48
- props = __rest(_a, ["size", "required", "label", "hintText", "disabled", "validation", "destructive", "leadingElement", "trailingElement", "showHelpIcon", "maxLength", "showTextCount"]);
48
+ className = _a.className,
49
+ props = __rest(_a, ["size", "required", "label", "hintText", "disabled", "validation", "destructive", "leadingElement", "trailingElement", "showHelpIcon", "maxLength", "showTextCount", "className"]);
49
50
  var inputRef = useRef(null);
50
51
  var _c = useState(0),
51
52
  textCount = _c[0],
@@ -175,7 +176,7 @@ export var InputBase = /*#__PURE__*/forwardRef(function (_a, ref) {
175
176
  'is-disabled': disabled,
176
177
  'ncua-input__trailing-button': (trailingElement === null || trailingElement === void 0 ? void 0 : trailingElement.type) === 'button',
177
178
  'ncua-input__leading-text-wrap': (leadingElement === null || leadingElement === void 0 ? void 0 : leadingElement.type) === 'text'
178
- })
179
+ }, className)
179
180
  }, {
180
181
  children: [renderLabel(), _jsxs("div", __assign({
181
182
  className: "ncua-input__content-wrap"
@@ -22,7 +22,8 @@ export var HorizontalTab = function (_a) {
22
22
  _d = _a.fullWidth,
23
23
  fullWidth = _d === void 0 ? false : _d,
24
24
  _e = _a.menus,
25
- menus = _e === void 0 ? [] : _e;
25
+ menus = _e === void 0 ? [] : _e,
26
+ className = _a.className;
26
27
  var getTabGap = function (type) {
27
28
  var _a;
28
29
  var gap = {
@@ -34,7 +35,7 @@ export var HorizontalTab = function (_a) {
34
35
  return _jsx("div", __assign({
35
36
  className: classNames('ncua-horizontal-tab', "ncua-horizontal-tab--".concat(type), "ncua-horizontal-tab--".concat(size), {
36
37
  'ncua-horizontal-tab--fullWidth': fullWidth
37
- })
38
+ }, className)
38
39
  }, {
39
40
  children: _jsx(Swiper, __assign({
40
41
  slidesPerView: "auto",
@@ -27,7 +27,7 @@ export interface ButtonGroupProps {
27
27
  }
28
28
  export declare const ButtonGroup: {
29
29
  ({ children, className, hasBorder, size, onlyIcon, disabled, }: ButtonGroupProps): import("react/jsx-runtime").JSX.Element;
30
- Item({ label, size, onlyIcon, icon, disabled, children, isCurrent, ...props }: ButtonGroupItemProps): React.DetailedReactHTMLElement<{
30
+ Item({ label, size, onlyIcon, icon, disabled, children, isCurrent, className, ...props }: ButtonGroupItemProps): React.DetailedReactHTMLElement<{
31
31
  ref?: React.LegacyRef<HTMLButtonElement> | undefined;
32
32
  key?: React.Key | null | undefined;
33
33
  form?: string | undefined;
@@ -46,7 +46,6 @@ export declare const ButtonGroup: {
46
46
  accessKey?: string | undefined;
47
47
  autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | (string & {}) | undefined;
48
48
  autoFocus?: boolean | undefined;
49
- className: string;
50
49
  contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
51
50
  contextMenu?: string | undefined;
52
51
  dir?: string | undefined;
@@ -306,6 +305,7 @@ export declare const ButtonGroup: {
306
305
  onAnimationIterationCapture?: React.AnimationEventHandler<HTMLButtonElement> | undefined;
307
306
  onTransitionEnd?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
308
307
  onTransitionEndCapture?: React.TransitionEventHandler<HTMLButtonElement> | undefined;
308
+ className: string;
309
309
  disabled: boolean | undefined;
310
310
  }, HTMLButtonElement>;
311
311
  };
@@ -1,10 +1,11 @@
1
- import { TabButtonProps, TabSize, TabType } from './TabButton';
1
+ import { type TabButtonProps, type TabSize, type TabType } from './TabButton';
2
2
  export type HorizontalTabProps = {
3
3
  type?: Exclude<TabType, 'line-vertical'>;
4
4
  size?: TabSize;
5
5
  activeTab?: string;
6
6
  fullWidth?: boolean;
7
7
  menus?: Array<TabButtonProps>;
8
+ className?: string;
8
9
  };
9
- export declare const HorizontalTab: ({ type, size, activeTab, fullWidth, menus, }: HorizontalTabProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const HorizontalTab: ({ type, size, activeTab, fullWidth, menus, className, }: HorizontalTabProps) => import("react/jsx-runtime").JSX.Element;
10
11
  //# sourceMappingURL=HorizontalTab.d.ts.map
@@ -4874,6 +4874,9 @@ button {
4874
4874
  .ncua-horizontal-tab--fullWidth .ncua-horizontal-tab__item {
4875
4875
  width: 100% !important;
4876
4876
  }
4877
+ .ncua-horizontal-tab--fullWidth .swiper-wrapper {
4878
+ width: auto;
4879
+ }
4877
4880
  .ncua-horizontal-tab--fullWidth .swiper-slide {
4878
4881
  flex-shrink: 1;
4879
4882
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ncds/ui-admin",
3
- "version": "1.6.3",
3
+ "version": "1.6.4",
4
4
  "description": "nhn-commerce의 어드민 디자인 시스템입니다.",
5
5
  "scripts": {
6
6
  "barrel": "node barrel.js",