@raystack/apsara 0.10.6 → 0.10.8

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.css CHANGED
@@ -14,7 +14,7 @@
14
14
  --background-inset-hover: #E6E8EB;
15
15
  --background-subtle: #F8F9FA;
16
16
  --background-highlight: #889096;
17
- --background-invertedd: #3C4347;
17
+ --background-inverted: #3C4347;
18
18
  --background-accent: #E6EDFE;
19
19
  --background-accent-inverted: #3E63DD;
20
20
  --background-accent-inverted-hover: #3A5CCC;
@@ -33,7 +33,7 @@
33
33
  --border-accent: #AEC0F5;
34
34
  --border-accent-inverted: #3E63DD;
35
35
  --border-accent-inverted-hover: #3A5CCC;
36
- --border-attention: #3A5CCC;
36
+ --border-attention: #F3BA63;
37
37
  --border-attention-inverted: #FFB224;
38
38
  --border-danger: #F3AEAF;
39
39
  --border-danger-inverted: #E5484D;
@@ -245,6 +245,7 @@
245
245
  font-size: var(--fs-100);
246
246
  font-weight: 500;
247
247
  line-height: var(--fs-600);
248
+ width: fit-content;
248
249
  transition: background-color var(--transition);
249
250
  padding: var(--pd-4) var(--pd-12);
250
251
  border-radius: var(--br-4);
@@ -589,10 +590,9 @@
589
590
  top: 50%;
590
591
  left: 50%;
591
592
  transform: translate(-50%, -50%);
592
- min-width: 200;
593
- max-height: 85vh;
593
+ min-width: 200px;
594
+ min-height: 200px;
594
595
  padding: var(--pd-16);
595
- margin-top: -5vh;
596
596
  z-index: 50;
597
597
  will-change: transform;
598
598
 
@@ -610,7 +610,7 @@
610
610
  position: fixed;
611
611
  inset: 0;
612
612
 
613
- background-color: rgba(0, 0, 0, .15);
613
+ background-color: rgba(0, 0, 0, 0.15);
614
614
  }
615
615
 
