@zenkigen-inc/component-ui 1.0.2 → 1.1.0
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/breadcrumb/breadcrumb-item.d.ts +2 -7
- package/dist/breadcrumb/breadcrumb.d.ts +7 -6
- package/dist/index.esm.js +45 -53
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +47 -55
- package/dist/index.js.map +1 -1
- package/dist/tab/tab.d.ts +9 -0
- package/dist/table/index.d.ts +2 -2
- package/dist/table/{table-row-container.d.ts → table-row.d.ts} +1 -1
- package/dist/table/table.d.ts +14 -0
- package/package.json +4 -4
- package/dist/table/table-container.d.ts +0 -8
package/dist/index.js
CHANGED
|
@@ -43,37 +43,26 @@ function Avatar(_ref) {
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
const BreadcrumbItem = ({
|
|
46
|
-
children
|
|
47
|
-
isLast
|
|
46
|
+
children
|
|
48
47
|
}) => {
|
|
49
|
-
return /*#__PURE__*/
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
children: children
|
|
53
|
-
}), !isLast && /*#__PURE__*/jsx("li", {
|
|
54
|
-
"aria-hidden": "true",
|
|
55
|
-
className: "text-interactive-interactive02",
|
|
56
|
-
children: "/"
|
|
57
|
-
})]
|
|
48
|
+
return /*#__PURE__*/jsx("li", {
|
|
49
|
+
className: "flex gap-2 after:content-['/'] last:after:content-none [&_a]:text-interactive-interactive02 [&_a]:hover:underline",
|
|
50
|
+
children: children
|
|
58
51
|
});
|
|
59
52
|
};
|
|
60
53
|
|
|
61
|
-
|
|
54
|
+
function Breadcrumb({
|
|
62
55
|
children
|
|
63
|
-
})
|
|
56
|
+
}) {
|
|
64
57
|
return /*#__PURE__*/jsx("nav", {
|
|
65
58
|
"aria-label": "breadcrumb",
|
|
66
59
|
children: /*#__PURE__*/jsx("ul", {
|
|
67
|
-
className:
|
|
68
|
-
children: children
|
|
69
|
-
return /*#__PURE__*/jsx(BreadcrumbItem, {
|
|
70
|
-
isLast: i === children.length - 1,
|
|
71
|
-
children: child
|
|
72
|
-
}, i);
|
|
73
|
-
})
|
|
60
|
+
className: `${typography.label.label2regular} flex flex-wrap gap-2 whitespace-nowrap text-text-text01`,
|
|
61
|
+
children: children
|
|
74
62
|
})
|
|
75
63
|
});
|
|
76
|
-
}
|
|
64
|
+
}
|
|
65
|
+
Breadcrumb.Item = BreadcrumbItem;
|
|
77
66
|
|
|
78
67
|
const _excluded$4 = ["size", "variant"];
|
|
79
68
|
function Button(_ref) {
|
|
@@ -31464,7 +31453,7 @@ function ModalButtonTab({
|
|
|
31464
31453
|
setIsOpen(false);
|
|
31465
31454
|
}, [onClickSecondaryButton, setIsOpen]);
|
|
31466
31455
|
const handleClickSubButton = useCallback(() => {
|
|
31467
|
-
onClickSubButton == null
|
|
31456
|
+
onClickSubButton == null || onClickSubButton();
|
|
31468
31457
|
}, [onClickSubButton]);
|
|
31469
31458
|
const wrapperClasses = clsx$1('flex', 'shrink-0', 'items-center', 'w-full', 'rounded-b-lg', 'py-4', 'px-6', {
|
|
31470
31459
|
'justify-between': isWithCheckbox || subButtonLabel && size !== 'small',
|
|
@@ -31536,17 +31525,6 @@ function ModalHeader({
|
|
|
31536
31525
|
});
|
|
31537
31526
|
}
|
|
31538
31527
|
|
|
31539
|
-
function Tab({
|
|
31540
|
-
children
|
|
31541
|
-
}) {
|
|
31542
|
-
const classes = clsx('flex', 'px-6', 'gap-4', 'relative', 'before:bg-border-uiBorder01', 'before:h-px', 'before:bottom-0', 'before:left-0', 'before:right-0', 'before:absolute', {});
|
|
31543
|
-
return /*#__PURE__*/jsx("div", {
|
|
31544
|
-
role: "tablist",
|
|
31545
|
-
className: classes,
|
|
31546
|
-
children: children
|
|
31547
|
-
});
|
|
31548
|
-
}
|
|
31549
|
-
|
|
31550
31528
|
const TabItem = props => {
|
|
31551
31529
|
const classes = clsx('relative', 'flex', 'z-0', 'py-2', 'leading-[24px]', 'before:h-px', 'before:absolute', 'before:left-0', 'before:right-0', 'before:bottom-0', 'hover:text-text-text01', 'disabled:text-disabled-disabled01', 'disabled:pointer-events-none', {
|
|
31552
31530
|
[`${typography.label.label2regular}`]: !props.isSelected,
|
|
@@ -31565,6 +31543,18 @@ const TabItem = props => {
|
|
|
31565
31543
|
});
|
|
31566
31544
|
};
|
|
31567
31545
|
|
|
31546
|
+
function Tab({
|
|
31547
|
+
children
|
|
31548
|
+
}) {
|
|
31549
|
+
const classes = clsx('flex', 'px-6', 'gap-4', 'relative', 'before:bg-border-uiBorder01', 'before:h-px', 'before:bottom-0', 'before:left-0', 'before:right-0', 'before:absolute', {});
|
|
31550
|
+
return /*#__PURE__*/jsx("div", {
|
|
31551
|
+
role: "tablist",
|
|
31552
|
+
className: classes,
|
|
31553
|
+
children: children
|
|
31554
|
+
});
|
|
31555
|
+
}
|
|
31556
|
+
Tab.Item = TabItem;
|
|
31557
|
+
|
|
31568
31558
|
function ModalTab({
|
|
31569
31559
|
tabItems,
|
|
31570
31560
|
selectedTab,
|
|
@@ -31790,7 +31780,7 @@ const Search = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
31790
31780
|
className: inputClasses,
|
|
31791
31781
|
placeholder: props.placeholder,
|
|
31792
31782
|
onChange: props.onChange
|
|
31793
|
-
}), props.value && props.value.length !== 0 && /*#__PURE__*/jsx(IconButton, {
|
|
31783
|
+
}), props.onClickClearButton && props.value && props.value.length !== 0 && /*#__PURE__*/jsx(IconButton, {
|
|
31794
31784
|
variant: "text",
|
|
31795
31785
|
icon: "close",
|
|
31796
31786
|
size: size === 'medium' ? 'small' : 'medium',
|
|
@@ -31818,7 +31808,7 @@ function SelectItem$1({
|
|
|
31818
31808
|
onChange
|
|
31819
31809
|
} = useContext(SelectContext);
|
|
31820
31810
|
const handleClickItem = option => {
|
|
31821
|
-
onChange == null
|
|
31811
|
+
onChange == null || onChange(option);
|
|
31822
31812
|
setIsOptionListOpen(false);
|
|
31823
31813
|
};
|
|
31824
31814
|
const listItemClasses = clsx$1('flex w-full items-center');
|
|
@@ -31862,7 +31852,7 @@ function SelectList$1({
|
|
|
31862
31852
|
onChange
|
|
31863
31853
|
} = useContext(SelectContext);
|
|
31864
31854
|
const handleClickDeselect = () => {
|
|
31865
|
-
onChange == null
|
|
31855
|
+
onChange == null || onChange(null);
|
|
31866
31856
|
setIsOptionListOpen(false);
|
|
31867
31857
|
};
|
|
31868
31858
|
const listClasses = clsx$1('z-dropdown', 'absolute', 'w-max', 'py-2', 'overflow-y-auto', 'bg-background-uiBackground01', 'rounded', 'shadow-floatingShadow', {
|
|
@@ -32048,7 +32038,7 @@ function SelectSort({
|
|
|
32048
32038
|
useOutsideClick(targetRef, () => setIsOptionListOpen(false));
|
|
32049
32039
|
const handleClickToggle = () => setIsOptionListOpen(prev => !prev);
|
|
32050
32040
|
const handleClickItem = useCallback(value => {
|
|
32051
|
-
onChange == null
|
|
32041
|
+
onChange == null || onChange(value);
|
|
32052
32042
|
setIsOptionListOpen(false);
|
|
32053
32043
|
}, [onChange]);
|
|
32054
32044
|
const wrapperClasses = clsx$1('relative', 'flex', 'shrink-0', 'gap-1', 'items-center', 'rounded', {
|
|
@@ -32097,24 +32087,18 @@ function SelectSort({
|
|
|
32097
32087
|
});
|
|
32098
32088
|
}
|
|
32099
32089
|
|
|
32100
|
-
function
|
|
32101
|
-
|
|
32102
|
-
|
|
32103
|
-
columns,
|
|
32104
|
-
children
|
|
32090
|
+
function TableCell({
|
|
32091
|
+
children,
|
|
32092
|
+
className
|
|
32105
32093
|
}) {
|
|
32094
|
+
const cellClasses = clsx$1('border-b-[1px] border-border-uiBorder01');
|
|
32106
32095
|
return /*#__PURE__*/jsx("div", {
|
|
32107
|
-
className:
|
|
32108
|
-
style: {
|
|
32109
|
-
width,
|
|
32110
|
-
gridTemplateRows: rows,
|
|
32111
|
-
gridTemplateColumns: columns
|
|
32112
|
-
},
|
|
32096
|
+
className: clsx$1(cellClasses, className),
|
|
32113
32097
|
children: children
|
|
32114
32098
|
});
|
|
32115
32099
|
}
|
|
32116
32100
|
|
|
32117
|
-
function
|
|
32101
|
+
function TableRow({
|
|
32118
32102
|
children,
|
|
32119
32103
|
isHoverBackgroundVisible
|
|
32120
32104
|
}) {
|
|
@@ -32125,16 +32109,24 @@ function TableRowContainer({
|
|
|
32125
32109
|
});
|
|
32126
32110
|
}
|
|
32127
32111
|
|
|
32128
|
-
function
|
|
32129
|
-
|
|
32130
|
-
|
|
32112
|
+
function Table({
|
|
32113
|
+
width,
|
|
32114
|
+
rows,
|
|
32115
|
+
columns,
|
|
32116
|
+
children
|
|
32131
32117
|
}) {
|
|
32132
|
-
const cellClasses = clsx$1('border-b-[1px] border-border-uiBorder01');
|
|
32133
32118
|
return /*#__PURE__*/jsx("div", {
|
|
32134
|
-
className:
|
|
32119
|
+
className: "grid",
|
|
32120
|
+
style: {
|
|
32121
|
+
width,
|
|
32122
|
+
gridTemplateRows: rows,
|
|
32123
|
+
gridTemplateColumns: columns
|
|
32124
|
+
},
|
|
32135
32125
|
children: children
|
|
32136
32126
|
});
|
|
32137
32127
|
}
|
|
32128
|
+
Table.Row = TableRow;
|
|
32129
|
+
Table.Cell = TableCell;
|
|
32138
32130
|
|
|
32139
32131
|
const DeleteIcon = ({
|
|
32140
32132
|
color,
|
|
@@ -32449,5 +32441,5 @@ function Tooltip({
|
|
|
32449
32441
|
});
|
|
32450
32442
|
}
|
|
32451
32443
|
|
|
32452
|
-
export { Avatar, Breadcrumb, Button, Checkbox, Dropdown, EvaluationStar, Heading, Icon, IconButton, Loading, Modal, NotificationInline, Radio, Search, Select, SelectSort, Tab, TabItem,
|
|
32444
|
+
export { Avatar, Breadcrumb, Button, Checkbox, Dropdown, EvaluationStar, Heading, Icon, IconButton, Loading, Modal, NotificationInline, Radio, Search, Select, SelectSort, Tab, TabItem, Table, TableCell, TableRow, Tag, Toast, ToastProvider, Toggle, Tooltip, useToast };
|
|
32453
32445
|
//# sourceMappingURL=index.js.map
|