@cloudwick/astral-ui 1.0.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/CONTRIBUTING.md +57 -0
- package/README.md +24 -0
- package/dist/components/accordion/accordionBody.d.ts +9 -0
- package/dist/components/accordion/accordionHeader.d.ts +9 -0
- package/dist/components/accordion/index.d.ts +37 -0
- package/dist/components/adpIcon/index.d.ts +61 -0
- package/dist/components/adpIcon/svgObjects.d.ts +246 -0
- package/dist/components/badge/index.d.ts +42 -0
- package/dist/components/breadcrumbs/breadcrumbItem.d.ts +28 -0
- package/dist/components/breadcrumbs/index.d.ts +27 -0
- package/dist/components/button/index.d.ts +46 -0
- package/dist/components/card/index.d.ts +13 -0
- package/dist/components/checkbox/index.d.ts +19 -0
- package/dist/components/checkboxGroup/index.d.ts +40 -0
- package/dist/components/datePicker/index.d.ts +10 -0
- package/dist/components/dropdown/dropdownItem.d.ts +13 -0
- package/dist/components/dropdown/dropdownToggle.d.ts +9 -0
- package/dist/components/dropdown/index.d.ts +35 -0
- package/dist/components/emptyState/emptyStateContent.d.ts +11 -0
- package/dist/components/emptyState/emptyStateCta.d.ts +11 -0
- package/dist/components/emptyState/index.d.ts +27 -0
- package/dist/components/loader/index.d.ts +28 -0
- package/dist/components/modal/index.d.ts +40 -0
- package/dist/components/modal/modalBody.d.ts +17 -0
- package/dist/components/modal/modalHeader.d.ts +13 -0
- package/dist/components/otp/index.d.ts +41 -0
- package/dist/components/otp/input.d.ts +12 -0
- package/dist/components/pagination/index.d.ts +32 -0
- package/dist/components/progress/index.d.ts +61 -0
- package/dist/components/radio/index.d.ts +15 -0
- package/dist/components/select/index.d.ts +72 -0
- package/dist/components/tabs/index.d.ts +69 -0
- package/dist/components/tabs/tab.d.ts +46 -0
- package/dist/components/textField/index.d.ts +43 -0
- package/dist/components/textarea/index.d.ts +24 -0
- package/dist/components/toast/index.d.ts +41 -0
- package/dist/components/toggle/index.d.ts +39 -0
- package/dist/components/tooltip/index.d.ts +59 -0
- package/dist/css/fonts.min.css +1 -0
- package/dist/css/index.min.css +2 -0
- package/dist/fonts/Inter/Inter_18pt-Bold.ttf +0 -0
- package/dist/fonts/Inter/Inter_18pt-BoldItalic.ttf +0 -0
- package/dist/fonts/Inter/Inter_18pt-Italic.ttf +0 -0
- package/dist/fonts/Inter/Inter_18pt-Medium.ttf +0 -0
- package/dist/fonts/Inter/Inter_18pt-MediumItalic.ttf +0 -0
- package/dist/fonts/Inter/Inter_18pt-Regular.ttf +0 -0
- package/dist/fonts/Inter/Inter_18pt-SemiBold.ttf +0 -0
- package/dist/fonts/Inter/Inter_18pt-SemiBoldItalic.ttf +0 -0
- package/dist/index.cjs.js +5 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.esm.js +5 -0
- package/package.json +131 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React, { RefObject } from "react";
|
|
2
|
+
import { IconType } from "../adpIcon";
|
|
3
|
+
export interface ToggleProps extends Omit<React.HTMLProps<HTMLInputElement>, "label" | "size"> {
|
|
4
|
+
/**
|
|
5
|
+
* id for the Toggle
|
|
6
|
+
*/
|
|
7
|
+
id?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Overwrite the styles by passing space separated class names
|
|
10
|
+
*/
|
|
11
|
+
className?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Size of the Toggle.
|
|
14
|
+
* @default md
|
|
15
|
+
*/
|
|
16
|
+
size?: "sm" | "md";
|
|
17
|
+
/**
|
|
18
|
+
* Regular static label.
|
|
19
|
+
*/
|
|
20
|
+
label?: React.ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* Passing boolean value to check or uncheck Toggle.
|
|
23
|
+
* @default false
|
|
24
|
+
*/
|
|
25
|
+
toggled?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Provide an optional icon for the toggled state of the component.
|
|
28
|
+
*/
|
|
29
|
+
toggledIcon?: IconType;
|
|
30
|
+
/**
|
|
31
|
+
* Provide an optional icon for the un-toggled state of the component.
|
|
32
|
+
*/
|
|
33
|
+
untoggledIcon?: IconType;
|
|
34
|
+
/**
|
|
35
|
+
* Pass a ref to the inner input element
|
|
36
|
+
*/
|
|
37
|
+
ref?: RefObject<HTMLInputElement>;
|
|
38
|
+
}
|
|
39
|
+
export declare const Toggle: React.ForwardRefExoticComponent<Omit<ToggleProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { Placement } from "@floating-ui/react";
|
|
3
|
+
type TooltipSizes = "sm" | "md";
|
|
4
|
+
export interface Props {
|
|
5
|
+
/**
|
|
6
|
+
* Title of the tooltip
|
|
7
|
+
*/
|
|
8
|
+
title?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Content of the tooltip
|
|
11
|
+
*/
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* The Reference element. The tooltip will appear on click of the element. Don't pass an Interactive element.
|
|
15
|
+
*/
|
|
16
|
+
trigger: ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* Size of the tooltip content container
|
|
19
|
+
* @default "sm"
|
|
20
|
+
*/
|
|
21
|
+
size?: TooltipSizes;
|
|
22
|
+
/**
|
|
23
|
+
* Placement of the tooltip
|
|
24
|
+
* @default "bottom-end"
|
|
25
|
+
*/
|
|
26
|
+
placement?: Placement;
|
|
27
|
+
/**
|
|
28
|
+
* Renders the tooltip on click
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
clickable?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Pass space separated class names in order to modify the tooltip styles
|
|
34
|
+
*/
|
|
35
|
+
className?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Pass classes in order to modify the trigger element styles
|
|
38
|
+
*/
|
|
39
|
+
triggerElementClassName?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Pass a Callback to be executed on click of the tooltip
|
|
42
|
+
*/
|
|
43
|
+
onTriggerClick?: () => void;
|
|
44
|
+
/**
|
|
45
|
+
* Pass boolean in order to render the tooltip inside the body element
|
|
46
|
+
*/
|
|
47
|
+
renderOutSidePortal?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* aria-label for the Trigger
|
|
50
|
+
*/
|
|
51
|
+
triggerAriaLabel?: string;
|
|
52
|
+
/**
|
|
53
|
+
* If disabled is true, the onTriggerClick callback won't be fired. If clickable is set to true then the popup won't be visible on click.
|
|
54
|
+
* @default false
|
|
55
|
+
*/
|
|
56
|
+
disabled?: boolean;
|
|
57
|
+
}
|
|
58
|
+
export declare function Tooltip({ title, children, trigger, size, placement, clickable, className, triggerElementClassName, onTriggerClick, renderOutSidePortal, triggerAriaLabel, disabled }: Props): JSX.Element | null;
|
|
59
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@font-face{font-family:inter-regular;src:url(../fonts/Inter/Inter_18pt-Regular.ttf) format("truetype");font-display:swap}@font-face{font-family:inter-italic;src:url(../fonts/Inter/Inter_18pt-Italic.ttf) format("truetype");font-display:swap}@font-face{font-family:inter-medium;src:url(../fonts/Inter/Inter_18pt-Medium.ttf) format("truetype");font-display:swap}@font-face{font-family:inter-medium-italic;src:url(../fonts/Inter/Inter_18pt-MediumItalic.ttf) format("truetype");font-display:swap}@font-face{font-family:inter-semibold;src:url(../fonts/Inter/Inter_18pt-SemiBold.ttf) format("truetype");font-display:swap}@font-face{font-family:inter-semibold-italic;src:url(../fonts/Inter/Inter_18pt-SemiBoldItalic.ttf) format("truetype");font-display:swap}@font-face{font-family:inter-bold;src:url(../fonts/Inter/Inter_18pt-Bold.ttf) format("truetype");font-display:swap}@font-face{font-family:inter-bold-italic;src:url(../fonts/Inter/Inter_18pt-BoldItalic.ttf) format("truetype");font-display:swap}
|