related-ui-components 2.6.1 → 2.6.2

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 (161) hide show
  1. package/lib/commonjs/app.d.ts +4 -0
  2. package/lib/commonjs/app.d.ts.map +1 -0
  3. package/lib/commonjs/components/Badges/Badge.d.ts +14 -0
  4. package/lib/commonjs/components/Badges/Badge.d.ts.map +1 -0
  5. package/lib/commonjs/components/Badges/index.d.ts +3 -0
  6. package/lib/commonjs/components/Badges/index.d.ts.map +1 -0
  7. package/lib/commonjs/components/Banner/Banner.d.ts +24 -0
  8. package/lib/commonjs/components/Banner/Banner.d.ts.map +1 -0
  9. package/lib/commonjs/components/Banner/BannerWithDetails.d.ts +16 -0
  10. package/lib/commonjs/components/Banner/BannerWithDetails.d.ts.map +1 -0
  11. package/lib/commonjs/components/Banner/index.d.ts +4 -0
  12. package/lib/commonjs/components/Banner/index.d.ts.map +1 -0
  13. package/lib/commonjs/components/BrandIcon/BrandIcon.d.ts +18 -0
  14. package/lib/commonjs/components/BrandIcon/BrandIcon.d.ts.map +1 -0
  15. package/lib/commonjs/components/BrandIcon/index.d.ts +3 -0
  16. package/lib/commonjs/components/BrandIcon/index.d.ts.map +1 -0
  17. package/lib/commonjs/components/Button/Button.d.ts +17 -0
  18. package/lib/commonjs/components/Button/Button.d.ts.map +1 -0
  19. package/lib/commonjs/components/Button/index.d.ts +3 -0
  20. package/lib/commonjs/components/Button/index.d.ts.map +1 -0
  21. package/lib/commonjs/components/Card/Card.d.ts +17 -0
  22. package/lib/commonjs/components/Card/Card.d.ts.map +1 -0
  23. package/lib/commonjs/components/Card/CardContent.d.ts +8 -0
  24. package/lib/commonjs/components/Card/CardContent.d.ts.map +1 -0
  25. package/lib/commonjs/components/Card/CardFooter.d.ts +9 -0
  26. package/lib/commonjs/components/Card/CardFooter.d.ts.map +1 -0
  27. package/lib/commonjs/components/Card/CardHeader.d.ts +14 -0
  28. package/lib/commonjs/components/Card/CardHeader.d.ts.map +1 -0
  29. package/lib/commonjs/components/Card/CardImage.d.ts +12 -0
  30. package/lib/commonjs/components/Card/CardImage.d.ts.map +1 -0
  31. package/lib/commonjs/components/Card/index.d.ts +10 -0
  32. package/lib/commonjs/components/Card/index.d.ts.map +1 -0
  33. package/lib/commonjs/components/Card/templates/DealCard.d.ts +30 -0
  34. package/lib/commonjs/components/Card/templates/DealCard.d.ts.map +1 -0
  35. package/lib/commonjs/components/Card/templates/DealCardWithBackgroundImage.d.ts +37 -0
  36. package/lib/commonjs/components/Card/templates/DealCardWithBackgroundImage.d.ts.map +1 -0
  37. package/lib/commonjs/components/Card/templates/SimpleTrendingCard.d.ts +12 -0
  38. package/lib/commonjs/components/Card/templates/SimpleTrendingCard.d.ts.map +1 -0
  39. package/lib/commonjs/components/Card/types.d.ts +2 -0
  40. package/lib/commonjs/components/Card/types.d.ts.map +1 -0
  41. package/lib/commonjs/components/CloseIcon/CloseIcon.d.ts +14 -0
  42. package/lib/commonjs/components/CloseIcon/CloseIcon.d.ts.map +1 -0
  43. package/lib/commonjs/components/CloseIcon/index.d.ts +3 -0
  44. package/lib/commonjs/components/CloseIcon/index.d.ts.map +1 -0
  45. package/lib/commonjs/components/DateRangePicker/DateRangePicker.d.ts +20 -0
  46. package/lib/commonjs/components/DateRangePicker/DateRangePicker.d.ts.map +1 -0
  47. package/lib/commonjs/components/DateRangePicker/index.d.ts +2 -0
  48. package/lib/commonjs/components/DateRangePicker/index.d.ts.map +1 -0
  49. package/lib/commonjs/components/Filters/Filters.d.ts +56 -0
  50. package/lib/commonjs/components/Filters/Filters.d.ts.map +1 -0
  51. package/lib/commonjs/components/Filters/PointsRangeSelector.d.ts +27 -0
  52. package/lib/commonjs/components/Filters/PointsRangeSelector.d.ts.map +1 -0
  53. package/lib/commonjs/components/Filters/index.d.ts +4 -0
  54. package/lib/commonjs/components/Filters/index.d.ts.map +1 -0
  55. package/lib/commonjs/components/Input/Input.d.ts +4 -0
  56. package/lib/commonjs/components/Input/Input.d.ts.map +1 -0
  57. package/lib/commonjs/components/Input/index.d.ts +3 -0
  58. package/lib/commonjs/components/Input/index.d.ts.map +1 -0
  59. package/lib/commonjs/components/LockOverlay/LockOverlay.d.ts +15 -0
  60. package/lib/commonjs/components/LockOverlay/LockOverlay.d.ts.map +1 -0
  61. package/lib/commonjs/components/LockOverlay/index.d.ts +3 -0
  62. package/lib/commonjs/components/LockOverlay/index.d.ts.map +1 -0
  63. package/lib/commonjs/components/Marquee/Marquee.d.ts +14 -0
  64. package/lib/commonjs/components/Marquee/Marquee.d.ts.map +1 -0
  65. package/lib/commonjs/components/Marquee/index.d.ts +3 -0
  66. package/lib/commonjs/components/Marquee/index.d.ts.map +1 -0
  67. package/lib/commonjs/components/NumericStepper/NumericStepper.d.ts +16 -0
  68. package/lib/commonjs/components/NumericStepper/NumericStepper.d.ts.map +1 -0
  69. package/lib/commonjs/components/NumericStepper/index.d.ts +3 -0
  70. package/lib/commonjs/components/NumericStepper/index.d.ts.map +1 -0
  71. package/lib/commonjs/components/Popup/Popup.d.ts +39 -0
  72. package/lib/commonjs/components/Popup/Popup.d.ts.map +1 -0
  73. package/lib/commonjs/components/Popup/index.d.ts +3 -0
  74. package/lib/commonjs/components/Popup/index.d.ts.map +1 -0
  75. package/lib/commonjs/components/ProgressBar/ProgressBar.d.ts +22 -0
  76. package/lib/commonjs/components/ProgressBar/ProgressBar.d.ts.map +1 -0
  77. package/lib/commonjs/components/ProgressBar/index.d.ts +3 -0
  78. package/lib/commonjs/components/ProgressBar/index.d.ts.map +1 -0
  79. package/lib/commonjs/components/RedeemedVoucher/RedeemedVoucherSheet.d.ts +4 -0
  80. package/lib/commonjs/components/RedeemedVoucher/RedeemedVoucherSheet.d.ts.map +1 -0
  81. package/lib/commonjs/components/RedeemedVoucher/index.d.ts +3 -0
  82. package/lib/commonjs/components/RedeemedVoucher/index.d.ts.map +1 -0
  83. package/lib/commonjs/components/RedemptionOption/RedemptionOption.d.ts +23 -0
  84. package/lib/commonjs/components/RedemptionOption/RedemptionOption.d.ts.map +1 -0
  85. package/lib/commonjs/components/RedemptionOption/index.d.ts +3 -0
  86. package/lib/commonjs/components/RedemptionOption/index.d.ts.map +1 -0
  87. package/lib/commonjs/components/ScratchCard/ScratchCard.d.ts +19 -0
  88. package/lib/commonjs/components/ScratchCard/ScratchCard.d.ts.map +1 -0
  89. package/lib/commonjs/components/ScratchCard/ScratchCardContent.d.ts +7 -0
  90. package/lib/commonjs/components/ScratchCard/ScratchCardContent.d.ts.map +1 -0
  91. package/lib/commonjs/components/ScratchCard/index.d.ts +4 -0
  92. package/lib/commonjs/components/ScratchCard/index.d.ts.map +1 -0
  93. package/lib/commonjs/components/SelectAmount/SelectAmount.d.ts +29 -0
  94. package/lib/commonjs/components/SelectAmount/SelectAmount.d.ts.map +1 -0
  95. package/lib/commonjs/components/SelectAmount/index.d.ts +2 -0
  96. package/lib/commonjs/components/SelectAmount/index.d.ts.map +1 -0
  97. package/lib/commonjs/components/Skeleton/Shimmer.d.ts +11 -0
  98. package/lib/commonjs/components/Skeleton/Shimmer.d.ts.map +1 -0
  99. package/lib/commonjs/components/Skeleton/SkeletonElement.d.ts +10 -0
  100. package/lib/commonjs/components/Skeleton/SkeletonElement.d.ts.map +1 -0
  101. package/lib/commonjs/components/Skeleton/index.d.ts +4 -0
  102. package/lib/commonjs/components/Skeleton/index.d.ts.map +1 -0
  103. package/lib/commonjs/components/Suggestions/SuggestionList.d.ts +12 -0
  104. package/lib/commonjs/components/Suggestions/SuggestionList.d.ts.map +1 -0
  105. package/lib/commonjs/components/TravelBooking/CarRentalForm.d.ts +52 -0
  106. package/lib/commonjs/components/TravelBooking/CarRentalForm.d.ts.map +1 -0
  107. package/lib/commonjs/components/TravelBooking/FlightForm.d.ts +47 -0
  108. package/lib/commonjs/components/TravelBooking/FlightForm.d.ts.map +1 -0
  109. package/lib/commonjs/components/TravelBooking/FlightSummary.d.ts +32 -0
  110. package/lib/commonjs/components/TravelBooking/FlightSummary.d.ts.map +1 -0
  111. package/lib/commonjs/components/TravelBooking/HotelForm.d.ts +45 -0
  112. package/lib/commonjs/components/TravelBooking/HotelForm.d.ts.map +1 -0
  113. package/lib/commonjs/components/TravelBooking/HotelSummary.d.ts +36 -0
  114. package/lib/commonjs/components/TravelBooking/HotelSummary.d.ts.map +1 -0
  115. package/lib/commonjs/components/TravelBooking/SummaryBar.d.ts +12 -0
  116. package/lib/commonjs/components/TravelBooking/SummaryBar.d.ts.map +1 -0
  117. package/lib/commonjs/components/TravelBooking/TabSelector.d.ts +15 -0
  118. package/lib/commonjs/components/TravelBooking/TabSelector.d.ts.map +1 -0
  119. package/lib/commonjs/components/TravelBooking/TravelBooking.d.ts +47 -0
  120. package/lib/commonjs/components/TravelBooking/TravelBooking.d.ts.map +1 -0
  121. package/lib/commonjs/components/TravelBooking/index.d.ts +2 -0
  122. package/lib/commonjs/components/TravelBooking/index.d.ts.map +1 -0
  123. package/lib/commonjs/components/TravelBooking/types.d.ts +3 -0
  124. package/lib/commonjs/components/TravelBooking/types.d.ts.map +1 -0
  125. package/lib/commonjs/components/UnlockRewards/RewardItem.d.ts +23 -0
  126. package/lib/commonjs/components/UnlockRewards/RewardItem.d.ts.map +1 -0
  127. package/lib/commonjs/components/UnlockRewards/UnlockRewards.d.ts +41 -0
  128. package/lib/commonjs/components/UnlockRewards/UnlockRewards.d.ts.map +1 -0
  129. package/lib/commonjs/components/UnlockRewards/index.d.ts +4 -0
  130. package/lib/commonjs/components/UnlockRewards/index.d.ts.map +1 -0
  131. package/lib/commonjs/components/Wheel/Wheel.d.ts +25 -0
  132. package/lib/commonjs/components/Wheel/Wheel.d.ts.map +1 -0
  133. package/lib/commonjs/components/Wheel/index.d.ts +3 -0
  134. package/lib/commonjs/components/Wheel/index.d.ts.map +1 -0
  135. package/lib/commonjs/components/index.d.ts +2 -0
  136. package/lib/commonjs/components/index.d.ts.map +1 -0
  137. package/lib/commonjs/constants/BRANDS.d.ts +14 -0
  138. package/lib/commonjs/constants/BRANDS.d.ts.map +1 -0
  139. package/lib/commonjs/index.d.ts +2 -0
  140. package/lib/commonjs/index.d.ts.map +1 -0
  141. package/lib/commonjs/theme/Colors.d.ts +110 -0
  142. package/lib/commonjs/theme/Colors.d.ts.map +1 -0
  143. package/lib/commonjs/theme/ThemeContext.d.ts +11 -0
  144. package/lib/commonjs/theme/ThemeContext.d.ts.map +1 -0
  145. package/lib/commonjs/theme/index.d.ts +2 -0
  146. package/lib/commonjs/theme/index.d.ts.map +1 -0
  147. package/lib/module/app.js +8 -8
  148. package/lib/module/app.js.map +1 -1
  149. package/lib/module/components/RangeSlider/RangeSlider.js +56 -95
  150. package/lib/module/components/RangeSlider/RangeSlider.js.map +1 -1
  151. package/lib/module/components/RangeSlider/SliderLabel.js +95 -0
  152. package/lib/module/components/RangeSlider/SliderLabel.js.map +1 -0
  153. package/lib/typescript/src/app.d.ts.map +1 -1
  154. package/lib/typescript/src/components/RangeSlider/RangeSlider.d.ts +3 -25
  155. package/lib/typescript/src/components/RangeSlider/RangeSlider.d.ts.map +1 -1
  156. package/lib/typescript/src/components/RangeSlider/SliderLabel.d.ts +15 -0
  157. package/lib/typescript/src/components/RangeSlider/SliderLabel.d.ts.map +1 -0
  158. package/package.json +1 -1
  159. package/src/app.tsx +3 -1
  160. package/src/components/RangeSlider/RangeSlider.tsx +60 -117
  161. package/src/components/RangeSlider/SliderLabel.tsx +123 -0
