@zenkigen-inc/component-ui 1.0.1 → 1.0.2
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/index.esm.js +74 -43
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +75 -42
- package/dist/index.js.map +1 -1
- package/dist/search/search.d.ts +3 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -48,7 +48,7 @@ const BreadcrumbItem = ({
|
|
|
48
48
|
}) => {
|
|
49
49
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
50
50
|
children: [/*#__PURE__*/jsx("li", {
|
|
51
|
-
className: clsx$1('[&_a]:text-interactive-interactive02'),
|
|
51
|
+
className: clsx$1('[&_a]:text-interactive-interactive02', '[&_a]:hover:underline'),
|
|
52
52
|
children: children
|
|
53
53
|
}), !isLast && /*#__PURE__*/jsx("li", {
|
|
54
54
|
"aria-hidden": "true",
|
|
@@ -64,7 +64,7 @@ const Breadcrumb = ({
|
|
|
64
64
|
return /*#__PURE__*/jsx("nav", {
|
|
65
65
|
"aria-label": "breadcrumb",
|
|
66
66
|
children: /*#__PURE__*/jsx("ul", {
|
|
67
|
-
className: clsx$1(typography.label.label2regular, 'flex flex-wrap gap-2 whitespace-nowrap'),
|
|
67
|
+
className: clsx$1(typography.label.label2regular, 'flex flex-wrap gap-2 whitespace-nowrap text-text-text01'),
|
|
68
68
|
children: children.map((child, i) => {
|
|
69
69
|
return /*#__PURE__*/jsx(BreadcrumbItem, {
|
|
70
70
|
isLast: i === children.length - 1,
|
|
@@ -304,7 +304,7 @@ function DropdownMenu({
|
|
|
304
304
|
} = useContext(DropdownContext);
|
|
305
305
|
const wrapperClasses = clsx$1('z-dropdown', 'absolute', 'w-max', 'bg-background-uiBackground01', 'rounded', 'shadow-floatingShadow', 'overflow-y-auto', horizontalAlign === 'left' ? 'left-0' : horizontalAlign === 'right' ? 'right-0' : 'left-auto', {
|
|
306
306
|
'border-solid border border-border-uiBorder01': variant === 'outline',
|
|
307
|
-
'py-
|
|
307
|
+
'py-1': !isNoPadding
|
|
308
308
|
});
|
|
309
309
|
return isVisible && !isDisabled && /*#__PURE__*/jsx("ul", {
|
|
310
310
|
className: wrapperClasses,
|
|
@@ -437,7 +437,7 @@ function EvaluationStar({
|
|
|
437
437
|
});
|
|
438
438
|
const ratingStars = [];
|
|
439
439
|
for (let i = 1; i < maxRating + 1; i++) {
|
|
440
|
-
const color = i <= currentRating ? 'fill-
|
|
440
|
+
const color = i <= currentRating ? 'fill-yellow-yellow50' : 'fill-icon-icon03';
|
|
441
441
|
ratingStars.push( /*#__PURE__*/jsx("button", {
|
|
442
442
|
type: "button",
|
|
443
443
|
onClick: () => handleChangeRating(i),
|
|
@@ -454,7 +454,7 @@ function EvaluationStar({
|
|
|
454
454
|
|
|
455
455
|
function Heading(props) {
|
|
456
456
|
const TagName = `h${props.level}`;
|
|
457
|
-
const classes = clsx('flex', 'items-center', typography.heading[TagName], {
|
|
457
|
+
const classes = clsx('flex', 'items-center', 'text-text-text01', typography.heading[TagName], {
|
|
458
458
|
'gap-2': props.level === 1
|
|
459
459
|
}, {
|
|
460
460
|
'gap-1': props.level > 1
|
|
@@ -521,36 +521,54 @@ function Loading({
|
|
|
521
521
|
}) {
|
|
522
522
|
const wrapperClasses = clsx$1(position, 'top-0', 'left-0', 'z-20', 'flex', 'items-center', 'justify-center', 'w-full');
|
|
523
523
|
const svgClasses = clsx$1(size === 'small' && 'h-4 w-4', size === 'medium' && 'h-8 w-8', size === 'large' && 'h-16 w-16');
|
|
524
|
-
return /*#__PURE__*/jsx(
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
524
|
+
return /*#__PURE__*/jsx(Fragment, {
|
|
525
|
+
children: /*#__PURE__*/jsxs("div", {
|
|
526
|
+
className: wrapperClasses,
|
|
527
|
+
style: {
|
|
528
|
+
height
|
|
529
|
+
},
|
|
530
|
+
children: [size === 'small' && /*#__PURE__*/jsx("svg", {
|
|
531
|
+
className: svgClasses,
|
|
532
|
+
viewBox: "0 0 16 16",
|
|
533
|
+
fill: "none",
|
|
534
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
535
|
+
children: /*#__PURE__*/jsx("circle", {
|
|
536
|
+
className: "origin-center animate-circular-small-move stroke-interactive-interactive01",
|
|
537
|
+
cx: "8",
|
|
538
|
+
cy: "8",
|
|
539
|
+
r: "7",
|
|
540
|
+
stroke: "currentColor",
|
|
541
|
+
strokeWidth: "1.5",
|
|
542
|
+
fill: "none"
|
|
543
|
+
})
|
|
544
|
+
}), size === 'medium' && /*#__PURE__*/jsx("svg", {
|
|
545
|
+
className: svgClasses,
|
|
546
|
+
viewBox: "0 0 32 32",
|
|
547
|
+
fill: "none",
|
|
548
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
549
|
+
children: /*#__PURE__*/jsx("circle", {
|
|
550
|
+
className: "origin-center animate-circular-medium-move stroke-interactive-interactive01",
|
|
551
|
+
cx: "16",
|
|
552
|
+
cy: "16",
|
|
553
|
+
r: "15",
|
|
554
|
+
stroke: "currentColor",
|
|
555
|
+
strokeWidth: "2",
|
|
556
|
+
fill: "none"
|
|
557
|
+
})
|
|
558
|
+
}), size === 'large' && /*#__PURE__*/jsx("svg", {
|
|
559
|
+
className: svgClasses,
|
|
560
|
+
viewBox: "0 0 64 64",
|
|
561
|
+
fill: "none",
|
|
562
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
563
|
+
children: /*#__PURE__*/jsx("circle", {
|
|
564
|
+
className: "origin-center animate-circular-large-move stroke-interactive-interactive01",
|
|
565
|
+
cx: "32",
|
|
566
|
+
cy: "32",
|
|
567
|
+
r: "30",
|
|
568
|
+
stroke: "currentColor",
|
|
569
|
+
strokeWidth: "3",
|
|
570
|
+
fill: "none"
|
|
571
|
+
})
|
|
554
572
|
})]
|
|
555
573
|
})
|
|
556
574
|
});
|
|
@@ -31679,7 +31697,7 @@ function Radio({
|
|
|
31679
31697
|
setIsMouseOver(false);
|
|
31680
31698
|
}, []);
|
|
31681
31699
|
const handleChange = useCallback(e => !isDisabled && (onChange == null ? void 0 : onChange(e)), [isDisabled, onChange]);
|
|
31682
|
-
const inputClasses = clsx$1('absolute', 'z-[1]', 'opacity-0', 'peer', {
|
|
31700
|
+
const inputClasses = clsx$1('absolute', 'z-[1]', 'opacity-0', 'peer', 'h-6', 'w-6', {
|
|
31683
31701
|
'cursor-not-allowed': isDisabled,
|
|
31684
31702
|
'cursor-pointer': !isDisabled
|
|
31685
31703
|
});
|
|
@@ -31735,34 +31753,49 @@ function Radio({
|
|
|
31735
31753
|
});
|
|
31736
31754
|
}
|
|
31737
31755
|
|
|
31738
|
-
const _excluded = ["width", "
|
|
31756
|
+
const _excluded = ["width", "size"];
|
|
31739
31757
|
const Search = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
31740
31758
|
let {
|
|
31741
31759
|
width = '100%',
|
|
31742
|
-
|
|
31760
|
+
size = 'medium'
|
|
31743
31761
|
} = _ref,
|
|
31744
31762
|
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
31763
|
+
const classes = clsx('flex', 'items-center', 'rounded-full', 'border', 'border-border-uiBorder02', 'focus-within:border-active-activeInput', {
|
|
31764
|
+
'h-8 px-3': size === 'medium'
|
|
31765
|
+
}, {
|
|
31766
|
+
'h-10 px-4': size === 'large'
|
|
31767
|
+
});
|
|
31768
|
+
const inputClasses = clsx('ml-2.5', 'mr-2.5', 'h-full', 'flex-1', 'outline-0', 'text-text-text01', 'placeholder:text-text-textPlaceholder', {
|
|
31769
|
+
[`${typography.label.label2regular}`]: size === 'medium',
|
|
31770
|
+
[`${typography.label.label1regular}`]: size === 'large'
|
|
31771
|
+
});
|
|
31745
31772
|
return /*#__PURE__*/jsx("div", {
|
|
31746
31773
|
className: "relative",
|
|
31747
31774
|
ref: ref,
|
|
31748
31775
|
children: /*#__PURE__*/jsx("form", {
|
|
31749
31776
|
onSubmit: props.onSubmit,
|
|
31750
31777
|
children: /*#__PURE__*/jsxs("div", {
|
|
31751
|
-
className:
|
|
31778
|
+
className: classes,
|
|
31752
31779
|
style: {
|
|
31753
31780
|
width
|
|
31754
31781
|
},
|
|
31755
31782
|
children: [/*#__PURE__*/jsx(Icon, {
|
|
31756
31783
|
name: "search",
|
|
31757
31784
|
color: "icon01",
|
|
31758
|
-
size: "
|
|
31785
|
+
size: "medium"
|
|
31759
31786
|
}), /*#__PURE__*/jsx("input", {
|
|
31760
31787
|
type: "text",
|
|
31761
31788
|
size: 1,
|
|
31762
|
-
value: value,
|
|
31763
|
-
className:
|
|
31789
|
+
value: props.value,
|
|
31790
|
+
className: inputClasses,
|
|
31764
31791
|
placeholder: props.placeholder,
|
|
31765
31792
|
onChange: props.onChange
|
|
31793
|
+
}), props.value && props.value.length !== 0 && /*#__PURE__*/jsx(IconButton, {
|
|
31794
|
+
variant: "text",
|
|
31795
|
+
icon: "close",
|
|
31796
|
+
size: size === 'medium' ? 'small' : 'medium',
|
|
31797
|
+
isNoPadding: true,
|
|
31798
|
+
onClick: props.onClickClearButton
|
|
31766
31799
|
})]
|
|
31767
31800
|
})
|
|
31768
31801
|
})
|