@kubit-ui-web/react-components 2.0.0-beta.20 → 2.0.0-beta.21
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/cjs/components/modal/modalStandAlone.js +1 -1
- package/dist/cjs/components/slider/components/sliderThumbStandAlone.js +1 -1
- package/dist/cjs/components/tooltip/tooltip.css +1 -1
- package/dist/cjs/components/tooltip/tooltipStandAlone.js +1 -1
- package/dist/cjs/components/tooltip/tooltipUnControlled.js +1 -1
- package/dist/cjs/components/tooltip/utils/tooltip.utils.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/lib/designSystem/kubit/css/kubit.css +1 -1
- package/dist/cjs/lib/designSystem/kubit/css/kubit.min.css +1 -1
- package/dist/cjs/lib/provider/cssProvider/stats/stats.js +1 -1
- package/dist/cjs/react-components.css +1 -1
- package/dist/esm/components/modal/modalStandAlone.js +4 -4
- package/dist/esm/components/slider/components/sliderThumbStandAlone.js +1 -1
- package/dist/esm/components/tooltip/tooltip.css +1 -1
- package/dist/esm/components/tooltip/tooltipStandAlone.js +6 -8
- package/dist/esm/components/tooltip/tooltipUnControlled.js +1 -1
- package/dist/esm/components/tooltip/utils/tooltip.utils.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/lib/designSystem/kubit/css/kubit.css +1 -1
- package/dist/esm/lib/designSystem/kubit/css/kubit.min.css +1 -1
- package/dist/esm/lib/provider/cssProvider/stats/stats.js +1 -1
- package/dist/esm/react-components.css +1 -1
- package/dist/styles/kubit/css/kubit.css +0 -19
- package/dist/styles/kubit/css/kubit.min.css +1 -1
- package/dist/types/index.d.ts +20 -173
- package/package.json +2 -3
- package/dist/cjs/components/navBar/index.js +0 -2
- package/dist/cjs/components/navBar/navBar.js +0 -1
- package/dist/cjs/components/navBar/navBarStandAlone.js +0 -1
- package/dist/esm/components/navBar/index.js +0 -1
- package/dist/esm/components/navBar/navBar.js +0 -2
- package/dist/esm/components/navBar/navBarStandAlone.js +0 -2
package/dist/types/index.d.ts
CHANGED
|
@@ -1128,7 +1128,7 @@ declare type ComponentSelected<T> = Pick<T, NonVariablesKeys<T>>;
|
|
|
1128
1128
|
|
|
1129
1129
|
declare type ComponentSelected_2<T> = Pick<T, NonVariablesKeys_2<T>>;
|
|
1130
1130
|
|
|
1131
|
-
declare type ComponentsTypesAvailableComponents = 'ACCORDION' | 'ALERT' | 'AVATAR' | 'BADGE' | 'BREADCRUMBS' | 'BUTTON' | 'CALENDAR' | 'CARD_IMAGE' | 'CAROUSEL' | 'CHECKBOX' | 'CHECKBOX_BASE' | 'CHIP' | 'CONTAINER' | 'DATA_TABLE' | 'DOT' | 'DROPDOWN_SELECTED' | 'ERROR_MESSAGE' | 'ICON' | 'INPUT' | 'INPUT_BASE' | 'INPUT_DECORATION' | 'INPUT_SIGNATURE' | 'ITEM_ROVE' | 'LINK' | 'LINK_AS_BUTTON' | 'LIST_OPTIONS' | 'MODAL' | '
|
|
1131
|
+
declare type ComponentsTypesAvailableComponents = 'ACCORDION' | 'ALERT' | 'AVATAR' | 'BADGE' | 'BREADCRUMBS' | 'BUTTON' | 'CALENDAR' | 'CARD_IMAGE' | 'CAROUSEL' | 'CHECKBOX' | 'CHECKBOX_BASE' | 'CHIP' | 'CONTAINER' | 'DATA_TABLE' | 'DOT' | 'DROPDOWN_SELECTED' | 'ERROR_MESSAGE' | 'ICON' | 'INPUT' | 'INPUT_BASE' | 'INPUT_DECORATION' | 'INPUT_SIGNATURE' | 'ITEM_ROVE' | 'LINK' | 'LINK_AS_BUTTON' | 'LIST_OPTIONS' | 'MODAL' | 'OPTION' | 'OVERLAY' | 'PAGE_CONTROL' | 'PAGINATION' | 'POPOVER' | 'PROGRESS_BAR' | 'RADIO_BUTTON' | 'SELECTOR_BOX_FILE' | 'SKELETON' | 'SLIDER' | 'SNACKBAR' | 'STEPPER_NUMBER' | 'TABLE' | 'TABLE_BODY' | 'TABLE_CAPTION' | 'TABLE_CELL' | 'TABLE_DIVIDER' | 'TABLE_FOOT' | 'TABLE_HEAD' | 'TABLE_ROW' | 'TABS' | 'TAG' | 'TEXT' | 'TEXT_AREA' | 'TEXT_COUNT' | 'TOGGLE' | 'TOOLTIP' | 'VIRTUAL_KEYBOARD';
|
|
1132
1132
|
|
|
1133
1133
|
declare type ComponentsTypesComponents = {
|
|
1134
1134
|
ACCORDION: {
|
|
@@ -1263,7 +1263,7 @@ declare type ComponentsTypesComponents = {
|
|
|
1263
1263
|
button: string;
|
|
1264
1264
|
};
|
|
1265
1265
|
dynamic_values: (styles: {
|
|
1266
|
-
|
|
1266
|
+
$alignText: string;
|
|
1267
1267
|
}) => {
|
|
1268
1268
|
string: string;
|
|
1269
1269
|
object: object;
|
|
@@ -1544,11 +1544,11 @@ declare type ComponentsTypesComponents = {
|
|
|
1544
1544
|
complex: string;
|
|
1545
1545
|
svg: string;
|
|
1546
1546
|
dynamic_values: (styles: {
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1547
|
+
$color: string;
|
|
1548
|
+
$moveAround: string;
|
|
1549
|
+
$transitionDuration: string;
|
|
1550
|
+
$height: string;
|
|
1551
|
+
$width: string;
|
|
1552
1552
|
}) => {
|
|
1553
1553
|
string: string;
|
|
1554
1554
|
object: object;
|
|
@@ -1692,13 +1692,6 @@ declare type ComponentsTypesComponents = {
|
|
|
1692
1692
|
modal: string;
|
|
1693
1693
|
};
|
|
1694
1694
|
};
|
|
1695
|
-
NAVBAR: {
|
|
1696
|
-
navbar: string;
|
|
1697
|
-
itemcontainer: string;
|
|
1698
|
-
$_default: {
|
|
1699
|
-
navbar: string;
|
|
1700
|
-
};
|
|
1701
|
-
};
|
|
1702
1695
|
OPTION: {
|
|
1703
1696
|
option: string;
|
|
1704
1697
|
checkedicon: string;
|
|
@@ -1823,63 +1816,6 @@ declare type ComponentsTypesComponents = {
|
|
|
1823
1816
|
$_default: {
|
|
1824
1817
|
progress_bar: string;
|
|
1825
1818
|
};
|
|
1826
|
-
$_interactive: {
|
|
1827
|
-
progress_bar: string;
|
|
1828
|
-
barcontainer: string;
|
|
1829
|
-
};
|
|
1830
|
-
slider: {
|
|
1831
|
-
activetrack: string;
|
|
1832
|
-
inactivetrack: string;
|
|
1833
|
-
thumb: string;
|
|
1834
|
-
decrement_button_size: {
|
|
1835
|
-
icon: string;
|
|
1836
|
-
button: string;
|
|
1837
|
-
loader: string;
|
|
1838
|
-
};
|
|
1839
|
-
decrement_button_variant: {
|
|
1840
|
-
button: string;
|
|
1841
|
-
icon: string;
|
|
1842
|
-
loader: string;
|
|
1843
|
-
};
|
|
1844
|
-
tooltip: {
|
|
1845
|
-
arrowcontainer: string;
|
|
1846
|
-
arrowposition: string;
|
|
1847
|
-
arrowsize: string;
|
|
1848
|
-
closebuttoncontainer: string;
|
|
1849
|
-
closebuttonicon: string;
|
|
1850
|
-
headercontainer: string;
|
|
1851
|
-
paragraph: string;
|
|
1852
|
-
paragraphcontainer: string;
|
|
1853
|
-
title: string;
|
|
1854
|
-
tooltipexternalcontainer: string;
|
|
1855
|
-
tooltipinternalcontainer: string;
|
|
1856
|
-
popover: {
|
|
1857
|
-
arrow: string;
|
|
1858
|
-
popover: string;
|
|
1859
|
-
};
|
|
1860
|
-
arrow: string;
|
|
1861
|
-
divider: string;
|
|
1862
|
-
dragicon: string;
|
|
1863
|
-
dragiconcontainer: string;
|
|
1864
|
-
tooltipalignstyles: string;
|
|
1865
|
-
tooltipasmodal: string;
|
|
1866
|
-
};
|
|
1867
|
-
buttonstrackscontainer: string;
|
|
1868
|
-
helpertext: string;
|
|
1869
|
-
helpertextcontainer: string;
|
|
1870
|
-
helpertextleftcontainer: string;
|
|
1871
|
-
helpertextrightcontainer: string;
|
|
1872
|
-
innerthumbtooltip: string;
|
|
1873
|
-
label: string;
|
|
1874
|
-
labelcontainer: string;
|
|
1875
|
-
rightthumbicon: string;
|
|
1876
|
-
scalecontainer: string;
|
|
1877
|
-
scaleoption: string;
|
|
1878
|
-
thumbicon: string;
|
|
1879
|
-
tracksthumbscontainer: string;
|
|
1880
|
-
tracksthumbsinnercontainer: string;
|
|
1881
|
-
slider: string;
|
|
1882
|
-
};
|
|
1883
1819
|
};
|
|
1884
1820
|
RADIO_BUTTON: {
|
|
1885
1821
|
radio_button: string;
|
|
@@ -1903,12 +1839,8 @@ declare type ComponentsTypesComponents = {
|
|
|
1903
1839
|
arrowcontainer: string;
|
|
1904
1840
|
arrowposition: string;
|
|
1905
1841
|
arrowsize: string;
|
|
1906
|
-
closebuttoncontainer: string;
|
|
1907
|
-
closebuttonicon: string;
|
|
1908
|
-
headercontainer: string;
|
|
1909
1842
|
paragraph: string;
|
|
1910
1843
|
paragraphcontainer: string;
|
|
1911
|
-
title: string;
|
|
1912
1844
|
tooltipexternalcontainer: string;
|
|
1913
1845
|
tooltipinternalcontainer: string;
|
|
1914
1846
|
popover: {
|
|
@@ -1916,9 +1848,6 @@ declare type ComponentsTypesComponents = {
|
|
|
1916
1848
|
popover: string;
|
|
1917
1849
|
};
|
|
1918
1850
|
arrow: string;
|
|
1919
|
-
divider: string;
|
|
1920
|
-
dragicon: string;
|
|
1921
|
-
dragiconcontainer: string;
|
|
1922
1851
|
tooltipalignstyles: string;
|
|
1923
1852
|
tooltipasmodal: string;
|
|
1924
1853
|
};
|
|
@@ -2002,12 +1931,8 @@ declare type ComponentsTypesComponents = {
|
|
|
2002
1931
|
arrowcontainer: string;
|
|
2003
1932
|
arrowposition: string;
|
|
2004
1933
|
arrowsize: string;
|
|
2005
|
-
closebuttoncontainer: string;
|
|
2006
|
-
closebuttonicon: string;
|
|
2007
|
-
headercontainer: string;
|
|
2008
1934
|
paragraph: string;
|
|
2009
1935
|
paragraphcontainer: string;
|
|
2010
|
-
title: string;
|
|
2011
1936
|
tooltipexternalcontainer: string;
|
|
2012
1937
|
tooltipinternalcontainer: string;
|
|
2013
1938
|
popover: {
|
|
@@ -2015,9 +1940,6 @@ declare type ComponentsTypesComponents = {
|
|
|
2015
1940
|
popover: string;
|
|
2016
1941
|
};
|
|
2017
1942
|
arrow: string;
|
|
2018
|
-
divider: string;
|
|
2019
|
-
dragicon: string;
|
|
2020
|
-
dragiconcontainer: string;
|
|
2021
1943
|
tooltipalignstyles: string;
|
|
2022
1944
|
tooltipasmodal: string;
|
|
2023
1945
|
};
|
|
@@ -2109,18 +2031,18 @@ declare type ComponentsTypesComponents = {
|
|
|
2109
2031
|
table_cell: string;
|
|
2110
2032
|
};
|
|
2111
2033
|
dynamic_values: (styles: {
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2034
|
+
$tdWidth: string;
|
|
2035
|
+
$tdHeight: string;
|
|
2036
|
+
$tdMinWidth: string;
|
|
2037
|
+
$tdMaxWidth: string;
|
|
2038
|
+
$tdTextAlign: string;
|
|
2039
|
+
$tdVerticalAlign: string;
|
|
2040
|
+
$tdAlignItems: string;
|
|
2041
|
+
$tdJustifyContent: string;
|
|
2042
|
+
$tdTop: string;
|
|
2043
|
+
$tdLeft: string;
|
|
2044
|
+
$tdRight: string;
|
|
2045
|
+
$tdBottom: string;
|
|
2124
2046
|
}) => {
|
|
2125
2047
|
string: string;
|
|
2126
2048
|
object: object;
|
|
@@ -2322,15 +2244,8 @@ declare type ComponentsTypesComponents = {
|
|
|
2322
2244
|
arrowcontainer: string;
|
|
2323
2245
|
arrowposition: string;
|
|
2324
2246
|
arrowsize: string;
|
|
2325
|
-
closebuttoncontainer: string;
|
|
2326
|
-
closebuttonicon: string;
|
|
2327
|
-
divider: string;
|
|
2328
|
-
dragicon: string;
|
|
2329
|
-
dragiconcontainer: string;
|
|
2330
|
-
headercontainer: string;
|
|
2331
2247
|
paragraph: string;
|
|
2332
2248
|
paragraphcontainer: string;
|
|
2333
|
-
title: string;
|
|
2334
2249
|
tooltipalignstyles: string;
|
|
2335
2250
|
tooltipasmodal: string;
|
|
2336
2251
|
tooltipexternalcontainer: string;
|
|
@@ -2340,12 +2255,8 @@ declare type ComponentsTypesComponents = {
|
|
|
2340
2255
|
arrowcontainer: string;
|
|
2341
2256
|
arrowposition: string;
|
|
2342
2257
|
arrowsize: string;
|
|
2343
|
-
closebuttoncontainer: string;
|
|
2344
|
-
closebuttonicon: string;
|
|
2345
|
-
headercontainer: string;
|
|
2346
2258
|
paragraph: string;
|
|
2347
2259
|
paragraphcontainer: string;
|
|
2348
|
-
title: string;
|
|
2349
2260
|
tooltipexternalcontainer: string;
|
|
2350
2261
|
tooltipinternalcontainer: string;
|
|
2351
2262
|
};
|
|
@@ -4652,13 +4563,6 @@ export declare interface ModalControlledProps<Variant = undefined extends string
|
|
|
4652
4563
|
|
|
4653
4564
|
declare type ModalCssClasses = ComponentSelected<ComponentsTypesComponents['MODAL']>;
|
|
4654
4565
|
|
|
4655
|
-
/**
|
|
4656
|
-
* Represents the type for the footer in the Modal component.
|
|
4657
|
-
*/
|
|
4658
|
-
export declare type ModalFooterProps = Omit<NavBarProps, 'variant'> & {
|
|
4659
|
-
variant?: string;
|
|
4660
|
-
};
|
|
4661
|
-
|
|
4662
4566
|
declare type ModalOmittedProps = 'styles' | 'device' | 'contentHasScroll';
|
|
4663
4567
|
|
|
4664
4568
|
/**
|
|
@@ -4691,7 +4595,7 @@ export declare interface ModalStandAloneProps extends DataAttributes {
|
|
|
4691
4595
|
content?: ReactNode;
|
|
4692
4596
|
contentScrollArias?: Pick<AriaAttributes, 'aria-label' | 'aria-labelledby'>;
|
|
4693
4597
|
contentHasScroll: boolean;
|
|
4694
|
-
footer?:
|
|
4598
|
+
footer?: ReactNode;
|
|
4695
4599
|
device: DeviceBreakpointsType;
|
|
4696
4600
|
onKeyDown?: KeyboardEventHandler<HTMLDivElement>;
|
|
4697
4601
|
onPopoverCloseInternally?: () => void;
|
|
@@ -4737,51 +4641,6 @@ export declare type ModalVariantStyles<Variant extends string> = ModalStyleProps
|
|
|
4737
4641
|
[key in Variant]: ModalStyleProps;
|
|
4738
4642
|
};
|
|
4739
4643
|
|
|
4740
|
-
/**
|
|
4741
|
-
* A component that renders a navigation bar, which can be used as a header, footer, or standalone navigation.
|
|
4742
|
-
* It supports custom CSS classes and forwards a ref to the inner navigation container.
|
|
4743
|
-
*
|
|
4744
|
-
* @param {INavBarControlled} props - The props for the navigation bar component.
|
|
4745
|
-
* @param {ForwardedRef<HTMLDivElement>} ref - The forwarded ref for the inner navigation container.
|
|
4746
|
-
* @returns {JSX.Element} The rendered navigation bar component.
|
|
4747
|
-
*/
|
|
4748
|
-
export declare const NabVar: ForwardRefExoticComponent<NavBarProps<string> & RefAttributes<HTMLDivElement>>;
|
|
4749
|
-
|
|
4750
|
-
declare type NavBarCssClasses = ComponentSelected<ComponentsTypesComponents['NAVBAR']>;
|
|
4751
|
-
|
|
4752
|
-
/**
|
|
4753
|
-
* Interface for the NavBar component with a variant.
|
|
4754
|
-
* Extends the NavBarStandAloneProps interface and adds a variant and additional CSS classes.
|
|
4755
|
-
*
|
|
4756
|
-
* @template Variant - The type of the variant for the NavBar.
|
|
4757
|
-
*/
|
|
4758
|
-
export declare interface NavBarProps<Variant = undefined extends string ? unknown : string> extends NavBarStandAloneProps {
|
|
4759
|
-
variant?: Variant;
|
|
4760
|
-
additionalClasses?: Partial<NavBarCssClasses>;
|
|
4761
|
-
}
|
|
4762
|
-
|
|
4763
|
-
/**
|
|
4764
|
-
* Interface for the standalone NavBar component.
|
|
4765
|
-
* Includes properties for items, layout direction, focus order, and CSS classes.
|
|
4766
|
-
*/
|
|
4767
|
-
export declare interface NavBarStandAloneProps extends DataAttributes {
|
|
4768
|
-
leftItems?: React.ReactNode[];
|
|
4769
|
-
centerItems?: React.ReactNode[];
|
|
4770
|
-
rightItems?: React.ReactNode[];
|
|
4771
|
-
component?: 'header' | 'footer' | 'nav';
|
|
4772
|
-
direction?: 'horizontal' | 'vertical';
|
|
4773
|
-
focusOrder?: ('left' | 'center' | 'right')[];
|
|
4774
|
-
cssClasses?: NavBarCssClasses;
|
|
4775
|
-
}
|
|
4776
|
-
|
|
4777
|
-
export declare interface NavBarStyleProps extends CssLibPropsType {
|
|
4778
|
-
_itemContainer?: CssLibPropsType;
|
|
4779
|
-
}
|
|
4780
|
-
|
|
4781
|
-
export declare type NavBarVariantStyles<Variant extends string> = NavBarStyleProps & {
|
|
4782
|
-
[key in Variant]: NavBarStyleProps;
|
|
4783
|
-
};
|
|
4784
|
-
|
|
4785
4644
|
declare type NonVariablesKeys<T> = {
|
|
4786
4645
|
[K in keyof T]: K extends `$${string}` ? never : K;
|
|
4787
4646
|
}[keyof T];
|
|
@@ -6674,13 +6533,6 @@ export declare const Tooltip: ForwardRefExoticComponent<TooltipUnControlledProps
|
|
|
6674
6533
|
|
|
6675
6534
|
declare type TooltipAlignType = Extract<PositionType, 'top' | 'right' | 'bottom' | 'left'>;
|
|
6676
6535
|
|
|
6677
|
-
/**
|
|
6678
|
-
* Represents the type for the close icon in the Tooltip component.
|
|
6679
|
-
*/
|
|
6680
|
-
export declare type TooltipCloseIconProps = Omit<IconProps, 'icon'> & {
|
|
6681
|
-
icon?: string;
|
|
6682
|
-
};
|
|
6683
|
-
|
|
6684
6536
|
/**
|
|
6685
6537
|
* TooltipControlled component for displaying contextual information.
|
|
6686
6538
|
*
|
|
@@ -6734,7 +6586,6 @@ export declare interface TooltipStandAloneProps extends DataAttributes {
|
|
|
6734
6586
|
disabled?: boolean;
|
|
6735
6587
|
mediaDevice: DeviceBreakpointsType;
|
|
6736
6588
|
align?: TooltipAlignType | string;
|
|
6737
|
-
title?: CommonTextProps;
|
|
6738
6589
|
contentHasScroll?: boolean;
|
|
6739
6590
|
content?: CommonTextProps;
|
|
6740
6591
|
contentRef?: ForwardedRef<HTMLDivElement> | undefined;
|
|
@@ -6746,11 +6597,9 @@ export declare interface TooltipStandAloneProps extends DataAttributes {
|
|
|
6746
6597
|
onTriggerClick?: MouseEventHandler<HTMLElement>;
|
|
6747
6598
|
onTriggerMouseDown?: MouseEventHandler<HTMLElement>;
|
|
6748
6599
|
onTriggerMouseUp?: MouseEventHandler<HTMLElement>;
|
|
6749
|
-
onCloseIconClick?: MouseEventHandler<HTMLElement>;
|
|
6750
6600
|
children: JSX.Element | string | ReactNode;
|
|
6751
6601
|
popoverOpen?: boolean;
|
|
6752
6602
|
cssClasses?: TooltipCssClasses;
|
|
6753
|
-
closeIcon?: IconProps;
|
|
6754
6603
|
childrenAsButton?: boolean;
|
|
6755
6604
|
triggerAsButton?: Pick<AriaAttributes, 'aria-label' | 'aria-labelledby' | 'aria-describedby' | 'aria-controls' | 'aria-expanded' | 'aria-pressed' | 'aria-disabled'>;
|
|
6756
6605
|
onPopoverCloseInternally?: () => void;
|
|
@@ -6761,8 +6610,6 @@ export declare interface TooltipStandAloneProps extends DataAttributes {
|
|
|
6761
6610
|
onTriggerKeyDown?: KeyboardEventHandler<HTMLDivElement>;
|
|
6762
6611
|
onTooltipKeyDown?: KeyboardEventHandler<HTMLElement>;
|
|
6763
6612
|
popover?: TooltipPopoverProps;
|
|
6764
|
-
dragIcon?: ElementOrIconProps;
|
|
6765
|
-
dragIconRef?: MutableRefObject<HTMLDivElement | null>;
|
|
6766
6613
|
tooltipAriaLabel?: string;
|
|
6767
6614
|
}
|
|
6768
6615
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubit-ui-web/react-components",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.21",
|
|
4
4
|
"description": "Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Kubit",
|
|
@@ -22,8 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"engines": {
|
|
25
|
-
"node": "
|
|
26
|
-
"pnpm": ">=10.0.0"
|
|
25
|
+
"node": "20"
|
|
27
26
|
},
|
|
28
27
|
"keywords": [
|
|
29
28
|
"react",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../_virtual/jsx-runtime.js"),s=require("react"),a=require("../../lib/hooks/useClassName/useClassName.js"),r=require("./navBarStandAlone.js"),t=s.forwardRef(({additionalClasses:s,variant:t,...n},o)=>{const i=a.useClassName({additionalClassNames:s,component:"NAVBAR",variant:t});return e.jsxRuntimeExports.jsx(r.NavBarStandAlone,{ref:o,cssClasses:i,...n})});exports.NabVar=t;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../_virtual/jsx-runtime.js"),e=require("react"),s=require("../../lib/utils/classNames/classNames.js"),r=require("../../lib/utils/pickCustomAttributes/pickCustomAttributes.js"),i=require("../../lib/components/customComponent/customComponent.js"),n=e.forwardRef(({centerItems:e,component:n="div",cssClasses:o,direction:a="horizontal",focusOrder:c=["left","center","right"],leftItems:m,rightItems:u,...l},p)=>{const d=(e,s,r)=>t.jsxRuntimeExports.jsx("div",{className:o?.itemcontainer,"data-position":s,children:e?.map((e,s)=>t.jsxRuntimeExports.jsx("div",{children:e},`navbar-item-${s.toString()}`))},`${s}-${r?.toString()}`),b=r.pickCustomAttributes(l);return t.jsxRuntimeExports.jsx(i.CustomComponent,{ref:p,className:s.classNames("kbt-navbar",a,o?.navbar),component:n,...b,children:c.map((t,s)=>"left"===t?d(m,"left",s):"center"===t?d(e,"center",s):"right"===t?d(u,"right",s):null)})});exports.NavBarStandAlone=n;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { NabVar } from './navBar.js';
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{j as s}from"../../_virtual/jsx-runtime.js";import{forwardRef as a}from"react";import{useClassName as o}from"../../lib/hooks/useClassName/useClassName.js";import{NavBarStandAlone as r}from"./navBarStandAlone.js";const t=a(({additionalClasses:a,variant:t,...e},i)=>{const m=o({additionalClassNames:a,component:"NAVBAR",variant:t});/* @__PURE__ */
|
|
2
|
-
return s.jsx(r,{ref:i,cssClasses:m,...e})});export{t as NabVar};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{j as t}from"../../_virtual/jsx-runtime.js";import{forwardRef as e}from"react";import{classNames as r}from"../../lib/utils/classNames/classNames.js";import{pickCustomAttributes as s}from"../../lib/utils/pickCustomAttributes/pickCustomAttributes.js";import{CustomComponent as i}from"../../lib/components/customComponent/customComponent.js";const o=e(({centerItems:e,component:o="div",cssClasses:n,direction:m="horizontal",focusOrder:c=["left","center","right"],leftItems:a,rightItems:l,...p},u)=>{const f=(e,r,s)=>/* @__PURE__ */t.jsx("div",{className:n?.itemcontainer,"data-position":r,children:e?.map((e,r)=>/* @__PURE__ */t.jsx("div",{children:e},`navbar-item-${r.toString()}`))},`${r}-${s?.toString()}`),b=s(p);/* @__PURE__ */
|
|
2
|
-
return t.jsx(i,{ref:u,className:r("kbt-navbar",m,n?.navbar),component:o,...b,children:c.map((t,r)=>"left"===t?f(a,"left",r):"center"===t?f(e,"center",r):"right"===t?f(l,"right",r):null)})});export{o as NavBarStandAlone};
|