@@ -0,0 +1,3 @@
1
+ export const __esModule: boolean;
2
+ export const FormInputType: {};
3
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":""}
@@ -0,0 +1,23 @@
1
+ export const __esModule: boolean;
2
+ export default RewardItem;
3
+ declare function RewardItem({ icon, title, description, status, statusBgColor, statusTextColor, activeIcon, isActive, inactiveIconStyle, activeIconStyle, isRTL, containerStyle, badgeStyle, textContainerStyle, titleTextStyle, descriptionTextStyle, statusBadgeStyle, statusTextStyle }: {
4
+ icon: any;
5
+ title: any;
6
+ description: any;
7
+ status: any;
8
+ statusBgColor: any;
9
+ statusTextColor: any;
10
+ activeIcon: any;
11
+ isActive: any;
12
+ inactiveIconStyle: any;
13
+ activeIconStyle: any;
14
+ isRTL?: boolean | undefined;
15
+ containerStyle: any;
16
+ badgeStyle: any;
17
+ textContainerStyle: any;
18
+ titleTextStyle: any;
19
+ descriptionTextStyle: any;
20
+ statusBadgeStyle: any;
21
+ statusTextStyle: any;
22
+ }): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
23
+ //# sourceMappingURL=RewardItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RewardItem.d.ts","sourceRoot":"","sources":["RewardItem.js"],"names":[],"mappings":";;AAYA;;;;;;;;;;;;;;;;;;;+FAoEC"}
@@ -0,0 +1,41 @@
1
+ export const __esModule: boolean;
2
+ export default UnlockRewards;
3
+ declare function UnlockRewards({ rewards, title, description, activeIconStyle, inactiveIconStyle, onClose, isRTL, topBackgroundImage, topBackgroundColor: topBackgroundColorProp, topBackgroundHeight, topBackgroundImageStyle, topBackgroundStyle, topGradientColors, topGradientStart, topGradientEnd, topGradientLocations, cardContainerStyle, mainTitleStyle, subtitleStyle, rewardsContainerStyle, smallIconsRowStyle, rewardItemContainerStyle, rewardItemIconWrapperStyle, rewardItemTextContainerStyle, rewardItemTitleTextStyle, rewardItemDescriptionTextStyle, rewardItemStatusBadgeStyle, rewardItemStatusTextStyle, showCloseIcon, customCloseIcon, closeIconVariant, closeIconContainerStyle, closeIconStyle, closeIconColor, closeIconSize, customTopBackground }: {
4
+ rewards: any;
5
+ title: any;
6
+ description: any;
7
+ activeIconStyle: any;
8
+ inactiveIconStyle: any;
9
+ onClose: any;
10
+ isRTL: any;
11
+ topBackgroundImage: any;
12
+ topBackgroundColor: any;
13
+ topBackgroundHeight?: number | undefined;
14
+ topBackgroundImageStyle: any;
15
+ topBackgroundStyle: any;
16
+ topGradientColors: any;
17
+ topGradientStart: any;
18
+ topGradientEnd: any;
19
+ topGradientLocations: any;
20
+ cardContainerStyle: any;
21
+ mainTitleStyle: any;
22
+ subtitleStyle: any;
23
+ rewardsContainerStyle: any;
24
+ smallIconsRowStyle: any;
25
+ rewardItemContainerStyle: any;
26
+ rewardItemIconWrapperStyle: any;
27
+ rewardItemTextContainerStyle: any;
28
+ rewardItemTitleTextStyle: any;
29
+ rewardItemDescriptionTextStyle: any;
30
+ rewardItemStatusBadgeStyle: any;
31
+ rewardItemStatusTextStyle: any;
32
+ showCloseIcon?: boolean | undefined;
33
+ customCloseIcon: any;
34
+ closeIconVariant?: string | undefined;
35
+ closeIconContainerStyle: any;
36
+ closeIconStyle: any;
37
+ closeIconColor: any;
38
+ closeIconSize?: number | undefined;
39
+ customTopBackground: any;
40
+ }): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
41
+ //# sourceMappingURL=UnlockRewards.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UnlockRewards.d.ts","sourceRoot":"","sources":["UnlockRewards.js"],"names":[],"mappings":";;AAmBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+FA4IC"}
@@ -0,0 +1,4 @@
1
+ export const __esModule: boolean;
2
+ export const RewardItem: any;
3
+ export const UnlockRewards: any;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""}
@@ -0,0 +1,25 @@
1
+ export const __esModule: boolean;
2
+ export default SpinWheel;
3
+ declare function SpinWheel({ items, predeterminedWinner, size, spinDuration, enabled, onSpinStart, onSpinEnd, containerStyle, centerStyle, spinButtonText, wheelTextStyle, knobStyle, knobColor, actionButtonStyle, actionButtonTextStyle, wheelBorderColor, wheelBorderWidth, wheelTextColor, actionButtonProps, centerSize }: {
4
+ items: any;
5
+ predeterminedWinner: any;
6
+ size?: number | undefined;
7
+ spinDuration?: number | undefined;
8
+ enabled?: boolean | undefined;
9
+ onSpinStart: any;
10
+ onSpinEnd: any;
11
+ containerStyle: any;
12
+ centerStyle: any;
13
+ spinButtonText?: string | undefined;
14
+ wheelTextStyle: any;
15
+ knobStyle: any;
16
+ knobColor?: string | undefined;
17
+ actionButtonStyle: any;
18
+ actionButtonTextStyle: any;
19
+ wheelBorderColor: any;
20
+ wheelBorderWidth: any;
21
+ wheelTextColor?: string | undefined;
22
+ actionButtonProps: any;
23
+ centerSize: any;
24
+ }): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
25
+ //# sourceMappingURL=Wheel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Wheel.d.ts","sourceRoot":"","sources":["Wheel.js"],"names":[],"mappings":";;AAgEA;;;;;;;;;;;;;;;;;;;;;+FAgPC"}
@@ -0,0 +1,3 @@
1
+ export const __esModule: boolean;
2
+ export const Wheel: any;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export const __esModule: boolean;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ export const __esModule: boolean;
2
+ export default BRANDS;
3
+ declare const BRANDS: ({
4
+ id: string;
5
+ name: string;
6
+ logo: any;
7
+ checked?: undefined;
8
+ } | {
9
+ id: string;
10
+ name: string;
11
+ logo: any;
12
+ checked: boolean;
13
+ })[];
14
+ //# sourceMappingURL=BRANDS.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BRANDS.d.ts","sourceRoot":"","sources":["BRANDS.js"],"names":[],"mappings":";;AAMA;;;;;;;;;;KAiDG"}
@@ -0,0 +1,2 @@
1
+ export const __esModule: boolean;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""}
@@ -0,0 +1,110 @@
1
+ export const __esModule: boolean;
2
+ export namespace lightTheme {
3
+ let background: string;
4
+ let surface: string;
5
+ let surfaceVariant: string;
6
+ let primary: string;
7
+ let primaryVariant: string;
8
+ let secondary: string;
9
+ let secondaryVariant: string;
10
+ let error: string;
11
+ let success: string;
12
+ let warning: string;
13
+ let info: string;
14
+ let text: string;
15
+ let onPrimary: string;
16
+ let onSecondary: string;
17
+ let onError: string;
18
+ let onBackground: string;
19
+ let onSurface: string;
20
+ let border: string;
21
+ let divider: string;
22
+ let disabled: string;
23
+ let inputBackground: string;
24
+ let inputText: string;
25
+ let labelText: string;
26
+ let placeholderText: string;
27
+ let helper: string;
28
+ namespace spacing {
29
+ let xs: number;
30
+ let s: number;
31
+ let m: number;
32
+ let l: number;
33
+ let xl: number;
34
+ let xxl: number;
35
+ }
36
+ let skeletonBackgroundColor: string;
37
+ let skeletonItemColor: string;
38
+ }
39
+ export namespace darkTheme {
40
+ let background_1: string;
41
+ export { background_1 as background };
42
+ let surface_1: string;
43
+ export { surface_1 as surface };
44
+ let surfaceVariant_1: string;
45
+ export { surfaceVariant_1 as surfaceVariant };
46
+ let primary_1: string;
47
+ export { primary_1 as primary };
48
+ let primaryVariant_1: string;
49
+ export { primaryVariant_1 as primaryVariant };
50
+ let secondary_1: string;
51
+ export { secondary_1 as secondary };
52
+ let secondaryVariant_1: string;
53
+ export { secondaryVariant_1 as secondaryVariant };
54
+ let error_1: string;
55
+ export { error_1 as error };
56
+ let success_1: string;
57
+ export { success_1 as success };
58
+ let warning_1: string;
59
+ export { warning_1 as warning };
60
+ let info_1: string;
61
+ export { info_1 as info };
62
+ let text_1: string;
63
+ export { text_1 as text };
64
+ let onPrimary_1: string;
65
+ export { onPrimary_1 as onPrimary };
66
+ let onSecondary_1: string;
67
+ export { onSecondary_1 as onSecondary };
68
+ let onError_1: string;
69
+ export { onError_1 as onError };
70
+ let onBackground_1: string;
71
+ export { onBackground_1 as onBackground };
72
+ let onSurface_1: string;
73
+ export { onSurface_1 as onSurface };
74
+ let border_1: string;
75
+ export { border_1 as border };
76
+ let divider_1: string;
77
+ export { divider_1 as divider };
78
+ let disabled_1: string;
79
+ export { disabled_1 as disabled };
80
+ let inputBackground_1: string;
81
+ export { inputBackground_1 as inputBackground };
82
+ let inputText_1: string;
83
+ export { inputText_1 as inputText };
84
+ let labelText_1: string;
85
+ export { labelText_1 as labelText };
86
+ let placeholderText_1: string;
87
+ export { placeholderText_1 as placeholderText };
88
+ let helper_1: string;
89
+ export { helper_1 as helper };
90
+ export namespace spacing_1 {
91
+ let xs_1: number;
92
+ export { xs_1 as xs };
93
+ let s_1: number;
94
+ export { s_1 as s };
95
+ let m_1: number;
96
+ export { m_1 as m };
97
+ let l_1: number;
98
+ export { l_1 as l };
99
+ let xl_1: number;
100
+ export { xl_1 as xl };
101
+ let xxl_1: number;
102
+ export { xxl_1 as xxl };
103
+ }
104
+ export { spacing_1 as spacing };
105
+ let skeletonBackgroundColor_1: string;
106
+ export { skeletonBackgroundColor_1 as skeletonBackgroundColor };
107
+ let skeletonItemColor_1: string;
108
+ export { skeletonItemColor_1 as skeletonItemColor };
109
+ }
110
+ //# sourceMappingURL=Colors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Colors.d.ts","sourceRoot":"","sources":["Colors.js"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ export const __esModule: boolean;
2
+ export const ThemeContext: any;
3
+ export function RelatedProvider({ children, customLightTheme, customDarkTheme, dark, forceRTL }: {
4
+ children: any;
5
+ customLightTheme: any;
6
+ customDarkTheme: any;
7
+ dark: any;
8
+ forceRTL: any;
9
+ }): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
10
+ export function useTheme(): any;
11
+ //# sourceMappingURL=ThemeContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThemeContext.d.ts","sourceRoot":"","sources":["ThemeContext.js"],"names":[],"mappings":";;AAoBA;;;;;;+FA8BC;AAID,gCAA2D"}
@@ -0,0 +1,2 @@
1
+ export const __esModule: boolean;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""}
package/lib/module/app.js CHANGED
@@ -4,8 +4,8 @@ import React, { useState } from "react";
4
4
  import { SafeAreaView, StyleSheet, StatusBar } from "react-native";
