@rshb/core-ui
Advanced tools
Comparing version 0.5.0 to 0.6.0
@@ -75,2 +75,4 @@ import { | ||
export const getPrefixSymbol = (prefix: Prefix) => prefix ? PREFIX_SYMBOLS[prefix] + SPACE : null; | ||
export const getCurrencySymbol = (currency: Currency) => SPACE + CURRENCY_SYMBOLS[currency]; | ||
export const getCurrencySymbol = (currency: Currency) => | ||
(currency in CURRENCY_SYMBOLS) ? SPACE + CURRENCY_SYMBOLS[currency] : null; |
# ΠΡΡΠΎΡΠΈΡ ΠΈΠ·ΠΌΠ΅Π½Π΅Π½ΠΈΠΉ | ||
## ΠΠ΅ΡΡΠΈΡ 0.6.0 | ||
- Tab: ΠΠΎΠ±Π°Π²Π»Π΅Π½Π° Π²ΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎΡΡΡ ΡΡΡΠ°Π½ΠΎΠ²ΠΊΠΈ onClick. | ||
- Amount: ΠΠΎΠ±Π°Π²Π»Π΅Π½Π° Π²ΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎΡΡΡ ΡΠ°Π±ΠΎΡΡ c ΠΎΡΡΡΡΡΡΠ²ΡΡΡΠ΅ΠΉ Π² ΡΠ»ΠΎΠ²Π°ΡΠ΅ Π²Π°Π»ΡΡΡ. | ||
- Datepicker: ΠΠΎΠ±Π°Π²Π»Π΅Π½Π° Π²ΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎΡΡΡ ΠΎΡΠΈΡΡΠΊΠΈ Π·Π½Π°ΡΠ΅Π½ΠΈΡ Π² ΠΏΠΎΠ»Π΅ Π²Π²ΠΎΠ΄Π°. | ||
- Datepicker: ΠΠΎΠ±Π°Π²Π»Π΅Π½Π° Π²ΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎΡΡΡ Π²ΡΠ±ΠΎΡΠ° Π΄ΠΈΠ°ΠΏΠ°Π·ΠΎΠ½Π° ΠΈΠ· ΠΎΠ΄Π½ΠΎΠΉ Π΄Π°ΡΡ. | ||
- Select, Input: ΠΡΠΏΡΠ°Π²Π»Π΅Π½ΠΎ ΠΎΡΠΎΠ±ΡΠ°ΠΆΠ΅Π½ΠΈΠ΅ Π³ΡΠ°Π΄ΠΈΠ΅Π½ΡΠ° Π² Safari. | ||
## ΠΠ΅ΡΡΠΈΡ 0.5.0 | ||
@@ -4,0 +11,0 @@ - ΠΠΎΠ±Π°Π²Π»Π΅Π½ ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ MaskInput. |
@@ -26,3 +26,9 @@ import { DateValue } from "../types"; | ||
if (isValidDateString(date)) { | ||
return new Date(date); | ||
const [year, month, day] = date.split("-"); | ||
return new Date( | ||
Number(year), | ||
Number(month) - 1, | ||
Number(day) | ||
); | ||
} | ||
@@ -29,0 +35,0 @@ |
{ | ||
"name": "@rshb/core-ui", | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"main": "index.ts", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -18,2 +18,6 @@ export type TabProps = { | ||
disabled?: boolean; | ||
/** | ||
* ΠΠ±ΡΠ°Π±ΠΎΡΡΠΈΠΊ Π²ΡΠ·ΡΠ²Π°Π΅ΠΌΡΠΉ ΠΏΡΠΈ ΠΊΠ»ΠΈΠΊΠ΅ Π½Π° Π²ΠΊΠ»Π°Π΄ΠΊΡ | ||
*/ | ||
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void; | ||
}; | ||
@@ -20,0 +24,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
371117
3710