@jinaan/uikit 0.1.14 → 0.1.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jinaan/uikit",
3
- "version": "0.1.14",
3
+ "version": "0.1.16",
4
4
  "description": "Reusable React and Tailwind UI components for Jinaan projects.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -143,7 +143,7 @@ interface DataTableProps<T> {
143
143
  }
144
144
 
145
145
  const HEADER_CELL =
146
- "h-[var(--table-header-h)] whitespace-nowrap px-[var(--table-pad-x)] text-left align-middle text-[0.8125rem] font-medium";
146
+ "h-[var(--table-header-h)] whitespace-nowrap px-[var(--table-pad-x)] text-left align-middle text-[0.8125rem] font-medium text-table-header";
147
147
 
148
148
  function initials(name: string): string {
149
149
  return name
package/src/dialog.tsx CHANGED
@@ -106,7 +106,10 @@ export function Dialog({
106
106
  useEffect(() => installSourceTracker(), []);
107
107
 
108
108
  useEffect(() => {
109
- if (controlledOpen) setClosing(false);
109
+ if (!controlledOpen) return;
110
+ if (closeTimer.current) clearTimeout(closeTimer.current);
111
+ closingRef.current = false;
112
+ setClosing(false);
110
113
  }, [controlledOpen]);
111
114
 
112
115
  useEffect(
@@ -108,7 +108,7 @@ export function TableSurface({
108
108
  <div className="overflow-x-auto">
109
109
  {header || hasTitle ? (
110
110
  // Header rows must not inherit the body row hover surface.
111
- <div className={cn("[--table-row-hover:transparent]", headerClassName)}>
111
+ <div className={cn("[--table-row-hover:transparent] text-table-header", headerClassName)}>
112
112
  {hasTitle ? (
113
113
  <div
114
114
  className={cn(
package/styles.css CHANGED
@@ -52,7 +52,7 @@
52
52
  --table-container-bg: #e9e9ec;
53
53
  --table-panel-bg: #ffffff;
54
54
  --table-panel-border: #e3e3e7;
55
- --table-header-text: #5f5f6f;
55
+ --table-header-text: #3f3f4a;
56
56
  --table-header-active-text: #131316;
57
57
  --table-row-text: #131316;
58
58
  --table-muted-text: #5f5f6f;