Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@preply/ds-web-core

Package Overview
Dependencies
Maintainers
7
Versions
401
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@preply/ds-web-core - npm Package Compare versions

Comparing version 0.80.0 to 0.80.1

10

dist/dom/props/index.d.ts
import type { Dataset } from '@preply/ds-core';
import type { AnchorProps } from '../../types';
export declare const getDatasetProps: (dataset?: Dataset | undefined) => Dataset;
export declare const getDatasetProps: (dataset?: Dataset | undefined, dsDataset?: {
/**
* The attribute allows to highlight the component in the product an easier way compared to
* what the Visual Mode allows to do at the moment. The initial idea is to use it for Visual
* Coverage.
* @see https://docs.google.com/document/d/1_A3SgqwIUM48ZrcqmMvL2GX7PuaHRh7L-rX-xld_2TU
*/
preplyDsComponent?: string | undefined;
} | undefined) => Dataset;
export declare const getExternalUrlProps: (hostname: string | undefined, url: string, opensInNewTab?: boolean | undefined, nofollow?: boolean | undefined) => AnchorProps;

23

dist/dom/props/index.js

@@ -5,10 +5,19 @@ import { currentHostname } from '../../location/index.js';

const getDatasetProps = (dataset) => {
if (!dataset) {
return {};
}
return Object.keys(dataset).reduce((acc, key) => {
acc[`data-${key}`] = dataset[key];
const getDatasetProps = (dataset, dsDataset) => {
var _a;
const receivedDataset = dataset !== null && dataset !== void 0 ? dataset : {};
const elementDataset = Object.keys(receivedDataset).reduce((acc, key) => {
if (key === 'preply-ds-component') {
console.warn('The "preply-ds-component" dataset attribute is intended for internal usages only.');
return acc;
}
acc[`data-${key}`] = receivedDataset[key];
return acc;
}, {});
if (!dsDataset)
return elementDataset;
return {
...elementDataset,
'data-preply-ds-component': (_a = dsDataset.preplyDsComponent) !== null && _a !== void 0 ? _a : '',
};
};

@@ -29,2 +38,2 @@ const getExternalUrlProps = (hostname, url, opensInNewTab, nofollow) => {

export { getDatasetProps, getExternalUrlProps };
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2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B0byB1c2UgaXQgZm9yIFZpc3VhbFxuICAgICAgICAgKiBDb3ZlcmFnZS5cbiAgICAgICAgICogQHNlZSBodHRwczovL2RvY3MuZ29vZ2xlLmNvbS9kb2N1bWVudC9kLzFfQTNTZ3F3SVVNNDhacmNxbU12TDJHWDdQdWFIUmg3TC1yWC14bGRfMlRVXG4gICAgICAgICAqL1xuICAgICAgICBwcmVwbHlEc0NvbXBvbmVudD86IHN0cmluZztcbiAgICB9LFxuKTogRGF0YXNldCA9PiB7XG4gICAgY29uc3QgcmVjZWl2ZWREYXRhc2V0ID0gZGF0YXNldCA/PyB7fTtcbiAgICBjb25zdCBlbGVtZW50RGF0YXNldCA9IE9iamVjdC5rZXlzKHJlY2VpdmVkRGF0YXNldCkucmVkdWNlPERhdGFzZXQ+KChhY2MsIGtleSkgPT4ge1xuICAgICAgICBpZiAoa2V5ID09PSAncHJlcGx5LWRzLWNvbXBvbmVudCcpIHtcbiAgICAgICAgICAgIGNvbnNvbGUud2FybihcbiAgICAgICAgICAgICAgICAnVGhlIFwicHJlcGx5LWRzLWNvbXBvbmVudFwiIGRhdGFzZXQgYXR0cmlidXRlIGlzIGludGVuZGVkIGZvciBpbnRlcm5hbCB1c2FnZXMgb25seS4nLFxuICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIHJldHVybiBhY2M7XG4gICAgICAgIH1cblxuICAgICAgICBhY2NbYGRhdGEtJHtrZXl9YF0gPSByZWNlaXZlZERhdGFzZXRba2V5XTtcbiAgICAgICAgcmV0dXJuIGFjYztcbiAgICB9LCB7fSk7XG5cbiAgICBpZiAoIWRzRGF0YXNldCkgcmV0dXJuIGVsZW1lbnREYXRhc2V0O1xuXG4gICAgcmV0dXJuIHtcbiAgICAgICAgLi4uZWxlbWVudERhdGFzZXQsXG4gICAgICAgICdkYXRhLXByZXBseS1kcy1jb21wb25lbnQnOiBkc0RhdGFzZXQucHJlcGx5RHNDb21wb25lbnQgPz8gJycsXG4gICAgfTtcbn07XG5cbmV4cG9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UFDLElBQUksQ0FBQyxDQUFDO0lBQ2hFLE1BQU0sVUFBVSxHQUFHLFVBQVUsSUFBSSxRQUFRLENBQUMsR0FBRyxDQUFDLEtBQUssS0FBSyxDQUFDO0lBRXpELE1BQU0saUJBQWlCLEdBQUcsVUFBVSxHQUFHLHVCQUF1QixHQUFHLEVBQUUsQ0FBQztJQUNwRSxNQUFNLG9CQUFvQixHQUFHLFFBQVEsR0FBRyxvQkFBb0IsR0FBRyxFQUFFLENBQUM7SUFFbEUsTUFBTSxTQUFTLEdBQUcsQ0FBQyxHQUFHLGlCQUFpQixFQUFFLEdBQUcsb0JBQW9CLENBQUMsQ0FBQyxJQUFJLENBQUMsR0FBRyxDQUFDLENBQUM7SUFDNUUsTUFBTSxRQUFRLEdBQUcsU0FBUyxHQUFHLEVBQUUsR0FBRyxFQUFFLFNBQVMsRUFBRSxHQUFHLEVBQUUsQ0FBQztJQUVyRCxNQUFNLGlCQUFpQixHQUFHLGFBQWEsS0FBSyxTQUFTLEdBQUcsVUFBVSxHQUFHLGFBQWEsQ0FBQztJQUNuRixNQUFNLFdBQVcsR0FBRyxpQkFBaUIsR0FBRyxxQkFBcUIsR0FBRyxFQUFFLENBQUM7SUFFbkUsT0FBTyxFQUFFLEdBQUcsUUFBUSxFQUFFLEdBQUcsV0FBVyxFQUFFLENBQUM7QUFDM0M7Ozs7In0=

@@ -12,3 +12,3 @@ /// <reference types="react" />

icon?: import("react").ReactElement<import("../..").IconProps, string | ((props: any) => import("react").ReactElement<any, string | any | (new (props: any) => import("react").Component<any, any, any>)> | null) | (new (props: any) => import("react").Component<any, any, any>)> | undefined;
} & Pick<InputNumberProps, "required" | "disabled" | "hasError" | "dataset" | "onClick" | "value" | "defaultValue" | "min" | "max" | "aria-describedby" | "aria-disabled" | "aria-invalid" | "aria-required" | "placeholder" | "maxLength" | "name" | "onChange" | "onFocus" | "onBlur" | "onKeyDown" | "onKeyUp" | "onValueChange">) => UseNumberFieldState;
} & Pick<InputNumberProps, "required" | "disabled" | "hasError" | "dataset" | "onClick" | "value" | "defaultValue" | "min" | "max" | "aria-describedby" | "aria-disabled" | "aria-invalid" | "aria-required" | "placeholder" | "maxLength" | "name" | "onChange" | "onFocus" | "onBlur" | "onKeyDown" | "onKeyUp" | "onValueChange">, preplyDsComponent: string) => UseNumberFieldState;
export {};

