@juspay/blend-design-system 0.0.16-beta → 0.0.17-beta

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.
Files changed (37) hide show
  1. package/dist/components/Card/utils.d.ts +86 -0
  2. package/dist/components/DateRangePicker/MobileDrawerPresets.d.ts +1 -22
  3. package/dist/components/DateRangePicker/QuickRangeSelector.d.ts +1 -0
  4. package/dist/components/DateRangePicker/components/ActionButtons.d.ts +4 -0
  5. package/dist/components/DateRangePicker/components/DatePickerComponent.d.ts +4 -0
  6. package/dist/components/DateRangePicker/components/PresetItem.d.ts +4 -0
  7. package/dist/components/DateRangePicker/components/ScrollablePicker.d.ts +4 -0
  8. package/dist/components/DateRangePicker/dateRangePicker.tokens.d.ts +2 -1
  9. package/dist/components/DateRangePicker/types.d.ts +119 -0
  10. package/dist/components/DateRangePicker/utils.d.ts +143 -21
  11. package/dist/components/Inputs/TextInput/TextInput.d.ts +1 -1
  12. package/dist/components/Inputs/TextInput/types.d.ts +1 -0
  13. package/dist/components/Menu/MenuItem.d.ts +2 -1
  14. package/dist/components/Menu/SubMenu.d.ts +2 -1
  15. package/dist/components/Menu/types.d.ts +2 -0
  16. package/dist/components/MultiSelect/MultiSelect.d.ts +1 -1
  17. package/dist/components/MultiSelect/MultiSelectMenu.d.ts +1 -1
  18. package/dist/components/MultiSelect/types.d.ts +7 -6
  19. package/dist/components/SingleSelect/SingleSelect.d.ts +1 -1
  20. package/dist/components/SingleSelect/SingleSelectMenu.d.ts +4 -4
  21. package/dist/components/SingleSelect/types.d.ts +4 -3
  22. package/dist/components/Skeleton/Skeleton.d.ts +8 -0
  23. package/dist/components/Skeleton/SkeletonAvatar.d.ts +5 -0
  24. package/dist/components/Skeleton/SkeletonButton.d.ts +13 -0
  25. package/dist/components/Skeleton/SkeletonCard.d.ts +5 -0
  26. package/dist/components/Skeleton/SkeletonCompound.d.ts +64 -0
  27. package/dist/components/Skeleton/hooks/useSkeletonBase.d.ts +21 -0
  28. package/dist/components/Skeleton/index.d.ts +10 -0
  29. package/dist/components/Skeleton/skeleton.tokens.d.ts +56 -0
  30. package/dist/components/Skeleton/types.d.ts +37 -0
  31. package/dist/components/StatCard/StatCard.d.ts +1 -1
  32. package/dist/components/StatCard/types.d.ts +1 -0
  33. package/dist/context/ThemeContext.d.ts +2 -0
  34. package/dist/context/useComponentToken.d.ts +2 -1
  35. package/dist/main.d.ts +2 -0
  36. package/dist/main.js +17292 -16091
  37. package/package.json +1 -1
