dhre-ui-kit 3.6.0 → 3.7.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/lib/index.js +19 -15
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +19 -15
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -10979,15 +10979,15 @@ const DateRangePicker = (props) => {
|
|
|
10979
10979
|
while (start < end) {
|
|
10980
10980
|
start.setDate(start.getDate() + 1);
|
|
10981
10981
|
markedDates[start.toISOString().split("T")[0]] = {
|
|
10982
|
-
color: theme.
|
|
10983
|
-
textColor: theme.
|
|
10982
|
+
color: theme.SURFACE_SECONDARY_TRANSPARENT,
|
|
10983
|
+
textColor: theme.CONTENT_INVERTED
|
|
10984
10984
|
};
|
|
10985
10985
|
}
|
|
10986
10986
|
}
|
|
10987
10987
|
if (startDate) {
|
|
10988
10988
|
markedDates[startDate] = {
|
|
10989
10989
|
startingDay: true,
|
|
10990
|
-
textColor: theme.
|
|
10990
|
+
textColor: theme.CONTENT_INVERTED,
|
|
10991
10991
|
customContainerStyle: {
|
|
10992
10992
|
backgroundColor: theme.CONTENT_ARROW_HIGHLIGHT,
|
|
10993
10993
|
borderRadius: 200,
|
|
@@ -11001,8 +11001,8 @@ const DateRangePicker = (props) => {
|
|
|
11001
11001
|
if (endDate) {
|
|
11002
11002
|
markedDates[endDate] = {
|
|
11003
11003
|
endingDay: true,
|
|
11004
|
-
color: theme.
|
|
11005
|
-
textColor: theme.
|
|
11004
|
+
color: theme.SURFACE_SECONDARY_TRANSPARENT,
|
|
11005
|
+
textColor: theme.CONTENT_INVERTED,
|
|
11006
11006
|
customContainerStyle: {
|
|
11007
11007
|
backgroundColor: theme.CONTENT_ARROW_HIGHLIGHT,
|
|
11008
11008
|
borderRadius: 200,
|
|
@@ -11014,8 +11014,8 @@ const DateRangePicker = (props) => {
|
|
|
11014
11014
|
};
|
|
11015
11015
|
markedDates[startDate] = {
|
|
11016
11016
|
startingDay: true,
|
|
11017
|
-
color: theme.
|
|
11018
|
-
textColor: theme.
|
|
11017
|
+
color: theme.SURFACE_SECONDARY_TRANSPARENT,
|
|
11018
|
+
textColor: theme.CONTENT_INVERTED,
|
|
11019
11019
|
customContainerStyle: {
|
|
11020
11020
|
backgroundColor: theme.CONTENT_ARROW_HIGHLIGHT,
|
|
11021
11021
|
borderRadius: 200,
|
|
@@ -11034,10 +11034,10 @@ const DateRangePicker = (props) => {
|
|
|
11034
11034
|
{
|
|
11035
11035
|
style: [
|
|
11036
11036
|
styles$b.calendarHeader,
|
|
11037
|
-
{ borderBottomColor: theme.
|
|
11037
|
+
{ borderBottomColor: theme.STROKE_SECONDARY }
|
|
11038
11038
|
]
|
|
11039
11039
|
},
|
|
11040
|
-
/* @__PURE__ */ React__default["default"].createElement(reactNative.Text, { style: [styles$b.monthText, { color: theme.
|
|
11040
|
+
/* @__PURE__ */ React__default["default"].createElement(reactNative.Text, { style: [styles$b.monthText, { color: theme.CONTENT_INVERTED }] }, monthLabel),
|
|
11041
11041
|
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$b.arrowsContainer }, /* @__PURE__ */ React__default["default"].createElement(
|
|
11042
11042
|
reactNative.TouchableOpacity,
|
|
11043
11043
|
{
|
|
@@ -11048,7 +11048,7 @@ const DateRangePicker = (props) => {
|
|
|
11048
11048
|
Svg.Path,
|
|
11049
11049
|
{
|
|
11050
11050
|
d: "M15 19.5L7.5 12L15 4.5",
|
|
11051
|
-
stroke: theme.
|
|
11051
|
+
stroke: theme.CONTENT_INVERTED,
|
|
11052
11052
|
strokeWidth: 1.5,
|
|
11053
11053
|
strokeLinecap: "round",
|
|
11054
11054
|
strokeLinejoin: "round"
|
|
@@ -11064,7 +11064,7 @@ const DateRangePicker = (props) => {
|
|
|
11064
11064
|
Svg.Path,
|
|
11065
11065
|
{
|
|
11066
11066
|
d: "M6.75 3.375L12.375 9L6.75 14.625",
|
|
11067
|
-
stroke: theme.
|
|
11067
|
+
stroke: theme.CONTENT_INVERTED,
|
|
11068
11068
|
strokeWidth: 1.5,
|
|
11069
11069
|
strokeLinecap: "round",
|
|
11070
11070
|
strokeLinejoin: "round"
|
|
@@ -11075,7 +11075,10 @@ const DateRangePicker = (props) => {
|
|
|
11075
11075
|
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, null, /* @__PURE__ */ React__default["default"].createElement(
|
|
11076
11076
|
reactNative.View,
|
|
11077
11077
|
{
|
|
11078
|
-
style: [
|
|
11078
|
+
style: [
|
|
11079
|
+
styles$b.calendarCard,
|
|
11080
|
+
{ backgroundColor: theme.SURFACE_INVERTED }
|
|
11081
|
+
]
|
|
11079
11082
|
},
|
|
11080
11083
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
11081
11084
|
reactNativeCalendars.Calendar,
|
|
@@ -11088,9 +11091,9 @@ const DateRangePicker = (props) => {
|
|
|
11088
11091
|
renderHeader: renderCalendarHeader,
|
|
11089
11092
|
theme: {
|
|
11090
11093
|
calendarBackground: "transparent",
|
|
11091
|
-
dayTextColor: theme.
|
|
11094
|
+
dayTextColor: theme.CONTENT_INVERTED,
|
|
11092
11095
|
textDisabledColor: theme.CONTENT_DISABLE_DARK,
|
|
11093
|
-
todayTextColor: theme.
|
|
11096
|
+
todayTextColor: theme.CONTENT_INVERTED,
|
|
11094
11097
|
todayBackgroundColor: theme.CONTENT_ARROW_HIGHLIGHT,
|
|
11095
11098
|
textSectionTitleColor: theme.CONTENT_DISABLE_LIGHT,
|
|
11096
11099
|
textDayFontSize: 16,
|
|
@@ -11144,11 +11147,12 @@ const DateRangePicker = (props) => {
|
|
|
11144
11147
|
), /* @__PURE__ */ React__default["default"].createElement(
|
|
11145
11148
|
Button,
|
|
11146
11149
|
{
|
|
11150
|
+
containerStyle: styles$b.applyButton,
|
|
11147
11151
|
title: btnTitle,
|
|
11148
11152
|
onPress: () => {
|
|
11149
11153
|
onButtonPress(selectedRange?.startDate, selectedRange?.endDate);
|
|
11150
11154
|
},
|
|
11151
|
-
variant: "
|
|
11155
|
+
variant: "tertiary",
|
|
11152
11156
|
size: "large",
|
|
11153
11157
|
disabled: isButtonDisabled
|
|
11154
11158
|
}
|