5
5
  // Adjust path as needed
6
6
  import { GestureHandlerRootView } from "react-native-gesture-handler";
7
+ import { RangeSlider } from "./components/index.js";
7
8
  import { lightTheme, RelatedProvider, useTheme } from "./theme/index.js";
8
- import CircularProgressBar from "./components/ProgressBar/CircularProgressBar.js";
9
9
  import { BottomSheetStackProvider } from "./contexts/index.js";
10
10
  import { SafeAreaProvider } from "react-native-safe-area-context";
11
11
 
@@ -63,13 +63,13 @@ const App = () => {
63
63
  barStyle: "light-content"
64
64
  }), /*#__PURE__*/_jsx(SafeAreaView, {
65
65
  style: styles.appContainer,
66
- children: /*#__PURE__*/_jsx(CircularProgressBar, {
67
- variant: "steps",
68
- totalSteps: 4,
69
- currentStep: 4,
70
- size: 43,
71
- strokeWidth: 2,
72
- progressColor: "#9CA0A3"
66
+ children: /*#__PURE__*/_jsx(RangeSlider, {
67
+ initialMinValue: 0,
68
+ initialMaxValue: 100,
69
+ min: 0,
70
+ max: 500,
71
+ sliderWidth: 100,
72
+ onValueChange: console.log
73
73
  })
74
74
  })]
75
75
  })
