dhre-ui-kit 3.5.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/components/customDocumentPicker/CustomDocumentPicker.d.ts +0 -0
- package/lib/components/customDocumentPicker/CustomDocumentPicker.interface.d.ts +0 -0
- package/lib/components/customDocumentPicker/CustomDocumentPicker.styles.d.ts +30 -0
- package/lib/components/customDocumentPicker/index.d.ts +0 -0
- package/lib/components/textInput/Textinput.d.ts +2 -0
- package/lib/index.js +24 -19
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +24 -19
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -1977,7 +1977,7 @@ function buildPlainContainerStyle(variant, disabled, disabledColor, theme) {
|
|
|
1977
1977
|
}
|
|
1978
1978
|
if (variant === "quaternary") {
|
|
1979
1979
|
return {
|
|
1980
|
-
backgroundColor:
|
|
1980
|
+
backgroundColor: theme[Theme.BUTTON_INVRTED_FILL],
|
|
1981
1981
|
borderWidth: 1,
|
|
1982
1982
|
borderColor: disabled ? theme[Theme.BUTTON_QUATERNARY_DISABLED_STROKE] : theme[Theme.BUTTON_QUATERNARY_DEFAULT_STROKE]
|
|
1983
1983
|
};
|
|
@@ -3777,7 +3777,7 @@ const CustomHeader = ({
|
|
|
3777
3777
|
{
|
|
3778
3778
|
variant: "BODY1_MEDIUM",
|
|
3779
3779
|
text: title,
|
|
3780
|
-
style: { color: titleColor ?? theme.CONTENT_PRIMARY
|
|
3780
|
+
style: { color: titleColor ?? theme.CONTENT_PRIMARY }
|
|
3781
3781
|
}
|
|
3782
3782
|
), titleSuffixIcon && React.cloneElement(titleSuffixIcon, {
|
|
3783
3783
|
width: ICON_SIZE,
|
|
@@ -10943,15 +10943,15 @@ const DateRangePicker = (props) => {
|
|
|
10943
10943
|
while (start < end) {
|
|
10944
10944
|
start.setDate(start.getDate() + 1);
|
|
10945
10945
|
markedDates[start.toISOString().split("T")[0]] = {
|
|
10946
|
-
color: theme.
|
|
10947
|
-
textColor: theme.
|
|
10946
|
+
color: theme.SURFACE_SECONDARY_TRANSPARENT,
|
|
10947
|
+
textColor: theme.CONTENT_INVERTED
|
|
10948
10948
|
};
|
|
10949
10949
|
}
|
|
10950
10950
|
}
|
|
10951
10951
|
if (startDate) {
|
|
10952
10952
|
markedDates[startDate] = {
|
|
10953
10953
|
startingDay: true,
|
|
10954
|
-
textColor: theme.
|
|
10954
|
+
textColor: theme.CONTENT_INVERTED,
|
|
10955
10955
|
customContainerStyle: {
|
|
10956
10956
|
backgroundColor: theme.CONTENT_ARROW_HIGHLIGHT,
|
|
10957
10957
|
borderRadius: 200,
|
|
@@ -10965,8 +10965,8 @@ const DateRangePicker = (props) => {
|
|
|
10965
10965
|
if (endDate) {
|
|
10966
10966
|
markedDates[endDate] = {
|
|
10967
10967
|
endingDay: true,
|
|
10968
|
-
color: theme.
|
|
10969
|
-
textColor: theme.
|
|
10968
|
+
color: theme.SURFACE_SECONDARY_TRANSPARENT,
|
|
10969
|
+
textColor: theme.CONTENT_INVERTED,
|
|
10970
10970
|
customContainerStyle: {
|
|
10971
10971
|
backgroundColor: theme.CONTENT_ARROW_HIGHLIGHT,
|
|
10972
10972
|
borderRadius: 200,
|
|
@@ -10978,8 +10978,8 @@ const DateRangePicker = (props) => {
|
|
|
10978
10978
|
};
|
|
10979
10979
|
markedDates[startDate] = {
|
|
10980
10980
|
startingDay: true,
|
|
10981
|
-
color: theme.
|
|
10982
|
-
textColor: theme.
|
|
10981
|
+
color: theme.SURFACE_SECONDARY_TRANSPARENT,
|
|
10982
|
+
textColor: theme.CONTENT_INVERTED,
|
|
10983
10983
|
customContainerStyle: {
|
|
10984
10984
|
backgroundColor: theme.CONTENT_ARROW_HIGHLIGHT,
|
|
10985
10985
|
borderRadius: 200,
|
|
@@ -10998,10 +10998,10 @@ const DateRangePicker = (props) => {
|
|
|
10998
10998
|
{
|
|
10999
10999
|
style: [
|
|
11000
11000
|
styles$b.calendarHeader,
|
|
11001
|
-
{ borderBottomColor: theme.
|
|
11001
|
+
{ borderBottomColor: theme.STROKE_SECONDARY }
|
|
11002
11002
|
]
|
|
11003
11003
|
},
|
|
11004
|
-
/* @__PURE__ */ React.createElement(Text, { style: [styles$b.monthText, { color: theme.
|
|
11004
|
+
/* @__PURE__ */ React.createElement(Text, { style: [styles$b.monthText, { color: theme.CONTENT_INVERTED }] }, monthLabel),
|
|
11005
11005
|
/* @__PURE__ */ React.createElement(View, { style: styles$b.arrowsContainer }, /* @__PURE__ */ React.createElement(
|
|
11006
11006
|
TouchableOpacity,
|
|
11007
11007
|
{
|
|
@@ -11012,7 +11012,7 @@ const DateRangePicker = (props) => {
|
|
|
11012
11012
|
Path,
|
|
11013
11013
|
{
|
|
11014
11014
|
d: "M15 19.5L7.5 12L15 4.5",
|
|
11015
|
-
stroke: theme.
|
|
11015
|
+
stroke: theme.CONTENT_INVERTED,
|
|
11016
11016
|
strokeWidth: 1.5,
|
|
11017
11017
|
strokeLinecap: "round",
|
|
11018
11018
|
strokeLinejoin: "round"
|
|
@@ -11028,7 +11028,7 @@ const DateRangePicker = (props) => {
|
|
|
11028
11028
|
Path,
|
|
11029
11029
|
{
|
|
11030
11030
|
d: "M6.75 3.375L12.375 9L6.75 14.625",
|
|
11031
|
-
stroke: theme.
|
|
11031
|
+
stroke: theme.CONTENT_INVERTED,
|
|
11032
11032
|
strokeWidth: 1.5,
|
|
11033
11033
|
strokeLinecap: "round",
|
|
11034
11034
|
strokeLinejoin: "round"
|
|
@@ -11039,7 +11039,10 @@ const DateRangePicker = (props) => {
|
|
|
11039
11039
|
return /* @__PURE__ */ React.createElement(View, null, /* @__PURE__ */ React.createElement(
|
|
11040
11040
|
View,
|
|
11041
11041
|
{
|
|
11042
|
-
style: [
|
|
11042
|
+
style: [
|
|
11043
|
+
styles$b.calendarCard,
|
|
11044
|
+
{ backgroundColor: theme.SURFACE_INVERTED }
|
|
11045
|
+
]
|
|
11043
11046
|
},
|
|
11044
11047
|
/* @__PURE__ */ React.createElement(
|
|
11045
11048
|
Calendar,
|
|
@@ -11052,9 +11055,9 @@ const DateRangePicker = (props) => {
|
|
|
11052
11055
|
renderHeader: renderCalendarHeader,
|
|
11053
11056
|
theme: {
|
|
11054
11057
|
calendarBackground: "transparent",
|
|
11055
|
-
dayTextColor: theme.
|
|
11058
|
+
dayTextColor: theme.CONTENT_INVERTED,
|
|
11056
11059
|
textDisabledColor: theme.CONTENT_DISABLE_DARK,
|
|
11057
|
-
todayTextColor: theme.
|
|
11060
|
+
todayTextColor: theme.CONTENT_INVERTED,
|
|
11058
11061
|
todayBackgroundColor: theme.CONTENT_ARROW_HIGHLIGHT,
|
|
11059
11062
|
textSectionTitleColor: theme.CONTENT_DISABLE_LIGHT,
|
|
11060
11063
|
textDayFontSize: 16,
|
|
@@ -11108,11 +11111,12 @@ const DateRangePicker = (props) => {
|
|
|
11108
11111
|
), /* @__PURE__ */ React.createElement(
|
|
11109
11112
|
Button,
|
|
11110
11113
|
{
|
|
11114
|
+
containerStyle: styles$b.applyButton,
|
|
11111
11115
|
title: btnTitle,
|
|
11112
11116
|
onPress: () => {
|
|
11113
11117
|
onButtonPress(selectedRange?.startDate, selectedRange?.endDate);
|
|
11114
11118
|
},
|
|
11115
|
-
variant: "
|
|
11119
|
+
variant: "tertiary",
|
|
11116
11120
|
size: "large",
|
|
11117
11121
|
disabled: isButtonDisabled
|
|
11118
11122
|
}
|
|
@@ -11740,7 +11744,8 @@ const CommonTextInput = (props) => {
|
|
|
11740
11744
|
onRightIconPress,
|
|
11741
11745
|
onlyErrorBorderLabel,
|
|
11742
11746
|
disableBorder = false,
|
|
11743
|
-
forceRTL
|
|
11747
|
+
forceRTL,
|
|
11748
|
+
borderColor: borderColorOverride
|
|
11744
11749
|
} = props;
|
|
11745
11750
|
const [isFocused, setIsFocused] = useState(false);
|
|
11746
11751
|
const handleFocus = () => setIsFocused(true);
|
|
@@ -11749,7 +11754,7 @@ const CommonTextInput = (props) => {
|
|
|
11749
11754
|
const isDisabled = !editable;
|
|
11750
11755
|
const isError = !!(errorMessage?.length || onlyErrorBorderLabel);
|
|
11751
11756
|
const hasValue = !!value?.length;
|
|
11752
|
-
const currentBorderColor = isError ? theme[Theme.ERROR] : isDisabled ? theme[Theme.STROKE_TERTIARY] : isFocused || hasValue && !disableBorder ? theme[Theme.STROKE_ACTIVE] : theme[Theme.STROKE_SECONDARY];
|
|
11757
|
+
const currentBorderColor = borderColorOverride ?? (isError ? theme[Theme.ERROR] : isDisabled ? theme[Theme.STROKE_TERTIARY] : isFocused || hasValue && !disableBorder ? theme[Theme.STROKE_ACTIVE] : theme[Theme.STROKE_SECONDARY]);
|
|
11753
11758
|
const borderWidth = isFocused && !isDisabled ? 2 : 1;
|
|
11754
11759
|
const inputTextColor = isDisabled ? theme[Theme.CONTENT_TERTIARY] : theme[Theme.CONTENT_PRIMARY];
|
|
11755
11760
|
const placeholderColor = theme[Theme.CONTENT_SECONDRY];
|