@knkcs/anker 1.13.0 → 2.0.1
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.
|
@@ -2,7 +2,7 @@ export { A as AuthCard, a as AuthCardProps, P as PageHeader, b as PageHeaderBrea
|
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
4
|
import React__default, { ReactNode, MouseEventHandler } from 'react';
|
|
5
|
-
import { CardRootProps, TextProps, IconButtonProps, DrawerRootProps,
|
|
5
|
+
import { CardRootProps, TextProps, IconButtonProps, DrawerRootProps, HTMLChakraProps, DialogRootProps, Timeline, TreeView } from '@chakra-ui/react';
|
|
6
6
|
export { TreeCollection, createTreeCollection } from '@chakra-ui/react';
|
|
7
7
|
import { ColumnDef, RowSelectionState, OnChangeFn, SortingState, Row } from '@tanstack/react-table';
|
|
8
8
|
import { a as SwitchProps } from '../switch-B0o6G2XE.js';
|
|
@@ -514,6 +514,28 @@ interface InlineCreatableListProps<T> {
|
|
|
514
514
|
}
|
|
515
515
|
declare const InlineCreatableList: <T>(props: InlineCreatableListProps<T>) => React$1.ReactElement;
|
|
516
516
|
|
|
517
|
+
interface KnkLogoProps extends Omit<HTMLChakraProps<"img">, "as" | "src" | "alt" | "invert"> {
|
|
518
|
+
/** Pixel or token size; controls width. Default 48. */
|
|
519
|
+
boxSize?: number | string;
|
|
520
|
+
/**
|
|
521
|
+
* When true, applies a CSS filter to render the logo in white,
|
|
522
|
+
* suitable for dark backgrounds like the primary-colored sidebar.
|
|
523
|
+
*/
|
|
524
|
+
invert?: boolean;
|
|
525
|
+
/** Override the default "knkcms" alt text. */
|
|
526
|
+
alt?: string;
|
|
527
|
+
}
|
|
528
|
+
/**
|
|
529
|
+
* KnkLogo renders the knkcms brand mark via an <img> referencing the
|
|
530
|
+
* SVG asset. Use the `invert` prop on dark backgrounds (e.g. the
|
|
531
|
+
* primary-colored sidebar) until the source SVG is rewritten to use
|
|
532
|
+
* `currentColor` for fills.
|
|
533
|
+
*/
|
|
534
|
+
declare const KnkLogo: {
|
|
535
|
+
({ boxSize, invert, alt, ...rest }: KnkLogoProps): react_jsx_runtime.JSX.Element;
|
|
536
|
+
displayName: string;
|
|
537
|
+
};
|
|
538
|
+
|
|
517
539
|
interface LabeledSwitchProps extends SwitchProps {
|
|
518
540
|
name: string;
|
|
519
541
|
label: string;
|
|
@@ -623,8 +645,8 @@ interface SidebarProps {
|
|
|
623
645
|
children: React__default.ReactNode;
|
|
624
646
|
}
|
|
625
647
|
interface SidebarLogoProps {
|
|
626
|
-
|
|
627
|
-
|
|
648
|
+
/** Lowercase product name, e.g. "odon", "core", "mediahub". */
|
|
649
|
+
productName: string;
|
|
628
650
|
}
|
|
629
651
|
interface SidebarSectionProps$1 {
|
|
630
652
|
label: string;
|
|
@@ -672,7 +694,7 @@ declare const Sidebar: {
|
|
|
672
694
|
displayName: string;
|
|
673
695
|
};
|
|
674
696
|
Logo: {
|
|
675
|
-
({
|
|
697
|
+
({ productName }: SidebarLogoProps): react_jsx_runtime.JSX.Element;
|
|
676
698
|
displayName: string;
|
|
677
699
|
};
|
|
678
700
|
Slot: {
|
|
@@ -980,4 +1002,4 @@ interface WidgetProps {
|
|
|
980
1002
|
}
|
|
981
1003
|
declare const Widget: React__default.FC<WidgetProps>;
|
|
982
1004
|
|
|
983
|
-
export { ActionCell, type ActionCellAction, type ActionCellProps, BooleanCell, type BooleanCellProps, BulkActionBar, type BulkActionBarProps, type BulkActionProps, type BulkPopoverActionProps, Card, CardList, CardListData, type CardListDataProps, CardListItem, type CardListItemProps, type CardListMenuItem, type CardListProps, type CardProps, ChipPicker, type ChipPickerProps, CodeCell, type CodeCellProps, ColorSwatchCell, type ColorSwatchCellProps, ContextRail, type ContextRailHeaderProps, type ContextRailProps, type ContextRailSectionProps, CountCell, type CountCellProps, DataTable, type DataTableProps, DateCell, type DateCellProps, DescriptionList, type DescriptionListProps, type DescriptionListRowProps, DeviceCell, type DeviceCellProps, type DrawerProps, DrawerRoot, FactBox, type FactBoxAction, type FactBoxProps, IdentityCell, type IdentityCellProps, InlineCreatableList, type InlineCreatableListProps, LabeledSwitch, type LabeledSwitchProps, LinkCell, type LinkCellProps, MenuCell, type MenuCellAction, type MenuCellProps, Modal, type ModalProps, NumberCell, type NumberCellProps, Pagination, type PaginationProps, SelectableCard, type SelectableCardBodyProps, type SelectableCardFooterProps, type SelectableCardProps, type SelectableCardThumbnailProps, Sidebar, type SidebarItemProps, type SidebarLogoProps, type SidebarSectionProps$1 as SidebarNavSectionProps, type SidebarProps, SidebarSection, type SidebarSectionProps, type SidebarUserMenuItemProps, type SidebarUserMenuProps, SlugCell, type SlugCellProps, StatusBadgeCell, type StatusBadgeCellProps, Stepper, StepperCompleted, StepperContainer, StepperContent, type StepperContentProps, StepperIcon, type StepperIconProps, type StepperProps, StepperProvider, StepperSeparator, type StepperSeparatorProps, StepperStep, type StepperStepProps, StepperStepTitle, StepperSteps, type StepperStepsProps, SwitchCell, type SwitchCellProps, CardList as Table, CardListData as TableData, type CardListDataProps as TableDataProps, CardListItem as TableItem, type CardListItemProps as TableItemProps, type CardListMenuItem as TableMenuItem, type CardListProps as TableProps, TimelineConnector, TimelineContent, TimelineDescription, TimelineIndicator, TimelineItem, type TimelineItemProps, TimelineRoot, type TimelineRootProps, TimelineSeparator, TimelineTitle, Toolbar, type ToolbarFilterChipProps, type ToolbarSearchProps, TreeViewBranch, TreeViewBranchContent, TreeViewBranchControl, TreeViewBranchIndicator, type TreeViewBranchProps, TreeViewBranchText, TreeViewBranchTrigger, TreeViewItem, TreeViewItemIndicator, type TreeViewItemProps, TreeViewItemText, TreeViewLabel, TreeViewNode, TreeViewRoot, type TreeViewRootProps, TreeViewTree, TruncatedTextCell, type TruncatedTextCellProps, UploadDropZone, type UploadDropZoneProps, UrlCell, type UrlCellProps, type UseStepProps, type UseStepperProps, type UseStepperReturn, Widget, type WidgetProps, emptyCellValue, formatUserAgent, parseUserAgent, pluralize, truncateText, useSidebarContext, useStep, useStepper, useStepperContext, useStepperNextButton, useStepperPrevButton };
|
|
1005
|
+
export { ActionCell, type ActionCellAction, type ActionCellProps, BooleanCell, type BooleanCellProps, BulkActionBar, type BulkActionBarProps, type BulkActionProps, type BulkPopoverActionProps, Card, CardList, CardListData, type CardListDataProps, CardListItem, type CardListItemProps, type CardListMenuItem, type CardListProps, type CardProps, ChipPicker, type ChipPickerProps, CodeCell, type CodeCellProps, ColorSwatchCell, type ColorSwatchCellProps, ContextRail, type ContextRailHeaderProps, type ContextRailProps, type ContextRailSectionProps, CountCell, type CountCellProps, DataTable, type DataTableProps, DateCell, type DateCellProps, DescriptionList, type DescriptionListProps, type DescriptionListRowProps, DeviceCell, type DeviceCellProps, type DrawerProps, DrawerRoot, FactBox, type FactBoxAction, type FactBoxProps, IdentityCell, type IdentityCellProps, InlineCreatableList, type InlineCreatableListProps, KnkLogo, type KnkLogoProps, LabeledSwitch, type LabeledSwitchProps, LinkCell, type LinkCellProps, MenuCell, type MenuCellAction, type MenuCellProps, Modal, type ModalProps, NumberCell, type NumberCellProps, Pagination, type PaginationProps, SelectableCard, type SelectableCardBodyProps, type SelectableCardFooterProps, type SelectableCardProps, type SelectableCardThumbnailProps, Sidebar, type SidebarItemProps, type SidebarLogoProps, type SidebarSectionProps$1 as SidebarNavSectionProps, type SidebarProps, SidebarSection, type SidebarSectionProps, type SidebarUserMenuItemProps, type SidebarUserMenuProps, SlugCell, type SlugCellProps, StatusBadgeCell, type StatusBadgeCellProps, Stepper, StepperCompleted, StepperContainer, StepperContent, type StepperContentProps, StepperIcon, type StepperIconProps, type StepperProps, StepperProvider, StepperSeparator, type StepperSeparatorProps, StepperStep, type StepperStepProps, StepperStepTitle, StepperSteps, type StepperStepsProps, SwitchCell, type SwitchCellProps, CardList as Table, CardListData as TableData, type CardListDataProps as TableDataProps, CardListItem as TableItem, type CardListItemProps as TableItemProps, type CardListMenuItem as TableMenuItem, type CardListProps as TableProps, TimelineConnector, TimelineContent, TimelineDescription, TimelineIndicator, TimelineItem, type TimelineItemProps, TimelineRoot, type TimelineRootProps, TimelineSeparator, TimelineTitle, Toolbar, type ToolbarFilterChipProps, type ToolbarSearchProps, TreeViewBranch, TreeViewBranchContent, TreeViewBranchControl, TreeViewBranchIndicator, type TreeViewBranchProps, TreeViewBranchText, TreeViewBranchTrigger, TreeViewItem, TreeViewItemIndicator, type TreeViewItemProps, TreeViewItemText, TreeViewLabel, TreeViewNode, TreeViewRoot, type TreeViewRootProps, TreeViewTree, TruncatedTextCell, type TruncatedTextCellProps, UploadDropZone, type UploadDropZoneProps, UrlCell, type UrlCellProps, type UseStepProps, type UseStepperProps, type UseStepperReturn, Widget, type WidgetProps, emptyCellValue, formatUserAgent, parseUserAgent, pluralize, truncateText, useSidebarContext, useStep, useStepper, useStepperContext, useStepperNextButton, useStepperPrevButton };
|
package/dist/components/index.js
CHANGED
|
@@ -8,7 +8,7 @@ export { AuthCard, PageHeader } from '../chunk-D5ICTOCW.js';
|
|
|
8
8
|
import { Box, Flex, Heading, Text, HStack, Grid, GridItem, Code, VStack, Link, Spacer, Stack } from '../chunk-G4QMIXLC.js';
|
|
9
9
|
import { PanelRightOpen, PanelRightClose, ChevronRight, Search, PanelLeftOpen, PanelLeftClose, X, Ellipsis, Plus, ChevronLeft, ArrowUp, ArrowDown, ArrowUpDown, ChevronDown, Check, Upload } from 'lucide-react';
|
|
10
10
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
11
|
-
import { createContext as createContext$1, Timeline, TreeView, Card as Card$1, Menu, Portal, Checkbox, Drawer, ButtonGroup, Dialog, useSlotRecipe
|
|
11
|
+
import { createContext as createContext$1, Timeline, TreeView, chakra, Card as Card$1, Menu, Portal, Checkbox, Drawer, ButtonGroup, Dialog, useSlotRecipe } from '@chakra-ui/react';
|
|
12
12
|
export { createTreeCollection } from '@chakra-ui/react';
|
|
13
13
|
import React3, { createContext, useState, useEffect, useMemo, useContext, useRef, Children, useCallback } from 'react';
|
|
14
14
|
import dayjs from 'dayjs';
|
|
@@ -1586,6 +1586,26 @@ function InlineCreatableListInner(props) {
|
|
|
1586
1586
|
}
|
|
1587
1587
|
var InlineCreatableList = InlineCreatableListInner;
|
|
1588
1588
|
InlineCreatableList.displayName = "InlineCreatableList";
|
|
1589
|
+
|
|
1590
|
+
// src/assets/knk-logo.svg
|
|
1591
|
+
var knk_logo_default = "../knk-logo-P6UYZTG6.svg";
|
|
1592
|
+
var KnkLogo = ({
|
|
1593
|
+
boxSize = 48,
|
|
1594
|
+
invert = false,
|
|
1595
|
+
alt = "knkcms",
|
|
1596
|
+
...rest
|
|
1597
|
+
}) => /* @__PURE__ */ jsx(
|
|
1598
|
+
chakra.img,
|
|
1599
|
+
{
|
|
1600
|
+
src: knk_logo_default,
|
|
1601
|
+
alt,
|
|
1602
|
+
width: boxSize,
|
|
1603
|
+
height: "auto",
|
|
1604
|
+
filter: invert ? "brightness(0) invert(1)" : void 0,
|
|
1605
|
+
...rest
|
|
1606
|
+
}
|
|
1607
|
+
);
|
|
1608
|
+
KnkLogo.displayName = "KnkLogo";
|
|
1589
1609
|
var LabeledSwitch = ({
|
|
1590
1610
|
ref,
|
|
1591
1611
|
...props
|
|
@@ -1808,7 +1828,7 @@ var SidebarBody = ({ children }) => /* @__PURE__ */ jsx(Box, { flex: "1", overfl
|
|
|
1808
1828
|
SidebarBody.displayName = "Sidebar.Body";
|
|
1809
1829
|
var SidebarFooter = ({ children }) => /* @__PURE__ */ jsx(Box, { p: "3", borderTopWidth: "1px", borderTopColor: "border", children });
|
|
1810
1830
|
SidebarFooter.displayName = "Sidebar.Footer";
|
|
1811
|
-
var SidebarLogo = ({
|
|
1831
|
+
var SidebarLogo = ({ productName }) => {
|
|
1812
1832
|
const { collapsed, toggle } = useSidebarContext();
|
|
1813
1833
|
const toggleButton = /* @__PURE__ */ jsx(
|
|
1814
1834
|
IconButton,
|
|
@@ -1823,58 +1843,35 @@ var SidebarLogo = ({ wordmark, subtitle }) => {
|
|
|
1823
1843
|
);
|
|
1824
1844
|
if (collapsed) {
|
|
1825
1845
|
return /* @__PURE__ */ jsxs(Flex, { direction: "column", align: "center", gap: "2", children: [
|
|
1826
|
-
/* @__PURE__ */ jsx(
|
|
1827
|
-
Heading,
|
|
1828
|
-
{
|
|
1829
|
-
as: "span",
|
|
1830
|
-
fontSize: "lg",
|
|
1831
|
-
fontWeight: "bold",
|
|
1832
|
-
color: "primary.700",
|
|
1833
|
-
letterSpacing: "tight",
|
|
1834
|
-
children: wordmark.charAt(0)
|
|
1835
|
-
}
|
|
1836
|
-
),
|
|
1846
|
+
/* @__PURE__ */ jsx(KnkLogo, { boxSize: 28, invert: true }),
|
|
1837
1847
|
toggleButton
|
|
1838
1848
|
] });
|
|
1839
1849
|
}
|
|
1840
|
-
return /* @__PURE__ */ jsxs(
|
|
1841
|
-
Flex,
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
fontWeight: "semibold",
|
|
1866
|
-
letterSpacing: "wider",
|
|
1867
|
-
textTransform: "uppercase",
|
|
1868
|
-
color: "muted",
|
|
1869
|
-
mt: "0.5",
|
|
1870
|
-
children: subtitle
|
|
1871
|
-
}
|
|
1872
|
-
)
|
|
1873
|
-
] }),
|
|
1874
|
-
toggleButton
|
|
1875
|
-
]
|
|
1876
|
-
}
|
|
1877
|
-
);
|
|
1850
|
+
return /* @__PURE__ */ jsxs(Flex, { direction: "column", align: "center", gap: "2", w: "full", children: [
|
|
1851
|
+
/* @__PURE__ */ jsxs(Flex, { direction: "column", align: "center", gap: "2", pb: "3", children: [
|
|
1852
|
+
/* @__PURE__ */ jsx(KnkLogo, { boxSize: 48, invert: true }),
|
|
1853
|
+
/* @__PURE__ */ jsx(
|
|
1854
|
+
Text,
|
|
1855
|
+
{
|
|
1856
|
+
fontSize: "sm",
|
|
1857
|
+
fontWeight: "semibold",
|
|
1858
|
+
color: "currentColor",
|
|
1859
|
+
lineHeight: "1",
|
|
1860
|
+
children: productName
|
|
1861
|
+
}
|
|
1862
|
+
)
|
|
1863
|
+
] }),
|
|
1864
|
+
/* @__PURE__ */ jsx(
|
|
1865
|
+
Box,
|
|
1866
|
+
{
|
|
1867
|
+
w: "full",
|
|
1868
|
+
borderBottomWidth: "1px",
|
|
1869
|
+
borderBottomColor: "whiteAlpha.200",
|
|
1870
|
+
mb: "2"
|
|
1871
|
+
}
|
|
1872
|
+
),
|
|
1873
|
+
/* @__PURE__ */ jsx(Flex, { w: "full", justify: "flex-end", children: toggleButton })
|
|
1874
|
+
] });
|
|
1878
1875
|
};
|
|
1879
1876
|
SidebarLogo.displayName = "Sidebar.Logo";
|
|
1880
1877
|
var SidebarSlot = ({ children }) => /* @__PURE__ */ jsx(Box, { mt: "3", children });
|
|
@@ -2694,6 +2691,6 @@ var Widget = ({
|
|
|
2694
2691
|
};
|
|
2695
2692
|
Widget.displayName = "Widget";
|
|
2696
2693
|
|
|
2697
|
-
export { ActionCell, BooleanCell, BulkActionBar, Card, CardList, CardListData, CardListItem, ChipPicker, CodeCell, ColorSwatchCell, ContextRail, CountCell, DataTable, DateCell, DescriptionList, DeviceCell, DrawerRoot, FactBox, IdentityCell, InlineCreatableList, LabeledSwitch, LinkCell, MenuCell, Modal, NumberCell, Pagination, SelectableCard, Sidebar, SidebarSection2 as SidebarSection, SlugCell, StatusBadgeCell, Stepper, StepperCompleted, StepperContainer, StepperContent, StepperIcon, StepperProvider, StepperSeparator, StepperStep, StepperStepTitle, StepperSteps, SwitchCell, CardList as Table, CardListData as TableData, CardListItem as TableItem, TimelineConnector, TimelineContent, TimelineDescription, TimelineIndicator, TimelineItem, TimelineRoot, TimelineSeparator, TimelineTitle, Toolbar, TreeViewBranch, TreeViewBranchContent, TreeViewBranchControl, TreeViewBranchIndicator, TreeViewBranchText, TreeViewBranchTrigger, TreeViewItem, TreeViewItemIndicator, TreeViewItemText, TreeViewLabel, TreeViewNode, TreeViewRoot, TreeViewTree, TruncatedTextCell, UploadDropZone, UrlCell, Widget, emptyCellValue, formatUserAgent, parseUserAgent, pluralize, truncateText, useSidebarContext, useStep, useStepper, useStepperContext, useStepperNextButton, useStepperPrevButton };
|
|
2694
|
+
export { ActionCell, BooleanCell, BulkActionBar, Card, CardList, CardListData, CardListItem, ChipPicker, CodeCell, ColorSwatchCell, ContextRail, CountCell, DataTable, DateCell, DescriptionList, DeviceCell, DrawerRoot, FactBox, IdentityCell, InlineCreatableList, KnkLogo, LabeledSwitch, LinkCell, MenuCell, Modal, NumberCell, Pagination, SelectableCard, Sidebar, SidebarSection2 as SidebarSection, SlugCell, StatusBadgeCell, Stepper, StepperCompleted, StepperContainer, StepperContent, StepperIcon, StepperProvider, StepperSeparator, StepperStep, StepperStepTitle, StepperSteps, SwitchCell, CardList as Table, CardListData as TableData, CardListItem as TableItem, TimelineConnector, TimelineContent, TimelineDescription, TimelineIndicator, TimelineItem, TimelineRoot, TimelineSeparator, TimelineTitle, Toolbar, TreeViewBranch, TreeViewBranchContent, TreeViewBranchControl, TreeViewBranchIndicator, TreeViewBranchText, TreeViewBranchTrigger, TreeViewItem, TreeViewItemIndicator, TreeViewItemText, TreeViewLabel, TreeViewNode, TreeViewRoot, TreeViewTree, TruncatedTextCell, UploadDropZone, UrlCell, Widget, emptyCellValue, formatUserAgent, parseUserAgent, pluralize, truncateText, useSidebarContext, useStep, useStepper, useStepperContext, useStepperNextButton, useStepperPrevButton };
|
|
2698
2695
|
//# sourceMappingURL=index.js.map
|
|
2699
2696
|
//# sourceMappingURL=index.js.map
|