@@ -5,3 +5,3 @@ import { makeTinyId } from '@preply/ds-core';

const useNumberField = (props) => {
const useNumberField = (props, preplyDsComponent) => {
const { id, value, label, hideLabel, wrapLabel, preserveSpace, required, requiredLabel, additionalText, disabled, hasError, errorMessage, icon, onFocus, onBlur, onChange, inputDataset, dataset, max, min, ...rest } = props;

@@ -46,2 +46,3 @@ const actualId = id || makeTinyId();

dataset,
preplyDsComponent,
},

@@ -67,2 +68,2 @@ inputProps: {

export { useNumberField };
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlTnVtYmVyRmllbGQuanMiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9maWVsZC9ob29rcy91c2VOdW1iZXJGaWVsZC50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBtYWtlVGlueUlkIH0gZnJvbSAnQHByZXBseS9kcy1jb3JlJztcbmltcG9ydCB7IENoYW5nZUV2ZW50SGFuZGxlciwgdXNlQ2FsbGJhY2ssIHVzZVN0YXRlIH0gZnJvbSAncmVhY3QnO1xuXG5pbXBvcnQgeyBtYWtlRGVzY0lkIH0gZnJvbSAnLi4vLi4vYWNjZXNzaWJpbGl0eS9hcmlhL3V0aWxzJztcbmltcG9ydCB0eXBlIHsgRm9jdXNFdmVudEhhbmRsZXIgfSBmcm9tICcuLi8uLi9ldmVudHMnO1xuaW1wb3J0IHR5cGUgeyBJbnB1dE51bWJlclByb3BzIH0gZnJvbSAnLi4vLi4vaW5wdXQnO1xuaW1wb3J0IHR5cGUgeyBGaWVsZExheW91dFByb3BzLCBOdW1iZXJGaWVsZFByb3BzIH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ICBpZDogYWN0dWFsSWQsXG4gICAgICAgICAgICBsYWJlbCxcbiAgICAgICAgICAgIGhpZGVMYWJlbCxcbiAgICAgICAgICAgIHdyYXBMYWJlbCxcbiAgICAgICAgICAgIHJlcXVpcmVkLFxuICAgICAgICAgICAgcmVxdWlyZWRMYWJlbCxcbiAgICAgICAgICAgIGFkZGl0aW9uYWxUZXh0OiBhY3R1YWxBZGRpdGlvbmFsVGV4dCxcbiAgICAgICAgICAgIHByZXNlcnZlU3BhY2UsXG4gICAgICAgICAgICBkaXNhYmxlZCxcbiAgICAgICAgICAgIGlzRm9jdXNlZCxcbiAgICAgICAgICAgIGlzVG91Y2hlZCxcbiAgICAgICAgICAgIGlzQ2hhbmdlZCxcbiAgICAgICAgICAgIGhhc1ZhbHVlOiB0eXBlb2YgdmFsdWUgIT09IHVuZGVmaW5lZCxcbiAgICAgICAgICAgIGhhc0Vycm9yOiBhY3R1YWxIYXNFcnJvcixcbiAgICAgICAgICAgIGljb24sXG4gICAgICAgICAgICBkYXRhc2V0LFxuICAgICAgICB9LFxuICAgICAgICBpbnB1dFByb3BzOiB7XG4gICAgICAgICAgICBpZDogYWN0dWFsSWQsXG4gICAgICAgICAgICB2YWx1ZSxcbiAgICAgICAgICAgIG9uRm9jdXM6IGhhbmRsZUZvY3VzLFxuICAgICAgICAgICAgb25CbHVyOiBoYW5kbGVCbHVyLFxuICAgICAgICAgICAgb25DaGFuZ2U6IGhhbmRsZUNoYW5nZSxcbiAgICAgICAgICAgIHJlcXVpcmVkLFxuICAgICAgICAgICAgZGlzYWJsZWQsXG4gICAgICAgICAgICBoYXNFcnJvcjogYWN0dWFsSGFzRXJyb3IsXG4gICAgICAgICAgICBkYXRhc2V0OiBpbnB1dERhdGFzZXQsXG4gICAgICAgICAgICAnYXJpYS1kZXNjcmliZWRieSc6IGRlc2NyaWJlSWQsXG4gICAgICAgICAgICBtYXgsXG4gICAgICAgICAgICBtaW4sXG4gICAgICAgICAgICAuLi5yZXN0LFxuICAgIC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gYWRkaXRpb25hbFRleHQ6IGFjdHVhbEFkZGl0aW9uYWxUZXh0LFxuICAgICAgICAgICAgcHJlc2VydmVTcGFjZSxcbiAgICAgICAgICAgIGRpc2FibGVkLFxuICAgICAgICAgICAgaXNGb2N1c2VkLFxuICAgICAgICAgICAgaXNUb3VjaGVkLFxuICAgICAgICAgICAgaXNDaGFuZ2VkLFxuICAgICAgICAgICAgaGFzVmFsdWU6IHR5cGVvZiB2YWx1ZSAhPT0gdW5kZWZpbmVkLFxuICAgICAgICAgICAgaGFzRXJyb3I6IGFjdHVhbEhhc0Vycm9yLFxuICAgICAgICAgICAgaWNvbixcbiAgICAgICAgICAgIGRhdGFzZXQsXG4gICAgICAgICAgICBwcmVwbHlEc0NvbXBvbmVudCxcbiAgICAgICAgfSxcbiAgICAgICAgaW5wdXRQcm9wczoge1xuICAgICAgICAgICAgaWQ6IGFjdHVhbElkLFxuICAgICAgICAgICAgdmFsdWUsXG4gICAgICAgICAgICBvbkZvY3VzOiBoYW5kbGVGb2N1cyxcbiAgICAgICAgICAgIG9uQmx1cjogaGFuZGxlQmx1cixcbiAgICAgICAgICAgIG9uQ2hhbmdlOiBoYW5kbGVDaGFuZ2UsXG4gICAgICAgICAgICByZXF1aXJlZCxcbiAgICAgICAgICAgIGRpc2FibGVkLFxuICAgICAgICAgICAgaGFzRXJyb3I6IGFjdHVhbEhhc0Vycm9yLFxuICAgICAgICAgICAgZGF0YXNldDogaW5wdXREYXRhc2V0LFxuICAgICAgICAgICAgJ2FyaWEtZGVzY3JpYmVkYnknOiBkZXNjcmliZUlkLFxuICAgICAgICAgICAgbWF4LFxuICAgICAgICAgICAgbWluLFxuICAgICAgICAgICAgLi4ucmVzdCxcbiAgICAgICAgfSxcbiAgICB9O1xufTtcbiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O01BYWEsY0FBYyxHQUFHLENBQzFCLEtBQXNELEVBQ3RELGlCQUF5QjtJQUV6QixNQUFNLEVBQ0YsRUFBRS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R0FBRztZQUNILEdBQUc7WUFDSCxHQUFHLElBQUk7U0FDVjtLQUNKLENBQUM7QUFDTjs7OzsifQ==

@@ -7,3 +7,3 @@ import type { InputPasswordProps } from '../../input';

};
export declare const usePasswordField: (props: PasswordFieldProps) => UsePasswordFieldState;
export declare const usePasswordField: (props: PasswordFieldProps, preplyDsComponent: string) => UsePasswordFieldState;
export {};

@@ -6,3 +6,3 @@ import { makeTinyId } from '@preply/ds-core';

const usePasswordField = (props) => {
const usePasswordField = (props, preplyDsComponent) => {
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;

@@ -46,2 +46,3 @@ const actualId = id || makeTinyId();

dataset,
preplyDsComponent,
},

@@ -66,2 +67,2 @@ inputProps: {

export { usePasswordField };
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlUGFzc3dvcmRGaWVsZC5qcyIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2ZpZWxkL2hvb2tzL3VzZVBhc3N3b3JkRmllbGQudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgbWFrZVRpbnlJZCB9IGZyb20gJ0BwcmVwbHkvZHMtY29yZSc7XG5pbXBvcnQgeyBDaGFuZ2VFdmVudEhhbmRsZXIsIHVzZUNhbGxiYWNrLCB1c2VTdGF0ZSB9IGZyb20gJ3JlYWN0JztcblxuaW1wb3J0IHsgbWFrZURlc2NJZCB9IGZyb20gJy4uLy4uL2FjY2Vzc2liaWxpdHkvYXJpYS91dGlscyc7XG5pbXBvcnQgdHlwZSB7IEZvY3VzRXZlbnRIYW5kbGVyIH0gZnJvbSAnLi4vLi4vZXZlbnRzJztcbmltcG9ydCB0eXBlIHsgSW5wdXRQYXNzd29yZFByb3BzIH0gZnJvbSAnLi4vLi4vaW5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x8ICEhYWRkaXRpb25hbFRleHQgPyBtYWtlRGVzY0lkKGFjdHVhbElkKSA6IHVuZGVmaW5lZDtcblxuICAgIHJldHVybiB7XG4gICAgICAgIGxheW91dFByb3BzOiB7XG4gICAgICAgICAgICBpZDogYWN0dWFsSWQsXG4gICAgICAgICAgICBsYWJlbCxcbiAgICAgICAgICAgIGhpZGVMYWJlbCxcbiAgICAgICAgICAgIHdyYXBMYWJlbCxcbiAgICAgICAgICAgIHJlcXVpcmVkLFxuICAgICAgICAgICAgcmVxdWlyZWRMYWJlbCxcbiAgICAgICAgICAgIGFkZGl0aW9uYWxUZXh0OiBhY3R1YWxBZGRpdGlvbmFsVGV4dCxcbiAgICAgICAgICAgIHByZXNlcnZlU3BhY2UsXG4gICAgICAgICAgICBkaXNhYmxlZCxcbiAgICAgICAgICAgIGlzRm9jdXNlZCxcbiAgICAgICAgICAgIGlzVG91Y2hlZCxcbiAgICAgICAgICAgIGlzQ2hhbmdlZCxcbiAgICAgICAgICAgIGhhc1ZhbHVlOiB0eXBlb2YgdmFsdWUgIT09IHVuZGVmaW5lZCxcbiAgICAgICAgICAgIGhhc0Vycm9yOiBhY3R1YWxIYXNFcnJvcixcbiAgICAgICAgICAgIGRhdGFzZXQsXG4gICAgICAgIH0sXG4gICAgICAgIGlucHV0UHJvcHM6IHtcbiAgICAgICAgICAgIGlkOiBhY3R1YWxJZCxcbiAgICAgICAgICAgIHZhbHVlLFxuICAgICAgICAgICAgb25Gb2N1czogaGFuZGxlRm9jdXMsXG4gICAgICAgICAgICBvbkJsdXI6IGhhbmRsZUJsdXIsXG4gICAgICAgICAgICBvbkNoYW5nZTogaGFuZGxlQ2hhbmdlLFxuICAgICAgICAgICAgcmVxdWlyZWQsXG4gICAgICAgICAgICBkaXNhYmxlZCxcbiAgICAgICAgICAgIGhhc0Vycm9yOiBhY3R1YWxIYXNFcnJvcixcbiAgICAgICAgICAgIGF1dG9Db21wbGV0ZSxcbiAgICAgICAgICAgIGRhdGFzZXQ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biAgICAgICAgICAgIGxhYmVsLFxuICAgICAgICAgICAgaGlkZUxhYmVsLFxuICAgICAgICAgICAgd3JhcExhYmVsLFxuICAgICAgICAgICAgcmVxdWlyZWQsXG4gICAgICAgICAgICByZXF1aXJlZExhYmVsLFxuICAgICAgICAgICAgYWRkaXRpb25hbFRleHQ6IGFjdHVhbEFkZGl0aW9uYWxUZXh0LFxuICAgICAgICAgICAgcHJlc2VydmVTcGFjZSxcbiAgICAgICAgICAgIGRpc2FibGVkLFxuICAgICAgICAgICAgaXNGb2N1c2VkLFxuICAgICAgICAgICAgaXNUb3VjaGVkLFxuICAgICAgICAgICAgaXNDaGFuZ2VkLFxuICAgICAgICAgICAgaGFzVmFsdWU6IHR5cGVvZiB2YWx1ZSAhPT0gdW5kZWZpbmVkLFxuICAgICAgICAgICAgaGFzRXJyb3I6IGFjdHVhbEhhc0Vycm9yLFxuICAgICAgICAgICAgZGF0YXNldCxcbiAgICAgICAgICAgIHByZXBseURzQ29tcG9uZW50LFxuICAgICAgICB9LFxuICAgICAgICBpbnB1dFByb3BzOiB7XG4gICAgICAgICAgICBpZDogYWN0dWFsSWQsXG4gICAgICAgICAgICB2YWx1ZSxcbiAgICAgICAgICAgIG9uRm9jdXM6IGhhbmRsZUZvY3VzLFxuICAgICAgICAgICAgb25CbHVyOiBoYW5kbGVCbHVyLFxuICAgICAgICAgICAgb25DaGFuZ2U6IGhhbmRsZUNoYW5nZSxcbiAgICAgICAgICAgIHJlcXVpcmVkLFxuICAgICAgICAgICAgZGlzYWJsZWQsXG4gICAgICAgICAgICBoYXNFcnJvcjogYWN0dWFsSGFzRXJyb3IsXG4gICAgICAgICAgICBhdXRvQ29tcGxldGUsXG4gICAgICAgICAgICBkYXRhc2V0OiBpbnB1dERhdGFzZXQsXG4gICAgICAgICAgICAnYXJpYS1kZXNjcmliZWRieSc6IGRlc2NyaWJlSWQsXG4gICAgICAgICAgICAuLi5yZXN0LFxuICAgICAgICB9LFxuICAgIH07XG59O1xuIl0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1IsUUFBUTtZQUNSLFFBQVEsRUFBRSxjQUFjO1lBQ3hCLFlBQVk7WUFDWixPQUFPLEVBQUUsWUFBWTtZQUNyQixrQkFBa0IsRUFBRSxVQUFVO1lBQzlCLEdBQUcsSUFBSTtTQUNWO0tBQ0osQ0FBQztBQUNOOzs7OyJ9

@@ -13,3 +13,3 @@ /// <reference types="react" />

children?: string | number | boolean | {} | import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, string | any | (new (props: any) => import("react").Component<any, any, any>)> | null) | (new (props: any) => import("react").Component<any, any, any>)> | import("react").ReactNodeArray | import("react").ReactPortal | import("react").ReactNode[] | null | undefined;
} & Pick<SelectProps, "children" | "required" | "disabled" | "hasError" | "dataset" | "onClick" | "aria-describedby" | "aria-disabled" | "aria-invalid" | "aria-required" | "placeholder" | "name" | "value" | "defaultValue" | "onChange" | "onFocus" | "onBlur" | "onKeyDown" | "onKeyUp" | "onValueChange">) => UseSelectFieldState;
} & Pick<SelectProps, "children" | "required" | "disabled" | "hasError" | "dataset" | "onClick" | "aria-describedby" | "aria-disabled" | "aria-invalid" | "aria-required" | "placeholder" | "name" | "value" | "defaultValue" | "onChange" | "onFocus" | "onBlur" | "onKeyDown" | "onKeyUp" | "onValueChange">, preplyDsComponent: string) => UseSelectFieldState;
export {};

