@preply/ds-web-core
Advanced tools
Comparing version 0.77.0 to 0.78.0
@@ -8,3 +8,5 @@ import { normalizeShorthand } from '@preply/ds-core'; | ||
if (!cssModule[name]) { | ||
throw new Error(`Unknow classname ${name}`); | ||
/* eslint-disable no-console */ | ||
console.log(new Error(`Unknow classname ${name}`)); | ||
return ''; | ||
} | ||
@@ -55,2 +57,4 @@ return cssModule[name]; | ||
if (typeof value === 'object') { | ||
// The following errors could be removed if the function' params are replaced with a discriminated union | ||
// see https://www.typescriptlang.org/play?#code/C4TwDgpgBACghgJzgWwM4EEoF4oG0CWAZgCoICuEAXFKsAvgHYDmANAFBSdREBicANqio06jVhy4A3ARWoAjAPYL+EOAwC6bNqEixEKVACFseIqVkj6zKAB8oZBgBMIhRhEfsu3Qn0HDaVky29k4ubh4SnNL8Fg7OrgzummyEDgDGwPgKDFCKyqoMAML8cKioAHIoEKgAFAB0DWD6aNTwSGiYdm0GhgCUUADeWgC+WgD0Y1CFCggIEBn2qHBM1Wx5KmrFpRVVtXFhiR4h8eEsxwfuvWtKG0UlZZXI1TUA5IRKL2f7Ce5foT+OK7rApbB67V7vBSfKAvOSIaHfcJAm4g+47J57f6nGFwhAIrGHZH5TZox7PN4fM6w+FnOgUK5sCZQACSDDSMzmCzISxWqEZkwAAsBUABaCAAD0gGTFsxm12Jd22ZNqFKhfxOh1p5AgVyZQtFEqlwBlCDlwJJSvBiM1OJpUDpOv5UH1Ysl82NEFlCHlt1B6Oe1t+5wBWvpQA | ||
if (ifTrue === undefined) { | ||
@@ -78,2 +82,2 @@ throw new Error('"ifTrue" param is mandatory in responsive props'); | ||
export { booleanClassNames, globalClassNames, longhandClassNames, moduleClassName, moduleClassNames, moduleLocals, stringClassNames }; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xhc3NOYW1lcy5qcyIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2Nzcy1tb2R1bGUvY2xhc3NOYW1lcy50c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AgICBjb25zdCBicmVha3BvaW50UHJlZml4ID0gYnJlYWtwb2ludCA9PT0gJ18nID8gJycgOiBgJHticmVha3BvaW50fS0tYDtcbiAgICAgICAgICAgIGNvbnN0IGNsYXNzbmFtZSA9IHN0cmluZ0NsYXNzTmFtZXMocHJlZml4LCBvcHRpb24pO1xuICAgICAgICAgICAgcmV0dXJuIGAke2JyZWFrcG9pbnRQcmVmaXh9JHtjbGFzc25hbWV9YDtcbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgaWYgKHZhbHVlKSB7XG4gICAgICAgIHJldHVybiBbYCR7cHJlZml4fS0ke3ZhbHVlfWBdO1xuICAgIH1cbiAgICByZXR1cm4gW107XG59O1xuXG5leHBvcnQgY29uc3QgbG9uZ2hhbmRDbGFzc05hbWVzID0gKFxuICAgIHByZWZpeDogc3RyaW5nLFxuICAgIHZhbHVlOiBSZXNwb25zaXZlPFNob3J0SGFuZDxzdHJpbmc+PiB8IHVuZGVmaW5lZCxcbik6IEFycmF5PHN0cmluZyB8IHVuZGVmaW5lZD4gPT4ge1xuICAgIGlmICh0eXBlb2YgdmFsdWUgPT09ICdvYmplY3QnICYmICFBcnJheS5pc0FycmF5KHZhbHVlKSkge1xuICAgICAgICByZXR1cm4gT2JqZWN0LmVudHJpZXModmFsdWUpLmZsYXRNYXAoKFticmVha3BvaW50LCBvcHRpb25dKSA9PiB7XG4gICAgICAgICAgICBjb25zdCBicmVha3BvaW50UHJlZml4ID0gYnJlYWtwb2ludCA9PT0gJ18nID8gJycgOiBgJHticmVha3BvaW50fS0tYDtcbiAgICAgICAgICAgIGNvbnN0IGNsYXNzbmFtZXMgPSBsb25naGFuZENsYXNzTmFtZXMocHJlZml4LCBvcHRpb24pO1xuICAgICAgICAgICAgcmV0dXJuIGNsYXNzbmFtZXMubWFwKGMgPT4gYCR7YnJlYWtwb2ludFByZWZpeH0ke2N9YCk7XG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIGlmICh2YWx1ZSkge1xuICAgIC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UUFHM0IsSUFBSSxNQUFNLEtBQUssU0FBUyxFQUFFO1lBQ3RCLE1BQU0sSUFBSSxLQUFLLENBQUMsaURBQWlELENBQUMsQ0FBQztTQUN0RTtRQUNELElBQUksT0FBTyxLQUFLLFNBQVMsRUFBRTtZQUN2QixNQUFNLElBQUksS0FBSyxDQUFDLGtEQUFrRCxDQUFDLENBQUM7U0FDdkU7UUFDRCxPQUFPLE1BQU0sQ0FBQyxPQUFPLENBQUMsS0FBSyxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxVQUFVLEVBQUUsTUFBTSxDQUFDO1lBQ2xELE1BQU0sZ0JBQWdCLEdBQUcsVUFBVSxLQUFLLEdBQUcsR0FBRyxFQUFFLEdBQUcsR0FBRyxVQUFVLElBQUksQ0FBQztZQUNyRSxNQUFNLFNBQVMsR0FBRyxpQkFBaUIsQ0FBQyxNQUFNLEVBQUUsT0FBTyxFQUFFLE1BQU0sQ0FBQyxDQUFDO1lBQzdELE9BQU8sR0FBRyxnQkFBZ0IsR0FBRyxTQUFTLEVBQUUsQ0FBQztTQUM1QyxDQUFDLENBQUM7S0FDTjtJQUNELElBQUksS0FBSyxJQUFJLE1BQU0sS0FBSyxTQUFTLEVBQUU7UUFDL0IsT0FBTyxDQUFDLEdBQUcsTUFBTSxFQUFFLENBQUMsQ0FBQztLQUN4QjtJQUNELElBQUksS0FBSyxLQUFLLEtBQUssSUFBSSxPQUFPLEtBQUssU0FBUyxFQUFFO1FBQzFDLE9BQU8sQ0FBQyxHQUFHLE9BQU8sRUFBRSxDQUFDLENBQUM7S0FDekI7SUFDRCxPQUFPLEVBQUUsQ0FBQztBQUNkOzs7OyJ9 |
@@ -6,3 +6,3 @@ import { makeTinyId } from '@preply/ds-core'; | ||
const useNumberField = (props) => { | ||
const { id, value, label, hideLabel, preserveSpace, required, requiredLabel, additionalText, disabled, hasError, errorMessage, icon, onFocus, onBlur, onChange, inputDataset, dataset, max, min, ...rest } = props; | ||
const { id, value, label, hideLabel, wrapLabel, preserveSpace, required, requiredLabel, additionalText, disabled, hasError, errorMessage, icon, onFocus, onBlur, onChange, inputDataset, dataset, max, min, ...rest } = props; | ||
const actualId = id || makeTinyId(); | ||
@@ -33,2 +33,3 @@ const [isFocused, setIsFocused] = useState(false); | ||
hideLabel, | ||
wrapLabel, | ||
required, | ||
@@ -66,2 +67,2 @@ requiredLabel, | ||
export { useNumberField }; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlTnVtYmVyRmllbGQuanMiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9maWVsZC9ob29rcy91c2VOdW1iZXJGaWVsZC50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBtYWtlVGlueUlkIH0gZnJvbSAnQHByZXBseS9kcy1jb3JlJztcbmltcG9ydCB7IENoYW5nZUV2ZW50SGFuZGxlciwgdXNlQ2FsbGJhY2ssIHVzZVN0YXRlIH0gZnJvbSAncmVhY3QnO1xuXG5pbXBvcnQgeyBtYWtlRGVzY0lkIH0gZnJvbSAnLi4vLi4vYWNjZXNzaWJpbGl0eS9hcmlhL3V0aWxzJztcbmltcG9ydCB0eXBlIHsgRm9jdXNFdmVudEhhbmRsZXIgfSBmcm9tICcuLi8uLi9ldmVudHMnO1xuaW1wb3J0IHR5cGUgeyBJbnB1dE51bWJlclByb3BzIH0gZnJvbSAnLi4vLi4vaW5wdXQnO1xuaW1wb3J0IHR5cGUgeyBGaWVsZExheW91dFByb3BzLCBOdW1iZXJGaWVsZFByb3BzIH0gZnJvbSAnLi4vdHlwZXMnO1xuXG50eXBlIFVzZU51bWJlckZpZWxkU3RhdGUgPSB7XG4gICAgbGF5b3V0UHJvcHM6IE9taXQ8RmllbGRMYXlvdXRQcm9wcywgJ2lucHV0JyB8ICdjbGFzc05hbWUnIHwgJ2lucHV0SGFuZGxlJyB8ICdidXR0b24nPjtcbiAgICBpbnB1dFByb3BzOiB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lLFxuICAgICAgICAgICAgZGlzYWJsZWQsXG4gICAgICAgICAgICBpc0ZvY3VzZWQsXG4gICAgICAgICAgICBpc1RvdWNoZWQsXG4gICAgICAgICAgICBpc0NoYW5nZWQsXG4gICAgICAgICAgICBoYXNWYWx1ZTogdHlwZW9mIHZhbHVlICE9PSB1bmRlZmluZWQsXG4gICAgICAgICAgICBoYXNFcnJvcjogYWN0dWFsSGFzRXJyb3IsXG4gICAgICAgICAgICBpY29uLFxuICAgICAgICAgICAgZGF0YXNldCxcbiAgICAgICAgfSxcbiAgICAgICAgaW5wdXRQcm9wczoge1xuICAgICAgICAgICAgaWQ6IGFjdHVhbElkLFxuICAgICAgICAgICAgdmFsdWUsXG4gICAgICAgICAgICBvbkZvY3VzOiBoYW5kbGVGb2N1cyxcbiAgICAgICAgICAgIG9uQmx1cjogaGFuZGxlQmx1cixcbiAgICAgICAgICAgIG9uQ2hhbmdlOiBoYW5kbGVDaGFuZ2UsXG4gICAgICAgICAgICByZXF1aXJlZCxcbiAgICAgICAgICAgIGRpc2FibGVkLFxuICAgICAgICAgICAgaGFzRXJyb3I6IGFjdHVhbEhhc0Vycm9yLFxuICAgICAgICAgICAgZGF0YXNldDogaW5wdXREYXRhc2V0LFxuICAgICAgICAgICAgJ2FyaWEtZGVzY3JpYmVkYnknOiBkZXNjcmliZUlkLFxuICAgICAgICAgICAgbWF4LFxuICAgICAgICAgICAgbWluLFxuICAgICAgICAgICAgLi4ucmVzdCxcbiAgICAgICAgfSxcbiAgICB9O1xufTtcbiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O01BYWEsY0FBYyxHQUFHLENBQzFCLEtBQXNEO0lBRXRELE1BQU0sRUFDRixFQUFFLEVBQ0YsS0FBSyxFQUNMLEtBQUssRUFDTCxTQUFTLEVBQ1QsYUFBYSxFQUNiLFFBQVEsRUFDUixhQUFhLEVBQ2IsY0FBYyxFQUNkLFFBQVEsRUFDUixRQUFRLEVBQ1IsWUFBWSxFQUNaL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BUSxDQUFDLEdBQUcsU0FBUyxDQUFDO0lBQ3pGLE9BQU87UUFDSCxXQUFXLEVBQUU7WUFDVCxFQUFFLEVBQUUsUUFBUTtZQUNaLEtBQUs7WUFDTCxTQUFTO1lBQ1QsU0FBUztZQUNULFFBQVE7WUFDUixhQUFhO1lBQ2IsY0FBYyxFQUFFLG9CQUFvQjtZQUNwQyxhQUFhO1lBQ2IsUUFBUTtZQUNSLFNBQVM7WUFDVCxTQUFTO1lBQ1QsU0FBUztZQUNULFFBQVEsRUFBRSxPQUFPLEtBQUssS0FBSyxTQUFTO1lBQ3BDLFFBQVEsRUFBRSxjQUFjO1lBQ3hCLElBQUk7WUFDSixPQUFPO1NBQ1Y7UUFDRCxVQUFVLEVBQUU7WUFDUixFQUFFLEVBQUUsUUFBUTtZQUNaLEtBQUs7WUFDTCxPQUFPLEVBQUUsV0FBVztZQUNwQixNQUFNLEVBQUUsVUFBVTtZQUNsQixRQUFRLEVBQUUsWUFBWTtZQUN0QixRQUFRO1lBQ1IsUUFBUTtZQUNSLFFBQVEsRUFBRSxjQUFjO1lBQ3hCLE9BQU8sRUFBRSxZQUFZO1lBQ3JCLGtCQUFrQixFQUFFLFVBQVU7WUFDOUIsR0FBRztZQUNILEdBQUc7WUFDSCxHQUFHLElBQUk7U0FDVjtLQUNKLENBQUM7QUFDTjs7OzsifQ== |
@@ -7,3 +7,3 @@ import { makeTinyId } from '@preply/ds-core'; | ||
const usePasswordField = (props) => { | ||
const { id, value, label, hideLabel, preserveSpace, required, requiredLabel, additionalText, disabled, hasError, errorMessage, onFocus, onBlur, onChange, autoComplete = AUTO_COMPLETE_TEXT_DEFAULT, inputDataset, dataset, ...rest } = props; | ||
const { id, value, label, hideLabel, wrapLabel, preserveSpace, required, requiredLabel, additionalText, disabled, hasError, errorMessage, onFocus, onBlur, onChange, autoComplete = AUTO_COMPLETE_TEXT_DEFAULT, inputDataset, dataset, ...rest } = props; | ||
const actualId = id || makeTinyId(); | ||
@@ -34,2 +34,3 @@ const [isFocused, setIsFocused] = useState(false); | ||
hideLabel, | ||
wrapLabel, | ||
required, | ||
@@ -65,2 +66,2 @@ requiredLabel, | ||
export { usePasswordField }; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlUGFzc3dvcmRGaWVsZC5qcyIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2ZpZWxkL2hvb2tzL3VzZVBhc3N3b3JkRmllbGQudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgbWFrZVRpbnlJZCB9IGZyb20gJ0BwcmVwbHkvZHMtY29yZSc7XG5pbXBvcnQgeyBDaGFuZ2VFdmVudEhhbmRsZXIsIHVzZUNhbGxiYWNrLCB1c2VTdGF0ZSB9IGZyb20gJ3JlYWN0JztcblxuaW1wb3J0IHsgbWFrZURlc2NJZCB9IGZyb20gJy4uLy4uL2FjY2Vzc2liaWxpdHkvYXJpYS91dGlscyc7XG5pbXBvcnQgdHlwZSB7IEZvY3VzRXZlbnRIYW5kbGVyIH0gZnJvbSAnLi4vLi4vZXZlbnRzJztcbmltcG9ydCB0eXBlIHsgSW5wdXRQYXNzd29yZFByb3BzIH0gZnJvbSAnLi4vLi4vaW5wdXQnO1xuaW1wb3J0IHsgQVVUT19DT01QTEVURV9URVhUX0RFRkFVTFQgfSBmcm9tICcuLi8uLi9pbnB1dCc7XG5pbXBvcnQgdHlwZSB7IEZpZWxkTGF5b3V0UHJvcHMsIFBhc3N3b3JkRmllbGRQcm9wcyB9IGZyb20gJy4uL3R5cGVzJztcblxudHlwZSBVc2VQYXNzd29yZEZpZWxkU3RhdGUgPSB7XG4gICAgbGF5b3V0UHJvcHM6IE9taXQ8RmllbGRMYXlvdXRQcm9wcywgJ2lucHV0JyB8ICdjbGFzc05hbWUnIHwgJ2lucHV0SGFuZGxlJz47XG4gICAgaW5wdXRQcm9wczogSW5wdXRQYXNzd29yZFByb3BzO1xufTtcblxuZXhwb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QUFXLEVBQUU7WUFDVCxFQUFFLEVBQUUsUUFBUTtZQUNaLEtBQUs7WUFDTCxTQUFTO1lBQ1QsU0FBUztZQUNULFFBQVE7WUFDUixhQUFhO1lBQ2IsY0FBYyxFQUFFLG9CQUFvQjtZQUNwQyxhQUFhO1lBQ2IsUUFBUTtZQUNSLFNBQVM7WUFDVCxTQUFTO1lBQ1QsU0FBUztZQUNULFFBQVEsRUFBRSxPQUFPLEtBQUssS0FBSyxTQUFTO1lBQ3BDLFFBQVEsRUFBRSxjQUFjO1lBQ3hCLE9BQU87U0FDVjtRQUNELFVBQVUsRUFBRTtZQUNSLEVBQUUsRUFBRSxRQUFRO1lBQ1osS0FBSztZQUNMLE9BQU8sRUFBRSxXQUFXO1lBQ3BCLE1BQU0sRUFBRSxVQUFVO1lBQ2xCLFFBQVEsRUFBRSxZQUFZO1lBQ3RCLFFBQVE7WUFDUixRQUFRO1lBQ1IsUUFBUSxFQUFFLGNBQWM7WUFDeEIsWUFBWTtZQUNaLE9BQU8sRUFBRSxZQUFZO1lBQ3JCLGtCQUFrQixFQUFFLFVBQVU7WUFDOUIsR0FBRyxJQUFJO1NBQ1Y7S0FDSixDQUFDO0FBQ047Ozs7In0= |
@@ -6,3 +6,3 @@ import { makeTinyId } from '@preply/ds-core'; | ||
const useSelectField = (props) => { | ||
const { id, value, label, hideLabel, preserveSpace, required, requiredLabel, additionalText, disabled, hasError, errorMessage, icon, onFocus, onBlur, onChange, inputDataset, dataset, placeholder, defaultValue, ...rest } = props; | ||
const { id, value, label, hideLabel, wrapLabel, preserveSpace, required, requiredLabel, additionalText, disabled, hasError, errorMessage, icon, onFocus, onBlur, onChange, inputDataset, dataset, placeholder, defaultValue, ...rest } = props; | ||
const actualId = id || makeTinyId(); | ||
@@ -41,2 +41,3 @@ const [isFocused, setIsFocused] = useState(false); | ||
hideLabel, | ||
wrapLabel, | ||
required, | ||
@@ -74,2 +75,2 @@ requiredLabel, | ||
export { useSelectField }; | ||
//# sourceMappingURL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ZGVMYWJlbCxcbiAgICAgICAgICAgIHJlcXVpcmVkLFxuICAgICAgICAgICAgcmVxdWlyZWRMYWJlbCxcbiAgICAgICAgICAgIGFkZGl0aW9uYWxUZXh0OiBhY3R1YWxBZGRpdGlvbmFsVGV4dCxcbiAgICAgICAgICAgIHByZXNlcnZlU3BhY2UsXG4gICAgICAgICAgICBkaXNhYmxlZCxcbiAgICAgICAgICAgIGlzRm9jdXNlZCxcbiAgICAgICAgICAgIGlzVG91Y2hlZCxcbiAgICAgICAgICAgIGlzQ2hhbmdlZCxcbiAgICAgICAgICAgIGhhc1ZhbHVlLFxuICAgICAgICAgICAgaGFzRXJyb3I6IGFjdHVhbEhhc0Vycm9yLFxuICAgICAgICAgICAgaWNvbixcbiAgICAgICAgICAgIGRhdGFzZXQsXG4gICAgICAgIH0sXG4gICAgICAgIGlucHV0UHJvcHM6IHtcbiAgICAgICAgICAgIGlkOiBhY3R1YWxJZCxcbiAgICAgICAgICAgIHZhbHVlLFxuICAgICAgICAgICAgb25Gb2N1czogaGFuZGxlRm9jdXMsXG4gICAgICAgICAgICBvbkJsdXI6IGhhbmRsZUJsdXIsXG4gICAgICAgICAgICBvbkNoYW5nZTogaGFuZGxlQ2hhbmdlLFxuICAgICAgICAgICAgcmVxdWlyZWQsXG4gICAgICAgICAgICBkaXNhYmxlZCxcbiAgICAgICAgICAgIGhhc0Vycm9yOiBhY3R1YWxIYXNFcnJvcixcbiAgICAgICAgICAgIGRhdGFzZXQ6IGlucHV0RGF0YXNldCxcbiAgICAgICAgICAgICdhcmlhLWRlc2NyaWJlZGJ5JzogZGVzY3JpYmVJZCxcbiAgICAgICAgICAgIHBsYWNlaG9sZGVyLFxuICAgICAgICAgICAgZGVmYXVsdFZhbHVlLFxuICAgICAgICAgICAgLi4ucmVzdCxcbiAgICAgICAgfSxcbiAgICB9O1xufTtcbiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O01BYWEsY0FBYyxHQUFHLENBQzFCLEtBQWl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ICAgIHNldEhhc1ZhbHVlKGhhc0NvbnRyb2xsZWRWYWx1ZSk7XG4gICAgfSwgW2hhc0NvbnRyb2xsZWRWYWx1ZV0pO1xuXG4gICAgY29uc3QgYWN0dWFsSGFzRXJyb3IgPSBoYXNFcnJvciB8fCAhIWVycm9yTWVzc2FnZTtcbiAgICBjb25zdCBhY3R1YWxBZGRpdGlvbmFsVGV4dCA9IGVycm9yTWVzc2FnZSB8fCBhZGRpdGlvbmFsVGV4dDtcbiAgICBjb25zdCBkZXNjcmliZUlkID0gYWN0dWFsSGFzRXJyb3IgfHwgISFhZGRpdGlvbmFsVGV4dCA/IG1ha2VEZXNjSWQoYWN0dWFsSWQpIDogdW5kZWZpbmVkO1xuXG4gICAgcmV0dXJuIHtcbiAgICAgICAgbGF5b3V0UHJvcHM6IHtcbiAgICAgICAgICAgIGlkOiBhY3R1YWxJZCxcbiAgICAgICAgICAgIGxhYmVsLFxuICAgICAgICAgICAgaGlkZUxhYmVsLFxuICAgICAgICAgICAgd3JhcExhYmVsLFxuICAgICAgICAgICAgcmVxdWlyZWQsXG4gICAgICAgICAgICByZXF1aXJlZExhYmVsLFxuICAgICAgICAgICAgYWRkaXRpb25hbFRleHQ6IGFjdHVhbEFkZGl0aW9uYWxUZXh0LFxuICAgICAgICAgICAgcHJlc2VydmVTcGFjZSxcbiAgICAgICAgICAgIGRpc2FibGVkLFxuICAgICAgICAgICAgaXNGb2N1c2VkLFxuICAgICAgICAgICAgaXNUb3VjaGVkLFxuICAgICAgICAgICAgaXNDaGFuZ2VkLFxuICAgICAgICAgICAgaGFzVmFsdWUsXG4gICAgICAgICAgICBoYXNFcnJvcjogYWN0dWFsSGFzRXJyb3IsXG4gICAgICAgICAgICBpY29uLFxuICAgICAgICAgICAgZGF0YXNldCxcbiAgICAgICAgfSxcbiAgICAgICAgaW5wdXRQcm9wczoge1xuICAgICAgICAgICAgaWQ6IGFjdHVhbElkLFxuICAgICAgICAgICAgdmFsdWUsXG4gICAgICAgICAgICB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hideLabel, preserveSpace, required, requiredLabel, additionalText, disabled, hasError, errorMessage, onFocus, onBlur, onChange, autoComplete = AUTO_COMPLETE_TEXT_DEFAULT, inputDataset, dataset, ...rest } = props; | ||
const { id, value, label, hideLabel, wrapLabel, preserveSpace, required, requiredLabel, additionalText, disabled, hasError, errorMessage, onFocus, onBlur, onChange, autoComplete = AUTO_COMPLETE_TEXT_DEFAULT, inputDataset, dataset, ...rest } = props; | ||
const actualId = id || makeTinyId(); | ||
@@ -34,2 +34,3 @@ const [isFocused, setIsFocused] = useState(false); | ||
hideLabel, | ||
wrapLabel, | ||
required, | ||
@@ -65,2 +66,2 @@ requiredLabel, | ||
export { useTextareaField }; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlVGV4dGFyZWFGaWVsZC5qcyIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2ZpZWxkL2hvb2tzL3VzZVRleHRhcmVhRmllbGQudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgbWFrZVRpbnlJZCB9IGZyb20gJ0BwcmVwbHkvZHMtY29yZSc7XG5pbXBvcnQgeyBDaGFuZ2VFdmVudEhhbmRsZXIsIHVzZUNhbGxiYWNrLCB1c2VTdGF0ZSB9IGZyb20gJ3JlYWN0JztcblxuaW1wb3J0IHsgbWFrZURlc2NJZCB9IGZyb20gJy4uLy4uL2FjY2Vzc2liaWxpdHkvYXJpYS91dGlscyc7XG5pbXBvcnQgdHlwZSB7IEZvY3VzRXZlbnRIYW5kbGVyIH0gZnJvbSAnLi4vLi4vZXZlbnRzJztcbmltcG9ydCB0eXBlIHsgVGV4dGFyZWFQcm9wcyB9IGZyb20gJy4uLy4uL2lucHV0JztcbmltcG9ydCB7IEFVVE9fQ09NUExFVEVfVEVYVF9ERUZBVUxUIH0gZnJvbSAnLi4vLi4vaW5wdXQnO1xuaW1wb3J0IHR5cGUgeyBGaWVsZExheW91dFByb3BzLCB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YXlvdXRQcm9wczoge1xuICAgICAgICAgICAgaWQ6IGFjdHVhbElkLFxuICAgICAgICAgICAgbGFiZWwsXG4gICAgICAgICAgICBoaWRlTGFiZWwsXG4gICAgICAgICAgICByZXF1aXJlZCxcbiAgICAgICAgICAgIHJlcXVpcmVkTGFiZWwsXG4gICAgICAgICAgICBhZGRpdGlvbmFsVGV4dDogYWN0dWFsQWRkaXRpb25hbFRleHQsXG4gICAgICAgICAgICBwcmVzZXJ2ZVNwYWNlLFxuICAgICAgICAgICAgZGlzYWJsZWQsXG4gICAgICAgICAgICBpc0ZvY3VzZWQsXG4gICAgICAgICAgICBpc1RvdWNoZWQsXG4gICAgICAgICAgICBpc0NoYW5nZWQsXG4gICAgICAgICAgICBoYXNWYWx1ZTogdHlwZW9mIHZhbHVlICE9PSB1bmRlZmluZWQsXG4gICAgICAgICAgICBoYXNFcnJvcjogYWN0dWFsSGFzRXJyb3IsXG4gICAgICAgICAgICBkYXRhc2V0LFxuICAgICAgICB9LFxuICAgICAgICBpbnB1dFByb3BzOiB7XG4gICAgICAgICAgICBpZDogYWN0dWFsSWQsXG4gICAgICAgICAgICB2YWx1ZSxcbiAgICAgICAgICAgIG9uRm9jdXM6IGhhbmRsZUZvY3VzLFxuICAgICAgICAgICAgb25CbHVyOiBoYW5kbGVCbHVyLFxuICAgICAgICAgICAgb25DaGFuZ2U6IGhhbmRsZUNoYW5nZSxcbiAgICAgICAgICAgIHJlcXVpcmVkLFxuICAgICAgICAgICAgZGlzYWJsZWQsXG4gICAgICAgICAgICBoYXNFcnJvcjogYWN0dWFsSGFzRXJyb3IsXG4gICAgICAgICAgICBhdXRvQ29tcGxldGUsXG4gICAgICAgICAgICBkYXRhc2V0OiBpbnB1dERhdGFzZXQsXG4gICAgICAgICAgICAnYXJpYS1kZXNjcmliZWRieSc6IGRlc2NyaWJlSWQsXG4gICAgICAgICAgICAuLi5yZXN0LFxuICAgICAgICB9LFxuICAgIH07XG59O1xuIl0sIm5hbWVzIjpbXS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, hideLabel, preserveSpace, required, requiredLabel, additionalText, disabled, hasError, errorMessage, icon, button, onFocus, onBlur, onChange, autoComplete = AUTO_COMPLETE_TEXT_DEFAULT, inputDataset, dataset, ...rest } = props; | ||
const { type, id, value, label, hideLabel, wrapLabel, preserveSpace, required, requiredLabel, additionalText, disabled, hasError, errorMessage, icon, button, onFocus, onBlur, onChange, autoComplete = AUTO_COMPLETE_TEXT_DEFAULT, inputDataset, dataset, ...rest } = props; | ||
const actualId = id || makeTinyId(); | ||
@@ -36,2 +36,3 @@ const actualType = type !== null && type !== void 0 ? type : FIELD_TYPE_DEFAULT; | ||
hideLabel, | ||
wrapLabel, | ||
required, | ||
@@ -70,2 +71,2 @@ requiredLabel, | ||
export { useTextField }; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlVGV4dEZpZWxkLmpzIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvZmllbGQvaG9va3MvdXNlVGV4dEZpZWxkLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IG1ha2VUaW55SWQgfSBmcm9tICdAcHJlcGx5L2RzLWNvcmUnO1xuaW1wb3J0IHsgQ2hhbmdlRXZlbnRIYW5kbGVyLCB1c2VDYWxsYmFjaywgdXNlU3RhdGUgfSBmcm9tICdyZWFjdCc7XG5cbmltcG9ydCB7IG1ha2VEZXNjSWQgfSBmcm9tICcuLi8uLi9hY2Nlc3NpYmlsaXR5L2FyaWEvdXRpbHMnO1xuaW1wb3J0IHR5cGUgeyBGb2N1c0V2ZW50SGFuZGxlciB9IGZyb20gJy4uLy4uL2V2ZW50cyc7XG5pbXBvcnQgdHlwZSB7IElucHV0VGV4dFByb3BzIH0gZnJvbSAnLi4vLi4vaW5wdXQnO1xuaW1wb3J0IHsgQVVUT19DT01QTEVURV9URVhUX0RFRkFVTFQgfSBmcm9tICcuLi8uLi9pbnB1dCc7XG5pbXBvcnQgeyBGSUVMRF9UWVBFX0RFRkFVTFQgfSBmcm9tICcuLi9jb25zdGFudHMnO1xuaW1wb3J0IHR5cGUgeyBGaWVsZExheW91dFByb3BzLCBUZXh0RmllbGRQcm9wcyB9IGZyb20gJy4uL3R5cGVzJztcblxudHlwZSBVc2VUZXh0RmllbGRTdGF0ZSA9IHtcbiAgICBsYXlvdXRQcm9wczogT21pdDxGaWVsZExheW91dFByb3BzLCAnaW5wdXQnIHwgJ2NsYXNzTmFtZScgfCAnaW5wdXRIYW5kbGUnPjtcbiAgICBpbnB1dFByb3BzOiBJbnB1dFRleHRQcm9wcztcbn07XG5cbmV4cG9ydCBjb25zdCB1c2VUZXh0RmllbGQgPSAoXG4gICAgcHJvcHM6IFRleHRGaWVsZFByb3BzICYgT21pdDxJbnB1dFRleHRQcm9wcywgJ2lkJz4sXG4pOiBVc2VUZXh0RmllbGRTdGF0ZSA9PiB7XG4gICAgY29uc3Qge1xuICAgICAgICB0eXBlLFxuICAgICAgICBpZCxcbiAgICAgICAgdmFsdWUsXG4gICAgICAgIGxhYmVsLFxuICAgICAgICBoaWRlTGFiZWwsXG4gICAgICAgIHByZXNlcnZlU3BhY2UsXG4gICAgICAgIHJlcXVpcmVkLFxuICAgICAgICByZXF1aXJlZExhYmVsLFxuICAgICAgICBhZGRpdGlvbmFsVGV4dCxcbiAgICAgICAgZGlzYWJsZWQsXG4gICAgICAgIGhhc0Vycm9yLFxuICAgICAgICBlcnJvck1lc3NhZ2UsXG4gICAgICAgIGljb24sXG4gICAgICAgIGJ1dHRvbixcbiAgICAgICAgb25Gb2N1cyxcbiAgICAgICAgb25CbHVyLFxuICAgICAgICBvbkNoYW5nZSxcbiAgICAgICAgYXV0b0NvbXBsZXRlID0gQVVUT19DT01QTEVURV9URVhUX0RFRkFVTFQsXG4gICAgICAgIGlucHV0RGF0YXNldCxcbiAgICAgICAgZGF0YXNldCxcbiAgICAgICAgLi4ucmVzdFxuICAgIH0gPSBwcm9wcztcblxuICAgIGNvbnN0IGFjdHVhbElkID0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l0aW9uYWxUZXh0O1xuICAgIGNvbnN0IGRlc2NyaWJlSWQgPSBhY3R1YWxIYXNFcnJvciB8fCAhIWFkZGl0aW9uYWxUZXh0ID8gbWFrZURlc2NJZChhY3R1YWxJZCkgOiB1bmRlZmluZWQ7XG5cbiAgICByZXR1cm4ge1xuICAgICAgICBsYXlvdXRQcm9wczoge1xuICAgICAgICAgICAgaWQ6IGFjdHVhbElkLFxuICAgICAgICAgICAgbGFiZWwsXG4gICAgICAgICAgICBoaWRlTGFiZWwsXG4gICAgICAgICAgICByZXF1aXJlZCxcbiAgICAgICAgICAgIHJlcXVpcmVkTGFiZWwsXG4gICAgICAgICAgICBhZGRpdGlvbmFsVGV4dDogYWN0dWFsQWRkaXRpb25hbFRleHQsXG4gICAgICAgICAgICBwcmVzZXJ2ZVNwYWNlLFxuICAgICAgICAgICAgZGlzYWJsZWQsXG4gICAgICAgICAgICBpc0ZvY3VzZWQsXG4gICAgICAgICAgICBpc1RvdWNoZWQsXG4gICAgICAgICAgICBpc0NoYW5nZWQsXG4gICAgICAgICAgICBoYXNWYWx1ZTogdHlwZW9mIHZhbHVlICE9PSB1bmRlZmluZWQsXG4gICAgICAgICAgICBoYXNFcnJvcjogYWN0dWFsSGFzRXJyb3IsXG4gICAgICAgICAgICBpY29uLFxuICAgICAgICAgICAgYnV0dG9uLFxuICAgICAgICAgICAgZGF0YXNldCxcbiAgICAgICAgfSxcbiAgICAgICAgaW5wdXRQcm9wczoge1xuICAgICAgICAgICAgdHlwZTogYWN0dWFsVHlwZSxcbiAgICAgICAgICAgIGlkOiBhY3R1YWxJZCxcbiAgICAgICAgICAgIHZhbHVlLFxuICAgICAgICAgICAgb25Gb2N1czogaGFuZGxlRm9jdXMsXG4gICAgICAgICAgICBvbkJsdXI6IGhhbmRsZUJsdXIsXG4gICAgICAgICAgICBvbkNoYW5nZTogaGFuZGxlQ2hhbmdlLFxuICAgICAgICAgICAgcmVxdWlyZWQsXG4gICAgICAgICAgICBkaXNhYmxlZ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AgIH0sIFtdKTtcblxuICAgIGNvbnN0IGFjdHVhbEhhc0Vycm9yID0gaGFzRXJyb3IgfHwgISFlcnJvck1lc3NhZ2U7XG4gICAgY29uc3QgYWN0dWFsQWRkaXRpb25hbFRleHQgPSBlcnJvck1lc3NhZ2UgfHwgYWRkaXRpb25hbFRleHQ7XG4gICAgY29uc3QgZGVzY3JpYmVJZCA9IGFjdHVhbEhhc0Vycm9yIHx8ICEhYWRkaXRpb25hbFRleHQgPyBtYWtlRGVzY0lkKGFjdHVhbElkKSA6IHVuZGVmaW5lZDtcblxuICAgIHJldHVybiB7XG4gICAgICAgIGxheW91dFByb3BzOiB7XG4gICAgICAgICAgICBpZDogYWN0dWFsSWQsXG4gICAgICAgICAgICBsYWJlbCxcbiAgICAgICAgICAgIGhpZGVMYWJlbCxcbiAgICAgICAgICAgIHdyYXBMYWJlbCxcbiAgICAgICAgICAgIHJlcXVpcmVkLFxuICAgICAgICAgICAgcmVxdWlyZWRMYWJlbCxcbiAgICAgICAgICAgIGFkZGl0aW9uYWxUZXh0OiBhY3R1YWxBZGRpdGlvbmFsVGV4dCxcbiAgICAgICAgICAgIHByZXNlcnZlU3BhY2UsXG4gICAgICAgICAgICBkaXNhYmxlZCxcbiAgICAgICAgICAgIGlzRm9jdXNlZCxcbiAgICAgICAgICAgIGlzVG91Y2hlZCxcbiAgICAgICAgICAgIGlzQ2hhbmdlZCxcbiAgICAgICAgICAgIGhhc1ZhbHVlOiB0eXBlb2YgdmFsdWUgIT09IHVuZGVmaW5lZCxcbiAgICAgICAgICAgIGhhc0Vycm9yOiBhY3R1YWxIYXNFcnJvcixcbiAgICAgICAgICAgIGljb24sXG4gICAgICAgICAgICBidXR0b24sXG4gICAgICAgICAgICBkYXRhc2V0LFxuICAgICAgICB9LFxuICAgICAgICBpbnB1dFByb3BzOiB7XG4gICAgICAgICAgICB0eXBlOiBhY3R1YWxUeXBlLFxuICAgICAgICAgICAgaWQ6IGFjdHVhbElkLFxuICAgICAgICAgICA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xRQUFRLENBQUMsR0FBRyxTQUFTLENBQUM7SUFFekYsT0FBTztRQUNILFdBQVcsRUFBRTtZQUNULEVBQUUsRUFBRSxRQUFRO1lBQ1osS0FBSztZQUNMLFNBQVM7WUFDVCxTQUFTO1lBQ1QsUUFBUTtZQUNSLGFBQWE7WUFDYixjQUFjLEVBQUUsb0JBQW9CO1lBQ3BDLGFBQWE7WUFDYixRQUFRO1lBQ1IsU0FBUztZQUNULFNBQVM7WUFDVCxTQUFTO1lBQ1QsUUFBUSxFQUFFLE9BQU8sS0FBSyxLQUFLLFNBQVM7WUFDcEMsUUFBUSxFQUFFLGNBQWM7WUFDeEIsSUFBSTtZQUNKLE1BQU07WUFDTixPQUFPO1NBQ1Y7UUFDRCxVQUFVLEVBQUU7WUFDUixJQUFJLEVBQUUsVUFBVTtZQUNoQixFQUFFLEVBQUUsUUFBUTtZQUNaLEtBQUs7WUFDTCxPQUFPLEVBQUUsV0FBVztZQUNwQixNQUFNLEVBQUUsVUFBVTtZQUNsQixRQUFRLEVBQUUsWUFBWTtZQUN0QixRQUFRO1lBQ1IsUUFBUTtZQUNSLFFBQVEsRUFBRSxjQUFjO1lBQ3hCLFlBQVk7WUFDWixPQUFPLEVBQUUsWUFBWTtZQUNyQixrQkFBa0IsRUFBRSxVQUFVO1lBQzlCLEdBQUcsSUFBSTtTQUNWO0tBQ0osQ0FBQztBQUNOOzs7OyJ9 |
@@ -16,2 +16,3 @@ import type { Dataset } from '@preply/ds-core'; | ||
hideLabel?: boolean; | ||
wrapLabel?: boolean; | ||
required?: boolean; | ||
@@ -31,2 +32,3 @@ requiredLabel?: ReactNode | string; | ||
hideLabel?: boolean; | ||
wrapLabel?: boolean; | ||
required?: boolean; | ||
@@ -69,2 +71,3 @@ requiredLabel?: ReactNode | string; | ||
hideLabel?: boolean; | ||
wrapLabel?: boolean; | ||
additionalText?: ReactNode | string; | ||
@@ -71,0 +74,0 @@ preserveSpace?: boolean; |
{ | ||
"name": "@preply/ds-web-core", | ||
"version": "0.77.0", | ||
"version": "0.78.0", | ||
"publishConfig": { | ||
@@ -22,12 +22,12 @@ "access": "public" | ||
"dependencies": { | ||
"@preply/ds-core": "0.77.0", | ||
"@preply/ds-core-types": "0.77.0" | ||
"@preply/ds-core": "0.78.0", | ||
"@preply/ds-core-types": "0.78.0" | ||
}, | ||
"peerDependencies": { | ||
"@preply/ds-core": "0.77.0", | ||
"@preply/ds-core-types": "0.77.0", | ||
"@preply/ds-core": "0.78.0", | ||
"@preply/ds-core-types": "0.78.0", | ||
"react": "^16.8.3", | ||
"react-dom": "^16.8.3" | ||
}, | ||
"gitHead": "de4e4ea26c0d8f58cb1ccf422ef97728571471e3" | ||
"gitHead": "b40502fcb07a404513cbbe2b9a095e18d828cc28" | ||
} |
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
480735
3605
+ Added@preply/ds-core@0.78.0(transitive)
+ Added@preply/ds-core-types@0.78.0(transitive)
- Removed@preply/ds-core@0.77.0(transitive)
- Removed@preply/ds-core-types@0.77.0(transitive)
Updated@preply/ds-core@0.78.0
Updated@preply/ds-core-types@0.78.0