nitro-web 0.0.117 → 0.0.119
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.
|
@@ -75,7 +75,7 @@ export function Table<T extends TableRow>({
|
|
|
75
75
|
const [selectedRowIds, setSelectedRowIds] = useState<string[]>([])
|
|
76
76
|
const _columnClassName = 'table-cell py-1 align-middle text-sm border-y border-border ' +
|
|
77
77
|
'first:border-l last:border-r border-t-0 box-border'
|
|
78
|
-
const [
|
|
78
|
+
const [rand] = useState(() => new Date().getTime() + Math.random())
|
|
79
79
|
|
|
80
80
|
const columns = useMemo(() => {
|
|
81
81
|
const checkboxCol: TableColumn = { value: 'checkbox', label: '', disableSort: true }
|
|
@@ -126,7 +126,7 @@ export function Table<T extends TableRow>({
|
|
|
126
126
|
return (
|
|
127
127
|
<div
|
|
128
128
|
style={{ marginTop: -rowGap }}
|
|
129
|
-
className={twMerge('overflow-x-auto thin-scrollbar
|
|
129
|
+
className={twMerge('overflow-x-auto thin-scrollbar', className)}
|
|
130
130
|
>
|
|
131
131
|
<div
|
|
132
132
|
style={{ borderSpacing: `0 ${rowGap}px` }}
|
|
@@ -172,7 +172,7 @@ export function Table<T extends TableRow>({
|
|
|
172
172
|
? <>
|
|
173
173
|
<Checkbox
|
|
174
174
|
size={checkboxSize}
|
|
175
|
-
name={`checkbox-all-${
|
|
175
|
+
name={`checkbox-all-${rand}`}
|
|
176
176
|
hitboxPadding={5}
|
|
177
177
|
className='!m-0 py-[5px]' // py-5 is required for hitbox (restricted to tabel cell height)
|
|
178
178
|
checkboxClassName={twMerge('border-foreground shadow-[0_1px_2px_0px_#0000001c]', checkboxClassName)}
|
|
@@ -224,7 +224,7 @@ function Option(props: OptionProps) {
|
|
|
224
224
|
const DropdownIndicator = (props: DropdownIndicatorProps) => {
|
|
225
225
|
return (
|
|
226
226
|
<components.DropdownIndicator {...props}>
|
|
227
|
-
<ChevronsUpDownIcon size={15} className="text-input-icon -my-0.5 -mx-[1px]" />
|
|
227
|
+
<ChevronsUpDownIcon size={15} className="text-[#b6b8be] text-input-icon -my-0.5 -mx-[1px]" />
|
|
228
228
|
</components.DropdownIndicator>
|
|
229
229
|
)
|
|
230
230
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nitro-web",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.119",
|
|
4
4
|
"repository": "github:boycce/nitro-web",
|
|
5
5
|
"homepage": "https://boycce.github.io/nitro-web/",
|
|
6
6
|
"description": "Nitro is a battle-tested, modular base project to turbocharge your projects, styled using Tailwind 🚀",
|