@@ -5,3 +5,3 @@ import { makeTinyId } from '@preply/ds-core';

const useSelectField = (props) => {
const useSelectField = (props, preplyDsComponent) => {
const { id, value, label, hideLabel, wrapLabel, preserveSpace, required, requiredLabel, additionalText, disabled, hasError, errorMessage, icon, onFocus, onBlur, onChange, inputDataset, dataset, placeholder, defaultValue, ...rest } = props;

@@ -54,2 +54,3 @@ const actualId = id || makeTinyId();

dataset,
preplyDsComponent,
},

@@ -75,2 +76,2 @@ inputProps: {

export { useSelectField };
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlU2VsZWN0RmllbGQuanMiLCJzb3VyY2VzIjpbIi4uLy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FxuICAgICAgICAgICAgcmVxdWlyZWQsXG4gICAgICAgICAgICByZXF1aXJlZExhYmVsLFxuICAgICAgICAgICAgYWRkaXRpb25hbFRleHQ6IGFjdHVhbEFkZGl0aW9uYWxUZXh0LFxuICAgICAgICAgICAgcHJlc2VydmVTcGFjZSxcbiAgICAgICAgICAgIGRpc2FibGVkLFxuICAgICAgICAgICAgaXNGb2N1c2VkLFxuICAgICAgICAgICAgaXNUb3VjaGVkLFxuICAgICAgICAgICAgaXNDaGFuZ2VkLFxuICAgICAgICAgICAgaGFzVmFsdWUsXG4gICAgICAgICAgICBoYXNFcnJvcjogYWN0dWFsSGFzRXJyb3IsXG4gICAgICAgICAgICBpY29uLFxuICAgICAgICAgICAgZGF0YXNldCxcbiAgICAgICAgfSxcbiAgICAgICAgaW5wdXRQcm9wczoge1xuICAgICAgICAgICAgaWQ6IGFjdHVhbElkLFxuICAgICAgICAgICAgdmFsdWUsXG4gICAgICAgICAgICBvbkZvY3VzOiBoYW5kbGVGb2N1cyxcbiAgICAgICAgICAgIG9uQmx1cjogaGFuZGxlQmx1cixcbiAgICAgICAgICAgIG9uQ2hhbmdlOiBoYW5kbGVDaGFuZ2UsXG4gICAgICAgICAgICByZXF1aXJlZCxcbiAgICAgICAgICAgIGRpc2FibGVkLFxuICAgICAgICAgICAgaGFzRXJyb3I6IGFjdHVhbEhhc0Vycm9yLFxuICAgICAgICAgICAgZGF0YXNldDogaW5wdXREYXRhc2V0LFxuICAgICAgICAgICAgJ2FyaWEtZGVzY3JpYmVkYnknOiBkZXNjcmliZUlkLFxuICAgICAgICAgICAgcGxhY2Vob2xkZXIsXG4gICAgICAgICAgICBkZWZhdWx0VmFsdWUsXG4gICAgICAgICAgICAuLi5yZXN0LFxuICAgICAgICB9LFxuICAgIH07XG59O1xuIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7TUFhYSxjQUFjLEdBQUcsQ0FDMUIsS0FBaUQ7SUFFakQsTUFBTSxFQUNGLEVBQ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FBRyxJQUFJO1NBQ1Y7S0FDSixDQUFDO0FBQ047Ozs7In0=

@@ -9,3 +9,3 @@ import type { TextareaProps } from '../../input';

id?: string | undefined;
} & Pick<TextareaProps, "required" | "disabled" | "hasError" | "dataset" | "onClick" | "aria-describedby" | "aria-disabled" | "aria-invalid" | "aria-required" | "rows" | "resize" | "autoComplete" | "placeholder" | "maxLength" | "name" | "value" | "defaultValue" | "onChange" | "onFocus" | "onBlur" | "onKeyDown" | "onKeyUp" | "onValueChange">) => UseTextareaFieldState;
} & Pick<TextareaProps, "required" | "disabled" | "hasError" | "dataset" | "onClick" | "aria-describedby" | "aria-disabled" | "aria-invalid" | "aria-required" | "rows" | "resize" | "autoComplete" | "placeholder" | "maxLength" | "name" | "value" | "defaultValue" | "onChange" | "onFocus" | "onBlur" | "onKeyDown" | "onKeyUp" | "onValueChange">, preplyDsComponent: string) => UseTextareaFieldState;
export {};