616
616
  .dialog-module_close__n9JNt {
@@ -620,7 +620,7 @@
620
620
  border-radius: 4px;
621
621
  padding: 4px;
622
622
  font-weight: 500;
623
-
623
+
624
624
  position: absolute;
625
625
  top: 8px;
626
626
  right: 8px;
@@ -629,6 +629,7 @@
629
629
  .dialog-module_close__n9JNt:hover {
630
630
  background-color: var(--background-base-hover);
631
631
  }
632
+
632
633
  .container-module_container__gisZb {
633
634
  box-sizing: border-box;
634
635
  flex-shrink: 0;
@@ -1391,18 +1392,27 @@
1391
1392
  max-width: 220px;
1392
1393
  height: 100%;
1393
1394
  padding: var(--pd-16);
1394
- padding-right: 0;
1395
1395
  border-right: 1px solid var(--border-base);
1396
- overflow: hidden
1396
+ background: var(--background-base)
1397
+ }
1398
+
1399
+ .sidebar-module_navigations__z5B4k {
1400
+ width: 100%;
1401
+ gap: 2px;
1402
+ }
1403
+
1404
+ .sidebar-module_navigationgroup__bBDHs {
1405
+ gap: var(--pd-2);
1397
1406
  }
1398
1407
 
1399
- .sidebar-module_logo__RaK-j {
1408
+ .sidebar-module_navigationgroupheading__MkRud {
1409
+ gap: var(--pd-8);
1400
1410
  padding: var(--pd-8);
1401
- cursor: pointer;
1411
+
1402
1412
  }
1403
1413
 
1404
- .sidebar-module_navigations__z5B4k {
1405
- gap: 2px;
1414
+ .sidebar-module_navigationgroupcontent__q70dL {
1415
+ padding-left: 24px;
1406
1416
  }
1407
1417
 
1408
1418
  .sidebar-module_cell__NHLSi {
@@ -1411,7 +1421,7 @@
1411
1421
  align-items: center;
1412
1422
  justify-content: space-between;
1413
1423
  padding: var(--pd-8);
1414
-
1424
+ cursor: pointer;
1415
1425
  }
1416
1426
 
1417
1427
  .sidebar-module_cell__NHLSi:hover,
@@ -1426,6 +1436,7 @@
1426
1436
 
1427
1437
  .sidebar-module_cellText__JV292 {
1428
1438
  font-weight: 500;
1439
+ color: var(--foreground-base);
1429
1440
  }
1430
1441
 
1431
1442
  .sidebar-module_footer__wLl-f {
@@ -1577,10 +1588,10 @@
1577
1588
  font-size: 12px;
1578
1589
  line-height: 16px;
1579
1590
  caption-side: bottom;
1580
- color: var(--foreground-base)
1591
+ color: var(--foreground-base);
1581
1592
  }
1582
1593
 
1583
- .table-module_caption__xw-5e{
1594
+ .table-module_caption__xw-5e {
1584
1595
  margin-top: var(--mr-16);
1585
1596
  color: var(--foreground-muted);
1586
1597
  }
@@ -1597,16 +1608,18 @@
1597
1608
  padding-left: 1rem;
1598
1609
  padding-right: 1rem;
1599
1610
  vertical-align: middle;
1611
+ border-bottom: 1px solid var(--border-subtle);
1600
1612
  }
1601
1613
 
1602
1614
  .table-module_row__-1ieK {
1603
- border-bottom: 1px solid #000;
1604
1615
  }
1605
1616
 
1606
1617
  .table-module_cell__-FP3s {
1607
1618
  font-weight: 500;
1608
1619
  padding: 1rem;
1620
+ border-bottom: 1px solid var(--border-subtle);
1609
1621
  }
1622
+
1610
1623
  .tabs-module_root__nPU0r {
1611
1624
  display: flex;
1612
1625
  }
package/dist/index.js CHANGED
@@ -5911,7 +5911,6 @@ var styles$m = {"dialogContent":"dialog-module_dialogContent__bljTL","overlay":"
5911
5911
 
5912
5912
  const dialogContent = cva(styles$m.dialogContent);
5913
5913
  const DialogContent = forwardRef(({ className, children, close, ...props }, forwardedRef) => {
5914
- console.log(close);
5915
5914
  return (jsxRuntimeExports.jsxs($5d3850c4d0b4e6c7$export$602eac185826482c, { children: [jsxRuntimeExports.jsx(Overlay$1, {}), jsxRuntimeExports.jsxs($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2, { ...props, ref: forwardedRef, className: dialogContent({ className }), children: [children, close && (jsxRuntimeExports.jsx(CloseButton$1, { children: jsxRuntimeExports.jsx(Cross1Icon, {}) }))] })] }));
5916
5915
  });
5917
5916
  const overlay$1 = cva(styles$m.overlay);
@@ -11568,18 +11567,20 @@ function Text({ children, className, size, ...props }) {
11568
11567
  return (jsxRuntimeExports.jsx("span", { className: text$1({ size, className }), ...props, children: children }));
11569
11568
  }
11570
11569
 
11571
- var styles$6 = {"sidebar":"sidebar-module_sidebar__NXH3O","logo":"sidebar-module_logo__RaK-j","navigations":"sidebar-module_navigations__z5B4k","cell":"sidebar-module_cell__NHLSi","active":"sidebar-module_active__lfMUF","disabled":"sidebar-module_disabled__nYLU3","cellText":"sidebar-module_cellText__JV292","footer":"sidebar-module_footer__wLl-f"};
11570
+ var styles$6 = {"sidebar":"sidebar-module_sidebar__NXH3O","navigations":"sidebar-module_navigations__z5B4k","navigationgroup":"sidebar-module_navigationgroup__bBDHs","navigationgroupheading":"sidebar-module_navigationgroupheading__MkRud","navigationgroupcontent":"sidebar-module_navigationgroupcontent__q70dL","cell":"sidebar-module_cell__NHLSi","active":"sidebar-module_active__lfMUF","disabled":"sidebar-module_disabled__nYLU3","cellText":"sidebar-module_cellText__JV292","footer":"sidebar-module_footer__wLl-f"};
11572
11571
 
11573
- const baseLogo = jsxRuntimeExports.jsx("img", { src: "./logo.svg", alt: "apsara", width: 16, height: 16 });
11574
11572
  const SidebarRoot = ({ children }) => {
11575
11573
  return (jsxRuntimeExports.jsx(Flex, { direction: "column", justify: "between", className: styles$6.sidebar, children: children }));
11576
11574
  };
11577
- const SidebarLogo = ({ img = baseLogo, name = "Apsara", onClick, }) => {
11578
- return (jsxRuntimeExports.jsxs(Flex, { align: "center", direction: "row", gap: "small", className: styles$6.logo, onClick: onClick, children: [img, jsxRuntimeExports.jsx(Text, { children: name })] }));
11575
+ const SidebarLogo = ({ name = "Apsara", logo, onClick }) => {
11576
+ return (jsxRuntimeExports.jsxs(Flex, { align: "center", direction: "row", gap: "small", onClick: onClick, className: styles$6.logo, children: [jsxRuntimeExports.jsx(Flex, { gap: "small", children: logo }), jsxRuntimeExports.jsx(Text, { children: name })] }));
11579
11577
  };
11580
11578
  const SidebarNavigations = ({ children, ...props }) => {
11581
11579
  return (jsxRuntimeExports.jsx(Flex, { direction: "column", className: styles$6.navigations, ...props, children: children }));
11582
11580
  };
11581
+ const SidebarNavigationsGroup = ({ icon, name, children, ...props }) => {
11582
+ return (jsxRuntimeExports.jsxs(Flex, { direction: "column", className: styles$6.navigationgroup, ...props, children: [jsxRuntimeExports.jsxs(Flex, { className: styles$6.navigationgroupheading, children: [icon && icon, jsxRuntimeExports.jsx(Text, { size: 2, style: { color: "var(--foreground-muted)" }, children: name })] }), jsxRuntimeExports.jsx(Flex, { direction: "column", className: styles$6.navigationgroupcontent, children: children })] }));
11583
+ };
11583
11584
  const cell$1 = cva(styles$6.cell, {
11584
11585
  variants: {
11585
11586
  active: {
@@ -11590,8 +11591,8 @@ const cell$1 = cva(styles$6.cell, {
11590
11591
  },
11591
11592
  },
11592
11593
  });
11593
- const SidebarNavigationCell = ({ leadingIcon, trailingIcon, active, disabled, children, href = "#", }) => {
11594
- return (jsxRuntimeExports.jsxs(Link, { className: cell$1({ active, disabled }), href: href, children: [jsxRuntimeExports.jsxs(Flex, { gap: "small", children: [leadingIcon, jsxRuntimeExports.jsx(Text, { className: styles$6.cellText, children: children })] }), trailingIcon] }));
11594
+ const SidebarNavigationCell = ({ leadingIcon, trailingIcon, active, disabled, children, asChild = false, ...props }) => {
11595
+ return (jsxRuntimeExports.jsx(Flex, { className: cell$1({ active, disabled }), ...props, children: asChild ? (children) : (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsxs(Flex, { gap: "small", children: [leadingIcon, jsxRuntimeExports.jsx(Text, { className: styles$6.cellText, children: children })] }), trailingIcon] })) }));
11595
11596
  };
11596
11597
  const SidebarFooter = ({ children, action }) => {
11597
11598
  return (jsxRuntimeExports.jsxs(Flex, { className: styles$6.footer, gap: "small", justify: "between", children: [jsxRuntimeExports.jsx(Text, { children: children }), action] }));
@@ -11599,6 +11600,7 @@ const SidebarFooter = ({ children, action }) => {
11599
11600
  const Sidebar = Object.assign(SidebarRoot, {
11600
11601
  Logo: SidebarLogo,
11601
11602
  Navigations: SidebarNavigations,
11603
+ NavigationGroup: SidebarNavigationsGroup,
11602
11604
  NavigationCell: SidebarNavigationCell,
11603
11605
  Footer: SidebarFooter,
11604
11606
  });
@@ -15288,8 +15290,8 @@ function DataTableGloabalSearch(props) {
15288
15290
  return (jsxRuntimeExports.jsx(TextField, { placeholder: "Filter tasks...", value: globalFilter ?? "", onChange: (event) => onGlobalFilterChange(String(event.target.value)), ...props }));
15289
15291
  }
15290
15292
 
15291
- function DataTableToolbar({ children, }) {
15292
- return (jsxRuntimeExports.jsx(Flex, { direction: "column", className: styles$4.toolbar, children: children }));
15293
+ function DataTableToolbar({ children, ...props }) {
15294
+ return (jsxRuntimeExports.jsx(Flex, { direction: "column", className: styles$4.toolbar, ...props, children: children }));
15293
15295
  }
15294
15296
 
15295
15297
  function DataTableViewOptions({ children, ...props }) {
@@ -15410,13 +15412,17 @@ function DataTableRoot({ columns, data, emptyState, children, parentStyle, ...pr
15410
15412
  onGlobalFilterChange: setGlobalFilter,
15411
15413
  onChange: () => ({}),
15412
15414
  }, children: [jsxRuntimeExports.jsxs(Flex, { direction: "column", className: styles$4.datatable, children: [header, jsxRuntimeExports.jsxs(Flex, { style: parentStyle, children: [jsxRuntimeExports.jsxs(Table, { ...props, children: [jsxRuntimeExports.jsx(Table.Header, { children: table.getHeaderGroups().map((headerGroup) => (jsxRuntimeExports.jsx(Table.Row, { children: headerGroup.headers.map((header) => {
15413
- return (jsxRuntimeExports.jsx(Table.Head, { children: jsxRuntimeExports.jsxs(Text, { className: styles$4.head, children: [header.isPlaceholder
15415
+ return (jsxRuntimeExports.jsx(Table.Head, { style: {
15416
+ ...(header.column.columnDef?.meta?.style ?? {}),
15417
+ }, children: jsxRuntimeExports.jsxs(Text, { className: styles$4.head, children: [header.isPlaceholder
15414
15418
  ? null
15415
15419
  : flexRender(header.column.columnDef.header, header.getContext()), {
15416
15420
  asc: jsxRuntimeExports.jsx(ArrowUpIcon, {}),
15417
15421
  desc: jsxRuntimeExports.jsx(ArrowDownIcon, {}),
15418
15422
  }[header.column.getIsSorted()] ?? null] }) }, header.id));
15419
- }) }, headerGroup.id))) }), jsxRuntimeExports.jsx(Table.Body, { children: table.getRowModel().rows?.length ? (table.getRowModel().rows.map((row) => (jsxRuntimeExports.jsx(Table.Row, { "data-state": row.getIsSelected() && "selected", children: row.getVisibleCells().map((cell) => (jsxRuntimeExports.jsx(Table.Cell, { children: flexRender(cell.column.columnDef.cell, cell.getContext()) }, cell.id))) }, row.id)))) : (jsxRuntimeExports.jsx(Table.Row, { children: jsxRuntimeExports.jsx(Table.Cell, { colSpan: columns.length, children: emptyState || "No results." }) })) })] }), detail] })] }), footer] }) }));
15423
+ }) }, headerGroup.id))) }), jsxRuntimeExports.jsx(Table.Body, { children: table.getRowModel().rows?.length ? (table.getRowModel().rows.map((row) => (jsxRuntimeExports.jsx(Table.Row, { "data-state": row.getIsSelected() && "selected", children: row.getVisibleCells().map((cell) => (jsxRuntimeExports.jsx(Table.Cell, { style: {
15424
+ ...(cell.column.columnDef?.meta?.style ?? {}),
15425
+ }, children: flexRender(cell.column.columnDef.cell, cell.getContext()) }, cell.id))) }, row.id)))) : (jsxRuntimeExports.jsx(Table.Row, { children: jsxRuntimeExports.jsx(Table.Cell, { colSpan: columns.length, children: emptyState || "No results." }) })) })] }), detail] })] }), footer] }) }));
15420
15426
  }
15421
15427
  const DataTable = Object.assign(DataTableRoot, {
15422
15428
  Toolbar: DataTableToolbar,