@@ -1 +1 @@
1
- {"version":3,"names":["React","useState","SafeAreaView","StyleSheet","StatusBar","GestureHandlerRootView","lightTheme","RelatedProvider","useTheme","CircularProgressBar","BottomSheetStackProvider","SafeAreaProvider","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","DUMMY_DATA","id","image","title","App","theme","departureDate","setDepartureDate","undefined","returnDate","setReturnDate","progress","setProgress","handleAnimate","newProgress","Math","floor","random","children","style","flex","barStyle","styles","appContainer","variant","totalSteps","currentStep","size","strokeWidth","progressColor","create","backgroundColor","justifyContent"],"sourceRoot":"..\\..\\src","sources":["app.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAASC,YAAY,EAAEC,UAAU,EAAEC,SAAS,QAAQ,cAAc;AACgB;AAClF,SAASC,sBAAsB,QAAQ,8BAA8B;AAUrE,SAASC,UAAU,EAAEC,eAAe,EAAEC,QAAQ,QAAQ,kBAAS;AAC/D,OAAOC,mBAAmB,MAAM,iDAA8C;AAE9E,SAASC,wBAAwB,QAAQ,qBAAY;AACrD,SAASC,gBAAgB,QAAQ,gCAAgC;;AAEjE;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QAAA,IAAAC,SAAA;AACA,MAAMC,UAAU,GAAG,CACjB;EACEC,EAAE,EAAE,GAAG;EACPC,KAAK,EACH,iHAAiH;EACnHC,KAAK,EAAE;AACT,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;EACEF,EAAE,EAAE,GAAG;EACPC,KAAK,EACH,iHAAiH;EACnHC,KAAK,EAAE;AACT,CAAC,EACD;EACEF,EAAE,EAAE,GAAG;EACPC,KAAK,EACH,iHAAiH;EACnHC,KAAK,EAAE;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AAAA,CACD;AAED,MAAMC,GAAG,GAAGA,CAAA,KAAM;EAChB,MAAM;IAAEC;EAAM,CAAC,GAAGf,QAAQ,CAAC,CAAC;EAE5B,MAAM,CAACgB,aAAa,EAAEC,gBAAgB,CAAC,GAAGxB,QAAQ,CAChDyB,SACF,CAAC;EACD,MAAM,CAACC,UAAU,EAAEC,aAAa,CAAC,GAAG3B,QAAQ,CAAqByB,SAAS,CAAC;EAE3E,MAAM,CAACG,QAAQ,EAAEC,WAAW,CAAC,GAAG7B,QAAQ,CAAC,EAAE,CAAC;EAC5C,MAAM8B,aAAa,GAAGA,CAAA,KAAM;IAC1B;IACA,MAAMC,WAAW,GAAGC,IAAI,CAACC,KAAK,CAACD,IAAI,CAACE,MAAM,CAAC,CAAC,GAAG,GAAG,CAAC;IACnDL,WAAW,CAACE,WAAW,CAAC;EAC1B,CAAC;EACD,oBACEnB,IAAA,CAAAI,SAAA;IAAAmB,QAAA,eACAvB,IAAA,CAACF,gBAAgB;MAAAyB,QAAA,eACfvB,IAAA,CAACR,sBAAsB;QAACgC,KAAK,EAAE;UAAEC,IAAI,EAAE;QAAE,CAAE;QAAAF,QAAA,eACzCvB,IAAA,CAACN,eAAe;UAACgB,KAAK,EAAEjB,UAAW;UAAA8B,QAAA,eACjCrB,KAAA,CAACL,wBAAwB;YAAA0B,QAAA,gBACvBvB,IAAA,CAACT,SAAS;cAACmC,QAAQ,EAAC;YAAe,CAAE,CAAC,eACtC1B,IAAA,CAACX,YAAY;cAACmC,KAAK,EAAEG,MAAM,CAACC,YAAa;cAAAL,QAAA,eA+CvCvB,IAAA,CAACJ,mBAAmB;gBAACiC,OAAO,EAAC,OAAO;gBAACC,UAAU,EAAE,CAAE;gBAACC,WAAW,EAAE,CAAE;gBAACC,IAAI,EAAE,EAAG;gBAAEC,WAAW,EAAE,CAAE;gBAACC,aAAa,EAAC;cAAS,CAAsB;YAAC,CAEjI,CAAC;UAAA,CACS;QAAC,CACZ;MAAC,CACI;IAAC,CACP;EAAC,CACnB,CAAC;AAEP,CAAC;AAED,MAAMP,MAAM,GAAGrC,UAAU,CAAC6C,MAAM,CAAC;EAC/BP,YAAY,EAAE;IACZH,IAAI,EAAE,CAAC;IACPW,eAAe,EAAC,MAAM;IACtBC,cAAc,EAAE,QAAQ,CAAE;EAC5B;AACF,CAAC,CAAC;AAEF,eAAe5B,GAAG","ignoreList":[]}
1
+ {"version":3,"names":["React","useState","SafeAreaView","StyleSheet","StatusBar","GestureHandlerRootView","RangeSlider","lightTheme","RelatedProvider","useTheme","BottomSheetStackProvider","SafeAreaProvider","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","DUMMY_DATA","id","image","title","App","theme","departureDate","setDepartureDate","undefined","returnDate","setReturnDate","progress","setProgress","handleAnimate","newProgress","Math","floor","random","children","style","flex","barStyle","styles","appContainer","initialMinValue","initialMaxValue","min","max","sliderWidth","onValueChange","console","log","create","backgroundColor","justifyContent"],"sourceRoot":"..\\..\\src","sources":["app.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAASC,YAAY,EAAEC,UAAU,EAAEC,SAAS,QAAQ,cAAc;AACgB;AAClF,SAASC,sBAAsB,QAAQ,8BAA8B;AACrE,SAQEC,WAAW,QACN,uBAAc;AACrB,SAASC,UAAU,EAAEC,eAAe,EAAEC,QAAQ,QAAQ,kBAAS;AAG/D,SAASC,wBAAwB,QAAQ,qBAAY;AACrD,SAASC,gBAAgB,QAAQ,gCAAgC;;AAEjE;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QAAA,IAAAC,SAAA;AACA,MAAMC,UAAU,GAAG,CACjB;EACEC,EAAE,EAAE,GAAG;EACPC,KAAK,EACH,iHAAiH;EACnHC,KAAK,EAAE;AACT,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;EACEF,EAAE,EAAE,GAAG;EACPC,KAAK,EACH,iHAAiH;EACnHC,KAAK,EAAE;AACT,CAAC,EACD;EACEF,EAAE,EAAE,GAAG;EACPC,KAAK,EACH,iHAAiH;EACnHC,KAAK,EAAE;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AAAA,CACD;AAED,MAAMC,GAAG,GAAGA,CAAA,KAAM;EAChB,MAAM;IAAEC;EAAM,CAAC,GAAGd,QAAQ,CAAC,CAAC;EAE5B,MAAM,CAACe,aAAa,EAAEC,gBAAgB,CAAC,GAAGxB,QAAQ,CAChDyB,SACF,CAAC;EACD,MAAM,CAACC,UAAU,EAAEC,aAAa,CAAC,GAAG3B,QAAQ,CAAqByB,SAAS,CAAC;EAE3E,MAAM,CAACG,QAAQ,EAAEC,WAAW,CAAC,GAAG7B,QAAQ,CAAC,EAAE,CAAC;EAC5C,MAAM8B,aAAa,GAAGA,CAAA,KAAM;IAC1B;IACA,MAAMC,WAAW,GAAGC,IAAI,CAACC,KAAK,CAACD,IAAI,CAACE,MAAM,CAAC,CAAC,GAAG,GAAG,CAAC;IACnDL,WAAW,CAACE,WAAW,CAAC;EAC1B,CAAC;EACD,oBACEnB,IAAA,CAAAI,SAAA;IAAAmB,QAAA,eACAvB,IAAA,CAACF,gBAAgB;MAAAyB,QAAA,eACfvB,IAAA,CAACR,sBAAsB;QAACgC,KAAK,EAAE;UAAEC,IAAI,EAAE;QAAE,CAAE;QAAAF,QAAA,eACzCvB,IAAA,CAACL,eAAe;UAACe,KAAK,EAAEhB,UAAW;UAAA6B,QAAA,eACjCrB,KAAA,CAACL,wBAAwB;YAAA0B,QAAA,gBACvBvB,IAAA,CAACT,SAAS;cAACmC,QAAQ,EAAC;YAAe,CAAE,CAAC,eACtC1B,IAAA,CAACX,YAAY;cAACmC,KAAK,EAAEG,MAAM,CAACC,YAAa;cAAAL,QAAA,eAgDvCvB,IAAA,CAACP,WAAW;gBAACoC,eAAe,EAAE,CAAE;gBAACC,eAAe,EAAE,GAAI;gBAACC,GAAG,EAAE,CAAE;gBAACC,GAAG,EAAE,GAAI;gBAACC,WAAW,EAAE,GAAI;gBAACC,aAAa,EAAEC,OAAO,CAACC;cAAI,CAAc;YAAC,CAEzH,CAAC;UAAA,CACS;QAAC,CACZ;MAAC,CACI;IAAC,CACP;EAAC,CACnB,CAAC;AAEP,CAAC;AAED,MAAMT,MAAM,GAAGrC,UAAU,CAAC+C,MAAM,CAAC;EAC/BT,YAAY,EAAE;IACZH,IAAI,EAAE,CAAC;IACPa,eAAe,EAAC,MAAM;IACtBC,cAAc,EAAE,QAAQ,CAAE;EAC5B;AACF,CAAC,CAAC;AAEF,eAAe9B,GAAG","ignoreList":[]}
@@ -1,15 +1,16 @@
1
1
  "use strict";
2
2
 
3
3
  import React, { useCallback, useState } from "react";
4
- import { StyleSheet, View, Text } from "react-native";
4
+ import { StyleSheet, View } from "react-native";
5
5
  import { Gesture, GestureDetector } from "react-native-gesture-handler";
6
6
  import Animated, { runOnJS, useAnimatedStyle, useSharedValue } from "react-native-reanimated";
7
+ import { SliderLabels } from "./SliderLabel.js";
7
8
  import { useTheme } from "../../theme/index.js";
8
9
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
- const LABEL_HEIGHT = 26; // Default height for the label area above the thumb
10
-
10
+ const THUMB_SIZE = 28;
11
+ const RAIL_HEIGHT = 6;
12
+ const LABEL_HEIGHT = 26;
11
13
  const RangeSlider = ({
12
- // Core props
13
14
  min,
14
15
  max,
15
16
  step = 1,
@@ -17,27 +18,17 @@ const RangeSlider = ({
17
18
  initialMinValue,
18
19
  initialMaxValue,
19
20
  onValueChange,
20
- // Sizing props
21
- thumbSize = 28,
22
- railHeight = 6,
23
- // Styling props
24
- containerStyle,
25
- railStyle,
26
- activeRailStyle,
27
- thumbStyle,
28
- labelContainerStyle,
29
- labelTextStyle
21
+ theme
30
22
  }) => {
31
23
  const {
32
- theme
24
+ theme: defaultTheme
33
25
  } = useTheme();
34
- const styles = getStyles(theme, thumbSize, railHeight);
26
+ const currTheme = theme || defaultTheme;
27
+ const styles = getStyles(currTheme);
35
28
 
36
- // State for labels, allowing them to have dynamic width
29
+ // State for label text values, passed down to the SliderLabels component
37
30
  const [leftLabel, setLeftLabel] = useState(initialMinValue.toLocaleString());
38
31
  const [rightLabel, setRightLabel] = useState(initialMaxValue.toLocaleString());
39
-
40
- // --- Worklets for calculations ---
41
32
  const valueToPosition = useCallback(value => {
42
33
  "worklet";
43
34
 
@@ -49,18 +40,13 @@ const RangeSlider = ({
49
40
  const rawValue = position / sliderWidth * (max - min) + min;
50
41
  return Math.round(rawValue / step) * step;
51
42
  }, [min, max, step, sliderWidth]);
52
-
53
- // --- Shared Values for Animation ---
54
43
  const leftPosition = useSharedValue(valueToPosition(initialMinValue));
55
44
  const rightPosition = useSharedValue(valueToPosition(initialMaxValue));
56
45
  const context = useSharedValue({
57
46
  x: 0
58
47
  });
59
48
  const activeThumb = useSharedValue(null);
60
-
61
- // --- Pan Gesture Handler ---
62
49
  const panGesture = Gesture.Pan().onBegin(e => {
63
- // Determine which thumb is closer to the touch point
64
50
  const distToLeft = Math.abs(e.x - leftPosition.value);
65
51
  const distToRight = Math.abs(e.x - rightPosition.value);
66
52
  if (distToLeft <= distToRight) {
@@ -77,20 +63,17 @@ const RangeSlider = ({
77
63
  }).onUpdate(e => {
78
64
  if (activeThumb.value === null) return;
79
65
  const newPos = context.value.x + e.translationX;
80
-
81
- // Update the correct thumb's position and label
82
66
  if (activeThumb.value === "left") {
83
- const clampedPos = Math.max(0, Math.min(newPos, rightPosition.value));
67
+ const clampedPos = Math.max(0, Math.min(newPos, rightPosition.value - THUMB_SIZE));
84
68
  leftPosition.value = clampedPos;
85
69
  runOnJS(setLeftLabel)(positionToValue(clampedPos).toLocaleString());
86
70
  } else {
87
- const clampedPos = Math.min(sliderWidth, Math.max(newPos, leftPosition.value));
71
+ const clampedPos = Math.min(sliderWidth, Math.max(newPos, leftPosition.value + THUMB_SIZE));
88
72
  rightPosition.value = clampedPos;
89
73
  runOnJS(setRightLabel)(positionToValue(clampedPos).toLocaleString());
90
74
  }
91
75
  }).onEnd(() => {
92
76
  if (activeThumb.value === null) return;
93
- // Finalize values and call the onValueChange callback
94
77
  const finalLeftValue = positionToValue(leftPosition.value);
95
78
  const finalRightValue = positionToValue(rightPosition.value);
96
79
  runOnJS(onValueChange)({
@@ -99,107 +82,85 @@ const RangeSlider = ({
99
82
  });
100
83
  activeThumb.value = null;
101
84
  });
102
-
103
- // --- Animated Styles ---
104
85
  const animatedLeftThumbStyle = useAnimatedStyle(() => ({
105
86
  transform: [{
106
87
  translateX: leftPosition.value
107
88
  }]
108
89
  }));
109
90
  const animatedRightThumbStyle = useAnimatedStyle(() => ({
110
- // Adjust position to account for the thumb's own width
111
91
  transform: [{
112
- translateX: rightPosition.value - thumbSize
92
+ translateX: rightPosition.value - THUMB_SIZE
113
93
  }]
114
94
  }));
115
95
  const animatedActiveRailStyle = useAnimatedStyle(() => ({
116
96
  left: leftPosition.value,
117
97
  right: sliderWidth - rightPosition.value
118
98
  }));
119
- return /*#__PURE__*/_jsx(GestureDetector, {
120
- gesture: panGesture,
121
- children: /*#__PURE__*/_jsxs(View, {
122
- style: [styles.container, {
123
- width: sliderWidth
124
- }, containerStyle],
125
- children: [/*#__PURE__*/_jsxs(View, {
99
+ return /*#__PURE__*/_jsxs(View, {
100
+ style: [styles.container, {
101
+ width: sliderWidth
102
+ }],
103
+ children: [/*#__PURE__*/_jsx(SliderLabels, {
104
+ leftValue: leftLabel,
105
+ rightValue: rightLabel,
106
+ leftPosition: leftPosition,
107
+ rightPosition: rightPosition,
108
+ sliderWidth: sliderWidth,
109
+ thumbSize: THUMB_SIZE
110
+ }), /*#__PURE__*/_jsx(GestureDetector, {
111
+ gesture: panGesture,
112
+ children: /*#__PURE__*/_jsxs(View, {
126
113
  style: styles.railContainer,
127
114
  children: [/*#__PURE__*/_jsx(View, {
128
- style: [styles.rail, railStyle]
115
+ style: styles.rail
129
116
  }), /*#__PURE__*/_jsx(Animated.View, {
130
- style: [styles.activeRail, animatedActiveRailStyle, activeRailStyle]
131
- })]
132
- }), /*#__PURE__*/_jsxs(Animated.View, {
133
- style: [styles.thumbContainer, animatedLeftThumbStyle],
134
- children: [/*#__PURE__*/_jsx(View, {
135
- style: [styles.labelContainer, labelContainerStyle],
136
- children: /*#__PURE__*/_jsx(Text, {
137
- style: [styles.labelText, labelTextStyle],
138
- numberOfLines: 1,
139
- children: leftLabel
117
+ style: [styles.activeRail, animatedActiveRailStyle]
118
+ }), /*#__PURE__*/_jsx(Animated.View, {
119
+ style: [styles.thumbContainer, animatedLeftThumbStyle],
120
+ children: /*#__PURE__*/_jsx(View, {
121
+ style: styles.thumb
140
122
  })
141
- }), /*#__PURE__*/_jsx(View, {
142
- style: [styles.thumb, thumbStyle]
143
- })]
144
- }), /*#__PURE__*/_jsxs(Animated.View, {
145
- style: [styles.thumbContainer, animatedRightThumbStyle],
146
- children: [/*#__PURE__*/_jsx(View, {
147
- style: [styles.labelContainer, labelContainerStyle],
148
- children: /*#__PURE__*/_jsx(Text, {
149
- style: [styles.labelText, labelTextStyle],
150
- numberOfLines: 1,
151
- children: rightLabel
123
+ }), /*#__PURE__*/_jsx(Animated.View, {
124
+ style: [styles.thumbContainer, animatedRightThumbStyle],
125
+ children: /*#__PURE__*/_jsx(View, {
126
+ style: styles.thumb
152
127
  })
153
- }), /*#__PURE__*/_jsx(View, {
154
- style: [styles.thumb, thumbStyle]
155
128
  })]
156
- })]
157
- })
129
+ })
130
+ })]
158
131
  });
159
132
  };
160
- const getStyles = (theme, thumbSize, railHeight) => StyleSheet.create({
133
+ const getStyles = theme => StyleSheet.create({
161
134
  container: {
162
- height: LABEL_HEIGHT + thumbSize,
163
- justifyContent: "center"
135
+ height: LABEL_HEIGHT + THUMB_SIZE,
136
+ justifyContent: "center",
137
+ marginTop: LABEL_HEIGHT // Add margin to prevent label cutoff
164
138
  },
165
139
  railContainer: {
166
- justifyContent: "center"
140
+ justifyContent: "center",
141
+ height: THUMB_SIZE
167
142
  },
168
143
  rail: {
169
- height: railHeight,
170
- borderRadius: railHeight / 2,
171
- backgroundColor: theme.surfaceVariant
144
+ height: RAIL_HEIGHT,
145
+ borderRadius: RAIL_HEIGHT / 2,
146
+ backgroundColor: theme.surface
172
147
  },
173
148
  activeRail: {
174
- height: railHeight,
149
+ height: RAIL_HEIGHT,
175
150
  backgroundColor: theme.primary,
176
151
  position: "absolute"
177
152
  },
178
153
  thumbContainer: {
179
154
  position: "absolute",
180
- alignItems: "center",
181
- // Center the thumb visually on its value point
182
- transform: [{
183
- translateX: -thumbSize / 2
184
- }]
185
- },
186
- labelContainer: {
187
- position: "absolute",
188
- bottom: thumbSize + 4,
189
- backgroundColor: theme.onBackground,
190
- paddingHorizontal: 10,
191
- paddingVertical: 4,
192
- borderRadius: 4
193
- },
194
- labelText: {
195
- color: theme.background,
196
- fontSize: 14,
197
- fontWeight: "bold"
155
+ width: THUMB_SIZE,
156
+ height: THUMB_SIZE,
157
+ justifyContent: "center",
158
+ alignItems: "center"
198
159
  },
199
160
  thumb: {
200
- width: thumbSize,
201
- height: thumbSize,
202
- borderRadius: thumbSize / 2,
161
+ width: THUMB_SIZE,
162
+ height: THUMB_SIZE,
163
+ borderRadius: THUMB_SIZE / 2,
203
164
  backgroundColor: theme.background,
204
165
  borderColor: theme.primary,
205
166
  borderWidth: 5