@adsgency_npm/adsgency-ads-ui 0.1.0-alpha.1 → 0.1.0-alpha.3
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/README.md +3 -3
- package/dist/index.d.ts +57 -1
- package/dist/index.js +1006 -658
- package/package.json +12 -9
- package/dist/chunk-YJFQM6IB.js.map +0 -1
- package/dist/index.cjs +0 -4300
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -743
- package/dist/index.js.map +0 -1
- package/dist/tokens/designTokens.cjs +0 -94
- package/dist/tokens/designTokens.cjs.map +0 -1
- package/dist/tokens/designTokens.d.cts +0 -66
- package/dist/tokens/designTokens.js.map +0 -1
- package/dist/tokens/tailwindPreset.cjs +0 -140
- package/dist/tokens/tailwindPreset.cjs.map +0 -1
- package/dist/tokens/tailwindPreset.d.cts +0 -114
- package/dist/tokens/tailwindPreset.js.map +0 -1
package/README.md
CHANGED
|
@@ -44,14 +44,14 @@ import "@adsgency_npm/adsgency-ads-ui/styles.css";
|
|
|
44
44
|
Tailwind:
|
|
45
45
|
|
|
46
46
|
```js
|
|
47
|
-
|
|
47
|
+
import adsUiPreset from "@adsgency_npm/adsgency-ads-ui/tailwind-preset";
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
export default {
|
|
50
50
|
presets: [adsUiPreset],
|
|
51
51
|
content: [
|
|
52
52
|
"./app/**/*.{js,ts,jsx,tsx,mdx}",
|
|
53
53
|
"./components/**/*.{js,ts,jsx,tsx,mdx}",
|
|
54
|
-
"./node_modules/@adsgency_npm/adsgency-ads-ui/dist/**/*.
|
|
54
|
+
"./node_modules/@adsgency_npm/adsgency-ads-ui/dist/**/*.js",
|
|
55
55
|
],
|
|
56
56
|
};
|
|
57
57
|
```
|
package/dist/index.d.ts
CHANGED
|
@@ -4,8 +4,11 @@ import * as class_variance_authority from 'class-variance-authority';
|
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
5
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
6
6
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
7
|
+
import { DayPickerProps } from '@daypicker/react';
|
|
8
|
+
export { DateRange as AdsDateRange } from '@daypicker/react';
|
|
7
9
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
8
10
|
import * as _radix_ui_react_label from '@radix-ui/react-label';
|
|
11
|
+
import { LoaderCircle } from 'lucide-react';
|
|
9
12
|
import * as input_otp from 'input-otp';
|
|
10
13
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
11
14
|
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
@@ -178,6 +181,35 @@ interface AdsCheckboxProps extends PrimitiveCheckboxProps {
|
|
|
178
181
|
}
|
|
179
182
|
declare const AdsCheckbox: React$1.ForwardRefExoticComponent<AdsCheckboxProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
180
183
|
|
|
184
|
+
type CalendarSystem = "gregorian" | "persian" | "hijri";
|
|
185
|
+
type CalendarCellSize = "md" | "lg";
|
|
186
|
+
type CalendarProps = DayPickerProps & {
|
|
187
|
+
calendarSystem?: CalendarSystem;
|
|
188
|
+
cellSize?: CalendarCellSize;
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
type AdsCalendarProps = CalendarProps;
|
|
192
|
+
type AdsCalendarSystem = CalendarSystem;
|
|
193
|
+
type AdsCalendarCellSize = CalendarCellSize;
|
|
194
|
+
interface AdsDatePickerProps extends Omit<AdsCalendarProps, "mode" | "onSelect" | "required" | "selected"> {
|
|
195
|
+
defaultSelected?: Date;
|
|
196
|
+
formatDateLabel?: (value: Date) => string;
|
|
197
|
+
id?: string;
|
|
198
|
+
label?: React$1.ReactNode;
|
|
199
|
+
onSelect?: (value: Date | undefined) => void;
|
|
200
|
+
placeholder?: string;
|
|
201
|
+
selected?: Date;
|
|
202
|
+
triggerClassName?: string;
|
|
203
|
+
}
|
|
204
|
+
interface AdsDateTimePickerProps extends AdsDatePickerProps {
|
|
205
|
+
onTimeChange?: React$1.ChangeEventHandler<HTMLInputElement>;
|
|
206
|
+
timeLabel?: React$1.ReactNode;
|
|
207
|
+
timeValue?: string;
|
|
208
|
+
}
|
|
209
|
+
declare const AdsCalendar: React$1.ForwardRefExoticComponent<CalendarProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
210
|
+
declare const AdsDatePicker: React$1.ForwardRefExoticComponent<AdsDatePickerProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
211
|
+
declare const AdsDateTimePicker: React$1.ForwardRefExoticComponent<AdsDateTimePickerProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
212
|
+
|
|
181
213
|
declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
182
214
|
|
|
183
215
|
declare const Separator: React$1.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -265,6 +297,30 @@ interface AdsSkeletonProps extends SkeletonProps {
|
|
|
265
297
|
}
|
|
266
298
|
declare const AdsSkeleton: React$1.ForwardRefExoticComponent<AdsSkeletonProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
267
299
|
|
|
300
|
+
declare const sizeClassName: {
|
|
301
|
+
readonly xs: "h-3 w-3";
|
|
302
|
+
readonly sm: "h-4 w-4";
|
|
303
|
+
readonly md: "h-6 w-6";
|
|
304
|
+
readonly lg: "h-8 w-8";
|
|
305
|
+
};
|
|
306
|
+
declare const toneClassName: {
|
|
307
|
+
readonly current: "text-current";
|
|
308
|
+
readonly foreground: "text-foreground";
|
|
309
|
+
readonly muted: "text-muted-foreground";
|
|
310
|
+
readonly primary: "text-primary";
|
|
311
|
+
readonly success: "text-success";
|
|
312
|
+
readonly warning: "text-warning";
|
|
313
|
+
readonly info: "text-info";
|
|
314
|
+
readonly destructive: "text-destructive";
|
|
315
|
+
};
|
|
316
|
+
type AdsSpinnerSize = keyof typeof sizeClassName;
|
|
317
|
+
type AdsSpinnerTone = keyof typeof toneClassName;
|
|
318
|
+
interface AdsSpinnerProps extends Omit<React$1.ComponentPropsWithoutRef<typeof LoaderCircle>, "color" | "size"> {
|
|
319
|
+
size?: AdsSpinnerSize;
|
|
320
|
+
tone?: AdsSpinnerTone;
|
|
321
|
+
}
|
|
322
|
+
declare const AdsSpinner: React$1.ForwardRefExoticComponent<AdsSpinnerProps & React$1.RefAttributes<SVGSVGElement>>;
|
|
323
|
+
|
|
268
324
|
type InputProps$1 = React$1.ComponentPropsWithoutRef<typeof Input>;
|
|
269
325
|
type AdsInputChromeProps = {
|
|
270
326
|
descriptionPlacement?: AdsFieldDescriptionPlacement;
|
|
@@ -740,4 +796,4 @@ declare function useAdsI18n(): AdsI18nContextValue;
|
|
|
740
796
|
|
|
741
797
|
declare const adsDefaultMessages: Record<"en" | "zh", AdsMessages>;
|
|
742
798
|
|
|
743
|
-
export { AdsAccordion, type AdsAccordionItem, type AdsAccordionMode, type AdsAccordionProps, Alert as AdsAlert, AlertDescription as AdsAlertDescription, AdsAlertDialog, AdsAlertDialogAction, type AdsAlertDialogActionProps, AdsAlertDialogCancel, type AdsAlertDialogCancelProps, AdsAlertDialogContent, type AdsAlertDialogContentProps, AdsAlertDialogDescription, type AdsAlertDialogDescriptionProps, AdsAlertDialogFooter, type AdsAlertDialogFooterProps, AdsAlertDialogHeader, type AdsAlertDialogHeaderProps, AdsAlertDialogOverlay, type AdsAlertDialogOverlayProps, AdsAlertDialogPortal, type AdsAlertDialogPortalProps, type AdsAlertDialogProps, AdsAlertDialogTitle, type AdsAlertDialogTitleProps, AdsAlertDialogTrigger, type AdsAlertDialogTriggerProps, AlertTitle as AdsAlertTitle, AdsBadge, type AdsBadgeProps, AdsBreadcrumb, AdsBreadcrumbEllipsis, type AdsBreadcrumbEllipsisProps, AdsBreadcrumbItem, type AdsBreadcrumbItemProps, AdsBreadcrumbLink, type AdsBreadcrumbLinkProps, AdsBreadcrumbList, type AdsBreadcrumbListProps, AdsBreadcrumbPage, type AdsBreadcrumbPageProps, type AdsBreadcrumbProps, AdsBreadcrumbSeparator, type AdsBreadcrumbSeparatorIcon, type AdsBreadcrumbSeparatorProps, AdsButton, AdsButtonGroup, AdsButtonGroupInput, type AdsButtonGroupInputProps, type AdsButtonGroupProps, AdsButtonGroupSeparator, type AdsButtonGroupSeparatorProps, AdsButtonGroupText, type AdsButtonGroupTextProps, type AdsButtonProps, AdsCheckbox, AdsDialog, AdsDialogClose, type AdsDialogCloseProps, AdsDialogContent, type AdsDialogContentProps, AdsDialogDescription, type AdsDialogDescriptionProps, AdsDialogFooter, type AdsDialogFooterProps, AdsDialogHeader, type AdsDialogHeaderProps, AdsDialogOverlay, type AdsDialogOverlayProps, AdsDialogPortal, type AdsDialogPortalProps, type AdsDialogProps, AdsDialogTitle, type AdsDialogTitleProps, AdsDialogTrigger, type AdsDialogTriggerProps, AdsEmpty, AdsEmptyActions, AdsEmptyContent, AdsEmptyDescription, AdsEmptyFooter, AdsEmptyHeader, AdsEmptyMedia, type AdsEmptyProps, AdsEmptyTitle, AdsField, AdsFieldActions, AdsFieldCheckboxRow, AdsFieldChoiceCard, AdsFieldDescription, AdsFieldError, AdsFieldGroup, AdsFieldHeader, AdsFieldItem, AdsFieldLabel, AdsFieldLegend, AdsFieldSeparator, AdsFieldSet, AdsI18nProvider, AdsInput, AdsInputGroup, AdsInputGroupInput, type AdsInputGroupInputProps, type AdsInputGroupProps, AdsInputGroupTextarea, type AdsInputGroupTextareaProps, AdsInputOTP, AdsInputOTPGroup, type AdsInputOTPProps, AdsInputOTPSeparator, AdsInputOTPSlot, type AdsInputProps, type AdsIntent, type AdsLocale, type AdsMessages, type AdsMessagesOverride, AdsPagination, AdsPaginationContent, type AdsPaginationContentProps, AdsPaginationEllipsis, type AdsPaginationEllipsisProps, AdsPaginationItem, type AdsPaginationItemProps, AdsPaginationLink, type AdsPaginationLinkProps, AdsPaginationNext, type AdsPaginationNextProps, AdsPaginationPrevious, type AdsPaginationPreviousProps, type AdsPaginationProps, AdsPopover, AdsPopoverBody, type AdsPopoverBodyProps, AdsPopoverContent, type AdsPopoverContentProps, AdsPopoverDescription, type AdsPopoverDescriptionProps, AdsPopoverHeader, type AdsPopoverHeaderProps, type AdsPopoverProps, AdsPopoverTitle, type AdsPopoverTitleProps, AdsPopoverTrigger, type AdsPopoverTriggerProps, AdsProgress, type AdsProgressProps, type AdsProgressVariant, AdsRadioGroup, AdsRadioGroupCardOption, AdsRadioGroupOption, AdsSelect, SelectContent as AdsSelectContent, SelectGroup as AdsSelectGroup, SelectItem as AdsSelectItem, SelectLabel as AdsSelectLabel, Select as AdsSelectRoot, SelectScrollDownButton as AdsSelectScrollDownButton, SelectScrollUpButton as AdsSelectScrollUpButton, SelectSeparator as AdsSelectSeparator, SelectTrigger as AdsSelectTrigger, SelectValue as AdsSelectValue, AdsSeparator, type AdsSeparatorProps, type AdsSize, AdsSkeleton, type AdsSkeletonProps, AdsSlider, type AdsSliderProps, AdsSwitch, AdsTable, AdsTableBody, AdsTableCaption, AdsTableCell, AdsTableFooter, AdsTableHead, AdsTableHeader, AdsTableRow, AdsTabs, AdsTabsContent, type AdsTabsContentProps, AdsTabsList, type AdsTabsListProps, type AdsTabsProps, AdsTabsTrigger, type AdsTabsTriggerProps, AdsTextarea, AdsToast, type AdsToastAction, type AdsToastIntent, AdsToastManager, type AdsToastOptions, type AdsToastProps, AdsToaster, type AdsToasterProps, AdsToggle, AdsToggleGroup, AdsToggleGroupItem, type AdsToggleGroupItemProps, type AdsToggleGroupProps, type AdsToggleProps, AdsTooltip, AdsTooltipArrow, AdsTooltipContent, AdsTooltipProvider, AdsTooltipTrigger, adsDefaultMessages, useAdsI18n };
|
|
799
|
+
export { AdsAccordion, type AdsAccordionItem, type AdsAccordionMode, type AdsAccordionProps, Alert as AdsAlert, AlertDescription as AdsAlertDescription, AdsAlertDialog, AdsAlertDialogAction, type AdsAlertDialogActionProps, AdsAlertDialogCancel, type AdsAlertDialogCancelProps, AdsAlertDialogContent, type AdsAlertDialogContentProps, AdsAlertDialogDescription, type AdsAlertDialogDescriptionProps, AdsAlertDialogFooter, type AdsAlertDialogFooterProps, AdsAlertDialogHeader, type AdsAlertDialogHeaderProps, AdsAlertDialogOverlay, type AdsAlertDialogOverlayProps, AdsAlertDialogPortal, type AdsAlertDialogPortalProps, type AdsAlertDialogProps, AdsAlertDialogTitle, type AdsAlertDialogTitleProps, AdsAlertDialogTrigger, type AdsAlertDialogTriggerProps, AlertTitle as AdsAlertTitle, AdsBadge, type AdsBadgeProps, AdsBreadcrumb, AdsBreadcrumbEllipsis, type AdsBreadcrumbEllipsisProps, AdsBreadcrumbItem, type AdsBreadcrumbItemProps, AdsBreadcrumbLink, type AdsBreadcrumbLinkProps, AdsBreadcrumbList, type AdsBreadcrumbListProps, AdsBreadcrumbPage, type AdsBreadcrumbPageProps, type AdsBreadcrumbProps, AdsBreadcrumbSeparator, type AdsBreadcrumbSeparatorIcon, type AdsBreadcrumbSeparatorProps, AdsButton, AdsButtonGroup, AdsButtonGroupInput, type AdsButtonGroupInputProps, type AdsButtonGroupProps, AdsButtonGroupSeparator, type AdsButtonGroupSeparatorProps, AdsButtonGroupText, type AdsButtonGroupTextProps, type AdsButtonProps, AdsCalendar, type AdsCalendarCellSize, type AdsCalendarProps, type AdsCalendarSystem, AdsCheckbox, AdsDatePicker, type AdsDatePickerProps, AdsDateTimePicker, type AdsDateTimePickerProps, AdsDialog, AdsDialogClose, type AdsDialogCloseProps, AdsDialogContent, type AdsDialogContentProps, AdsDialogDescription, type AdsDialogDescriptionProps, AdsDialogFooter, type AdsDialogFooterProps, AdsDialogHeader, type AdsDialogHeaderProps, AdsDialogOverlay, type AdsDialogOverlayProps, AdsDialogPortal, type AdsDialogPortalProps, type AdsDialogProps, AdsDialogTitle, type AdsDialogTitleProps, AdsDialogTrigger, type AdsDialogTriggerProps, AdsEmpty, AdsEmptyActions, AdsEmptyContent, AdsEmptyDescription, AdsEmptyFooter, AdsEmptyHeader, AdsEmptyMedia, type AdsEmptyProps, AdsEmptyTitle, AdsField, AdsFieldActions, AdsFieldCheckboxRow, AdsFieldChoiceCard, AdsFieldDescription, AdsFieldError, AdsFieldGroup, AdsFieldHeader, AdsFieldItem, AdsFieldLabel, AdsFieldLegend, AdsFieldSeparator, AdsFieldSet, AdsI18nProvider, AdsInput, AdsInputGroup, AdsInputGroupInput, type AdsInputGroupInputProps, type AdsInputGroupProps, AdsInputGroupTextarea, type AdsInputGroupTextareaProps, AdsInputOTP, AdsInputOTPGroup, type AdsInputOTPProps, AdsInputOTPSeparator, AdsInputOTPSlot, type AdsInputProps, type AdsIntent, type AdsLocale, type AdsMessages, type AdsMessagesOverride, AdsPagination, AdsPaginationContent, type AdsPaginationContentProps, AdsPaginationEllipsis, type AdsPaginationEllipsisProps, AdsPaginationItem, type AdsPaginationItemProps, AdsPaginationLink, type AdsPaginationLinkProps, AdsPaginationNext, type AdsPaginationNextProps, AdsPaginationPrevious, type AdsPaginationPreviousProps, type AdsPaginationProps, AdsPopover, AdsPopoverBody, type AdsPopoverBodyProps, AdsPopoverContent, type AdsPopoverContentProps, AdsPopoverDescription, type AdsPopoverDescriptionProps, AdsPopoverHeader, type AdsPopoverHeaderProps, type AdsPopoverProps, AdsPopoverTitle, type AdsPopoverTitleProps, AdsPopoverTrigger, type AdsPopoverTriggerProps, AdsProgress, type AdsProgressProps, type AdsProgressVariant, AdsRadioGroup, AdsRadioGroupCardOption, AdsRadioGroupOption, AdsSelect, SelectContent as AdsSelectContent, SelectGroup as AdsSelectGroup, SelectItem as AdsSelectItem, SelectLabel as AdsSelectLabel, Select as AdsSelectRoot, SelectScrollDownButton as AdsSelectScrollDownButton, SelectScrollUpButton as AdsSelectScrollUpButton, SelectSeparator as AdsSelectSeparator, SelectTrigger as AdsSelectTrigger, SelectValue as AdsSelectValue, AdsSeparator, type AdsSeparatorProps, type AdsSize, AdsSkeleton, type AdsSkeletonProps, AdsSlider, type AdsSliderProps, AdsSpinner, type AdsSpinnerProps, type AdsSpinnerSize, type AdsSpinnerTone, AdsSwitch, AdsTable, AdsTableBody, AdsTableCaption, AdsTableCell, AdsTableFooter, AdsTableHead, AdsTableHeader, AdsTableRow, AdsTabs, AdsTabsContent, type AdsTabsContentProps, AdsTabsList, type AdsTabsListProps, type AdsTabsProps, AdsTabsTrigger, type AdsTabsTriggerProps, AdsTextarea, AdsToast, type AdsToastAction, type AdsToastIntent, AdsToastManager, type AdsToastOptions, type AdsToastProps, AdsToaster, type AdsToasterProps, AdsToggle, AdsToggleGroup, AdsToggleGroupItem, type AdsToggleGroupItemProps, type AdsToggleGroupProps, type AdsToggleProps, AdsTooltip, AdsTooltipArrow, AdsTooltipContent, AdsTooltipProvider, AdsTooltipTrigger, adsDefaultMessages, useAdsI18n };
|