@@ -6,3 +6,3 @@ import { makeTinyId } from '@preply/ds-core';

const useTextareaField = (props) => {
const useTextareaField = (props, preplyDsComponent) => {
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;

@@ -46,2 +46,3 @@ const actualId = id || makeTinyId();

dataset,
preplyDsComponent,
},

@@ -66,2 +67,2 @@ inputProps: {

export { useTextareaField };
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlVGV4dGFyZWFGaWVsZC5qcyIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2ZpZWxkL2hvb2tzL3VzZVRleHRhcmVhRmllbGQudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgbWFrZVRpbnlJZCB9IGZyb20gJ0BwcmVwbHkvZHMtY29yZSc7XG5pbXBvcnQgeyBDaGFuZ2VFdmVudEhhbmRsZXIs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cnJvciB8fCAhIWVycm9yTWVzc2FnZTtcbiAgICBjb25zdCBhY3R1YWxBZGRpdGlvbmFsVGV4dCA9IGVycm9yTWVzc2FnZSB8fCBhZGRpdGlvbmFsVGV4dDtcbiAgICBjb25zdCBkZXNjcmliZUlkID0gYWN0dWFsSGFzRXJyb3IgfHwgISFhZGRpdGlvbmFsVGV4dCA/IG1ha2VEZXNjSWQoYWN0dWFsSWQpIDogdW5kZWZpbmVkO1xuXG4gICAgcmV0dXJuIHtcbiAgICAgICAgbGF5b3V0UHJvcHM6IHtcbiAgICAgICAgICAgIGlkOiBhY3R1YWxJZCxcbiAgICAgICAgICAgIGxhYmVsLFxuICAgICAgICAgICAgaGlkZUxhYmVsLFxuICAgICAgICAgICAgd3JhcExhYmVsLFxuICAgICAgICAgICAgcmVxdWlyZWQsXG4gICAgICAgICAgICByZXF1aXJlZExhYmVsLFxuICAgICAgICAgICAgYWRkaXRpb25hbFRleHQ6IGFjdHVhbEFkZGl0aW9uYWxUZXh0LFxuICAgICAgICAgICAgcHJlc2VydmVTcGFjZSxcbiAgICAgICAgICAgIGRpc2FibGVkLFxuICAgICAgICAgICAgaXNGb2N1c2VkLFxuICAgICAgICAgICAgaXNUb3VjaGVkLFxuICAgICAgICAgICAgaXNDaGFuZ2VkLFxuICAgICAgICAgICAgaGFzVmFsdWU6IHR5cGVvZiB2YWx1ZSAhPT0gdW5kZWZpbmVkLFxuICAgICAgICAgICAgaGFzRXJyb3I6IGFjdHVhbEhhc0Vycm9yLFxuICAgICAgICAgICAgZGF0YXNldCxcbiAgICAgICAgICAgIHByZXBseURzQ29tcG9uZW50LFxuICAgICAgICB9LFxuICAgICAgICBpbnB1dFByb3BzOiB7XG4gICAgICAgICAgICBpZDogYWN0dWFsSWQsXG4gICAgICAgICAgICB2YWx1ZSxcbiAgICAgICAgICAgIG9uRm9jdXM6IGhhbmRsZUZvY3VzLFxuICAgICAgICAgICAgb25CbHVyOiBoYW5kbGVCbHVyLFxuICAgICAgICAgIC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2IsUUFBUTtZQUNSLFNBQVM7WUFDVCxTQUFTO1lBQ1QsU0FBUztZQUNULFFBQVEsRUFBRSxPQUFPLEtBQUssS0FBSyxTQUFTO1lBQ3BDLFFBQVEsRUFBRSxjQUFjO1lBQ3hCLE9BQU87WUFDUCxpQkFBaUI7U0FDcEI7UUFDRCxVQUFVLEVBQUU7WUFDUixFQUFFLEVBQUUsUUFBUTtZQUNaLEtBQUs7WUFDTCxPQUFPLEVBQUUsV0FBVztZQUNwQixNQUFNLEVBQUUsVUFBVTtZQUNsQixRQUFRLEVBQUUsWUFBWTtZQUN0QixRQUFRO1lBQ1IsUUFBUTtZQUNSLFFBQVEsRUFBRSxjQUFjO1lBQ3hCLFlBQVk7WUFDWixPQUFPLEVBQUUsWUFBWTtZQUNyQixrQkFBa0IsRUFBRSxVQUFVO1lBQzlCLEdBQUcsSUFBSTtTQUNWO0tBQ0osQ0FBQztBQUNOOzs7OyJ9

@@ -11,3 +11,3 @@ import type { InputTextProps } from '../../input';

type?: "email" | "tel" | "url" | "text" | "search" | undefined;
} & Pick<InputTextProps, "required" | "disabled" | "hasError" | "dataset" | "onClick" | "type" | "aria-describedby" | "aria-disabled" | "aria-invalid" | "aria-required" | "autoComplete" | "placeholder" | "maxLength" | "name" | "value" | "defaultValue" | "onChange" | "onFocus" | "onBlur" | "onKeyDown" | "onKeyUp" | "onValueChange">) => UseTextFieldState;
} & Pick<InputTextProps, "required" | "disabled" | "hasError" | "dataset" | "onClick" | "type" | "aria-describedby" | "aria-disabled" | "aria-invalid" | "aria-required" | "autoComplete" | "placeholder" | "maxLength" | "name" | "value" | "defaultValue" | "onChange" | "onFocus" | "onBlur" | "onKeyDown" | "onKeyUp" | "onValueChange">, preplyDsComponent: string) => UseTextFieldState;
export {};