@@ -0,0 +1,86 @@
1
+ import { default as React } from 'react';
2
+ import { CardVariant, CardAlignment } from './types';
3
+ import { CardTokenType } from './card.tokens';
4
+ import { ButtonSubType } from '../Button/types';
5
+ /**
6
+ * Determines the card variant type
7
+ */
8
+ export declare const getCardVariant: (variant?: CardVariant) => CardVariant;
9
+ /**
10
+ * Checks if card is default variant
11
+ */
12
+ export declare const isDefaultCard: (variant?: CardVariant) => boolean;
13
+ /**
14
+ * Checks if card is aligned variant
15
+ */
16
+ export declare const isAlignedCard: (variant?: CardVariant) => boolean;
17
+ /**
18
+ * Checks if card is custom variant
19
+ */
20
+ export declare const isCustomCard: (variant?: CardVariant) => boolean;
21
+ /**
22
+ * Gets header box styles for default card
23
+ */
24
+ export declare const getHeaderBoxStyles: (cardToken: CardTokenType) => React.CSSProperties;
25
+ /**
26
+ * Gets header title styles
27
+ */
28
+ export declare const getHeaderTitleStyles: (cardToken: CardTokenType) => React.CSSProperties;
29
+ /**
30
+ * Gets sub header styles
31
+ */
32
+ export declare const getSubHeaderStyles: (cardToken: CardTokenType) => React.CSSProperties;
33
+ /**
34
+ * Gets body title styles
35
+ */
36
+ export declare const getBodyTitleStyles: (cardToken: CardTokenType) => React.CSSProperties;
37
+ /**
38
+ * Gets body content styles
39
+ */
40
+ export declare const getBodyContentStyles: (cardToken: CardTokenType) => React.CSSProperties;
41
+ /**
42
+ * Gets body container styles
43
+ */
44
+ export declare const getBodyStyles: (cardToken: CardTokenType) => React.CSSProperties;
45
+ /**
46
+ * Gets spacing between header slots
47
+ */
48
+ export declare const getHeaderSlotSpacing: (cardToken: CardTokenType) => string;
49
+ /**
50
+ * Gets margin bottom for header based on what follows
51
+ */
52
+ export declare const getHeaderMarginBottom: (hasSubHeader: boolean, cardToken: CardTokenType) => string;
53
+ /**
54
+ * Gets margin bottom for sub header
55
+ */
56
+ export declare const getSubHeaderMarginBottom: (cardToken: CardTokenType) => string;
57
+ /**
58
+ * Gets margin bottom for body slot 1
59
+ */
60
+ export declare const getBodySlot1MarginBottom: (hasBodyTitle: boolean, cardToken: CardTokenType) => string;
61
+ /**
62
+ * Gets margin bottom for body title
63
+ */
64
+ export declare const getBodyTitleMarginBottom: (hasContent: boolean, cardToken: CardTokenType) => string;
65
+ /**
66
+ * Gets margin bottom for content
67
+ */
68
+ export declare const getContentMarginBottom: (hasBodySlot2: boolean, cardToken: CardTokenType) => string;
69
+ /**
70
+ * Gets margin bottom for body slot 2
71
+ */
72
+ export declare const getBodySlot2MarginBottom: (hasActionButton: boolean, isInlineButton: boolean, cardToken: CardTokenType) => string;
73
+ /**
74
+ * Gets alignment styles for aligned cards
75
+ */
76
+ export declare const getAlignmentStyles: (alignment: CardAlignment, centerAlign: boolean, cardToken: CardTokenType) => React.CSSProperties;
77
+ /**
78
+ * Gets custom card styles (simple wrapper with padding)
79
+ */
80
+ export declare const getCustomCardStyles: (cardToken: CardTokenType) => React.CSSProperties;
81
+ /**
82
+ * Determines if action button is inline type
83
+ */
84
+ export declare const isInlineActionButton: (actionButton?: {
85
+ subType?: ButtonSubType;
86
+ }) => boolean;
@@ -1,25 +1,4 @@
1
1
  import { default as React } from 'react';
2
- import { DateRange, DateRangePreset } from './types';
3
- type MobileDrawerPresetsProps = {
4
- drawerOpen: boolean;
5
- setDrawerOpen: (open: boolean) => void;
6
- renderTrigger: () => React.ReactNode;
7
- showPresets: boolean;
8
- availablePresets: DateRangePreset[];
9
- activePreset: DateRangePreset;
10
- selectedRange: DateRange;
11
- startTime: string;
12
- endTime: string;
13
- dateFormat: string;
14
- handlePresetSelect: (preset: DateRangePreset) => void;
15
- handleStartTimeChange: (time: string) => void;
16
- handleEndTimeChange: (time: string) => void;
17
- setSelectedRange: (range: DateRange) => void;
18
- setStartDate: (date: string) => void;
19
- setEndDate: (date: string) => void;
20
- handleCancel: () => void;
21
- handleApply: () => void;
22
- showCustomDropdownOnly?: boolean;
23
- };
2
+ import { MobileDrawerPresetsProps } from './types';
24
3
  declare const MobileDrawerPresets: React.FC<MobileDrawerPresetsProps>;
25
4
  export default MobileDrawerPresets;
@@ -8,6 +8,7 @@ type QuickRangeSelectorProps = {
8
8
  className?: string;
9
9
  disableFutureDates?: boolean;
10
10
  disablePastDates?: boolean;
11
+ isDisabled?: boolean;
11
12
  };
12
13
  declare const QuickRangeSelector: import('react').ForwardRefExoticComponent<QuickRangeSelectorProps & import('react').RefAttributes<HTMLDivElement>>;
13
14
  export default QuickRangeSelector;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { ActionButtonsProps } from '../types';
