@zenkigen-inc/component-ui 1.13.0 → 1.14.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.
- package/dist/button/button.d.ts +3 -1
- package/dist/index.esm.js +12 -10
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +11 -11
- package/dist/index.js.map +1 -1
- package/dist/tag/tag.d.ts +2 -1
- package/dist/toggle/toggle.d.ts +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -75,7 +75,7 @@ function Breadcrumb({
|
|
|
75
75
|
}
|
|
76
76
|
Breadcrumb.Item = BreadcrumbItem;
|
|
77
77
|
|
|
78
|
-
const _excluded$7 = ["size", "variant", "isDisabled", "isSelected", "width", "borderRadius", "before", "after", "elementAs", "children"];
|
|
78
|
+
const _excluded$7 = ["size", "variant", "isDisabled", "isSelected", "width", "borderRadius", "justifyContent", "before", "after", "elementAs", "children"];
|
|
79
79
|
const Button = _ref => {
|
|
80
80
|
let {
|
|
81
81
|
size = 'medium',
|
|
@@ -84,13 +84,14 @@ const Button = _ref => {
|
|
|
84
84
|
isSelected = false,
|
|
85
85
|
width,
|
|
86
86
|
borderRadius,
|
|
87
|
+
justifyContent = 'center',
|
|
87
88
|
before,
|
|
88
89
|
after,
|
|
89
90
|
elementAs,
|
|
90
91
|
children
|
|
91
92
|
} = _ref,
|
|
92
93
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
|
93
|
-
const baseClasses = clsx('flex shrink-0 items-center
|
|
94
|
+
const baseClasses = clsx('flex shrink-0 items-center gap-1', buttonColors[variant].hover, buttonColors[variant].active, buttonColors[variant].disabled, focusVisible.normal, {
|
|
94
95
|
'h-6 px-2.5': size === 'small',
|
|
95
96
|
'h-8 px-3': size === 'medium',
|
|
96
97
|
'h-10 px-4 leading-[24px]': size === 'large',
|
|
@@ -100,6 +101,8 @@ const Button = _ref => {
|
|
|
100
101
|
'hover:text-textOnColor active:text-textOnColor [&:hover>*]:fill-iconOnColor [&:active>*]:fill-iconOnColor': isSelected && variant !== 'outline' && variant !== 'text',
|
|
101
102
|
'pointer-events-none': isDisabled,
|
|
102
103
|
'rounded-button': borderRadius == null,
|
|
104
|
+
'justify-start': justifyContent === 'start',
|
|
105
|
+
'justify-center': justifyContent === 'center',
|
|
103
106
|
'typography-label16regular': size === 'large',
|
|
104
107
|
'typography-label14regular': size !== 'large'
|
|
105
108
|
});
|
|
@@ -255,11 +258,8 @@ const Icon = _ref => {
|
|
|
255
258
|
const classes = clsx('inline-block shrink-0', {
|
|
256
259
|
'fill-disabled01': isDisabled,
|
|
257
260
|
[iconColors.icon01]: !isDisabled && props.color === 'icon01',
|
|
258
|
-
[iconColors.icon01Dark]: !isDisabled && props.color === 'icon01Dark',
|
|
259
261
|
[iconColors.icon02]: !isDisabled && props.color === 'icon02',
|
|
260
|
-
[iconColors.icon02Dark]: !isDisabled && props.color === 'icon02Dark',
|
|
261
262
|
[iconColors.icon03]: !isDisabled && props.color === 'icon03',
|
|
262
|
-
[iconColors.icon03Dark]: !isDisabled && props.color === 'icon03Dark',
|
|
263
263
|
[iconColors.iconOnColor]: !isDisabled && props.color === 'iconOnColor',
|
|
264
264
|
'w-3 h-3': size === 'x-small',
|
|
265
265
|
'w-4 h-4': size === 'small',
|
|
@@ -1194,7 +1194,7 @@ const Search = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1194
1194
|
}, {
|
|
1195
1195
|
'h-10 px-4': size === 'large'
|
|
1196
1196
|
});
|
|
1197
|
-
const inputClasses = clsx('mx-2
|
|
1197
|
+
const inputClasses = clsx('mx-2 h-full flex-1 text-text01 outline-0 placeholder:text-textPlaceholder', {
|
|
1198
1198
|
['typography-label14regular']: size === 'medium',
|
|
1199
1199
|
['typography-label16regular']: size === 'large'
|
|
1200
1200
|
});
|
|
@@ -1377,7 +1377,7 @@ const TabItem = _ref => {
|
|
|
1377
1377
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
1378
1378
|
const classes = clsx('relative z-0 flex py-2 leading-[24px] before:absolute before:inset-x-0 before:bottom-0 before:h-px hover:text-text01 disabled:pointer-events-none disabled:text-disabled01', {
|
|
1379
1379
|
'typography-label14regular': !isSelected,
|
|
1380
|
-
'text-interactive02 hover:before:bg-
|
|
1380
|
+
'text-interactive02 hover:before:bg-uiBorder04': !isSelected,
|
|
1381
1381
|
'typography-label14bold': isSelected,
|
|
1382
1382
|
'before:bg-interactive01 hover:before:bg-interactive01 pointer-events-none': isSelected
|
|
1383
1383
|
});
|
|
@@ -1721,19 +1721,19 @@ function Toggle({
|
|
|
1721
1721
|
'bg-interactive01 peer-hover:bg-hover01': !isDisabled && isChecked,
|
|
1722
1722
|
'bg-interactive02 peer-hover:bg-hover02Dark': !isDisabled && !isChecked,
|
|
1723
1723
|
'w-8 h-4 px-[3px]': size === 'small',
|
|
1724
|
-
'w-12 h-6 px-1': size === 'medium'
|
|
1724
|
+
'w-12 h-6 px-1': size === 'medium' || size === 'large'
|
|
1725
1725
|
});
|
|
1726
1726
|
const inputClasses = clsx$1('peer absolute inset-0 z-[1] opacity-0', isDisabled ? 'cursor-not-allowed' : 'cursor-pointer');
|
|
1727
1727
|
const indicatorClasses = clsx$1('rounded-full bg-iconOnColor', {
|
|
1728
1728
|
'w-2.5 h-2.5': size === 'small',
|
|
1729
|
-
'w-4 h-4': size === 'medium',
|
|
1729
|
+
'w-4 h-4': size === 'medium' || size === 'large',
|
|
1730
1730
|
'ml-auto': isChecked
|
|
1731
1731
|
});
|
|
1732
1732
|
const labelClasses = clsx$1('break-all', {
|
|
1733
1733
|
'mr-2': labelPosition === 'left',
|
|
1734
1734
|
'ml-2': labelPosition === 'right',
|
|
1735
|
-
'typography-
|
|
1736
|
-
'typography-label16regular': size === '
|
|
1735
|
+
'typography-label14regular': size === 'small' || size === 'medium',
|
|
1736
|
+
'typography-label16regular': size === 'large',
|
|
1737
1737
|
'pointer-events-none cursor-not-allowed text-disabled01': isDisabled,
|
|
1738
1738
|
'cursor-pointer text-text01': !isDisabled
|
|
1739
1739
|
});
|