@kivid/native-components 1.0.0-alpha.21 → 1.0.0-alpha.23
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/dist/commonjs/components/ActionButton/index.js +2 -1
- package/dist/commonjs/components/ActionButton/index.js.map +1 -1
- package/dist/commonjs/components/DatePicker/assets/theme.js +99 -0
- package/dist/commonjs/components/DatePicker/assets/theme.js.map +1 -0
- package/dist/commonjs/components/DatePicker/index.js +182 -0
- package/dist/commonjs/components/DatePicker/index.js.map +1 -0
- package/dist/commonjs/components/DatePicker/types.js +6 -0
- package/dist/commonjs/components/DatePicker/types.js.map +1 -0
- package/dist/commonjs/components/LoadingDots/assets/loading-button-gray.json +739 -0
- package/dist/commonjs/components/LoadingDots/index.js +2 -1
- package/dist/commonjs/components/LoadingDots/index.js.map +1 -1
- package/dist/commonjs/components/index.js +11 -0
- package/dist/commonjs/components/index.js.map +1 -1
- package/dist/module/components/ActionButton/index.js +2 -1
- package/dist/module/components/ActionButton/index.js.map +1 -1
- package/dist/module/components/DatePicker/assets/theme.js +95 -0
- package/dist/module/components/DatePicker/assets/theme.js.map +1 -0
- package/dist/module/components/DatePicker/index.js +177 -0
- package/dist/module/components/DatePicker/index.js.map +1 -0
- package/dist/module/components/DatePicker/types.js +4 -0
- package/dist/module/components/DatePicker/types.js.map +1 -0
- package/dist/module/components/LoadingDots/assets/loading-button-gray.json +739 -0
- package/dist/module/components/LoadingDots/index.js +2 -1
- package/dist/module/components/LoadingDots/index.js.map +1 -1
- package/dist/module/components/index.js +1 -0
- package/dist/module/components/index.js.map +1 -1
- package/dist/typescript/components/ActionButton/types.d.ts +4 -0
- package/dist/typescript/components/DatePicker/assets/theme.d.ts +92 -0
- package/dist/typescript/components/DatePicker/index.d.ts +4 -0
- package/dist/typescript/components/DatePicker/types.d.ts +17 -0
- package/dist/typescript/components/LoadingDots/types.d.ts +1 -1
- package/dist/typescript/components/index.d.ts +2 -0
- package/package.json +9 -5
- package/src/components/ActionButton/index.tsx +2 -0
- package/src/components/ActionButton/types.ts +4 -0
- package/src/components/DatePicker/assets/theme.ts +92 -0
- package/src/components/DatePicker/index.tsx +250 -0
- package/src/components/DatePicker/types.ts +20 -0
- package/src/components/LoadingDots/assets/loading-button-gray.json +739 -0
- package/src/components/LoadingDots/index.tsx +1 -0
- package/src/components/LoadingDots/types.ts +1 -1
- package/src/components/index.ts +3 -0
|
@@ -22,6 +22,7 @@ function ActionButton(props) {
|
|
|
22
22
|
variant = "grape",
|
|
23
23
|
corners = _index.CornersEnum.MEDIUM,
|
|
24
24
|
disabled = false,
|
|
25
|
+
selected = false,
|
|
25
26
|
className,
|
|
26
27
|
iconContainerClassName,
|
|
27
28
|
onPress,
|
|
@@ -46,7 +47,7 @@ function ActionButton(props) {
|
|
|
46
47
|
const containerStyle = (0, _tailwindPreset.merge)((0, _classVariants.menuCardVariants)({
|
|
47
48
|
variant,
|
|
48
49
|
corners
|
|
49
|
-
}), isPressed && !disabled && pressedColorMap[variant], className);
|
|
50
|
+
}), isPressed && !disabled && pressedColorMap[variant], selected && variant === "outline" && "border-grape-300 bg-grape-100", className);
|
|
50
51
|
|
|
51
52
|
// Define icon colors based on variant
|
|
52
53
|
const iconColorMap = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_tailwindPreset","require","_react","_interopRequireDefault","_reactNative","_index","_index2","_classVariants","_jsxRuntime","e","__esModule","default","ActionButton","props","icon","primaryText","secondaryText","primaryTextProps","secondaryTextProps","variant","corners","CornersEnum","MEDIUM","disabled","className","iconContainerClassName","onPress","accessibilityLabel","ref","onPressIn","onPressOut","rest","isPressed","setIsPressed","React","useState","pressedColorMap","grape","java","pear","tangerine","blackberry","chia","outline","containerStyle","merge","menuCardVariants","iconColorMap","iconWithColor","isValidElement","cloneElement","handlePressIn","event","handlePressOut","textStyle","textVariants","mergedPrimaryTextProps","weight","FontWeightEnum","mergedSecondaryTextProps","BOLD","jsxs","Pressable","accessibilityRole","accessibilityState","pointerEvents","children","jsx","View","Typography","displayName"],"sourceRoot":"../../../../src","sources":["components/ActionButton/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,cAAA,GAAAN,OAAA;AAAyE,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAE,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAGlE,SAASG,YAAYA,CAACC,KAAwB,EAAE;EACrD,MAAM;IACJC,IAAI;IACJC,WAAW;IACXC,aAAa;IACbC,gBAAgB,GAAG,CAAC,CAAC;IACrBC,kBAAkB,GAAG,CAAC,CAAC;IACvBC,OAAO,GAAG,OAAO;IACjBC,OAAO,GAAGC,kBAAW,CAACC,MAAM;IAC5BC,QAAQ,GAAG,KAAK;IAChBC,SAAS;IACTC,sBAAsB;IACtBC,OAAO;IACPC,kBAAkB;IAClBC,GAAG;IACHC,SAAS;IACTC,UAAU;IACV,GAAGC;EACL,CAAC,
|
|
1
|
+
{"version":3,"names":["_tailwindPreset","require","_react","_interopRequireDefault","_reactNative","_index","_index2","_classVariants","_jsxRuntime","e","__esModule","default","ActionButton","props","icon","primaryText","secondaryText","primaryTextProps","secondaryTextProps","variant","corners","CornersEnum","MEDIUM","disabled","selected","className","iconContainerClassName","onPress","accessibilityLabel","ref","onPressIn","onPressOut","rest","isPressed","setIsPressed","React","useState","pressedColorMap","grape","java","pear","tangerine","blackberry","chia","outline","containerStyle","merge","menuCardVariants","iconColorMap","iconWithColor","isValidElement","cloneElement","handlePressIn","event","handlePressOut","textStyle","textVariants","mergedPrimaryTextProps","weight","FontWeightEnum","mergedSecondaryTextProps","BOLD","jsxs","Pressable","accessibilityRole","accessibilityState","pointerEvents","children","jsx","View","Typography","displayName"],"sourceRoot":"../../../../src","sources":["components/ActionButton/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,cAAA,GAAAN,OAAA;AAAyE,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAE,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAGlE,SAASG,YAAYA,CAACC,KAAwB,EAAE;EACrD,MAAM;IACJC,IAAI;IACJC,WAAW;IACXC,aAAa;IACbC,gBAAgB,GAAG,CAAC,CAAC;IACrBC,kBAAkB,GAAG,CAAC,CAAC;IACvBC,OAAO,GAAG,OAAO;IACjBC,OAAO,GAAGC,kBAAW,CAACC,MAAM;IAC5BC,QAAQ,GAAG,KAAK;IAChBC,QAAQ,GAAG,KAAK;IAChBC,SAAS;IACTC,sBAAsB;IACtBC,OAAO;IACPC,kBAAkB;IAClBC,GAAG;IACHC,SAAS;IACTC,UAAU;IACV,GAAGC;EACL,CAAC,GAAGnB,KAAK;EAET,MAAM,CAACoB,SAAS,EAAEC,YAAY,CAAC,GAAGC,cAAK,CAACC,QAAQ,CAAC,KAAK,CAAC;;EAEvD;EACA,MAAMC,eAA+C,GAAG;IACtDC,KAAK,EAAE,cAAc;IACrBC,IAAI,EAAE,aAAa;IACnBC,IAAI,EAAE,aAAa;IACnBC,SAAS,EAAE,kBAAkB;IAC7BC,UAAU,EAAE,mBAAmB;IAC/BC,IAAI,EAAE,aAAa;IACnBC,OAAO,EAAE;EACX,CAAC;EAED,MAAMC,cAAc,GAAG,IAAAC,qBAAK,EAC1B,IAAAC,+BAAgB,EAAC;IAC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A4D,GAAA,EAAC9D,OAAA,CAAAgE,UAAU;QAAA,GAAKV,wBAAwB;QAAAO,QAAA,EAAGnD;MAAa,CAAa,CACtE;IAAA,CACG,CAAC;EAAA,CACE,CAAC;AAEhB;AAEAJ,YAAY,CAAC2D,WAAW,GAAG,cAAc","ignoreList":[]}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.defaultTheme = void 0;
|
|
7
|
+
const defaultTheme = exports.defaultTheme = {
|
|
8
|
+
backgroundColor: "#FAFCFC",
|
|
9
|
+
calendarBackground: "#FAFCFC",
|
|
10
|
+
textSectionTitleColor: "#6B7280",
|
|
11
|
+
textSectionTitleDisabledColor: "#D1D5DB",
|
|
12
|
+
selectedDayBackgroundColor: "#EAE0FF",
|
|
13
|
+
selectedDayTextColor: "#1F2937",
|
|
14
|
+
todayTextColor: "#1F2937",
|
|
15
|
+
dayTextColor: "#1F2937",
|
|
16
|
+
textDisabledColor: "#D1D5DB",
|
|
17
|
+
dotColor: "#1F2937",
|
|
18
|
+
selectedDotColor: "#1F2937",
|
|
19
|
+
arrowColor: "#1F2937",
|
|
20
|
+
disabledArrowColor: "#D1D5DB",
|
|
21
|
+
monthTextColor: "#1F2937",
|
|
22
|
+
indicatorColor: "#1F2937",
|
|
23
|
+
textDayFontFamily: "System",
|
|
24
|
+
textMonthFontFamily: "System",
|
|
25
|
+
textDayHeaderFontFamily: "System",
|
|
26
|
+
textDayFontWeight: "500",
|
|
27
|
+
textMonthFontWeight: "600",
|
|
28
|
+
textDayHeaderFontWeight: "700",
|
|
29
|
+
textDayFontSize: 16,
|
|
30
|
+
textMonthFontSize: 18,
|
|
31
|
+
textDayHeaderFontSize: 13.5,
|
|
32
|
+
"stylesheet.calendar.header": {
|
|
33
|
+
header: {
|
|
34
|
+
flexDirection: "row",
|
|
35
|
+
justifyContent: "space-between",
|
|
36
|
+
alignItems: "center",
|
|
37
|
+
backgroundColor: "#FAFCFC",
|
|
38
|
+
borderBottomWidth: 1,
|
|
39
|
+
borderBottomColor: "#DEE7E7"
|
|
40
|
+
},
|
|
41
|
+
monthText: {
|
|
42
|
+
fontSize: 18,
|
|
43
|
+
fontWeight: "600",
|
|
44
|
+
color: "#1F2937"
|
|
45
|
+
},
|
|
46
|
+
arrow: {
|
|
47
|
+
padding: 0
|
|
48
|
+
},
|
|
49
|
+
arrowImage: {
|
|
50
|
+
tintColor: "#1F2937"
|
|
51
|
+
},
|
|
52
|
+
week: {
|
|
53
|
+
marginTop: 16,
|
|
54
|
+
marginBottom: 8,
|
|
55
|
+
flexDirection: "row",
|
|
56
|
+
justifyContent: "space-around"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"stylesheet.day.basic": {
|
|
60
|
+
base: {
|
|
61
|
+
width: 40,
|
|
62
|
+
height: 35,
|
|
63
|
+
alignItems: "center",
|
|
64
|
+
justifyContent: "center",
|
|
65
|
+
borderWidth: 1,
|
|
66
|
+
borderColor: "#DEE7E7",
|
|
67
|
+
borderRadius: 8,
|
|
68
|
+
paddingTop: 6,
|
|
69
|
+
paddingBottom: 4
|
|
70
|
+
},
|
|
71
|
+
text: {
|
|
72
|
+
fontSize: 16,
|
|
73
|
+
fontWeight: "500",
|
|
74
|
+
color: "#1F2937"
|
|
75
|
+
},
|
|
76
|
+
selected: {
|
|
77
|
+
backgroundColor: "#EAE0FF",
|
|
78
|
+
borderWidth: 1,
|
|
79
|
+
borderColor: "#B9A0F2"
|
|
80
|
+
},
|
|
81
|
+
today: {
|
|
82
|
+
backgroundColor: "transparent",
|
|
83
|
+
borderWidth: 1,
|
|
84
|
+
borderColor: "#DEE7E7"
|
|
85
|
+
},
|
|
86
|
+
todayText: {
|
|
87
|
+
color: "#1F2937",
|
|
88
|
+
fontWeight: "600"
|
|
89
|
+
},
|
|
90
|
+
disabled: {
|
|
91
|
+
opacity: 0.3,
|
|
92
|
+
borderWidth: 0
|
|
93
|
+
},
|
|
94
|
+
disabledText: {
|
|
95
|
+
color: "#D1D5DB"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
//# sourceMappingURL=theme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["defaultTheme","exports","backgroundColor","calendarBackground","textSectionTitleColor","textSectionTitleDisabledColor","selectedDayBackgroundColor","selectedDayTextColor","todayTextColor","dayTextColor","textDisabledColor","dotColor","selectedDotColor","arrowColor","disabledArrowColor","monthTextColor","indicatorColor","textDayFontFamily","textMonthFontFamily","textDayHeaderFontFamily","textDayFontWeight","textMonthFontWeight","textDayHeaderFontWeight","textDayFontSize","textMonthFontSize","textDayHeaderFontSize","header","flexDirection","justifyContent","alignItems","borderBottomWidth","borderBottomColor","monthText","fontSize","fontWeight","color","arrow","padding","arrowImage","tintColor","week","marginTop","marginBottom","base","width","height","borderWidth","borderColor","borderRadius","paddingTop","paddingBottom","text","selected","today","todayText","disabled","opacity","disabledText"],"sourceRoot":"../../../../../src","sources":["components/DatePicker/assets/theme.ts"],"mappings":";;;;;;AAAO,MAAMA,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAG;EAC1BE,eAAe,EAAE,SAAS;EAC1BC,kBAAkB,EAAE,SAAS;EAC7BC,qBAAqB,EAAE,SAAS;EAChCC,6BAA6B,EAAE,SAAS;EACxCC,0BAA0B,EAAE,SAAS;EACrCC,oBAAoB,EAAE,SAAS;EAC/BC,cAAc,EAAE,SAAS;EACzBC,YAAY,EAAE,SAAS;EACvBC,iBAAiB,EAAE,SAAS;EAC5BC,QAAQ,EAAE,SAAS;EACnBC,gBAAgB,EAAE,SAAS;EAC3BC,UAAU,EAAE,SAAS;EACrBC,kBAAkB,EAAE,SAAS;EAC7BC,cAAc,EAAE,SAAS;EACzBC,cAAc,EAAE,SAAS;EACzBC,iBAAiB,EAAE,QAAQ;EAC3BC,mBAAmB,EAAE,Q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e,EAAE,aAAa;MAC9B4C,WAAW,EAAE,CAAC;MACdC,WAAW,EAAE;IACf,CAAC;IACDO,SAAS,EAAE;MACTnB,KAAK,EAAE,SAAS;MAChBD,UAAU,EAAE;IACd,CAAC;IACDqB,QAAQ,EAAE;MACRC,OAAO,EAAE,GAAG;MACZV,WAAW,EAAE;IACf,CAAC;IACDW,YAAY,EAAE;MACZtB,KAAK,EAAE;IACT;EACF;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.DatePicker = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _reactNativeCalendars = require("react-native-calendars");
|
|
10
|
+
var _dateFns = require("date-fns");
|
|
11
|
+
var _locale = require("date-fns/locale");
|
|
12
|
+
var _theme = require("./assets/theme.js");
|
|
13
|
+
var _index = _interopRequireDefault(require("../Typography/index.js"));
|
|
14
|
+
var _native = require("@kivid/icons/native");
|
|
15
|
+
var _nativewind = require("nativewind");
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
19
|
+
_reactNativeCalendars.LocaleConfig.locales["pt-br"] = {
|
|
20
|
+
monthNames: ["Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"],
|
|
21
|
+
monthNamesShort: ["Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Out", "Nov", "Dez"],
|
|
22
|
+
dayNames: ["Domingo", "Segunda", "Terça", "Quarta", "Quinta", "Sexta", "Sábado"],
|
|
23
|
+
dayNamesShort: ["D", "S", "T", "Q", "Q", "S", "S"],
|
|
24
|
+
today: "Hoje"
|
|
25
|
+
};
|
|
26
|
+
_reactNativeCalendars.LocaleConfig.defaultLocale = "pt-br";
|
|
27
|
+
function DatePicker(props) {
|
|
28
|
+
const {
|
|
29
|
+
selectedDates,
|
|
30
|
+
onSelectedDatesChange,
|
|
31
|
+
initialDate,
|
|
32
|
+
minDate,
|
|
33
|
+
maxDate,
|
|
34
|
+
markedDates: externalMarkedDates,
|
|
35
|
+
unavailableDates,
|
|
36
|
+
theme: customTheme,
|
|
37
|
+
selectionType,
|
|
38
|
+
...rest
|
|
39
|
+
} = props;
|
|
40
|
+
const [currentMonth, setCurrentMonth] = (0, _react.useState)(initialDate || (0, _dateFns.format)(new Date(), "yyyy-MM-dd"));
|
|
41
|
+
const onDayPress = (0, _react.useCallback)(day => {
|
|
42
|
+
const dateString = day.dateString;
|
|
43
|
+
if (unavailableDates?.includes(dateString)) {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
if (externalMarkedDates?.[dateString]) {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
if (!selectionType) {
|
|
50
|
+
onSelectedDatesChange(dateString);
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
if (selectionType === "multi-dot") {
|
|
54
|
+
onSelectedDatesChange(prev => {
|
|
55
|
+
const isSelected = prev.includes(dateString);
|
|
56
|
+
const newDates = isSelected ? prev.filter(d => d !== dateString) : [...prev, dateString];
|
|
57
|
+
return newDates;
|
|
58
|
+
});
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
}, [onSelectedDatesChange, selectionType, externalMarkedDates, unavailableDates]);
|
|
62
|
+
const markedDates = (0, _react.useMemo)(() => {
|
|
63
|
+
const filteredExternalMarkedDates = externalMarkedDates ? Object.keys(externalMarkedDates).reduce((acc, date) => {
|
|
64
|
+
if (!unavailableDates?.includes(date)) {
|
|
65
|
+
acc[date] = externalMarkedDates[date];
|
|
66
|
+
}
|
|
67
|
+
return acc;
|
|
68
|
+
}, {}) : {};
|
|
69
|
+
const marked = {
|
|
70
|
+
...filteredExternalMarkedDates
|
|
71
|
+
};
|
|
72
|
+
if (unavailableDates) {
|
|
73
|
+
unavailableDates.forEach(date => {
|
|
74
|
+
marked[date] = {
|
|
75
|
+
disabled: true,
|
|
76
|
+
disableTouchEvent: true,
|
|
77
|
+
textColor: "#D1D5DB",
|
|
78
|
+
dotColor: "#D1D5DB"
|
|
79
|
+
};
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
if (filteredExternalMarkedDates) {
|
|
83
|
+
Object.keys(filteredExternalMarkedDates).forEach(date => {
|
|
84
|
+
marked[date] = {
|
|
85
|
+
...marked[date],
|
|
86
|
+
disableTouchEvent: true,
|
|
87
|
+
selected: true,
|
|
88
|
+
selectedColor: "#EAE0FF",
|
|
89
|
+
selectedTextColor: "#1F2937"
|
|
90
|
+
};
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
if (!selectionType && selectedDates && selectedDates.length > 0) {
|
|
94
|
+
const firstDate = selectedDates[0];
|
|
95
|
+
if (!unavailableDates?.includes(firstDate)) {
|
|
96
|
+
marked[firstDate] = {
|
|
97
|
+
...marked[firstDate],
|
|
98
|
+
selected: true,
|
|
99
|
+
selectedColor: "#EAE0FF",
|
|
100
|
+
selectedTextColor: "#1F2937"
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
return marked;
|
|
104
|
+
}
|
|
105
|
+
if (selectionType === "multi-dot") {
|
|
106
|
+
selectedDates.forEach(date => {
|
|
107
|
+
if (!unavailableDates?.includes(date)) {
|
|
108
|
+
marked[date] = {
|
|
109
|
+
...marked[date],
|
|
110
|
+
selected: true,
|
|
111
|
+
selectedColor: "#EAE0FF",
|
|
112
|
+
selectedTextColor: "#1F2937"
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
return marked;
|
|
117
|
+
}
|
|
118
|
+
return marked;
|
|
119
|
+
}, [selectedDates, externalMarkedDates, selectionType, unavailableDates]);
|
|
120
|
+
const mergedTheme = {
|
|
121
|
+
..._theme.defaultTheme,
|
|
122
|
+
...customTheme
|
|
123
|
+
};
|
|
124
|
+
const handlePressArrowLeft = (0, _react.useCallback)(subtractMonth => {
|
|
125
|
+
subtractMonth();
|
|
126
|
+
}, []);
|
|
127
|
+
const handlePressArrowRight = (0, _react.useCallback)(addMonth => {
|
|
128
|
+
addMonth();
|
|
129
|
+
}, []);
|
|
130
|
+
const handleMonthChange = (0, _react.useCallback)(date => {
|
|
131
|
+
setCurrentMonth(date.dateString);
|
|
132
|
+
}, []);
|
|
133
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
134
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeCalendars.Calendar, {
|
|
135
|
+
current: currentMonth,
|
|
136
|
+
onDayPress: onDayPress,
|
|
137
|
+
onMonthChange: handleMonthChange,
|
|
138
|
+
onPressArrowLeft: handlePressArrowLeft,
|
|
139
|
+
onPressArrowRight: handlePressArrowRight,
|
|
140
|
+
markedDates: markedDates,
|
|
141
|
+
minDate: minDate,
|
|
142
|
+
maxDate: maxDate,
|
|
143
|
+
theme: mergedTheme,
|
|
144
|
+
enableSwipeMonths: true,
|
|
145
|
+
hideExtraDays: false,
|
|
146
|
+
markingType: selectionType,
|
|
147
|
+
firstDay: 0,
|
|
148
|
+
renderArrow: direction => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
149
|
+
className: "items-center border p-400 mb-600 rounded-500 border-chia-400 bg-chia-100",
|
|
150
|
+
children: direction === "left" ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_native.ArrowLeftStroke, {
|
|
151
|
+
size: 24,
|
|
152
|
+
className: "text-gray-900"
|
|
153
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_native.ArrowRightStroke, {
|
|
154
|
+
size: 24,
|
|
155
|
+
className: "text-gray-900"
|
|
156
|
+
})
|
|
157
|
+
}),
|
|
158
|
+
renderHeader: date => {
|
|
159
|
+
const formattedDate = (0, _dateFns.format)(new Date(date), "MMMM yy", {
|
|
160
|
+
locale: _locale.ptBR
|
|
161
|
+
});
|
|
162
|
+
const capitalizedDate = formattedDate.charAt(0).toUpperCase() + formattedDate.slice(1);
|
|
163
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
164
|
+
className: "items-center translate-y-[-8px]",
|
|
165
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.default, {
|
|
166
|
+
variant: "label_large",
|
|
167
|
+
weight: "700",
|
|
168
|
+
children: capitalizedDate
|
|
169
|
+
})
|
|
170
|
+
});
|
|
171
|
+
},
|
|
172
|
+
...rest
|
|
173
|
+
})
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
const NativeWindDatePicker = exports.DatePicker = (0, _nativewind.cssInterop)?.(DatePicker, {
|
|
177
|
+
className: {
|
|
178
|
+
target: "style"
|
|
179
|
+
}
|
|
180
|
+
});
|
|
181
|
+
NativeWindDatePicker.displayName = "DatePicker";
|
|
182
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeCalendars","_dateFns","_locale","_theme","_index","_interopRequireDefault","_native","_nativewind","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","LocaleConfig","locales","monthNames","monthNamesShort","dayNames","dayNamesShort","today","defaultLocale","DatePicker","props","selectedDates","onSelectedDatesChange","initialDate","minDate","maxDate","markedDates","externalMarkedDates","unavailableDates","theme","customTheme","selectionType","rest","currentMonth","setCurrentMonth","useState","format","Date","onDayPress","useCallback","day","dateString","includes","prev","isSelected","newDates","filter","d","useMemo","filteredExternalMarkedDates","keys","reduce","acc","date","marked","forEach","disabled","disableTouchEvent","textColor","dotColor","selected","selectedColor","selectedTextColor","length","firstDate","mergedTheme","defaultTheme","handlePressArrowLeft","subtractMonth","handlePressArrowRight","addMonth","handleMonthChange","jsx","View","children","Calendar","current","onMonthChange","onPressArrowLeft","onPressArrowRight","enableSwipeMonths","hideExtraDays","markingType","firstDay","renderArrow","direction","className","ArrowLeftStroke","size","ArrowRightStroke","renderHeader","formattedDate","locale","ptBR","capitalizedDate","charAt","toUpperCase","slice","variant","weight","NativeWindDatePicker","exports","cssInterop","target","displayName"],"sourceRoot":"../../../../src","sources":["components/DatePicker/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,qBAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AAGA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAC,sBAAA,CAAAP,OAAA;AACA,IAAAQ,OAAA,GAAAR,OAAA;AACA,IAAAS,WAAA,GAAAT,OAAA;AAAwC,IAAAU,WAAA,GAAAV,OAAA;AAAA,SAAAO,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAZ,wBAAAY,CAAA,EAAAG,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,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AC,CAAC;QAEhE,oBACE,IAAA1G,WAAA,CAAAiF,GAAA,EAAC1F,YAAA,CAAA2F,IAAI;UAACa,SAAS,EAAC,iCAAiC;UAAAZ,QAAA,eAC/C,IAAAnF,WAAA,CAAAiF,GAAA,EAACrF,MAAA,CAAAO,OAAU;YAACwG,OAAO,EAAC,aAAa;YAACC,MAAM,EAAC,KAAK;YAAAzB,QAAA,EAC3CoB;UAAe,CACN;QAAC,CACT,CAAC;MAEX,CAAE;MAAA,GACE9D;IAAI,CACT;EAAC,CACE,CAAC;AAEX;AAEA,MAAMoE,oBAAoB,GAAAC,OAAA,CAAAlF,UAAA,GAAG,IAAAmF,sBAAU,IAAGnF,UAAU,EAAE;EACpDmE,SAAS,EAAE;IACTiB,MAAM,EAAE;EACV;AACF,CAAC,CAAyC;AAE1CH,oBAAoB,CAACI,WAAW,GAAG,YAAY","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/DatePicker/types.ts"],"mappings":"","ignoreList":[]}
|