@@ -7,3 +7,3 @@ import { makeTinyId } from '@preply/ds-core';

const useTextField = (props) => {
const useTextField = (props, preplyDsComponent) => {
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;

@@ -50,2 +50,3 @@ const actualId = id || makeTinyId();

dataset,
preplyDsComponent,
},

@@ -71,2 +72,2 @@ inputProps: {

export { useTextField };
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlVGV4dEZpZWxkLmpzIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvZmllbGQvaG9va3MvdXNlVGV4dEZpZWxkLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IG1ha2VUaW55SWQgfSBmcm9tICdAcHJlcGx5L2RzLWNvcmUnO1xuaW1wb3J0IHsgQ2hhbmdlRXZlbnRIYW5kbGVyLCB1c2VDYWxsYmFjaywgdXNlU3RhdGUgfSBmcm9tICdyZWFjdCc7XG5cbmltcG9ydCB7IG1ha2VEZXNjSWQgfSBmcm9tICcuLi8uLi9hY2Nlc3NpYmlsaXR5L2FyaWEvdXRpbHMnO1xuaW1wb3J0IHR5cGUgeyBGb2N1c0V2ZW50SGFuZGxlciB9IGZyb20gJy4uLy4uL2V2ZW50cyc7XG5pbXBvcnQgdHlwZSB7IElucHV0VGV4dFByb3BzIH0gZnJvbSAnLi4vLi4vaW5wdXQnO1xuaW1wb3J0IHsgQVVUT19DT01QTEVURV9URVhUX0RFRkFVTFQgfSBmcm9tICcuLi8uLi9pbnB1dCc7XG5pbXBvcnQgeyBGSUVMRF9UWVBFX0RFRkFVTFQgfSBmcm9tICcuLi9jb25zdGFudHMnO1xuaW1wb3J0IHR5cGUgeyBGaWVsZExheW91dFByb3BzLCBUZXh0RmllbGRQcm9wcyB9IGZyb20gJy4uL3R5cGVzJztcblxudHlwZSBVc2VUZXh0RmllbGRTdGF0ZSA9IHtcbiAgICBsYXlvdXRQcm9wczogT21pdDxGaWVsZExheW91dFByb3BzLCAnaW5wdXQnIHwgJ2Ns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YWN0dWFsSWQsXG4gICAgICAgICAgICBsYWJlbCxcbiAgICAgICAgICAgIGhpZGVMYWJlbCxcbiAgICAgICAgICAgIHdyYXBMYWJlbCxcbiAgICAgICAgICAgIHJlcXVpcmVkLFxuICAgICAgICAgICAgcmVxdWlyZWRMYWJlbCxcbiAgICAgICAgICAgIGFkZGl0aW9uYWxUZXh0OiBhY3R1YWxBZGRpdGlvbmFsVGV4dCxcbiAgICAgICAgICAgIHByZXNlcnZlU3BhY2UsXG4gICAgICAgICAgICBkaXNhYmxlZCxcbiAgICAgICAgICAgIGlzRm9jdXNlZCxcbiAgICAgICAgICAgIGlzVG91Y2hlZCxcbiAgICAgICAgICAgIGlzQ2hhbmdlZCxcbiAgICAgICAgICAgIGhhc1ZhbHVlOiB0eXBlb2YgdmFsdWUgIT09IHVuZGVmaW5lZCxcbiAgICAgICAgICAgIGhhc0Vycm9yOiBhY3R1YWxIYXNFcnJvcixcbiAgICAgICAgICAgIGljb24sXG4gICAgICAgICAgICBidXR0b24sXG4gICAgICAgICAgICBkYXRhc2V0LFxuICAgICAgICB9LFxuICAgICAgICBpbnB1dFByb3BzOiB7XG4gICAgICAgICAgICB0eXBlOiBhY3R1YWxUeXBlLFxuICAgICAgICAgICAgaWQ6IGFjdHVhbElkLFxuICAgICAgICAgICAgdmFsdWUsXG4gICAgICAgICAgICBvbkZvY3VzOiBoYW5kbGVGb2N1cyxcbiAgICAgICAgICAgIG9uQmx1cjogaGFuZGxlQmx1cixcbiAgICAgICAgICAgIG9uQ2hhbmdlOiBoYW5kbGVDaGFuZ2UsXG4gICAgICAgICAgICByZXF1aXJlZCxcbiAgICAgICAgICAgIGRpc2FibGVkLFxuICAgICAgICAgICAgaGFzRXJyb3I6IGFjdHVhbEhhc0Vycm9yLFxuICAgICAgICAgICAgYXV0b0NvbXBsZXRlLFxuICAgICAgICAgICAgZGF0YXNldDogaW5wdXREYXRhc2V0LFxuICAgICAgICAgICAgJ2FyaWEtZGVzY3JpYmVkYnknOiB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RpdGlvbmFsVGV4dCA9IGVycm9yTWVzc2FnZSB8fCBhZGRpdGlvbmFsVGV4dDtcbiAgICBjb25zdCBkZXNjcmliZUlkID0gYWN0dWFsSGFzRXJyb3IgfHwgISFhZGRpdGlvbmFsVGV4dCA/IG1ha2VEZXNjSWQoYWN0dWFsSWQpIDogdW5kZWZpbmVkO1xuXG4gICAgcmV0dXJuIHtcbiAgICAgICAgbGF5b3V0UHJvcHM6IHtcbiAgICAgICAgICAgIGlkOiBhY3R1YWxJZCxcbiAgICAgICAgICAgIGxhYmVsLFxuICAgICAgICAgICAgaGlkZUxhYmVsLFxuICAgICAgICAgICAgd3JhcExhYmVsLFxuICAgICAgICAgICAgcmVxdWlyZWQsXG4gICAgICAgICAgICByZXF1aXJlZExhYmVsLFxuICAgICAgICAgICAgYWRkaXRpb25hbFRleHQ6IGFjdHVhbEFkZGl0aW9uYWxUZXh0LFxuICAgICAgICAgICAgcHJlc2VydmVTcGFjZSxcbiAgICAgICAgICAgIGRpc2FibGVkLFxuICAgICAgICAgICAgaXNGb2N1c2VkLFxuICAgICAgICAgICAgaXNUb3VjaGVkLFxuICAgICAgICAgICAgaXNDaGFuZ2VkLFxuICAgICAgICAgICAgaGFzVmFsdWU6IHR5cGVvZiB2YWx1ZSAhPT0gdW5kZWZpbmVkLFxuICAgICAgICAgICAgaGFzRXJyb3I6IGFjdHVhbEhhc0Vycm9yLFxuICAgICAgICAgICAgaWNvbixcbiAgICAgICAgICAgIGJ1dHRvbixcbiAgICAgICAgICAgIGRhdGFzZXQsXG4gICAgICAgICAgICBwcmVwbHlEc0NvbXBvbmVudCxcbiAgICAgICAgfSxcbiAgICAgICAgaW5wdXRQcm9wczoge1xuICAgICAgICAgICAgdHlwZTogYWN0dWFsVHlwZSxcbiAgICAgICAgICAgIGlkOiBhY3R1YWxJZCxcbiAgICAgICAgICAgIHZhbHVlLFxuICAgICAgICAgICAgb25Gb2N1czogaGFuZGxlRm9jdXMsXG4gICAgICAgICAgICBvbkJs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O1FBQ0gsV0FBVyxFQUFFO1lBQ1QsRUFBRSxFQUFFLFFBQVE7WUFDWixLQUFLO1lBQ0wsU0FBUztZQUNULFNBQVM7WUFDVCxRQUFRO1lBQ1IsYUFBYTtZQUNiLGNBQWMsRUFBRSxvQkFBb0I7WUFDcEMsYUFBYTtZQUNiLFFBQVE7WUFDUixTQUFTO1lBQ1QsU0FBUztZQUNULFNBQVM7WUFDVCxRQUFRLEVBQUUsT0FBTyxLQUFLLEtBQUssU0FBUztZQUNwQyxRQUFRLEVBQUUsY0FBYztZQUN4QixJQUFJO1lBQ0osTUFBTTtZQUNOLE9BQU87WUFDUCxpQkFBaUI7U0FDcEI7UUFDRCxVQUFVLEVBQUU7WUFDUixJQUFJLEVBQUUsVUFBVTtZQUNoQixFQUFFLEVBQUUsUUFBUTtZQUNaLEtBQUs7WUFDTCxPQUFPLEVBQUUsV0FBVztZQUNwQixNQUFNLEVBQUUsVUFBVTtZQUNsQixRQUFRLEVBQUUsWUFBWTtZQUN0QixRQUFRO1lBQ1IsUUFBUTtZQUNSLFFBQVEsRUFBRSxjQUFjO1lBQ3hCLFlBQVk7WUFDWixPQUFPLEVBQUUsWUFBWTtZQUNyQixrQkFBa0IsRUFBRSxVQUFVO1lBQzlCLEdBQUcsSUFBSTtTQUNWO0tBQ0osQ0FBQztBQUNOOzs7OyJ9

@@ -44,2 +44,6 @@ import type { Dataset } from '@preply/ds-core';

children: ReactNode;
/**
* @see getDatasetProps
*/
preplyDsComponent?: string;
}

@@ -46,0 +50,0 @@ export interface InputImperativeHandle {

@@ -9,2 +9,7 @@ import { ARIAAttributeNames } from '../accessibility/aria/types';

className?: string;
/**
* @deprecated preplyDsComponent is meant for internal Design SYstem use only!!
* @see getDatasetProps
*/
preplyDsComponent?: string;
};

@@ -11,0 +16,0 @@ export declare type InputTextProps = Omit<InputTypeTextProps, 'type'> & {

{
"name": "@preply/ds-web-core",
"version": "0.80.0",
"version": "0.80.1",
"publishConfig": {

@@ -22,12 +22,12 @@ "access": "public"

"dependencies": {
"@preply/ds-core": "0.80.0",
"@preply/ds-core-types": "0.80.0"
"@preply/ds-core": "0.80.1",
"@preply/ds-core-types": "0.80.1"
},
"peerDependencies": {
"@preply/ds-core": "0.80.0",
"@preply/ds-core-types": "0.80.0",
"@preply/ds-core": "0.80.1",
"@preply/ds-core-types": "0.80.1",
"react": "^16.8.3",
"react-dom": "^16.8.3"
},
"gitHead": "59b91fcbeb02ef23ef548a1a8aef61ddd03462eb"
"gitHead": "17fc9424402700524e76d398f143e8f9777e42f5"
}

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc