@udixio/ui-react 0.3.0
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/CHANGELOG.md +47 -0
- package/LICENSE +202 -0
- package/README.md +7 -0
- package/index.d.ts +2 -0
- package/index.d.ts.map +1 -0
- package/index.js +10841 -0
- package/lib/components/Button.d.ts +7 -0
- package/lib/components/Button.d.ts.map +1 -0
- package/lib/components/Card.d.ts +4 -0
- package/lib/components/Card.d.ts.map +1 -0
- package/lib/components/Carousel.d.ts +4 -0
- package/lib/components/Carousel.d.ts.map +1 -0
- package/lib/components/CarouselItem.d.ts +5 -0
- package/lib/components/CarouselItem.d.ts.map +1 -0
- package/lib/components/Divided.d.ts +4 -0
- package/lib/components/Divided.d.ts.map +1 -0
- package/lib/components/Fab.d.ts +4 -0
- package/lib/components/Fab.d.ts.map +1 -0
- package/lib/components/IconButton.d.ts +5 -0
- package/lib/components/IconButton.d.ts.map +1 -0
- package/lib/components/NavigationRail.d.ts +4 -0
- package/lib/components/NavigationRail.d.ts.map +1 -0
- package/lib/components/NavigationRailItem.d.ts +7 -0
- package/lib/components/NavigationRailItem.d.ts.map +1 -0
- package/lib/components/ProgressIndicator.d.ts +4 -0
- package/lib/components/ProgressIndicator.d.ts.map +1 -0
- package/lib/components/Slider.d.ts +4 -0
- package/lib/components/Slider.d.ts.map +1 -0
- package/lib/components/Snackbar.d.ts +4 -0
- package/lib/components/Snackbar.d.ts.map +1 -0
- package/lib/components/Switch.d.ts +4 -0
- package/lib/components/Switch.d.ts.map +1 -0
- package/lib/components/Tab.d.ts +4 -0
- package/lib/components/Tab.d.ts.map +1 -0
- package/lib/components/Tabs.d.ts +4 -0
- package/lib/components/Tabs.d.ts.map +1 -0
- package/lib/components/TextField.d.ts +4 -0
- package/lib/components/TextField.d.ts.map +1 -0
- package/lib/components/ToolTip.d.ts +4 -0
- package/lib/components/ToolTip.d.ts.map +1 -0
- package/lib/components/index.d.ts +20 -0
- package/lib/components/index.d.ts.map +1 -0
- package/lib/effects/SyncedFixedWrapper.d.ts +8 -0
- package/lib/effects/SyncedFixedWrapper.d.ts.map +1 -0
- package/lib/effects/custom-scroll/custom-scroll.effect.d.ts +4 -0
- package/lib/effects/custom-scroll/custom-scroll.effect.d.ts.map +1 -0
- package/lib/effects/custom-scroll/custom-scroll.interface.d.ts +25 -0
- package/lib/effects/custom-scroll/custom-scroll.interface.d.ts.map +1 -0
- package/lib/effects/custom-scroll/custom-scroll.style.d.ts +26 -0
- package/lib/effects/custom-scroll/custom-scroll.style.d.ts.map +1 -0
- package/lib/effects/custom-scroll/index.d.ts +4 -0
- package/lib/effects/custom-scroll/index.d.ts.map +1 -0
- package/lib/effects/index.d.ts +5 -0
- package/lib/effects/index.d.ts.map +1 -0
- package/lib/effects/ripple/RippleEffect.d.ts +8 -0
- package/lib/effects/ripple/RippleEffect.d.ts.map +1 -0
- package/lib/effects/ripple/index.d.ts +2 -0
- package/lib/effects/ripple/index.d.ts.map +1 -0
- package/lib/effects/smooth-scroll.effect.d.ts +8 -0
- package/lib/effects/smooth-scroll.effect.d.ts.map +1 -0
- package/lib/icon/icon.d.ts +10 -0
- package/lib/icon/icon.d.ts.map +1 -0
- package/lib/icon/index.d.ts +2 -0
- package/lib/icon/index.d.ts.map +1 -0
- package/lib/index.d.ts +7 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/interfaces/button.interface.d.ts +36 -0
- package/lib/interfaces/button.interface.d.ts.map +1 -0
- package/lib/interfaces/card.interface.d.ts +9 -0
- package/lib/interfaces/card.interface.d.ts.map +1 -0
- package/lib/interfaces/carousel-item.interface.d.ts +11 -0
- package/lib/interfaces/carousel-item.interface.d.ts.map +1 -0
- package/lib/interfaces/carousel.interface.d.ts +16 -0
- package/lib/interfaces/carousel.interface.d.ts.map +1 -0
- package/lib/interfaces/divider.interface.d.ts +8 -0
- package/lib/interfaces/divider.interface.d.ts.map +1 -0
- package/lib/interfaces/fab.interface.d.ts +18 -0
- package/lib/interfaces/fab.interface.d.ts.map +1 -0
- package/lib/interfaces/icon-button.interface.d.ts +31 -0
- package/lib/interfaces/icon-button.interface.d.ts.map +1 -0
- package/lib/interfaces/index.d.ts +17 -0
- package/lib/interfaces/index.d.ts.map +1 -0
- package/lib/interfaces/navigation-rail-item.interface.d.ts +37 -0
- package/lib/interfaces/navigation-rail-item.interface.d.ts.map +1 -0
- package/lib/interfaces/navigation-rail.interface.d.ts +37 -0
- package/lib/interfaces/navigation-rail.interface.d.ts.map +1 -0
- package/lib/interfaces/progress-indicator.interface.d.ts +30 -0
- package/lib/interfaces/progress-indicator.interface.d.ts.map +1 -0
- package/lib/interfaces/slider.interface.d.ts +28 -0
- package/lib/interfaces/slider.interface.d.ts.map +1 -0
- package/lib/interfaces/snackbar.interface.d.ts +15 -0
- package/lib/interfaces/snackbar.interface.d.ts.map +1 -0
- package/lib/interfaces/switch.interface.d.ts +16 -0
- package/lib/interfaces/switch.interface.d.ts.map +1 -0
- package/lib/interfaces/tab.interface.d.ts +29 -0
- package/lib/interfaces/tab.interface.d.ts.map +1 -0
- package/lib/interfaces/tabs.interface.d.ts +21 -0
- package/lib/interfaces/tabs.interface.d.ts.map +1 -0
- package/lib/interfaces/text-field.interface.d.ts +46 -0
- package/lib/interfaces/text-field.interface.d.ts.map +1 -0
- package/lib/interfaces/tooltip.interface.d.ts +24 -0
- package/lib/interfaces/tooltip.interface.d.ts.map +1 -0
- package/lib/styles/button.style.d.ts +55 -0
- package/lib/styles/button.style.d.ts.map +1 -0
- package/lib/styles/card.style.d.ts +11 -0
- package/lib/styles/card.style.d.ts.map +1 -0
- package/lib/styles/carousel-item.style.d.ts +13 -0
- package/lib/styles/carousel-item.style.d.ts.map +1 -0
- package/lib/styles/carousel.style.d.ts +23 -0
- package/lib/styles/carousel.style.d.ts.map +1 -0
- package/lib/styles/divider.style.d.ts +9 -0
- package/lib/styles/divider.style.d.ts.map +1 -0
- package/lib/styles/fab.style.d.ts +39 -0
- package/lib/styles/fab.style.d.ts.map +1 -0
- package/lib/styles/icon-button.style.d.ts +63 -0
- package/lib/styles/icon-button.style.d.ts.map +1 -0
- package/lib/styles/index.d.ts +16 -0
- package/lib/styles/index.d.ts.map +1 -0
- package/lib/styles/navigation-rail-item.style.d.ts +39 -0
- package/lib/styles/navigation-rail-item.style.d.ts.map +1 -0
- package/lib/styles/navigation-rail.style.d.ts +42 -0
- package/lib/styles/navigation-rail.style.d.ts.map +1 -0
- package/lib/styles/progress-indicator.style.d.ts +17 -0
- package/lib/styles/progress-indicator.style.d.ts.map +1 -0
- package/lib/styles/slider.style.d.ts +28 -0
- package/lib/styles/slider.style.d.ts.map +1 -0
- package/lib/styles/snackbar.style.d.ts +17 -0
- package/lib/styles/snackbar.style.d.ts.map +1 -0
- package/lib/styles/switch.style.d.ts +19 -0
- package/lib/styles/switch.style.d.ts.map +1 -0
- package/lib/styles/tab.style.d.ts +35 -0
- package/lib/styles/tab.style.d.ts.map +1 -0
- package/lib/styles/tabs.style.d.ts +23 -0
- package/lib/styles/tabs.style.d.ts.map +1 -0
- package/lib/styles/text-field.style.d.ts +40 -0
- package/lib/styles/text-field.style.d.ts.map +1 -0
- package/lib/styles/tooltip.style.d.ts +36 -0
- package/lib/styles/tooltip.style.d.ts.map +1 -0
- package/lib/utils/component-helper.d.ts +125 -0
- package/lib/utils/component-helper.d.ts.map +1 -0
- package/lib/utils/component.d.ts +28 -0
- package/lib/utils/component.d.ts.map +1 -0
- package/lib/utils/index.d.ts +8 -0
- package/lib/utils/index.d.ts.map +1 -0
- package/lib/utils/string.d.ts +2 -0
- package/lib/utils/string.d.ts.map +1 -0
- package/lib/utils/styles/classnames.d.ts +4 -0
- package/lib/utils/styles/classnames.d.ts.map +1 -0
- package/lib/utils/styles/get-classname.d.ts +18 -0
- package/lib/utils/styles/get-classname.d.ts.map +1 -0
- package/lib/utils/styles/index.d.ts +4 -0
- package/lib/utils/styles/index.d.ts.map +1 -0
- package/package.json +26 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { NavigationRailItemInterface } from '../interfaces';
|
|
2
|
+
export declare const navigationRailItemStyle: (states: (({
|
|
3
|
+
selected: any;
|
|
4
|
+
variant: any;
|
|
5
|
+
label: any;
|
|
6
|
+
icon: any;
|
|
7
|
+
iconSelected: any;
|
|
8
|
+
selectedItem: any;
|
|
9
|
+
setSelectedItem: any;
|
|
10
|
+
onItemSelected: any;
|
|
11
|
+
index: any;
|
|
12
|
+
transition: any;
|
|
13
|
+
extendedOnly: any;
|
|
14
|
+
isExtended: any;
|
|
15
|
+
href: any;
|
|
16
|
+
} | {
|
|
17
|
+
selected: any;
|
|
18
|
+
variant: any;
|
|
19
|
+
label: any;
|
|
20
|
+
icon: any;
|
|
21
|
+
iconSelected: any;
|
|
22
|
+
selectedItem: any;
|
|
23
|
+
setSelectedItem: any;
|
|
24
|
+
onItemSelected: any;
|
|
25
|
+
index: any;
|
|
26
|
+
transition: any;
|
|
27
|
+
extendedOnly: any;
|
|
28
|
+
isExtended: any;
|
|
29
|
+
href: any;
|
|
30
|
+
}) & ((import('..').NavProps & {
|
|
31
|
+
href?: string;
|
|
32
|
+
}) | (import('..').NavProps & {
|
|
33
|
+
href?: never;
|
|
34
|
+
}))) & {
|
|
35
|
+
isSelected: boolean;
|
|
36
|
+
} & {
|
|
37
|
+
className: string | import('..').ClassNameComponent<NavigationRailItemInterface> | undefined;
|
|
38
|
+
}) => Record<"container" | "label" | "stateLayer" | "icon" | "navigationRailItem", string>;
|
|
39
|
+
//# sourceMappingURL=navigation-rail-item.style.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation-rail-item.style.d.ts","sourceRoot":"","sources":["../../../../../packages/ui-react/src/lib/styles/navigation-rail-item.style.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,2BAA2B,EAAE,MAAM,eAAe,CAAC;AAE5D,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0FAwCjC,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { NavigationRailInterface } from '../interfaces/navigation-rail.interface';
|
|
2
|
+
export declare const navigationRailStyle: (states: {
|
|
3
|
+
variant: any;
|
|
4
|
+
onItemSelected: any;
|
|
5
|
+
children: any;
|
|
6
|
+
selectedItem: any;
|
|
7
|
+
setSelectedItem: any;
|
|
8
|
+
extended: any;
|
|
9
|
+
alignment: any;
|
|
10
|
+
menu: any;
|
|
11
|
+
onExtendedChange: any;
|
|
12
|
+
transition: any;
|
|
13
|
+
} & {
|
|
14
|
+
variant?: "standard" | "modal";
|
|
15
|
+
onItemSelected?: (args: {
|
|
16
|
+
index: number;
|
|
17
|
+
} & Pick<import('..').ReactProps<import('..').NavigationRailItemInterface>, "label" | "icon"> & {
|
|
18
|
+
ref: import('react').RefObject<any>;
|
|
19
|
+
}) => void;
|
|
20
|
+
children: import('react').ReactNode;
|
|
21
|
+
selectedItem?: number | null;
|
|
22
|
+
setSelectedItem?: import('react').Dispatch<import('react').SetStateAction<number | null>>;
|
|
23
|
+
extended?: boolean;
|
|
24
|
+
alignment?: "middle" | "top";
|
|
25
|
+
menu?: {
|
|
26
|
+
closed: {
|
|
27
|
+
icon: import('@fortawesome/fontawesome-svg-core').IconDefinition;
|
|
28
|
+
label: string;
|
|
29
|
+
};
|
|
30
|
+
opened: {
|
|
31
|
+
icon: import('@fortawesome/fontawesome-svg-core').IconDefinition;
|
|
32
|
+
label: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
onExtendedChange?: (extended: boolean) => void;
|
|
36
|
+
transition?: import('motion').Transition;
|
|
37
|
+
} & {
|
|
38
|
+
isExtended?: boolean;
|
|
39
|
+
} & {
|
|
40
|
+
className: string | import('..').ClassNameComponent<NavigationRailInterface> | undefined;
|
|
41
|
+
}) => Record<"header" | "navigationRail" | "menuIcon" | "segments", string>;
|
|
42
|
+
//# sourceMappingURL=navigation-rail.style.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation-rail.style.d.ts","sourceRoot":"","sources":["../../../../../packages/ui-react/src/lib/styles/navigation-rail.style.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAElF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2EAgB/B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ProgressIndicatorInterface } from '../interfaces/progress-indicator.interface';
|
|
2
|
+
export declare const progressIndicatorStyle: (states: {
|
|
3
|
+
value: any;
|
|
4
|
+
transitionDuration: any;
|
|
5
|
+
variant: any;
|
|
6
|
+
minHeight: any;
|
|
7
|
+
} & {
|
|
8
|
+
value?: number;
|
|
9
|
+
transitionDuration?: number;
|
|
10
|
+
variant?: import('..').ProgressIndicatorVariant;
|
|
11
|
+
minHeight?: number;
|
|
12
|
+
} & {
|
|
13
|
+
isVisible: boolean;
|
|
14
|
+
} & {
|
|
15
|
+
className: string | import('..').ClassNameComponent<ProgressIndicatorInterface> | undefined;
|
|
16
|
+
}) => Record<"track" | "stop" | "progressIndicator" | "activeIndicator", string>;
|
|
17
|
+
//# sourceMappingURL=progress-indicator.style.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress-indicator.style.d.ts","sourceRoot":"","sources":["../../../../../packages/ui-react/src/lib/styles/progress-indicator.style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AAGxF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;gFA0BhC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { SliderInterface } from '../interfaces/slider.interface';
|
|
2
|
+
export declare const sliderStyle: (states: {
|
|
3
|
+
value: any;
|
|
4
|
+
name: any;
|
|
5
|
+
onChange: any;
|
|
6
|
+
valueFormatter: any;
|
|
7
|
+
step: any;
|
|
8
|
+
min: any;
|
|
9
|
+
max: any;
|
|
10
|
+
marks: any;
|
|
11
|
+
} & {
|
|
12
|
+
value?: number;
|
|
13
|
+
name: string;
|
|
14
|
+
onChange?: (value: number) => void;
|
|
15
|
+
valueFormatter?: (value: number) => string | number;
|
|
16
|
+
step?: number;
|
|
17
|
+
min?: number;
|
|
18
|
+
max?: number;
|
|
19
|
+
marks?: {
|
|
20
|
+
value: number;
|
|
21
|
+
label?: string;
|
|
22
|
+
}[];
|
|
23
|
+
} & {
|
|
24
|
+
isChanging: boolean;
|
|
25
|
+
} & {
|
|
26
|
+
className: string | import('..').ClassNameComponent<SliderInterface> | undefined;
|
|
27
|
+
}) => Record<"slider" | "dot" | "activeTrack" | "handle" | "inactiveTrack" | "valueIndicator", string>;
|
|
28
|
+
//# sourceMappingURL=slider.style.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slider.style.d.ts","sourceRoot":"","sources":["../../../../../packages/ui-react/src/lib/styles/slider.style.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAEjE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;aAIyB,CAAC;;;;;;sGAmBjD,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SnackbarInterface } from '../interfaces/snackbar.interface';
|
|
2
|
+
export declare const snackbarStyle: (states: {
|
|
3
|
+
duration: any;
|
|
4
|
+
onClose: any;
|
|
5
|
+
supportingText: any;
|
|
6
|
+
closeIcon: any;
|
|
7
|
+
} & {
|
|
8
|
+
duration?: number;
|
|
9
|
+
onClose?: () => void;
|
|
10
|
+
supportingText: string;
|
|
11
|
+
closeIcon?: import('@fortawesome/fontawesome-svg-core').IconDefinition;
|
|
12
|
+
} & {
|
|
13
|
+
isVisible: boolean;
|
|
14
|
+
} & {
|
|
15
|
+
className: string | import('..').ClassNameComponent<SnackbarInterface> | undefined;
|
|
16
|
+
}) => Record<"container" | "icon" | "snackbar" | "supportingText" | "action", string>;
|
|
17
|
+
//# sourceMappingURL=snackbar.style.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snackbar.style.d.ts","sourceRoot":"","sources":["../../../../../packages/ui-react/src/lib/styles/snackbar.style.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAErE,eAAO,MAAM,aAAa;;;;;;;;;;;;;;qFAUzB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SwitchInterface } from '../interfaces/switch.interface';
|
|
2
|
+
export declare const switchStyle: (states: {
|
|
3
|
+
selected: any;
|
|
4
|
+
activeIcon: any;
|
|
5
|
+
inactiveIcon: any;
|
|
6
|
+
disabled: any;
|
|
7
|
+
onChange: any;
|
|
8
|
+
} & {
|
|
9
|
+
selected?: boolean;
|
|
10
|
+
activeIcon?: import('@fortawesome/fontawesome-svg-core').IconDefinition;
|
|
11
|
+
inactiveIcon?: import('@fortawesome/fontawesome-svg-core').IconDefinition;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
onChange?: (checked: boolean) => void;
|
|
14
|
+
} & {
|
|
15
|
+
isSelected: boolean;
|
|
16
|
+
} & {
|
|
17
|
+
className: string | import('..').ClassNameComponent<SwitchInterface> | undefined;
|
|
18
|
+
}) => Record<"switch" | "icon" | "handle" | "handleContainer" | "handleStateLayer", string>;
|
|
19
|
+
//# sourceMappingURL=switch.style.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switch.style.d.ts","sourceRoot":"","sources":["../../../../../packages/ui-react/src/lib/styles/switch.style.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAEjE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;2FA+CvB,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { TabInterface } from '../interfaces/tab.interface';
|
|
2
|
+
export declare const tabStyle: (states: (({
|
|
3
|
+
selected: any;
|
|
4
|
+
variant: any;
|
|
5
|
+
label: any;
|
|
6
|
+
icon: any;
|
|
7
|
+
selectedTab: any;
|
|
8
|
+
setSelectedTab: any;
|
|
9
|
+
tabsId: any;
|
|
10
|
+
onTabSelected: any;
|
|
11
|
+
index: any;
|
|
12
|
+
scrollable: any;
|
|
13
|
+
href: any;
|
|
14
|
+
} | {
|
|
15
|
+
selected: any;
|
|
16
|
+
variant: any;
|
|
17
|
+
label: any;
|
|
18
|
+
icon: any;
|
|
19
|
+
selectedTab: any;
|
|
20
|
+
setSelectedTab: any;
|
|
21
|
+
tabsId: any;
|
|
22
|
+
onTabSelected: any;
|
|
23
|
+
index: any;
|
|
24
|
+
scrollable: any;
|
|
25
|
+
href: any;
|
|
26
|
+
}) & ((import('..').TabProps & {
|
|
27
|
+
href?: string;
|
|
28
|
+
}) | (import('..').TabProps & {
|
|
29
|
+
href?: never;
|
|
30
|
+
}))) & {
|
|
31
|
+
isSelected: boolean;
|
|
32
|
+
} & {
|
|
33
|
+
className: string | import('..').ClassNameComponent<TabInterface> | undefined;
|
|
34
|
+
}) => Record<"content" | "label" | "stateLayer" | "icon" | "tab" | "underline", string>;
|
|
35
|
+
//# sourceMappingURL=tab.style.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tab.style.d.ts","sourceRoot":"","sources":["../../../../../packages/ui-react/src/lib/styles/tab.style.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAG3D,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uFA+DpB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { TabsInterface } from '../interfaces/tabs.interface';
|
|
2
|
+
export declare const tabsStyle: (states: {
|
|
3
|
+
variant: any;
|
|
4
|
+
onTabSelected: any;
|
|
5
|
+
children: any;
|
|
6
|
+
selectedTab: any;
|
|
7
|
+
setSelectedTab: any;
|
|
8
|
+
scrollable: any;
|
|
9
|
+
} & {
|
|
10
|
+
variant?: import('..').TabsVariant;
|
|
11
|
+
onTabSelected?: (args: {
|
|
12
|
+
index: number;
|
|
13
|
+
} & Pick<import('..').TabProps, "label" | "icon"> & {
|
|
14
|
+
ref: import('react').RefObject<any>;
|
|
15
|
+
}) => void;
|
|
16
|
+
children: import('react').ReactNode;
|
|
17
|
+
selectedTab?: number | null;
|
|
18
|
+
setSelectedTab?: import('react').Dispatch<import('react').SetStateAction<number | null>>;
|
|
19
|
+
scrollable?: boolean;
|
|
20
|
+
} & {
|
|
21
|
+
className: string | import('..').ClassNameComponent<TabsInterface> | undefined;
|
|
22
|
+
}) => Record<"tabs", string>;
|
|
23
|
+
//# sourceMappingURL=tabs.style.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.style.d.ts","sourceRoot":"","sources":["../../../../../packages/ui-react/src/lib/styles/tabs.style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAG7D,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;4BASrB,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TextFieldInterface } from '../interfaces/text-field.interface';
|
|
3
|
+
export declare const textFieldStyle: (states: {
|
|
4
|
+
placeholder: any;
|
|
5
|
+
name: any;
|
|
6
|
+
label: any;
|
|
7
|
+
disabled: any;
|
|
8
|
+
errorText: any;
|
|
9
|
+
supportingText: any;
|
|
10
|
+
trailingIcon: any;
|
|
11
|
+
leadingIcon: any;
|
|
12
|
+
onChange: any;
|
|
13
|
+
showSupportingText: any;
|
|
14
|
+
suffix: any;
|
|
15
|
+
value: any;
|
|
16
|
+
variant: any;
|
|
17
|
+
type: any;
|
|
18
|
+
autoComplete: any;
|
|
19
|
+
textLine: any;
|
|
20
|
+
} & {
|
|
21
|
+
placeholder?: string;
|
|
22
|
+
name: string;
|
|
23
|
+
label: string;
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
errorText?: string | null;
|
|
26
|
+
supportingText?: string;
|
|
27
|
+
trailingIcon?: React.ReactElement<typeof import('..').IconButton> | import('@fortawesome/fontawesome-svg-core').IconDefinition;
|
|
28
|
+
leadingIcon?: React.ReactElement<typeof import('..').IconButton> | import('@fortawesome/fontawesome-svg-core').IconDefinition;
|
|
29
|
+
onChange?: (value: string) => void;
|
|
30
|
+
showSupportingText?: boolean;
|
|
31
|
+
suffix?: string;
|
|
32
|
+
value: string;
|
|
33
|
+
variant?: import('..').TextFieldVariant;
|
|
34
|
+
type?: "text" | "password" | "number";
|
|
35
|
+
autoComplete?: "on" | "off" | string;
|
|
36
|
+
textLine?: "singleLine" | "multiLine" | "textAreas";
|
|
37
|
+
} & import('..').TextFieldStates & {
|
|
38
|
+
className: string | import('..').ClassNameComponent<TextFieldInterface> | undefined;
|
|
39
|
+
}) => Record<"content" | "input" | "label" | "stateLayer" | "activeIndicator" | "supportingText" | "textField" | "leadingIcon" | "trailingIcon" | "suffix", string>;
|
|
40
|
+
//# sourceMappingURL=text-field.style.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-field.style.d.ts","sourceRoot":"","sources":["../../../../../packages/ui-react/src/lib/styles/text-field.style.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAGxE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mKAkG1B,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ToolTipInterface } from '../interfaces/tooltip.interface';
|
|
2
|
+
export declare const toolStyle: (states: ({
|
|
3
|
+
variant: any;
|
|
4
|
+
title: any;
|
|
5
|
+
text: any;
|
|
6
|
+
buttons: any;
|
|
7
|
+
position: any;
|
|
8
|
+
trigger: any;
|
|
9
|
+
children: any;
|
|
10
|
+
targetRef: any;
|
|
11
|
+
} | {
|
|
12
|
+
variant: any;
|
|
13
|
+
title: any;
|
|
14
|
+
text: any;
|
|
15
|
+
buttons: any;
|
|
16
|
+
position: any;
|
|
17
|
+
trigger: any;
|
|
18
|
+
children: any;
|
|
19
|
+
targetRef: any;
|
|
20
|
+
}) & (({
|
|
21
|
+
variant?: "plain" | "rich";
|
|
22
|
+
title?: string;
|
|
23
|
+
text: string;
|
|
24
|
+
buttons?: import('..').ReactProps<import('..').ButtonInterface> | import('..').ReactProps<import('..').ButtonInterface>[];
|
|
25
|
+
position?: "top" | "bottom" | "left" | "right" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
26
|
+
trigger?: ("click" | "focus" | "hover" | null) | ("click" | "focus" | "hover" | null)[];
|
|
27
|
+
} & ({
|
|
28
|
+
children: import('react').ReactNode;
|
|
29
|
+
targetRef?: never;
|
|
30
|
+
} | {
|
|
31
|
+
children?: never;
|
|
32
|
+
targetRef: import('react').RefObject<any>;
|
|
33
|
+
})) & {
|
|
34
|
+
className: string | import('..').ClassNameComponent<ToolTipInterface> | undefined;
|
|
35
|
+
})) => Record<"container" | "supportingText" | "toolTip" | "subHead" | "actions", string>;
|
|
36
|
+
//# sourceMappingURL=tooltip.style.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.style.d.ts","sourceRoot":"","sources":["../../../../../packages/ui-react/src/lib/styles/tooltip.style.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yFAiCrB,CAAC"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { StyleProps } from './styles';
|
|
2
|
+
import { ComponentInterface } from './component';
|
|
3
|
+
export interface HTMLElements {
|
|
4
|
+
a: HTMLAnchorElement;
|
|
5
|
+
abbr: HTMLElement;
|
|
6
|
+
address: HTMLElement;
|
|
7
|
+
area: HTMLAreaElement;
|
|
8
|
+
article: HTMLElement;
|
|
9
|
+
aside: HTMLElement;
|
|
10
|
+
audio: HTMLAudioElement;
|
|
11
|
+
b: HTMLElement;
|
|
12
|
+
base: HTMLBaseElement;
|
|
13
|
+
bdi: HTMLElement;
|
|
14
|
+
bdo: HTMLElement;
|
|
15
|
+
big: HTMLElement;
|
|
16
|
+
blockquote: HTMLQuoteElement;
|
|
17
|
+
body: HTMLBodyElement;
|
|
18
|
+
br: HTMLBRElement;
|
|
19
|
+
button: HTMLButtonElement;
|
|
20
|
+
canvas: HTMLCanvasElement;
|
|
21
|
+
caption: HTMLElement;
|
|
22
|
+
center: HTMLElement;
|
|
23
|
+
cite: HTMLElement;
|
|
24
|
+
code: HTMLElement;
|
|
25
|
+
col: HTMLTableColElement;
|
|
26
|
+
colgroup: HTMLTableColElement;
|
|
27
|
+
data: HTMLDataElement;
|
|
28
|
+
datalist: HTMLDataListElement;
|
|
29
|
+
dd: HTMLElement;
|
|
30
|
+
del: HTMLModElement;
|
|
31
|
+
details: HTMLDetailsElement;
|
|
32
|
+
dfn: HTMLElement;
|
|
33
|
+
dialog: HTMLDialogElement;
|
|
34
|
+
div: HTMLDivElement;
|
|
35
|
+
dl: HTMLDListElement;
|
|
36
|
+
dt: HTMLElement;
|
|
37
|
+
em: HTMLElement;
|
|
38
|
+
embed: HTMLEmbedElement;
|
|
39
|
+
fieldset: HTMLFieldSetElement;
|
|
40
|
+
figcaption: HTMLElement;
|
|
41
|
+
figure: HTMLElement;
|
|
42
|
+
footer: HTMLElement;
|
|
43
|
+
form: HTMLFormElement;
|
|
44
|
+
h1: HTMLHeadingElement;
|
|
45
|
+
h2: HTMLHeadingElement;
|
|
46
|
+
h3: HTMLHeadingElement;
|
|
47
|
+
h4: HTMLHeadingElement;
|
|
48
|
+
h5: HTMLHeadingElement;
|
|
49
|
+
h6: HTMLHeadingElement;
|
|
50
|
+
head: HTMLHeadElement;
|
|
51
|
+
header: HTMLElement;
|
|
52
|
+
hgroup: HTMLElement;
|
|
53
|
+
hr: HTMLHRElement;
|
|
54
|
+
html: HTMLHtmlElement;
|
|
55
|
+
i: HTMLElement;
|
|
56
|
+
iframe: HTMLIFrameElement;
|
|
57
|
+
img: HTMLImageElement;
|
|
58
|
+
input: HTMLInputElement;
|
|
59
|
+
ins: HTMLModElement;
|
|
60
|
+
kbd: HTMLElement;
|
|
61
|
+
keygen: HTMLElement;
|
|
62
|
+
label: HTMLLabelElement;
|
|
63
|
+
legend: HTMLLegendElement;
|
|
64
|
+
li: HTMLLIElement;
|
|
65
|
+
link: HTMLLinkElement;
|
|
66
|
+
main: HTMLElement;
|
|
67
|
+
map: HTMLMapElement;
|
|
68
|
+
mark: HTMLElement;
|
|
69
|
+
menu: HTMLElement;
|
|
70
|
+
menuitem: HTMLElement;
|
|
71
|
+
meta: HTMLMetaElement;
|
|
72
|
+
meter: HTMLMeterElement;
|
|
73
|
+
nav: HTMLElement;
|
|
74
|
+
noindex: HTMLElement;
|
|
75
|
+
noscript: HTMLElement;
|
|
76
|
+
object: HTMLObjectElement;
|
|
77
|
+
ol: HTMLOListElement;
|
|
78
|
+
optgroup: HTMLOptGroupElement;
|
|
79
|
+
option: HTMLOptionElement;
|
|
80
|
+
output: HTMLOutputElement;
|
|
81
|
+
p: HTMLParagraphElement;
|
|
82
|
+
param: HTMLParamElement;
|
|
83
|
+
picture: HTMLElement;
|
|
84
|
+
pre: HTMLPreElement;
|
|
85
|
+
progress: HTMLProgressElement;
|
|
86
|
+
q: HTMLQuoteElement;
|
|
87
|
+
rp: HTMLElement;
|
|
88
|
+
rt: HTMLElement;
|
|
89
|
+
ruby: HTMLElement;
|
|
90
|
+
s: HTMLElement;
|
|
91
|
+
samp: HTMLElement;
|
|
92
|
+
search: HTMLElement;
|
|
93
|
+
slot: HTMLSlotElement;
|
|
94
|
+
script: HTMLScriptElement;
|
|
95
|
+
section: HTMLElement;
|
|
96
|
+
select: HTMLSelectElement;
|
|
97
|
+
small: HTMLElement;
|
|
98
|
+
source: HTMLSourceElement;
|
|
99
|
+
span: HTMLSpanElement;
|
|
100
|
+
strong: HTMLElement;
|
|
101
|
+
style: HTMLStyleElement;
|
|
102
|
+
sub: HTMLElement;
|
|
103
|
+
summary: HTMLElement;
|
|
104
|
+
sup: HTMLElement;
|
|
105
|
+
table: HTMLTableElement;
|
|
106
|
+
template: HTMLTemplateElement;
|
|
107
|
+
tbody: HTMLTableSectionElement;
|
|
108
|
+
td: HTMLTableDataCellElement;
|
|
109
|
+
textarea: HTMLTextAreaElement;
|
|
110
|
+
tfoot: HTMLTableSectionElement;
|
|
111
|
+
th: HTMLTableHeaderCellElement;
|
|
112
|
+
thead: HTMLTableSectionElement;
|
|
113
|
+
time: HTMLTimeElement;
|
|
114
|
+
title: HTMLTitleElement;
|
|
115
|
+
tr: HTMLTableRowElement;
|
|
116
|
+
track: HTMLTrackElement;
|
|
117
|
+
u: HTMLElement;
|
|
118
|
+
ul: HTMLUListElement;
|
|
119
|
+
var: HTMLElement;
|
|
120
|
+
video: HTMLVideoElement;
|
|
121
|
+
wbr: HTMLElement;
|
|
122
|
+
webview: HTMLWebViewElement;
|
|
123
|
+
}
|
|
124
|
+
export type ComponentClassName<T extends ComponentInterface> = StyleProps<T>;
|
|
125
|
+
//# sourceMappingURL=component-helper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-helper.d.ts","sourceRoot":"","sources":["../../../../../packages/ui-react/src/lib/utils/component-helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEjD,MAAM,WAAW,YAAY;IAC3B,CAAC,EAAE,iBAAiB,CAAC;IACrB,IAAI,EAAE,WAAW,CAA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AM,MAAM,kBAAkB,CAAC,CAAC,SAAS,kBAAkB,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { ComponentClassName, HTMLElements } from './component-helper';
|
|
4
|
+
import { HTMLMotionProps } from 'motion/react';
|
|
5
|
+
export type ReactProps<T extends ComponentInterface> = Omit<JSX.IntrinsicElements[T['type']], keyof T['props'] | 'className'> & ComponentClassName<T> & {
|
|
6
|
+
ref?: React.RefObject<HTMLElements[T['type']] | null>;
|
|
7
|
+
} & T['props'];
|
|
8
|
+
export type MotionProps<T extends ComponentInterface> = ReactProps<T> & HTMLMotionProps<T['type']>;
|
|
9
|
+
export interface LinkInterface<Props> {
|
|
10
|
+
type: 'a';
|
|
11
|
+
props: Props & {
|
|
12
|
+
href?: string;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export interface ActionInterface<Props> {
|
|
16
|
+
type: 'button';
|
|
17
|
+
props: Props & {
|
|
18
|
+
href?: never;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export type ActionOrLink<Props> = LinkInterface<Props> | ActionInterface<Props>;
|
|
22
|
+
export interface ComponentInterface {
|
|
23
|
+
type: keyof HTMLElements;
|
|
24
|
+
props?: object;
|
|
25
|
+
states?: object;
|
|
26
|
+
elements: string[];
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../../packages/ui-react/src/lib/utils/component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,eA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mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../../../../packages/ui-react/src/lib/utils/string.ts"],"names":[],"mappings":"AAAA,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,UAQ9C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"classnames.d.ts","sourceRoot":"","sources":["../../../../../../packages/ui-react/src/lib/utils/styles/classnames.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,MAAM,CAAC;AA2CxC,eAAO,MAAM,UAAU,GAAI,GAAG,MAAM,UAAU,EAAE,WAE/C,CAAC;AACF,eAAO,MAAM,UAAU,GAAI,GAAG,MAAM,UAAU,EAAE,WAE/C,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ComponentInterface } from '../component';
|
|
2
|
+
type RequiredNullable<T> = {
|
|
3
|
+
[K in keyof T]-?: any;
|
|
4
|
+
};
|
|
5
|
+
export interface StyleProps<T extends ComponentInterface> {
|
|
6
|
+
className?: string | ClassNameComponent<T>;
|
|
7
|
+
}
|
|
8
|
+
export type ClassNameComponent<T extends ComponentInterface> = (states: T['states'] & T['props']) => Partial<Record<T['elements'][number], string>>;
|
|
9
|
+
export declare const getClassNames: <T extends ComponentInterface>(args: {
|
|
10
|
+
classNameList: (ClassNameComponent<T> | string | undefined)[];
|
|
11
|
+
default: T["elements"][0];
|
|
12
|
+
states: T["states"] & T["props"];
|
|
13
|
+
}) => Record<T["elements"][number], string>;
|
|
14
|
+
export declare const defaultClassNames: <T extends ComponentInterface>(element: T["elements"][0], defaultClassName: ClassNameComponent<T> | string) => (states: RequiredNullable<T["props"]> & T["props"] & T["states"] & {
|
|
15
|
+
className: ClassNameComponent<T> | string | undefined;
|
|
16
|
+
}) => Record<T["elements"][number], string>;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=get-classname.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-classname.d.ts","sourceRoot":"","sources":["../../../../../../packages/ui-react/src/lib/utils/styles/get-classname.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAIlD,KAAK,gBAAgB,CAAC,CAAC,IAAI;KACxB,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,GAAG;CACtB,CAAC;AAEF,MAAM,WAAW,UAAU,CAAC,CAAC,SAAS,kBAAkB;IACtD,SAAS,CAAC,EAAE,MAAM,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAAC;CAC5C;AAED,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,kBAAkB,IAAI,CAC7D,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,KAC7B,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;AAEpD,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,kBAAkB,EAAE,MAAM;IAChE,aAAa,EAAE,CAAC,kBAAkB,CAAC,CAAC,CAAC,GAAG,MAAM,GAAG,SAAS,CAAC,EAAE,CAAC;IAC9D,OAAO,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;IAC1B,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC;CAClC,KAAG,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,CAiCvC,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,CAAC,SAAS,kBAAkB,EAC5D,SAAS,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,EACzB,kBAAkB,kBAAkB,CAAC,CAAC,CAAC,GAAG,MAAM,MAG9C,QAAQ,gBAAgB,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,GAClC,CAAC,CAAC,OAAO,CAAC,GACV,CAAC,CAAC,QAAQ,CAAC,GAAG;IACZ,SAAS,EAAE,kBAAkB,CAAC,CAAC,CAAC,GAAG,MAAM,GAAG,SAAS,CAAC;CACvD,0CAON,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/ui-react/src/lib/utils/styles/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@udixio/ui-react",
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"main": "./index.js",
|
|
5
|
+
"types": "./index.d.ts",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"import": "./index.mjs",
|
|
10
|
+
"require": "./index.js"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"devDependencies": {
|
|
14
|
+
"@tailwindcss/vite": "^4.1.11",
|
|
15
|
+
"@udixio/theme": "0.0.1",
|
|
16
|
+
"@udixio/tailwind": "0.0.1"
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "https://github.com/Udixio/UI.git"
|
|
21
|
+
},
|
|
22
|
+
"publishConfig": {
|
|
23
|
+
"registry": "https://registry.npmjs.org/",
|
|
24
|
+
"access": "public"
|
|
25
|
+
}
|
|
26
|
+
}
|