3
+ declare const ActionButtons: React.FC<ActionButtonsProps>;
4
+ export default ActionButtons;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { DatePickerComponentProps } from '../types';
3
+ declare const DatePickerComponent: React.FC<DatePickerComponentProps>;
4
+ export default DatePickerComponent;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { PresetItemProps } from '../types';
3
+ declare const PresetItem: React.FC<PresetItemProps>;
4
+ export default PresetItem;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { ScrollablePickerProps } from '../types';
3
+ declare const ScrollablePicker: React.NamedExoticComponent<ScrollablePickerProps>;
4
+ export default ScrollablePicker;
@@ -3,7 +3,6 @@ import { FoundationTokenType } from '../../tokens/theme.token';
3
3
  import { BreakpointType } from '../../breakpoints/breakPoints';
4
4
  export type CalendarTokenType = {
5
5
  quickRange: {
6
- width: CSSObject['width'];
7
6
  trigger: {
8
7
  height: CSSObject['height'];
9
8
  borderLeft: CSSObject['borderLeft'];
@@ -20,10 +19,12 @@ export type CalendarTokenType = {
20
19
  backgroundColor: CSSObject['backgroundColor'];
21
20
  iconSize: CSSObject['iconSize'];
22
21
  text: CSSObject;
22
+ gap: CSSObject['gap'];
23
23
  };
24
24
  content: {
25
25
  padding: CSSObject['padding'];
26
26
  width: CSSObject['width'];
27
+ maxHeight: CSSObject['maxHeight'];
27
28
  zIndex: CSSObject['zIndex'];
28
29
  backgroundColor: CSSObject['backgroundColor'];
29
30
  borderRadius: CSSObject['borderRadius'];
@@ -20,6 +20,59 @@ export type DateRange = {
20
20
  endDate: Date;
21
21
  showTimePicker?: boolean;
22
22
  };
23
+ /**
24
+ * Predefined format presets for common date display patterns
25
+ */
26
+ export declare enum DateFormatPreset {
27
+ SHORT_RANGE = "short-range",// "Sep 3-5 2025"
28
+ MEDIUM_RANGE = "medium-range",// "Sep 3 - Sep 5 2025"
29
+ LONG_RANGE = "long-range",// "Sep 3 2025 - Sep 5 2025"
30
+ SHORT_SINGLE = "short-single",// "Sep 3 2025"
31
+ MEDIUM_SINGLE = "medium-single",// "September 3, 2025"
32
+ LONG_SINGLE = "long-single",// "September 3rd, 2025"
33
+ ISO_RANGE = "iso-range",// "2025-09-03 - 2025-09-05"
34
+ US_RANGE = "us-range",// "09/03/2025 - 09/05/2025"
35
+ CUSTOM = "custom"
36
+ }
37
+ /**
38
+ * Custom format function type for advanced formatting
39
+ */
40
+ export type CustomFormatFunction = (range: DateRange, options?: {
41
+ includeTime?: boolean;
42
+ includeYear?: boolean;
43
+ separator?: string;
44
+ locale?: string;
45
+ }) => string;
46
+ /**
47
+ * Format configuration for date display
48
+ */
49
+ export type DateFormatConfig = {
50
+ preset?: DateFormatPreset;
51
+ customFormat?: CustomFormatFunction;
52
+ includeTime?: boolean;
53
+ includeYear?: boolean;
54
+ separator?: string;
55
+ locale?: string;
56
+ timeFormat?: '12h' | '24h';
57
+ };
58
+ /**
59
+ * Custom trigger configuration
60
+ */
61
+ export type TriggerConfig = {
62
+ element?: ReactNode;
63
+ placeholder?: string;
64
+ showIcon?: boolean;
65
+ icon?: ReactNode;
66
+ className?: string;
67
+ style?: React.CSSProperties;
68
+ renderTrigger?: (props: {
69
+ selectedRange: DateRange | undefined;
70
+ isOpen: boolean;
71
+ isDisabled: boolean;
72
+ formattedValue: string;
73
+ onClick: () => void;
74
+ }) => ReactNode;
75
+ };
23
76
  export type DateRangePickerProps = {
24
77
  value?: DateRange;
25
78
  onChange?: (range: DateRange) => void;
@@ -37,4 +90,70 @@ export type DateRangePickerProps = {
37
90
  triggerElement?: ReactNode;
38
91
  useDrawerOnMobile?: boolean;
39
92
  skipQuickFiltersOnMobile?: boolean;
93
+ formatConfig?: DateFormatConfig;
94
+ triggerConfig?: TriggerConfig;
95
+ };
96
+ /**
97
+ * Haptic feedback types for different interactions
98
+ */
99
+ export declare enum HapticFeedbackType {
100
+ SELECTION = "selection",
101
+ IMPACT = "impact",
102
+ NOTIFICATION = "notification"
103
+ }
104
+ export type PresetItemProps = {
105
+ preset: DateRangePreset;
106
+ isActive: boolean;
107
+ isCustomExpanded?: boolean;
108
+ onPresetSelect: (preset: DateRangePreset) => void;
109
+ onCustomToggle?: () => void;
110
+ setDrawerOpen?: (open: boolean) => void;
111
+ isDisabled?: boolean;
112
+ };
113
+ export type ActionButtonsProps = {
114
+ onCancel: () => void;
115
+ onApply: () => void;
116
+ isDisabled?: boolean;
117
+ };
118
+ export type ScrollablePickerProps = {
119
+ items: (string | number)[];
120
+ selectedIndex: number;
121
+ onSelect: (index: number) => void;
122
+ isTimeColumn?: boolean;
123
+ columnId: string;
124
+ isDisabled?: boolean;
125
+ };
126
+ export type DatePickerComponentProps = {
127
+ selectedRange: DateRange;
128
+ startTime: string;
129
+ endTime: string;
130
+ dateFormat: string;
131
+ handleStartTimeChange: (time: string) => void;
132
+ handleEndTimeChange: (time: string) => void;
133
+ setSelectedRange: (range: DateRange) => void;
134
+ setStartDate: (date: string) => void;
135
+ setEndDate: (date: string) => void;
136
+ isDisabled?: boolean;
137
+ };
138
+ export type MobileDrawerPresetsProps = {
139
+ drawerOpen: boolean;
140
+ setDrawerOpen: (open: boolean) => void;
141
+ renderTrigger: () => React.ReactNode;
142
+ showPresets: boolean;
143
+ availablePresets: DateRangePreset[];
144
+ activePreset: DateRangePreset;
145
+ selectedRange: DateRange;
146
+ startTime: string;
147
+ endTime: string;
148
+ dateFormat: string;
149
+ handlePresetSelect: (preset: DateRangePreset) => void;
150
+ handleStartTimeChange: (time: string) => void;
151
+ handleEndTimeChange: (time: string) => void;
152
+ setSelectedRange: (range: DateRange) => void;
153
+ setStartDate: (date: string) => void;
154
+ setEndDate: (date: string) => void;
155
+ handleCancel: () => void;
156
+ handleApply: () => void;
157
+ showCustomDropdownOnly?: boolean;
158
+ isDisabled?: boolean;
40
159
  };
@@ -1,4 +1,4 @@
1
- import { DateRange, DateRangePreset } from './types';
1
+ import { DateRange, DateRangePreset, DateFormatConfig, CustomFormatFunction, HapticFeedbackType } from './types';
2
2
  import { CalendarTokenType } from './dateRangePicker.tokens';
3
3
  /**
4
4
  * Formats a date according to the specified format
@@ -468,26 +468,6 @@ export declare const calculateDayCellProps: (date: Date, selectedRange: DateRang
468
468
  textColor: string | unknown;
469
469
  showTodayIndicator: boolean;
470
470
  };
471
- /**
472
- * Constants for mobile date picker
473
- */
474
- export declare const MOBILE_PICKER_CONSTANTS: {
475
- readonly ITEM_HEIGHT: 44;
476
- readonly VISIBLE_ITEMS: 3;
477
- readonly SCROLL_DEBOUNCE: 50;
478
- };
479
- /**
480
- * Validates time input - only allows numbers and colon
481
- * @param input The input string to validate
482
- * @returns True if input is valid
483
- */
484
- export declare const isValidTimeInput: (input: string) => boolean;
485
- /**
486
- * Formats time input as HH:MM
487
- * @param input The input string to format
488
- * @returns Formatted time string
489
- */
490
- export declare const formatTimeInput: (input: string) => string;
491
471
  /**
492
472
  * Generates picker data for date/time selection
493
473
  * @param tabType Whether this is for start or end date
@@ -534,3 +514,145 @@ export declare const createSelectionHandler: (tabType: "start" | "end", type: "y
534
514
  * @returns Display label for the preset
535
515
  */
536
516
  export declare const getPresetDisplayLabel: (preset: DateRangePreset) => string;
517
+ /**
518
+ * Enhanced date range formatting with preset patterns
519
+ * @param range The date range to format
520
+ * @param config Format configuration
521
+ * @returns Formatted date range string
522
+ */
523
+ export declare const formatDateRangeWithConfig: (range: DateRange, config?: DateFormatConfig) => string;
524
+ /**
525
+ * Creates a custom trigger element with enhanced formatting
526
+ * @param range Current selected date range
527
+ * @param config Format configuration
528
+ * @param placeholder Placeholder text when no range is selected
529
+ * @returns Formatted display string for trigger
530
+ */
531
+ export declare const formatTriggerDisplay: (range: DateRange | undefined, config?: DateFormatConfig, placeholder?: string) => string;
532
+ /**
533
+ * Predefined format configurations for common use cases
534
+ */
535
+ export declare const FORMAT_PRESETS: {
536
+ readonly COMPACT_NO_TIME: DateFormatConfig;
537
+ readonly COMPACT_NO_YEAR: DateFormatConfig;
538
+ readonly MEDIUM_NO_TIME: DateFormatConfig;
539
+ readonly MEDIUM_WITH_TIME: DateFormatConfig;
540
+ readonly VERBOSE_NO_TIME: DateFormatConfig;
541
+ readonly VERBOSE_WITH_TIME: DateFormatConfig;
542
+ readonly ISO_FORMAT: DateFormatConfig;
543
+ readonly ISO_WITH_TIME: DateFormatConfig;
544
+ readonly US_FORMAT: DateFormatConfig;
545
+ readonly US_WITH_TIME: DateFormatConfig;
546
+ };
547
+ /**
548
+ * Helper function to create custom format functions
549
+ * @param formatFn Custom formatting function
550
+ * @returns DateFormatConfig with custom format
551
+ */
552
+ export declare const createCustomFormat: (formatFn: CustomFormatFunction) => DateFormatConfig;
553
+ /**
554
+ * Example custom format functions
555
+ */
556
+ export declare const CUSTOM_FORMAT_EXAMPLES: {
557
+ RELATIVE: DateFormatConfig;
558
+ BUSINESS: DateFormatConfig;
559
+ MINIMAL: DateFormatConfig;
560
+ };
561
+ /**
562
+ * Enhanced haptic feedback utility with better error handling
563
+ * @param type The type of haptic feedback to trigger
564
+ */
565
+ export declare const triggerHapticFeedback: (type?: HapticFeedbackType) => void;
566
+ /**
567
+ * Optimized Apple Calendar-style haptic manager
568
+ */
569
+ export declare class AppleCalendarHapticManager {
570
+ private lastHapticTime;
571
+ private lastHapticIndex;
572
+ private readonly hapticCooldown;
573
+ private isDestroyed;
574
+ /**
575
+ * Triggers haptic feedback when scrolling to a new item
576
+ * @param currentIndex The current selected index
577
+ */
578
+ triggerScrollHaptic(currentIndex: number): void;
579
+ triggerSelectionHaptic(): void;
580
+ reset(): void;
581
+ destroy(): void;
582
+ }
583
+ export declare const APPLE_CALENDAR_CONSTANTS: {
584
+ readonly SNAP_DURATION: 300;
585
+ readonly MOMENTUM_THRESHOLD: 0.03;
586
+ readonly DECELERATION_RATE: 0.95;
587
+ readonly MIN_VELOCITY: 0.01;
588
+ readonly MAX_MOMENTUM_DISTANCE: 2;
589
+ readonly VELOCITY_MULTIPLIER: 0.15;
590
+ readonly VELOCITY_SMOOTHING: 0.8;
591
+ readonly SCROLL_RESISTANCE: 0.9;
592
+ readonly SCALE_SELECTED: 1.02;
593
+ readonly SCALE_UNSELECTED: 0.98;
594
+ readonly OPACITY_SELECTED: 1;
595
+ readonly OPACITY_UNSELECTED: 0.9;
596
+ readonly TRANSITION_DURATION: "180ms";
597
+ readonly EASING: "cubic-bezier(0.25, 0.46, 0.45, 0.94)";
598
+ readonly ANIMATION_FRAME_LIMIT: 60;
599
+ readonly VELOCITY_HISTORY_SIZE: 3;
600
+ };
601
+ export declare const MOBILE_PICKER_CONSTANTS: {
602
+ readonly ITEM_HEIGHT: 44;
603
+ readonly VISIBLE_ITEMS: 3;
604
+ readonly SCROLL_DEBOUNCE: 80;
605
+ };
606
+ /**
607
+ * Safely gets an item from an array with comprehensive bounds checking
608
+ * @param items The array of items
609
+ * @param index The index to access
610
+ * @returns The item at the index or empty string if out of bounds
611
+ */
612
+ export declare const safeGetPickerItem: (items: (string | number)[], index: number) => string;
613
+ /**
614
+ * Calculates the visible items for the picker with robust bounds checking
615
+ * @param items The array of items
616
+ * @param selectedIndex The currently selected index
617
+ * @returns Object with top, center, and bottom items plus availability flags
618
+ */
619
+ export declare const getPickerVisibleItems: (items: (string | number)[], selectedIndex: number) => {
620
+ topItem: string;
621
+ centerItem: string;
622
+ bottomItem: string;
623
+ hasTopItem: boolean;
624
+ hasBottomItem: boolean;
625
+ };
626
+ /**
627
+ * Validates and clamps an index to array bounds with safety checks
628
+ * @param index The index to validate
629
+ * @param arrayLength The length of the array
630
+ * @returns Clamped index within bounds
631
+ */
632
+ export declare const clampPickerIndex: (index: number, arrayLength: number) => number;
633
+ /**
634
+ * Calculates scroll position for a given index with validation
635
+ * @param index The target index
636
+ * @param itemHeight Height of each item
637
+ * @returns Scroll position in pixels
638
+ */
639
+ export declare const calculateScrollPosition: (index: number, itemHeight: number) => number;
640
+ /**
641
+ * Calculates index from scroll position with bounds checking
642
+ * @param scrollTop Current scroll position
643
+ * @param itemHeight Height of each item
644
+ * @returns Calculated index
645
+ */
646
+ export declare const calculateIndexFromScroll: (scrollTop: number, itemHeight: number) => number;
647
+ /**
648
+ * Validates time input with comprehensive checks
649
+ * @param input The input string to validate
650
+ * @returns True if input is valid
651
+ */
652
+ export declare const isValidTimeInput: (input: string) => boolean;
653
+ /**
654
+ * Formats time input with better validation
655
+ * @param input The input string to format
656
+ * @returns Formatted time string
657
+ */
658
+ export declare const formatTimeInput: (input: string) => string;
@@ -1,3 +1,3 @@
1
1
  import { TextInputProps } from './types';
2
- declare const TextInput: ({ size, leftSlot, rightSlot, error, errorMessage, hintText, helpIconHintText, disabled, label, placeholder, sublabel, value, onChange, name, required, onBlur, onFocus, ...rest }: TextInputProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const TextInput: ({ size, leftSlot, rightSlot, error, errorMessage, hintText, helpIconHintText, disabled, label, placeholder, sublabel, value, onChange, name, required, onBlur, onFocus, cursor, ...rest }: TextInputProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default TextInput;
@@ -24,4 +24,5 @@ export type TextInputProps = {
24
24
  onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
25
25
  onBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;
26
26
  onFocus?: (e: React.FocusEvent<HTMLInputElement>) => void;
27
+ cursor?: 'text' | 'pointer' | 'default' | 'not-allowed';
27
28
  } & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'style' | 'className' | 'onBlur' | 'onFocus'>;
@@ -1,8 +1,9 @@
1
1
  import { MenuItemV2Type } from './types';
2
2
  declare const MenuItem: {
3
- ({ item, idx }: {
3
+ ({ item, idx, maxHeight, }: {
4
4
  item: MenuItemV2Type;
5
5
  idx: number;
6
+ maxHeight?: number;
6
7
  }): import("react/jsx-runtime").JSX.Element;
7
8
  displayName: string;
8
9
  };
@@ -1,5 +1,6 @@
1
1
  import { MenuItemV2Type } from './types';
2
- export declare const SubMenu: ({ item, idx, }: {
2
+ export declare const SubMenu: ({ item, idx, maxHeight, }: {
3
3
  item: MenuItemV2Type;
4
4
  idx: number;
5
+ maxHeight?: number;
5
6
  }) => import("react/jsx-runtime").JSX.Element;
@@ -48,6 +48,8 @@ export type MenuItemV2Type = {
48
48
  disabled?: boolean;
49
49
  onClick?: () => void;
50
50
  subMenu?: MenuItemV2Type[];
51
+ enableSubMenuSearch?: boolean;
52
+ subMenuSearchPlaceholder?: string;
51
53
  tooltip?: string | React.ReactNode;
52
54
  tooltipProps?: {
53
55
  side?: TooltipSide;
@@ -1,3 +1,3 @@
1
1
  import { MultiSelectProps } from './types';
2
- declare const MultiSelect: ({ selectedValues, onChange, items, label, sublabel, disabled, helpIconHintText, name, required, variant, selectionTagType, slot, hintText, placeholder, size, enableSearch, searchPlaceholder, enableSelectAll, selectAllText, maxSelections, customTrigger, useDrawerOnMobile, minWidth, maxWidth, maxHeight, alignment, side, sideOffset, alignOffset, inline, onBlur, onFocus, error, errorMessage, showActionButtons, primaryAction, secondaryAction, showItemDividers, showHeaderBorder, }: MultiSelectProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const MultiSelect: ({ selectedValues, onChange, items, label, sublabel, disabled, helpIconHintText, name, required, variant, selectionTagType, slot, hintText, placeholder, size, enableSearch, searchPlaceholder, enableSelectAll, selectAllText, maxSelections, customTrigger, useDrawerOnMobile, minMenuWidth, maxMenuWidth, maxMenuHeight, alignment, side, sideOffset, alignOffset, inline, onBlur, onFocus, error, errorMessage, showActionButtons, primaryAction, secondaryAction, showItemDividers, showHeaderBorder, fullWidth, }: MultiSelectProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default MultiSelect;
@@ -1,3 +1,3 @@
1
1
  import { MultiSelectMenuProps } from './types';
2
- declare const MultiSelectMenu: ({ items, selected, onSelect, trigger, minWidth, maxWidth, maxHeight, disabled, enableSearch, searchPlaceholder, enableSelectAll, selectAllText, maxSelections, onSelectAll, alignment, side, sideOffset, alignOffset, open, onOpenChange, showActionButtons, primaryAction, secondaryAction, }: MultiSelectMenuProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const MultiSelectMenu: ({ items, selected, onSelect, trigger, minMenuWidth, maxMenuWidth, maxMenuHeight, disabled, enableSearch, searchPlaceholder, enableSelectAll, selectAllText, maxSelections, onSelectAll, alignment, side, sideOffset, alignOffset, open, onOpenChange, showActionButtons, primaryAction, secondaryAction, }: MultiSelectMenuProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default MultiSelectMenu;
@@ -76,9 +76,9 @@ export type MultiSelectProps = {
76
76
  maxSelections?: number;
77
77
  customTrigger?: React.ReactNode;
78
78
  useDrawerOnMobile?: boolean;
79
- minWidth?: number;
80
- maxWidth?: number;
81
- maxHeight?: number;
79
+ minMenuWidth?: number;
80
+ maxMenuWidth?: number;
81
+ maxMenuHeight?: number;
82
82
  alignment?: MultiSelectMenuAlignment;
83
83
  side?: MultiSelectMenuSide;
84
84
  sideOffset?: number;
@@ -103,15 +103,16 @@ export type MultiSelectProps = {
103
103
  };
104
104
  showItemDividers?: boolean;
105
105
  showHeaderBorder?: boolean;
106
+ fullWidth?: boolean;
106
107
  };
107
108
  export type MultiSelectMenuProps = {
108
109
  items: MultiSelectMenuGroupType[];
109
110
  selected: string[];
110
111
  onSelect: (value: string) => void;
111
112
  trigger: React.ReactNode;
112
- minWidth?: number;
113
- maxWidth?: number;
114
- maxHeight?: number;
113
+ minMenuWidth?: number;
114
+ maxMenuWidth?: number;
115
+ maxMenuHeight?: number;
115
116
  disabled?: boolean;
116
117
  enableSearch?: boolean;
117
118
  searchPlaceholder?: string;
@@ -1,3 +1,3 @@
1
1
  import { SingleSelectProps } from './types';
2
- declare const SingleSelect: ({ label, subLabel, hintText, required, helpIconText, placeholder, error, errorMessage, size, items, name, variant, disabled, selected, onSelect, enableSearch, searchPlaceholder, slot, customTrigger, useDrawerOnMobile, alignment, side, sideOffset, alignOffset, minWidth, maxWidth, maxHeight, onBlur, onFocus, inline, }: SingleSelectProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const SingleSelect: ({ label, subLabel, hintText, required, helpIconText, placeholder, error, errorMessage, size, items, name, variant, disabled, selected, onSelect, enableSearch, searchPlaceholder, slot, customTrigger, useDrawerOnMobile, alignment, side, sideOffset, alignOffset, minMenuWidth, maxMenuWidth, maxMenuHeight, onBlur, onFocus, inline, fullWidth, }: SingleSelectProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default SingleSelect;
@@ -5,9 +5,9 @@ type SingleSelectMenuProps = {
5
5
  selected: string;
6
6
  onSelect: (value: string) => void;
7
7
  trigger: React.ReactNode;
8
- minWidth?: number;
9
- maxWidth?: number;
10
- maxHeight?: number;
8
+ minMenuWidth?: number;
9
+ maxMenuWidth?: number;
10
+ maxMenuHeight?: number;
11
11
  enableSearch?: boolean;
12
12
  searchPlaceholder?: string;
13
13
  disabled?: boolean;
@@ -18,5 +18,5 @@ type SingleSelectMenuProps = {
18
18
  open: boolean;
19
19
  onOpenChange: (open: boolean) => void;
20
20
  };
21
- declare const SingleSelectMenu: ({ items, selected, onSelect, trigger, minWidth, maxWidth, maxHeight, enableSearch, searchPlaceholder, disabled, alignment, side, sideOffset, alignOffset, open, onOpenChange, }: SingleSelectMenuProps) => import("react/jsx-runtime").JSX.Element;
21
+ declare const SingleSelectMenu: ({ items, selected, onSelect, trigger, minMenuWidth, maxMenuWidth, maxMenuHeight, enableSearch, searchPlaceholder, disabled, alignment, side, sideOffset, alignOffset, open, onOpenChange, }: SingleSelectMenuProps) => import("react/jsx-runtime").JSX.Element;
22
22
  export default SingleSelectMenu;
@@ -86,12 +86,13 @@ export type SingleSelectProps = {
86
86
  side?: SelectMenuSide;
87
87
  sideOffset?: number;
88
88
  alignOffset?: number;
89
- minWidth?: number;
90
- maxWidth?: number;
91
- maxHeight?: number;
89
+ minMenuWidth?: number;
90
+ maxMenuWidth?: number;
91
+ maxMenuHeight?: number;
92
92
  inline?: boolean;
93
93
  onBlur?: () => void;
94
94
  onFocus?: () => void;
95
95
  error?: boolean;
96
96
  errorMessage?: string;
97
+ fullWidth?: boolean;
97
98
  };
@@ -0,0 +1,8 @@
1
+ declare const Skeleton: import('react').ForwardRefExoticComponent<import('./types').BaseSkeletonProps & Omit<import('../Primitives/Block/Block').BlockProps, "children"> & {
2
+ children?: import('react').ReactNode;
3
+ animate?: boolean;
4
+ width?: string | number;
5
+ height?: string | number;
6
+ shape?: import('./skeleton.tokens').SkeletonShape;
7
+ } & import('react').RefAttributes<HTMLDivElement>>;
8
+ export default Skeleton;
@@ -0,0 +1,5 @@
1
+ declare const SkeletonAvatar: import('react').ForwardRefExoticComponent<import('./types').BaseSkeletonProps & Omit<import('../Primitives/Block/Block').BlockProps, "children"> & {
2
+ size?: import('./types').SkeletonSize;
3
+ shape?: "circle" | "square";
4
+ } & import('react').RefAttributes<HTMLDivElement>>;
5
+ export default SkeletonAvatar;
@@ -0,0 +1,13 @@
1
+ import { ButtonType, ButtonSize, ButtonSubType } from '../Button/types';
2
+ declare const SkeletonButton: import('react').ForwardRefExoticComponent<import('./types').BaseSkeletonProps & Omit<import('../Primitives/Block/Block').BlockProps, "children"> & {
3
+ buttonType?: ButtonType;
4
+ size?: ButtonSize;
5
+ subType?: ButtonSubType;
6
+ width?: string | number;
7
+ fullWidth?: boolean;
8
+ buttonGroupPosition?: "center" | "left" | "right";
9
+ text?: string;
10
+ hasLeadingIcon?: boolean;
11
+ hasTrailingIcon?: boolean;
12
+ } & import('react').RefAttributes<HTMLDivElement>>;
13
+ export default SkeletonButton;
@@ -0,0 +1,5 @@
1
+ declare const SkeletonCard: import('react').ForwardRefExoticComponent<import('./types').BaseSkeletonProps & Omit<import('../Primitives/Block/Block').BlockProps, "children"> & {
2
+ children?: import('react').ReactNode;
3
+ padding?: string | number;
4
+ } & import('react').RefAttributes<HTMLDivElement>>;
5
+ export default SkeletonCard;