@preply/ds-web-core 0.45.0 → 0.47.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.
Files changed (43) hide show
  1. package/dist/aria/index.d.ts +1 -0
  2. package/dist/aria/index.js +2 -0
  3. package/dist/aria/utils.d.ts +4 -0
  4. package/dist/aria/utils.js +22 -0
  5. package/dist/color/module-color/hooks/useColorClassNames.d.ts +1 -1
  6. package/dist/color/module-color/style/index.module.less.js +2 -2
  7. package/dist/events/hooks/useFocusEvents.d.ts +7 -0
  8. package/dist/events/hooks/useFocusEvents.js +27 -0
  9. package/dist/events/index.d.ts +2 -0
  10. package/dist/events/index.js +2 -0
  11. package/dist/events/types.d.ts +7 -0
  12. package/dist/events/types.js +2 -0
  13. package/dist/field/constants.d.ts +1 -0
  14. package/dist/field/constants.js +4 -0
  15. package/dist/field/hooks/useTextField.d.ts +8 -0
  16. package/dist/field/hooks/useTextField.js +66 -0
  17. package/dist/field/index.d.ts +3 -0
  18. package/dist/field/index.js +3 -0
  19. package/dist/field/types.d.ts +55 -0
  20. package/dist/field/types.js +2 -0
  21. package/dist/focus/style/mixins.less +8 -0
  22. package/dist/focus/style/mixins.less.js +8 -0
  23. package/dist/generated/breakpoints.less +1 -1
  24. package/dist/generated/options.less +8 -7
  25. package/dist/generated/tokens.less +3 -1
  26. package/dist/index.d.ts +4 -0
  27. package/dist/index.js +8 -1
  28. package/dist/input/constants.d.ts +4 -0
  29. package/dist/input/constants.js +7 -0
  30. package/dist/input/index.d.ts +4 -0
  31. package/dist/input/index.js +4 -0
  32. package/dist/input/options.d.ts +7 -0
  33. package/dist/input/options.js +40 -0
  34. package/dist/input/types.d.ts +106 -0
  35. package/dist/input/types.js +2 -0
  36. package/dist/input/util.d.ts +2 -0
  37. package/dist/input/util.js +11 -0
  38. package/dist/layout/style/index.module.less +3 -0
  39. package/dist/layout/style/index.module.less.js +1 -1
  40. package/dist/layout/style/tag.mixins.less +8 -0
  41. package/dist/layout/style/tag.mixins.less.js +8 -0
  42. package/dist/typography/style/mixins.less +10 -6
  43. package/package.json +6 -6
@@ -0,0 +1 @@
1
+ export { getAriaProps } from './utils';
@@ -0,0 +1,2 @@
1
+ export { getAriaProps } from './utils.js';
2
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VzIjpbXSwic291cmNlc0NvbnRlbnQiOltdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import type { InputCommonProps } from '../input';
3
+ export declare const makeDescId: (id: string) => string;
4
+ export declare const getAriaProps: ({ "aria-describedby": ariaDescribedBy, "aria-disabled": ariaDisabled, "aria-invalid": ariaInvalid, "aria-required": ariaRequired, required, disabled, hasError, }: InputCommonProps) => Pick<import("react").HTMLAttributes<HTMLInputElement>, "aria-describedby" | "aria-disabled" | "aria-invalid" | "aria-required">;
@@ -0,0 +1,22 @@
1
+ const SUFIX = '-desc';
2
+ const removeFalsyProperties = (props) => {
3
+ return Object.keys(props).reduce((acc, key) => {
4
+ if (props[key]) {
5
+ acc[key] = props[key];
6
+ }
7
+ return acc;
8
+ }, {});
9
+ };
10
+ const makeDescId = (id) => `${id}${SUFIX}`;
11
+ const getAriaProps = ({ 'aria-describedby': ariaDescribedBy, 'aria-disabled': ariaDisabled, 'aria-invalid': ariaInvalid, 'aria-required': ariaRequired, required, disabled, hasError, }) => {
12
+ const props = {
13
+ 'aria-describedby': ariaDescribedBy || '',
14
+ 'aria-disabled': !!ariaDisabled || !!disabled,
15
+ 'aria-invalid': !!ariaInvalid || !!hasError,
16
+ 'aria-required': !!ariaRequired || !!required,
17
+ };
18
+ return removeFalsyProperties(props);
19
+ };
20
+
21
+ export { getAriaProps, makeDescId };
22
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanM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RSxlQUFlLElBQUksRUFBRTtRQUN6QyxlQUFlLEVBQUUsQ0FBQyxDQUFDLFlBQVksSUFBSSxDQUFDLENBQUMsUUFBUTtRQUM3QyxjQUFjLEVBQUUsQ0FBQyxDQUFDLFdBQVcsSUFBSSxDQUFDLENBQUMsUUFBUTtRQUMzQyxlQUFlLEVBQUUsQ0FBQyxDQUFDLFlBQVksSUFBSSxDQUFDLENBQUMsUUFBUTtLQUNoRCxDQUFDO0lBRUYsT0FBTyxxQkFBcUIsQ0FBQyxLQUFLLENBQUMsQ0FBQztBQUN4Qzs7OzsifQ==
@@ -1 +1 @@
1
- export declare const useColorClassNames: (color?: "gray-100" | "gray-200" | "gray-300" | "gray-400" | "gray-500" | "gray-600" | "teal-100" | "teal-200" | "teal-300" | "teal-400" | "teal-500" | "green-100" | "green-200" | "green-300" | "green-400" | "green-500" | "yellow-100" | "yellow-200" | "yellow-300" | "yellow-400" | "yellow-500" | "red-100" | "red-200" | "red-300" | "red-400" | "red-500" | "blue-100" | "blue-200" | "blue-300" | "blue-400" | "blue-500" | "magenta-100" | "magenta-200" | "magenta-300" | "magenta-400" | "magenta-500" | undefined) => string[];
1
+ export declare const useColorClassNames: (color?: "white" | "gray-100" | "gray-200" | "gray-300" | "gray-400" | "gray-500" | "gray-600" | "teal-100" | "teal-200" | "teal-300" | "teal-400" | "teal-500" | "green-100" | "green-200" | "green-300" | "green-400" | "green-500" | "yellow-100" | "yellow-200" | "yellow-300" | "yellow-400" | "yellow-500" | "red-100" | "red-200" | "red-300" | "red-400" | "red-500" | "blue-100" | "blue-200" | "blue-300" | "blue-400" | "blue-500" | "magenta-100" | "magenta-200" | "magenta-300" | "magenta-400" | "magenta-500" | undefined) => string[];
@@ -1,7 +1,7 @@
1
1
  import styleInject from '../../../external/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._1vfDCY{color:var(--55407f)}._1o2DZF{color:var(--8f1238)}.q9fWe6{color:var(--da403c)}._1kfchs{color:var(--7c8c3c)}._3uaBxy{color:var(--c9575b)}.eDvRT_{color:var(--2fb6f7)}._3Ifh5r{color:var(--54ed1d)}._3LVNko{color:var(--b706bf)}._2VdjaD{color:var(--4adefb)}.yh0c33{color:var(--de8a40)}.Aq4AtN{color:var(--574543)}._3RuNeA{color:var(--1383a7)}._2bQCMl{color:var(--9f1066)}._3FBrRQ{color:var(--d4cf94)}._3NFMly{color:var(--bbfa9f)}._2YTgye{color:var(--5f8b30)}._31OOeZ{color:var(--c7d8be)}._3Pou89{color:var(--17bab8)}._2nKF5_{color:var(--f017e5)}.-HvjkO{color:var(--2242ed)}._3Kg-jM{color:var(--e40de4)}._1AH5nF{color:var(--ecb5d5)}._1swZ2a{color:var(--5b5cb0)}.OKvn8i{color:var(--d55c71)}.zHIi6Q{color:var(--4e47fe)}._2eZwFa{color:var(--3e7877)}.uEusgR{color:var(--21906f)}._2CdJlo{color:var(--5d87f3)}._2EQ-Hn{color:var(--201e14)}._1p2EKt{color:var(--e1c27c)}._2zLkru{color:var(--6a1420)}._1UFSvM{color:var(--1a9963)}._1IatQi{color:var(--b774df)}._1U0k7H{color:var(--f72cdd)}.wW0RJ9{color:var(--6cbd80)}._1HVxJ3{color:var(--5893e7)}";
4
- var styles = {__id:"/home/jenkins/workspace/design-system_main/packages/web-core/src/color/module-color/style/index.module.less",__css:css_248z,"Color--color-gray-100":"_1vfDCY","Color--color-gray-200":"_1o2DZF","Color--color-gray-300":"q9fWe6","Color--color-gray-400":"_1kfchs","Color--color-gray-500":"_3uaBxy","Color--color-gray-600":"eDvRT_","Color--color-teal-100":"_3Ifh5r","Color--color-teal-200":"_3LVNko","Color--color-teal-300":"_2VdjaD","Color--color-teal-400":"yh0c33","Color--color-teal-500":"Aq4AtN","Color--color-green-100":"_3RuNeA","Color--color-green-200":"_2bQCMl","Color--color-green-300":"_3FBrRQ","Color--color-green-400":"_3NFMly","Color--color-green-500":"_2YTgye","Color--color-yellow-100":"_31OOeZ","Color--color-yellow-200":"_3Pou89","Color--color-yellow-300":"_2nKF5_","Color--color-yellow-400":"-HvjkO","Color--color-yellow-500":"_3Kg-jM","Color--color-red-100":"_1AH5nF","Color--color-red-200":"_1swZ2a","Color--color-red-300":"OKvn8i","Color--color-red-400":"zHIi6Q","Color--color-red-500":"_2eZwFa","Color--color-blue-100":"uEusgR","Color--color-blue-200":"_2CdJlo","Color--color-blue-300":"_2EQ-Hn","Color--color-blue-400":"_1p2EKt","Color--color-blue-500":"_2zLkru","Color--color-magenta-100":"_1UFSvM","Color--color-magenta-200":"_1IatQi","Color--color-magenta-300":"_1U0k7H","Color--color-magenta-400":"wW0RJ9","Color--color-magenta-500":"_1HVxJ3"};
3
+ var css_248z = "._1oG1KT{color:var(--145676)}._1vfDCY{color:var(--55407f)}._1o2DZF{color:var(--8f1238)}.q9fWe6{color:var(--da403c)}._1kfchs{color:var(--7c8c3c)}._3uaBxy{color:var(--c9575b)}.eDvRT_{color:var(--2fb6f7)}._3Ifh5r{color:var(--54ed1d)}._3LVNko{color:var(--b706bf)}._2VdjaD{color:var(--4adefb)}.yh0c33{color:var(--de8a40)}.Aq4AtN{color:var(--574543)}._3RuNeA{color:var(--1383a7)}._2bQCMl{color:var(--9f1066)}._3FBrRQ{color:var(--d4cf94)}._3NFMly{color:var(--bbfa9f)}._2YTgye{color:var(--5f8b30)}._31OOeZ{color:var(--c7d8be)}._3Pou89{color:var(--17bab8)}._2nKF5_{color:var(--f017e5)}.-HvjkO{color:var(--2242ed)}._3Kg-jM{color:var(--e40de4)}._1AH5nF{color:var(--ecb5d5)}._1swZ2a{color:var(--5b5cb0)}.OKvn8i{color:var(--d55c71)}.zHIi6Q{color:var(--4e47fe)}._2eZwFa{color:var(--3e7877)}.uEusgR{color:var(--21906f)}._2CdJlo{color:var(--5d87f3)}._2EQ-Hn{color:var(--201e14)}._1p2EKt{color:var(--e1c27c)}._2zLkru{color:var(--6a1420)}._1UFSvM{color:var(--1a9963)}._1IatQi{color:var(--b774df)}._1U0k7H{color:var(--f72cdd)}.wW0RJ9{color:var(--6cbd80)}._1HVxJ3{color:var(--5893e7)}";
4
+ var styles = {__id:"/home/jenkins/workspace/design-system_main/packages/web-core/src/color/module-color/style/index.module.less",__css:css_248z,"Color--color-white":"_1oG1KT","Color--color-gray-100":"_1vfDCY","Color--color-gray-200":"_1o2DZF","Color--color-gray-300":"q9fWe6","Color--color-gray-400":"_1kfchs","Color--color-gray-500":"_3uaBxy","Color--color-gray-600":"eDvRT_","Color--color-teal-100":"_3Ifh5r","Color--color-teal-200":"_3LVNko","Color--color-teal-300":"_2VdjaD","Color--color-teal-400":"yh0c33","Color--color-teal-500":"Aq4AtN","Color--color-green-100":"_3RuNeA","Color--color-green-200":"_2bQCMl","Color--color-green-300":"_3FBrRQ","Color--color-green-400":"_3NFMly","Color--color-green-500":"_2YTgye","Color--color-yellow-100":"_31OOeZ","Color--color-yellow-200":"_3Pou89","Color--color-yellow-300":"_2nKF5_","Color--color-yellow-400":"-HvjkO","Color--color-yellow-500":"_3Kg-jM","Color--color-red-100":"_1AH5nF","Color--color-red-200":"_1swZ2a","Color--color-red-300":"OKvn8i","Color--color-red-400":"zHIi6Q","Color--color-red-500":"_2eZwFa","Color--color-blue-100":"uEusgR","Color--color-blue-200":"_2CdJlo","Color--color-blue-300":"_2EQ-Hn","Color--color-blue-400":"_1p2EKt","Color--color-blue-500":"_2zLkru","Color--color-magenta-100":"_1UFSvM","Color--color-magenta-200":"_1IatQi","Color--color-magenta-300":"_1U0k7H","Color--color-magenta-400":"wW0RJ9","Color--color-magenta-500":"_1HVxJ3"};
5
5
  var stylesheet=css_248z;
6
6
  styleInject(css_248z);
7
7
 
@@ -0,0 +1,7 @@
1
+ import { FocusEventHandlers } from '..';
2
+ declare type FocusOptions = FocusEventHandlers & {
3
+ disabled?: boolean;
4
+ captureChildEvents: boolean;
5
+ };
6
+ export declare const useFocusEvents: ({ disabled, captureChildEvents, onFocus, onBlur, }: FocusOptions) => FocusEventHandlers;
7
+ export {};
@@ -0,0 +1,27 @@
1
+ import { useMemo } from 'react';
2
+
3
+ const makeEventHandler = (onFocus, captureChildEvents) => {
4
+ if (!onFocus) {
5
+ return undefined;
6
+ }
7
+ return (event) => {
8
+ if (!captureChildEvents && event.target !== event.currentTarget) {
9
+ return;
10
+ }
11
+ onFocus(event);
12
+ };
13
+ };
14
+ const useFocusEvents = ({ disabled, captureChildEvents, onFocus, onBlur, }) => {
15
+ return useMemo(() => {
16
+ if (disabled) {
17
+ return {};
18
+ }
19
+ return {
20
+ onFocus: makeEventHandler(onFocus, captureChildEvents),
21
+ onBlur: makeEventHandler(onBlur, captureChildEvents),
22
+ };
23
+ }, [disabled, captureChildEvents, onFocus, onBlur]);
24
+ };
25
+
26
+ export { useFocusEvents };
27
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlRm9jdXNFdmVudHMuanMiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9ldmVudHMvaG9va3MvdXNlRm9jdXNFdmVudHMudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRm9jdXNFdmVudCwgRm9jdXNFdmVudEhhbmRsZXIsIHVzZU1lbW8gfSBmcm9tICdyZWFjdCc7XG5cbmltcG9ydCB7IEZvY3VzRXZlbnRIYW5kbGVycyB9IGZyb20gJy4uJztcblxudHlwZSBGb2N1c09wdGlvbnMgPSBGb2N1c0V2ZW50SGFuZGxlcnMgJiB7XG4gICAgZGlzYWJsZWQ/OiBib29sZWFuO1xuICAgIGNhcHR1cmVDaGlsZEV2ZW50czogYm9vbGVhbjtcbn07XG5cbmNvbnN0IG1ha2VFdmVudEhhbmRsZXIgPSAoXG4gICAgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXIgfCB1bmRlZmluZWQsXG4gICAgY2FwdHVyZUNoaWxkRXZlbnRzOiBib29sZWFuLFxuKTogRm9jdXNFdmVudEhhbmRsZXIgfCB1bmRlZmluZWQgPT4ge1xuICAgIGlmICghb25Gb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QUFDLEtBQWlCO1FBQ3JCLElBQUksQ0FBQyxrQkFBa0IsSUFBSSxLQUFLLENBQUMsTUFBTSxLQUFLLEtBQUssQ0FBQyxhQUFhLEVBQUU7WUFDN0QsT0FBTztTQUNWO1FBQ0QsT0FBTyxDQUFDLEtBQUssQ0FBQyxDQUFDO0tBQ2xCLENBQUM7QUFDTixDQUFDLENBQUM7TUFFVyxjQUFjLEdBQUcsQ0FBQyxFQUMzQixRQUFRLEVBQ1Isa0JBQWtCLEVBQ2xCLE9BQU8sRUFDUCxNQUFNLEdBQ0s7SUFDWCxPQUFPLE9BQU8sQ0FBQztRQUNYLElBQUksUUFBUSxFQUFFO1lBQ1YsT0FBTyxFQUFFLENBQUM7U0FDYjtRQUNELE9BQU87WUFDSCxPQUFPLEVBQUUsZ0JBQWdCLENBQUMsT0FBTyxFQUFFLGtCQUFrQixDQUFDO1lBQ3RELE1BQU0sRUFBRSxnQkFBZ0IsQ0FBQyxNQUFNLEVBQUUsa0JBQWtCLENBQUM7U0FDdkQsQ0FBQztLQUNMLEVBQUUsQ0FBQyxRQUFRLEVBQUUsa0JBQWtCLEVBQUUsT0FBTyxFQUFFLE1BQU0sQ0FBQyxDQUFDLENBQUM7QUFDeEQ7Ozs7In0=
@@ -0,0 +1,2 @@
1
+ export * from './hooks/useFocusEvents';
2
+ export * from './types';
@@ -0,0 +1,2 @@
1
+ export { useFocusEvents } from './hooks/useFocusEvents.js';
2
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VzIjpbXSwic291cmNlc0NvbnRlbnQiOltdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
@@ -0,0 +1,7 @@
1
+ import { FocusEvent } from 'react';
2
+ export declare type FocusEventHandler = (event: FocusEvent) => void;
3
+ export declare type ValueChangeEventHandler<T> = (value: T) => void;
4
+ export interface FocusEventHandlers {
5
+ onFocus?: FocusEventHandler;
6
+ onBlur?: FocusEventHandler;
7
+ }
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VzIjpbXSwic291cmNlc0NvbnRlbnQiOltdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
@@ -0,0 +1 @@
1
+ export declare const FIELD_TYPE_DEFAULT = "text";
@@ -0,0 +1,4 @@
1
+ const FIELD_TYPE_DEFAULT = 'text';
2
+
3
+ export { FIELD_TYPE_DEFAULT };
4
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZmllbGQvY29uc3RhbnRzLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjb25zdCBGSUVMRF9UWVBFX0RFRkFVTFQgPSAndGV4dCc7XG4iXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ik1BQWEsa0JBQWtCLEdBQUc7Ozs7In0=
@@ -0,0 +1,8 @@
1
+ import { SimpleTextInputTypeProps } from '../../input';
2
+ import { SingleLineFieldLayoutProps, TextFieldProps } from '../types';
3
+ declare type UseTextFieldState = {
4
+ fieldProps: Omit<SingleLineFieldLayoutProps, 'input' | 'className'>;
5
+ inputProps: SimpleTextInputTypeProps;
6
+ };
7
+ export declare const useTextField: (props: TextFieldProps & Pick<SimpleTextInputTypeProps, "type" | "required" | "disabled" | "hasError" | "dataset" | "aria-describedby" | "aria-disabled" | "aria-invalid" | "aria-required" | "autoComplete" | "placeholder" | "maxLength" | "name" | "value" | "defaultValue" | "onChange" | "onFocus" | "onBlur" | "onClick" | "onKeyDown" | "onKeyUp">) => UseTextFieldState;
8
+ export {};
@@ -0,0 +1,66 @@
1
+ import { makeTinyId } from '@preply/ds-core';
2
+ import { useState } from 'react';
3
+ import { makeDescId } from '../../aria/utils.js';
4
+ import { FIELD_TYPE_DEFAULT } from '../constants.js';
5
+
6
+ const useTextField = (props) => {
7
+ const { type, id, value, label, hideLabel, additionalText, preserveSpace, required, disabled, hasError, errorMessage, icon, button, onFocus, onBlur, onChange, dataset, ...rest } = props;
8
+ const actualId = id || makeTinyId();
9
+ const actualType = type !== null && type !== void 0 ? type : FIELD_TYPE_DEFAULT;
10
+ const [isFocused, setIsFocused] = useState(false);
11
+ const [isTouched, setIsTouched] = useState(false);
12
+ const [isChanged, setIsChanged] = useState(false);
13
+ const handleFocus = ev => {
14
+ setIsFocused(true);
15
+ setIsTouched(true);
16
+ onFocus === null || onFocus === void 0 ? void 0 : onFocus(ev);
17
+ };
18
+ const handleBlur = ev => {
19
+ setIsFocused(false);
20
+ onBlur === null || onBlur === void 0 ? void 0 : onBlur(ev);
21
+ };
22
+ const handleChange = ev => {
23
+ setIsChanged(false);
24
+ onChange === null || onChange === void 0 ? void 0 : onChange(ev);
25
+ };
26
+ const actualHasError = hasError || !!errorMessage;
27
+ const describeId = actualHasError || !!additionalText ? makeDescId(actualId) : undefined;
28
+ return {
29
+ fieldProps: {
30
+ id: actualId,
31
+ type: actualType,
32
+ label,
33
+ hideLabel,
34
+ additionalText,
35
+ required,
36
+ disabled,
37
+ isFocused,
38
+ isTouched,
39
+ isChanged,
40
+ hasValue: typeof value !== undefined,
41
+ hasError: actualHasError,
42
+ errorMessage,
43
+ preserveSpace,
44
+ icon,
45
+ button,
46
+ dataset,
47
+ },
48
+ inputProps: {
49
+ type: actualType,
50
+ id: actualId,
51
+ value,
52
+ // assitiveText: hideVisualLabel ?? label : undefined,
53
+ onChange: handleChange,
54
+ onFocus: handleFocus,
55
+ onBlur: handleBlur,
56
+ required,
57
+ disabled,
58
+ hasError: actualHasError,
59
+ 'aria-describedby': describeId,
60
+ ...rest,
61
+ },
62
+ };
63
+ };
64
+
65
+ export { useTextField };
66
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLC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pO1xuICAgICAgICBvbkJsdXI/Lihldik7XG4gICAgfTtcblxuICAgIGNvbnN0IGhhbmRsZUNoYW5nZTogQ2hhbmdlRXZlbnRIYW5kbGVyID0gZXYgPT4ge1xuICAgICAgICBzZXRJc0NoYW5nZWQoZmFsc2UpO1xuICAgICAgICBvbkNoYW5nZT8uKGV2KTtcbiAgICB9O1xuXG4gICAgY29uc3QgYWN0dWFsSGFzRXJyb3IgPSBoYXNFcnJvciB8fCAhIWVycm9yTWVzc2FnZTtcbiAgICBjb25zdCBkZXNjcmliZUlkID0gYWN0dWFsSGFzRXJyb3IgfHwgISFhZGRpdGlvbmFsVGV4dCA/IG1ha2VEZXNjSWQoYWN0dWFsSWQpIDogdW5kZWZpbmVkO1xuXG4gICAgcmV0dXJuIHtcbiAgICAgICAgZmllbGRQcm9wczoge1xuICAgICAgICAgICAgaWQ6IGFjdHVhbElkLFxuICAgICAgICAgICAgdHlwZTogYWN0dWFsVHlwZSxcbiAgICAgICAgICAgIGxhYmVsLFxuICAgICAgICAgICAgaGlkZUxhYmVsLFxuICAgICAgICAgICAgYWRkaXRpb25hbFRleHQsXG4gICAgICAgICAgICByZXF1aXJlZCxcbiAgICAgICAgICAgIGRpc2FibGVkLFxuICAgICAgICAgICAgaXNGb2N1c2VkLFxuICAgICAgICAgICAgaXNUb3VjaGVkLFxuICAgICAgICAgICAgaXNDaGFuZ2VkLFxuICAgICAgICAgICAgaGFzVmFsdWU6IHR5cGVvZiB2YWx1ZSAhPT0gdW5kZWZpbmVkLFxuICAgICAgICAgICAgaGFzRXJyb3I6IGFjdHVhbEhhc0Vycm9yLFxuICAgICAgICAgICAgZXJyb3JNZXNzYWdlLFxuICAgICAgICAgICAgcHJlc2VydmVTcGFjZSxcbiAgICAgICAgICAgIGljb24sXG4gICAgICAgICAgICBidXR0b24sXG4gICAgICAgICAgICBkYXRhc2V0LFxuICAgICAgICB9LFxuICAgICAgICBpbnB1dFByb3BzOiB7XG4gICAgICAgICAgICB0eXBlOiB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1QsY0FBYztZQUNkLFFBQVE7WUFDUixRQUFRO1lBQ1IsU0FBUztZQUNULFNBQVM7WUFDVCxTQUFTO1lBQ1QsUUFBUSxFQUFFLE9BQU8sS0FBSyxLQUFLLFNBQVM7WUFDcEMsUUFBUSxFQUFFLGNBQWM7WUFDeEIsWUFBWTtZQUNaLGFBQWE7WUFDYixJQUFJO1lBQ0osTUFBTTtZQUNOLE9BQU87U0FDVjtRQUNELFVBQVUsRUFBRTtZQUNSLElBQUksRUFBRSxVQUFVO1lBQ2hCLEVBQUUsRUFBRSxRQUFRO1lBQ1osS0FBSzs7WUFFTCxRQUFRLEVBQUUsWUFBWTtZQUN0QixPQUFPLEVBQUUsV0FBVztZQUNwQixNQUFNLEVBQUUsVUFBVTtZQUNsQixRQUFRO1lBQ1IsUUFBUTtZQUNSLFFBQVEsRUFBRSxjQUFjO1lBQ3hCLGtCQUFrQixFQUFFLFVBQVU7WUFDOUIsR0FBRyxJQUFJO1NBQ1Y7S0FDSixDQUFDO0FBQ047Ozs7In0=
@@ -0,0 +1,3 @@
1
+ export * from './constants';
2
+ export * from './hooks/useTextField';
3
+ export * from './types';
@@ -0,0 +1,3 @@
1
+ export { FIELD_TYPE_DEFAULT } from './constants.js';
2
+ export { useTextField } from './hooks/useTextField.js';
3
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VzIjpbXSwic291cmNlc0NvbnRlbnQiOltdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOyJ9
@@ -0,0 +1,55 @@
1
+ import { Dataset } from '@preply/ds-core';
2
+ import { MouseEventHandler, SVGAttributes } from 'react';
3
+ import { InputType, SimpleTextInputType, SingleLineInputType } from '../input';
4
+ export declare type FieldValue = string | number | boolean;
5
+ declare type ReactSVGComponentType = React.ComponentType<SVGAttributes<SVGElement>>;
6
+ export interface FieldButtonProps {
7
+ svg: ReactSVGComponentType;
8
+ assistiveText: string;
9
+ onClick: MouseEventHandler;
10
+ dataset?: Dataset;
11
+ }
12
+ export interface FieldLayoutProps {
13
+ id: string;
14
+ className: string;
15
+ label: string;
16
+ hideLabel?: boolean;
17
+ additionalText?: string;
18
+ preserveSpace?: boolean;
19
+ required?: boolean;
20
+ disabled?: boolean;
21
+ isFocused: boolean;
22
+ isTouched: boolean;
23
+ isChanged: boolean;
24
+ hasValue: boolean;
25
+ hasError: boolean;
26
+ errorMessage?: string;
27
+ dataset?: Dataset;
28
+ }
29
+ export interface SingleLineFieldLayoutProps extends FieldLayoutProps {
30
+ input: React.ReactElement;
31
+ type: SingleLineInputType;
32
+ icon?: ReactSVGComponentType;
33
+ button?: React.ReactElement<FieldButtonProps>;
34
+ }
35
+ interface FieldCommonProps {
36
+ type?: InputType;
37
+ id?: string;
38
+ label: string;
39
+ hideLabel?: boolean;
40
+ additionalText?: string;
41
+ preserveSpace?: boolean;
42
+ hasError?: boolean;
43
+ errorMessage?: string;
44
+ dataset?: Dataset;
45
+ inputDataset?: Dataset;
46
+ }
47
+ interface SingleLineFieldCommonProps extends FieldCommonProps {
48
+ type?: SingleLineInputType;
49
+ icon?: ReactSVGComponentType;
50
+ button?: React.ReactElement<FieldButtonProps>;
51
+ }
52
+ export interface TextFieldProps extends SingleLineFieldCommonProps {
53
+ type?: SimpleTextInputType;
54
+ }
55
+ export {};
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VzIjpbXSwic291cmNlc0NvbnRlbnQiOltdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
@@ -0,0 +1,8 @@
1
+ @import '../../theme/style/declarations.mixins.less';
2
+
3
+ .focus-outline() {
4
+ outline-style: solid;
5
+ .focus-outline-color('action', 'base');
6
+ .focus-outline-width('action', 'base');
7
+ .focus-outline-offset('action', 'base');
8
+ }
@@ -0,0 +1,8 @@
1
+ import styleInject from '../../external/style-inject/dist/style-inject.es.js';
2
+
3
+ var css_248z = "";
4
+ var stylesheet="";
5
+ styleInject(css_248z);
6
+
7
+ export { css_248z as default, stylesheet };
8
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjpudWxsLCJzb3VyY2VzIjpbbnVsbF0sInNvdXJjZXNDb250ZW50IjpbbnVsbF0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLHdCQUF3QixxREFBeUQ7QUFDakY7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOyJ9
@@ -1,4 +1,4 @@
1
- /* AUTO GENERATED @Thu Oct 20 2022 08:03:31 GMT+0000 (Coordinated Universal Time) */
1
+ /* AUTO GENERATED @Thu Nov 10 2022 09:32:36 GMT+0000 (Coordinated Universal Time) */
2
2
 
3
3
  @breakpoints: {
4
4
  narrow-l: 400px;
@@ -1,14 +1,14 @@
1
- /* AUTO GENERATED @Thu Oct 20 2022 08:03:30 GMT+0000 (Coordinated Universal Time) */
1
+ /* AUTO GENERATED @Thu Nov 10 2022 09:32:35 GMT+0000 (Coordinated Universal Time) */
2
2
 
3
3
  @AVATAR_SIZE_OPTIONS: 2xs, xs, s, m, l, xl;
4
4
  @BOX_PADDING_OPTIONS: none, 3xs, 2xs, xs, s, m, l, xl;
5
- @BOX_RADIUS_OPTIONS: m, l;
5
+ @BOX_RADIUS_OPTIONS: none, m, l;
6
6
  @BUTTON_SIZE_OPTIONS: xs, s, m, l, xl;
7
7
  @BUTTON_VARIANT_OPTIONS: primary, secondary, tertiary, quaternary, plain, dangerous;
8
- @COLOR_NAME_OPTIONS: gray-100, gray-200, gray-300, gray-400, gray-500, gray-600, teal-100, teal-200,
9
- teal-300, teal-400, teal-500, green-100, green-200, green-300, green-400, green-500, yellow-100,
10
- yellow-200, yellow-300, yellow-400, yellow-500, red-100, red-200, red-300, red-400, red-500,
11
- blue-100, blue-200, blue-300, blue-400, blue-500, magenta-100, magenta-200, magenta-300,
8
+ @COLOR_NAME_OPTIONS: white, gray-100, gray-200, gray-300, gray-400, gray-500, gray-600, teal-100,
9
+ teal-200, teal-300, teal-400, teal-500, green-100, green-200, green-300, green-400, green-500,
10
+ yellow-100, yellow-200, yellow-300, yellow-400, yellow-500, red-100, red-200, red-300, red-400,
11
+ red-500, blue-100, blue-200, blue-300, blue-400, blue-500, magenta-100, magenta-200, magenta-300,
12
12
  magenta-400, magenta-500;
13
13
  @COLOR_SCHEME_OPTIONS: base, banner, invert;
14
14
  @HEADING_LEVEL_OPTIONS: h1, h2, h3, h4, h5;
@@ -21,7 +21,8 @@
21
21
  @LAYOUT_JUSTIFY_CONTENT_OPTIONS: center, start, end, space-between, space-around, space-evenly;
22
22
  @LAYOUT_JUSTIFY_ITEMS_OPTIONS: stretch, center, start, end;
23
23
  @LAYOUT_PADDING_OPTIONS: none, 3xs, 2xs, xs, s, m, l, xl;
24
- @LAYOUT_TAG_OPTIONS: div, main, header, footer, article, section, ul, ol, li, p, span;
24
+ @LAYOUT_TAG_OPTIONS: div, main, header, footer, article, section, ul, ol, li, p, span, fieldset,
25
+ table, th, tr, td, thead, tfoot, tbody, caption, figure, figcaption;
25
26
  @PANEL_PADDING_OPTIONS: small, base, medium, large;
26
27
  @PREPLY_LOGO_VARIANT_OPTIONS: default, monochrome, ua;
27
28
  @TEXT_ACCENT_OPTIONS: primary, secondary, branded, positive;
@@ -1,4 +1,4 @@
1
- /* AUTO GENERATED @Thu Oct 20 2022 08:03:30 GMT+0000 (Coordinated Universal Time) */
1
+ /* AUTO GENERATED @Thu Nov 10 2022 09:32:36 GMT+0000 (Coordinated Universal Time) */
2
2
 
3
3
  @scheme-color: var(--aface6);
4
4
  @scheme-bgColor: var(--786b9e);
@@ -173,6 +173,7 @@
173
173
  @avatar-size-m-size: var(--b51334);
174
174
  @avatar-size-l-size: var(--d318a5);
175
175
  @avatar-size-xl-size: var(--6eb1c7);
176
+ @box-radius-none-borderRadius: var(--84e079);
176
177
  @box-radius-m-borderRadius: var(--1c37d5);
177
178
  @box-radius-l-borderRadius: var(--9e57e5);
178
179
  @box-base-shadow: var(--a814c9);
@@ -390,6 +391,7 @@
390
391
  @root-size-600: var(--53cdfb);
391
392
  @root-size-800: var(--e37f12);
392
393
  @root-size-1000: var(--f10eae);
394
+ @root-radius-none: var(--47c153);
393
395
  @root-radius-xs: var(--7fff29);
394
396
  @root-radius-s: var(--bf855f);
395
397
  @root-radius-m: var(--c3119b);
package/dist/index.d.ts CHANGED
@@ -1,7 +1,11 @@
1
+ export * from './aria';
1
2
  export * from './color/module-color';
2
3
  export * from './color-scheme';
3
4
  export * from './css-module';
4
5
  export * from './dom/props';
6
+ export * from './events';
7
+ export * from './field';
8
+ export * from './input';
5
9
  export * from './instrument';
6
10
  export * from './keyboard';
7
11
  export * from './layout';
package/dist/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export { getDatasetProps, getExternalUrlProps } from './dom/props/index.js';
2
2
  export { mapEdgeKeyToStandard } from './keyboard/index.js';
3
3
  export { currentHostname, currentHref } from './location/index.js';
4
+ export { getAriaProps } from './aria/utils.js';
4
5
  export { useColorClassNames } from './color/module-color/hooks/useColorClassNames.js';
5
6
  export { colorSchemes } from './color-scheme/colorSchemes.js';
6
7
  export { ColorScheme } from './color-scheme/classes/ColorScheme.js';
@@ -8,6 +9,12 @@ export { ColorSchemeProvider } from './color-scheme/providers/ColorSchemeProvide
8
9
  export { useColorScheme } from './color-scheme/hooks/useColorScheme.js';
9
10
  export { withColorScheme } from './color-scheme/hocs/withColorScheme.js';
10
11
  export { booleanClassNames, globalClassNames, longhandClassNames, moduleClassName, moduleClassNames, moduleLocals, stringClassNames } from './css-module/classNames.js';
12
+ export { useFocusEvents } from './events/hooks/useFocusEvents.js';
13
+ export { FIELD_TYPE_DEFAULT } from './field/constants.js';
14
+ export { useTextField } from './field/hooks/useTextField.js';
15
+ export { AUTO_COMPLETE_DATE_DEFAULT, AUTO_COMPLETE_PASSWORD_DEFAULT, AUTO_COMPLETE_TEXT_DEFAULT, INPUT_TYPE_DEFAULT } from './input/constants.js';
16
+ export { AUTO_COMPLETE_DATE_OPTIONS, AUTO_COMPLETE_PASSWORD_OPTIONS, AUTO_COMPLETE_TEXT_OPTIONS, INPUT_TYPE_OPTIONS, INPUT_TYPE_SIMPLE_TEXT_OPTIONS } from './input/options.js';
17
+ export { useForcedRef } from './input/util.js';
11
18
  export { useInstrument } from './instrument/hooks/useInstrument.js';
12
19
  export { InstrumentProvider } from './instrument/providers/Instrument.js';
13
20
  export { useLayoutClassNames } from './layout/hooks/useLayoutClassNames.js';
@@ -39,4 +46,4 @@ export { withGetToken } from './token/hocs/withGetToken.js';
39
46
  export { useTextAccentClassnames } from './typography/module-text-accent/hooks/useTextAccentClassnames.js';
40
47
  export { useTextCenteredClassnames } from './typography/module-text-centered/hooks/useTextCenteredClassnames.js';
41
48
  export { useTextWeightClassNames } from './typography/module-text-weight/hooks/useTextWeightClassNames.js';
42
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VzIjpbXSwic291cmNlc0NvbnRlbnQiOltdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OyJ9
49
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VzIjpbXSwic291cmNlc0NvbnRlbnQiOltdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OzsifQ==
@@ -0,0 +1,4 @@
1
+ export declare const INPUT_TYPE_DEFAULT = "text";
2
+ export declare const AUTO_COMPLETE_TEXT_DEFAULT = "off";
3
+ export declare const AUTO_COMPLETE_PASSWORD_DEFAULT = "off";
4
+ export declare const AUTO_COMPLETE_DATE_DEFAULT = "off";
@@ -0,0 +1,7 @@
1
+ const INPUT_TYPE_DEFAULT = 'text';
2
+ const AUTO_COMPLETE_TEXT_DEFAULT = 'off';
3
+ const AUTO_COMPLETE_PASSWORD_DEFAULT = 'off';
4
+ const AUTO_COMPLETE_DATE_DEFAULT = 'off';
5
+
6
+ export { AUTO_COMPLETE_DATE_DEFAULT, AUTO_COMPLETE_PASSWORD_DEFAULT, AUTO_COMPLETE_TEXT_DEFAULT, INPUT_TYPE_DEFAULT };
7
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5wdXQvY29uc3RhbnRzLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjb25zdCBJTlBVVF9UWVBFX0RFRkFVTFQgPSAndGV4dCc7XG5cbmV4cG9ydCBjb25zdCBBVVRPX0NPTVBMRVRFX1RFWFRfREVGQVVMVCA9ICdvZmYnO1xuZXhwb3J0IGNvbnN0IEFVVE9fQ09NUExFVEVfUEFTU1dPUkRfREVGQVVMVCA9ICdvZmYnO1xuZXhwb3J0IGNvbnN0IEFVVE9fQ09NUExFVEVfREFURV9ERUZBVUxUID0gJ29mZic7XG4iXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ik1BQWEsa0JBQWtCLEdBQUcsT0FBTztNQUU1QiwwQkFBMEIsR0FBRyxNQUFNO01BQ25DLDhCQUE4QixHQUFHLE1BQU07TUFDdkMsMEJBQTBCLEdBQUc7Ozs7In0=
@@ -0,0 +1,4 @@
1
+ export * from './constants';
2
+ export * from './options';
3
+ export * from './types';
4
+ export * from './util';
@@ -0,0 +1,4 @@
1
+ export { AUTO_COMPLETE_DATE_DEFAULT, AUTO_COMPLETE_PASSWORD_DEFAULT, AUTO_COMPLETE_TEXT_DEFAULT, INPUT_TYPE_DEFAULT } from './constants.js';
2
+ export { AUTO_COMPLETE_DATE_OPTIONS, AUTO_COMPLETE_PASSWORD_OPTIONS, AUTO_COMPLETE_TEXT_OPTIONS, INPUT_TYPE_OPTIONS, INPUT_TYPE_SIMPLE_TEXT_OPTIONS } from './options.js';
3
+ export { useForcedRef } from './util.js';
4
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VzIjpbXSwic291cmNlc0NvbnRlbnQiOltdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzsifQ==
@@ -0,0 +1,7 @@
1
+ import type { Option } from '@preply/ds-core-types';
2
+ import type { AutoCompleteDateOptions, AutoCompletePasswordOptions, AutoCompleteTextOptions, InputType } from './types';
3
+ export declare const INPUT_TYPE_SIMPLE_TEXT_OPTIONS: Option<InputType>[];
4
+ export declare const INPUT_TYPE_OPTIONS: Option<InputType>[];
5
+ export declare const AUTO_COMPLETE_TEXT_OPTIONS: Option<AutoCompleteTextOptions>[];
6
+ export declare const AUTO_COMPLETE_DATE_OPTIONS: Option<AutoCompleteDateOptions>[];
7
+ export declare const AUTO_COMPLETE_PASSWORD_OPTIONS: Option<AutoCompletePasswordOptions>[];
@@ -0,0 +1,40 @@
1
+ const INPUT_TYPE_SIMPLE_TEXT_OPTIONS = [
2
+ { id: 'text' },
3
+ { id: 'search' },
4
+ { id: 'email' },
5
+ { id: 'tel' },
6
+ { id: 'url' },
7
+ ];
8
+ const INPUT_TYPE_OPTIONS = [
9
+ ...INPUT_TYPE_SIMPLE_TEXT_OPTIONS,
10
+ { id: 'password' },
11
+ { id: 'number' },
12
+ { id: 'date' },
13
+ { id: 'time' },
14
+ { id: 'checkbox' },
15
+ { id: 'radio' },
16
+ { id: 'textarea' },
17
+ { id: 'select' },
18
+ ];
19
+ const AUTO_COMPLETE_TEXT_OPTIONS = [
20
+ { id: 'off' },
21
+ { id: 'on' },
22
+ { id: 'name' },
23
+ { id: 'email' },
24
+ { id: 'username' },
25
+ { id: 'language' },
26
+ { id: 'tel' },
27
+ { id: 'url' },
28
+ ];
29
+ const AUTO_COMPLETE_DATE_OPTIONS = [
30
+ { id: 'off' },
31
+ { id: 'on' },
32
+ ];
33
+ const AUTO_COMPLETE_PASSWORD_OPTIONS = [
34
+ { id: 'off' },
35
+ { id: 'new-password' },
36
+ { id: 'current-password' },
37
+ ];
38
+
39
+ export { AUTO_COMPLETE_DATE_OPTIONS, AUTO_COMPLETE_PASSWORD_OPTIONS, AUTO_COMPLETE_TEXT_OPTIONS, INPUT_TYPE_OPTIONS, INPUT_TYPE_SIMPLE_TEXT_OPTIONS };
40
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3B0aW9ucy5qcyIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2lucHV0L29wdGlvbnMudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUgeyBPcHRpb24gfSBmcm9tICdAcHJlcGx5L2RzLWNvcmUtdHlwZXMnO1xuXG5pbXBvcnQgdHlwZSB7XG4gICAgQXV0b0NvbXBsZXRlRGF0ZU9wdGlvbnMsXG4gICAgQXV0b0NvbXBsZXRlUGFzc3dvcmRPcHRpb25zLFxuICAgIEF1dG9Db21wbGV0ZVRleHRPcHRpb25zLFxuICAgIElucHV0VHlwZSxcbn0gZnJvbSAnLi90eXBlcyc7XG5cbmV4cG9ydCBjb25zdCBJTlBVVF9UWVBFX1NJTVBMRV9URVhUX09QVElPTlM6IE9wdGlvbjxJbnB1dFR5cGU+W10gPSBbXG4gICAgeyBpZDogJ3RleHQnIH0sXG4gICAgeyBpZDogJ3NlYXJjaCcgfSxcbiAgICB7IGlkOiAnZW1haWwnIH0sXG4gICAgeyBpZDogJ3RlbCcgfSxcbiAgICB7IGlkOiAndXJsJyB9LFxuXTtcblxuZXhwb3J0IGNvbnN0IElOU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UssRUFBRTtFQUNmO01BRVcsMEJBQTBCLEdBQXNDO0lBQ3pFLEVBQUUsRUFBRSxFQUFFLEtBQUssRUFBRTtJQUNiLEVBQUUsRUFBRSxFQUFFLElBQUksRUFBRTtFQUNkO01BRVcsOEJBQThCLEdBQTBDO0lBQ2pGLEVBQUUsRUFBRSxFQUFFLEtBQUssRUFBRTtJQUNiLEVBQUUsRUFBRSxFQUFFLGNBQWMsRUFBRTtJQUN0QixFQUFFLEVBQUUsRUFBRSxrQkFBa0IsRUFBRTs7Ozs7In0=
@@ -0,0 +1,106 @@
1
+ import type { Dataset } from '@preply/ds-core';
2
+ import { ChangeEventHandler, FocusEventHandler, KeyboardEventHandler, MouseEventHandler, ReactNode } from 'react';
3
+ declare type ARIAAttributeNames = 'aria-describedby' | 'aria-disabled' | 'aria-invalid' | 'aria-required';
4
+ declare type WithRequired<T, K extends keyof T> = T & {
5
+ [P in K]-?: T[P];
6
+ };
7
+ export declare type ARIAInputPropsMap = WithRequired<ARIAInputProps, ARIAAttributeNames>;
8
+ export declare type ARIAInputProps = Pick<React.HTMLAttributes<HTMLInputElement>, ARIAAttributeNames>;
9
+ export declare type SimpleTextInputType = 'text' | 'search' | 'email' | 'tel' | 'url';
10
+ export declare type SingleLineInputType = SimpleTextInputType | 'password' | 'number' | 'date' | 'time';
11
+ export declare type HTMLInputType = SingleLineInputType | 'checkbox' | 'radio';
12
+ export declare type InputType = HTMLInputType | 'textarea' | 'select';
13
+ export declare type AutoCompleteTextOptions = 'off' | 'on' | 'name' | 'email' | 'username' | 'language' | 'tel' | 'url';
14
+ export declare type AutoCompleteDateOptions = 'off' | 'on';
15
+ export declare type AutoCompletePasswordOptions = 'off' | 'new-password' | 'current-password';
16
+ export interface InputCommonProps extends ARIAInputProps {
17
+ type: InputType;
18
+ id: string;
19
+ name?: string;
20
+ value?: string;
21
+ defaultValue?: string;
22
+ onChange?: ChangeEventHandler;
23
+ onFocus?: FocusEventHandler;
24
+ onBlur?: FocusEventHandler;
25
+ onClick?: MouseEventHandler;
26
+ onKeyDown?: KeyboardEventHandler;
27
+ onKeyUp?: KeyboardEventHandler;
28
+ required?: boolean;
29
+ disabled?: boolean;
30
+ hasError?: boolean;
31
+ dataset?: Dataset;
32
+ }
33
+ export interface InputStringProps extends InputCommonProps {
34
+ type: SingleLineInputType | 'textarea';
35
+ placeholder?: string;
36
+ maxLength?: number;
37
+ }
38
+ export interface InputSingleLineProps extends InputStringProps {
39
+ type: SingleLineInputType;
40
+ }
41
+ export interface SimpleTextInputTypeProps extends InputSingleLineProps {
42
+ type: SimpleTextInputType;
43
+ autoComplete?: AutoCompleteTextOptions;
44
+ }
45
+ export interface InputTypeTextProps extends SimpleTextInputTypeProps {
46
+ type: 'text';
47
+ }
48
+ export interface InputTypeSearchProps extends SimpleTextInputTypeProps {
49
+ type: 'search';
50
+ }
51
+ export interface InputTypeEmailProps extends SimpleTextInputTypeProps {
52
+ type: 'email';
53
+ }
54
+ export interface InputTypeTelProps extends SimpleTextInputTypeProps {
55
+ type: 'tel';
56
+ }
57
+ export interface InputTypeUrlProps extends SimpleTextInputTypeProps {
58
+ type: 'url';
59
+ }
60
+ export interface InputTypePasswordProps extends InputSingleLineProps {
61
+ type: 'password';
62
+ autoComplete?: AutoCompletePasswordOptions;
63
+ }
64
+ export interface InputBoundedProps extends InputSingleLineProps {
65
+ type: 'number' | 'date' | 'time';
66
+ min?: string;
67
+ max?: string;
68
+ }
69
+ export interface InputTypeNumberProps extends InputBoundedProps {
70
+ type: 'number';
71
+ }
72
+ export interface InputTypeDateProps extends InputBoundedProps {
73
+ type: 'date';
74
+ autoComplete?: AutoCompleteDateOptions;
75
+ }
76
+ export interface InputTypeTimeProps extends InputBoundedProps {
77
+ type: 'time';
78
+ }
79
+ export interface InputCheckableProps extends InputCommonProps {
80
+ type: 'checkbox' | 'radio';
81
+ checked?: boolean;
82
+ }
83
+ export interface InputTypeCheckboxProps extends InputCheckableProps {
84
+ type: 'checkbox';
85
+ }
86
+ export interface InputTypeRadioProps extends InputCommonProps, InputCheckableProps {
87
+ type: 'radio';
88
+ name: string;
89
+ }
90
+ export interface InputTypeTextareaProps extends InputStringProps {
91
+ type: 'textarea';
92
+ rows?: number;
93
+ }
94
+ export interface InputTypeSelectProps extends InputCommonProps {
95
+ type: 'select';
96
+ children?: ReactNode;
97
+ }
98
+ export declare type InputGenericTextProps = InputTypeTextProps | InputTypeSearchProps | InputTypeEmailProps | InputTypeTelProps | InputTypeUrlProps;
99
+ declare type UnknownInputProps = InputTypeTextProps | InputTypeSearchProps | InputTypeEmailProps | InputTypeTelProps | InputTypeUrlProps | InputTypePasswordProps | InputTypeNumberProps | InputTypeDateProps | InputTypeTimeProps | InputTypeCheckboxProps | InputTypeRadioProps | InputTypeTextareaProps | InputTypeSelectProps;
100
+ export declare type InputProps = UnknownInputProps & {
101
+ className?: string;
102
+ };
103
+ export declare type CombinableInputProps<T extends InputCommonProps> = Omit<T, 'id' | 'type'> & {
104
+ id?: string;
105
+ };
106
+ export {};
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VzIjpbXSwic291cmNlc0NvbnRlbnQiOltdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
@@ -0,0 +1,2 @@
1
+ import { RefObject } from 'react';
2
+ export declare function useForcedRef<T>(): RefObject<T>;
@@ -0,0 +1,11 @@
1
+ import { useState, useEffect, useRef } from 'react';
2
+
3
+ function useForcedRef() {
4
+ const [init] = useState(true);
5
+ const [, setFauxState] = useState(false);
6
+ useEffect(() => setFauxState(init), [init]);
7
+ return useRef(null);
8
+ }
9
+
10
+ export { useForcedRef };
11
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbC5qcyIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2lucHV0L3V0aWwudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgUmVmT2JqZWN0LCB1c2VFZmZlY3QsIHVzZVJlZiwgdXNlU3RhdGUgfSBmcm9tICdyZWFjdCc7XG5cbmV4cG9ydCBmdW5jdGlvbiB1c2VGb3JjZWRSZWY8VD4oKTogUmVmT2JqZWN0PFQ+IHtcbiAgICBjb25zdCBbaW5pdF0gPSB1c2VTdGF0ZTxib29sZWFuPih0cnVlKTtcbiAgICBjb25zdCBbLCBzZXRGYXV4U3RhdGVdID0gdXNlU3RhdGU8Ym9vbGVhbj4oZmFsc2UpO1xuXG4gICAgdXNlRWZmZWN0KCgpID0+IHNldEZhdXhTdGF0ZShpbml0KSwgW2luaXRdKTtcblxuICAgIHJldHVybiB1c2VSZWY8VD4obnVsbCk7XG59XG4iXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7U0FFZ0IsWUFBWTtJQUN4QixNQUFNLENBQUMsSUFBSSxDQUFDLEdBQUcsUUFBUSxDQUFVLElBQUksQ0FBQyxDQUFDO0lBQ3ZDLE1BQU0sR0FBRyxZQUFZLENBQUMsR0FBRyxRQUFRLENBQVUsS0FBSyxDQUFDLENBQUM7SUFFbEQsU0FBUyxDQUFDLE1BQU0sWUFBWSxDQUFDLElBQUksQ0FBQyxFQUFFLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQztJQUU1QyxPQUFPLE1BQU0sQ0FBSSxJQUFJLENBQUMsQ0FBQztBQUMzQjs7OzsifQ==
@@ -1,7 +1,9 @@
1
1
  @import './flex.mixins.less';
2
2
  @import './grid.mixins.less';
3
+ @import './tag.mixins.less';
3
4
 
4
5
  .LayoutFlex {
6
+ .layout-tag();
5
7
  .flex-base();
6
8
  .flex-wrap();
7
9
  .flex-inline();
@@ -12,6 +14,7 @@
12
14
  }
13
15
 
14
16
  .LayoutGrid {
17
+ .layout-tag();
15
18
  .grid-base();
16
19
  .grid-justify-content();
17
20
  .grid-align-items();
@@ -1,6 +1,6 @@
1
1
  import styleInject from '../../external/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "._15uGWh{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:0;padding:0}._3rnoor{-ms-flex-wrap:nowrap;flex-wrap:nowrap}._1_IXQm{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.X4eHUe{-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}._3_M_4w,.X4eHUe{-webkit-box-orient:horizontal}._3_M_4w{-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}._2ByMq1{-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}._2ByMq1,._3_8VIk{-webkit-box-orient:vertical}._3_8VIk{-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.TeMu3z{-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}._2JjQiK,.TeMu3z{-webkit-box-orient:vertical}._2JjQiK{-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}._1o4EVj{-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}._1o4EVj,._24jMtt{-webkit-box-orient:horizontal}._24jMtt{-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}@media (min-width:400px){._1RG37V{-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}._1RG37V,._3Rxyiw{-webkit-box-orient:vertical}._3Rxyiw{-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}._8jyTaM{-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}._1t_3rz,._8jyTaM{-webkit-box-orient:horizontal}._1t_3rz{-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}}@media (min-width:700px){._1dYvLd{-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}._1dYvLd,._3B2cts{-webkit-box-orient:vertical}._3B2cts{-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}._1V-ESa{-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}._1V-ESa,._2eL5Ug{-webkit-box-orient:horizontal}._2eL5Ug{-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}}@media (min-width:880px){._1zHTP_{-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}._1zHTP_,._3fBIHc{-webkit-box-orient:vertical}._3fBIHc{-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}._2r_ktS{-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}._2r_ktS,._3RGdxW{-webkit-box-orient:horizontal}._3RGdxW{-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}}@media (min-width:1200px){._3_7sne{-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}._3_7sne,._3z0dTP{-webkit-box-orient:vertical}._3z0dTP{-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.UEEKlY{-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.hMRiH8,.UEEKlY{-webkit-box-orient:horizontal}.hMRiH8{-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}}@media (min-width:1900px){.lmSiRy{-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}._1XoMkw,.lmSiRy{-webkit-box-orient:vertical}._1XoMkw{-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}._19m9cA{-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}._2gCQJe,._19m9cA{-webkit-box-orient:horizontal}._2gCQJe{-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}}._3Aw3T1{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}._10X-3Q{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}._33a0v9{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}._3qMVGq{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}._2REBgi{-ms-flex-pack:distribute;justify-content:space-around}._3zq1C_{-webkit-box-pack:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly}@media (min-width:400px){._36Psqa{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}._3-j-w1{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}._1Lu-3E{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}._2VnVRQ{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}._1nH_hK{-ms-flex-pack:distribute;justify-content:space-around}._3-_n_C{-webkit-box-pack:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly}}@media (min-width:700px){.Qf6Cla{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}._6sxNQO{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.ZxlLXH{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.Cn_Bv2{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}._1i_Qo3{-ms-flex-pack:distribute;justify-content:space-around}._2C1XQX{-webkit-box-pack:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly}}@media (min-width:880px){._3o7wjp{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}._1gPYrw{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}._22LB-D{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}._3MnmNN{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}._12WcM9{-ms-flex-pack:distribute;justify-content:space-around}._3Pz1zS{-webkit-box-pack:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly}}@media (min-width:1200px){._3R_B9A{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}._11KLzX{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}._3YOo5Q{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.HT4Jrf{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}._3NRNH8{-ms-flex-pack:distribute;justify-content:space-around}._32hfui{-webkit-box-pack:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly}}@media (min-width:1900px){.FQ1F3D{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.c6aMED{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}._3YO2K0{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}._32nrja{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}._2O5f5W{-ms-flex-pack:distribute;justify-content:space-around}.LoonNj{-webkit-box-pack:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly}}.hUFwKI{-webkit-box-align:center;-ms-flex-align:center;align-items:center}._1BOjPg{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}._3AQmNs{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}._3orDH1{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}.qh7on_{-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline}@media (min-width:400px){._1mmFAl{-webkit-box-align:center;-ms-flex-align:center;align-items:center}._10ybPf{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}._3Gldvl{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}.iA36V8{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}._-6GZ3C{-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline}}@media (min-width:700px){.o5yv5p{-webkit-box-align:center;-ms-flex-align:center;align-items:center}._3SIoEN{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}._3LKoyS{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}._18CZ6Z{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}.-nZAw3{-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline}}@media (min-width:880px){.AQDorR{-webkit-box-align:center;-ms-flex-align:center;align-items:center}._34BfZ_{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}._3iylCj{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}.Z1VCoB{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}._3dtfdr{-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline}}@media (min-width:1200px){._1Ks9s5{-webkit-box-align:center;-ms-flex-align:center;align-items:center}._34ZJYW{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}._2pqScu{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}.vkNyz8{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}._7Y7qo5{-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline}}@media (min-width:1900px){._1CEGxp{-webkit-box-align:center;-ms-flex-align:center;align-items:center}._2ZDTru{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}._1vx6fg{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}._25WgaN{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}._2oMAvk{-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline}}._1C0eq8{display:grid;margin:0;padding:0}._25SpXB{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}._3GDeqz{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:start}._2-jaGe{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:end}._3lGct7{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}._2wHTdX{-ms-flex-pack:distribute;justify-content:space-around}._1BVKaN{-webkit-box-pack:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly}@media (min-width:400px){._1T-lc4{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}._2J4CPL{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:start}._2Aft_c{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:end}.dBFosZ{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}._1fCiiM{-ms-flex-pack:distribute;justify-content:space-around}.lbx7YH{-webkit-box-pack:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly}}@media (min-width:700px){.xXHa2D{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}._2tus7T{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:start}._1X9yZg{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:end}._2Qwy6e{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}._2edC8M{-ms-flex-pack:distribute;justify-content:space-around}._3RU3b0{-webkit-box-pack:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly}}@media (min-width:880px){._1arj0p{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}._1jhiec{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:start}._20XsA-{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:end}._15WN3j{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}._1gF4nW{-ms-flex-pack:distribute;justify-content:space-around}._11OeqJ{-webkit-box-pack:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly}}@media (min-width:1200px){._2JgpbG{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}._2enbh4{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:start}._36NHrt{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:end}._3FRFZs{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}._1ZsRFi{-ms-flex-pack:distribute;justify-content:space-around}.u6FwNM{-webkit-box-pack:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly}}@media (min-width:1900px){._3LAaFJ{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.bwlCap{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:start}.Cjj8pU{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:end}._1tRRgp{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}._12mrYT{-ms-flex-pack:distribute;justify-content:space-around}.OkauQs{-webkit-box-pack:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly}}._1nyAA2{-webkit-box-align:center;-ms-flex-align:center;align-items:center}._1Xe-EI{-webkit-box-align:start;-ms-flex-align:start;align-items:start}._3hQvqA{-webkit-box-align:end;-ms-flex-align:end;align-items:end}.KBSz7h{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}.KBW4yE{-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline}@media (min-width:400px){._3hQYZh{-webkit-box-align:center;-ms-flex-align:center;align-items:center}._1yu-Lc{-webkit-box-align:start;-ms-flex-align:start;align-items:start}.wMQW3S{-webkit-box-align:end;-ms-flex-align:end;align-items:end}.pW3b5B{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}._1prRSA{-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline}}@media (min-width:700px){._44IDPW{-webkit-box-align:center;-ms-flex-align:center;align-items:center}._2AP6r_{-webkit-box-align:start;-ms-flex-align:start;align-items:start}._1BBcE_{-webkit-box-align:end;-ms-flex-align:end;align-items:end}._1Lv_lm{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}._1fMkeb{-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline}}@media (min-width:880px){._3wNsry{-webkit-box-align:center;-ms-flex-align:center;align-items:center}._1QG5jh{-webkit-box-align:start;-ms-flex-align:start;align-items:start}._21PrAO{-webkit-box-align:end;-ms-flex-align:end;align-items:end}._3zOGJn{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}._1gnTEJ{-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline}}@media (min-width:1200px){.ePxzTG{-webkit-box-align:center;-ms-flex-align:center;align-items:center}._2HJ29S{-webkit-box-align:start;-ms-flex-align:start;align-items:start}._2hnsNI{-webkit-box-align:end;-ms-flex-align:end;align-items:end}._2lCZwy{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}._1juEXh{-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline}}@media (min-width:1900px){.nEAyoT{-webkit-box-align:center;-ms-flex-align:center;align-items:center}._2Edznx{-webkit-box-align:start;-ms-flex-align:start;align-items:start}._2YoGID{-webkit-box-align:end;-ms-flex-align:end;align-items:end}._3q0FuG{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}._1eMDtF{-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline}}._180uXD{justify-items:stretch}._3ZqB_F{justify-items:center}.ctOm0o{justify-items:start}.Ya0UyE{justify-items:end}@media (min-width:400px){._3uK5Jw{justify-items:stretch}._1XXOcV{justify-items:center}._2jHLc0{justify-items:start}._166Zje{justify-items:end}}@media (min-width:700px){._5k_mKE{justify-items:stretch}._3ON3H9{justify-items:center}._2m3ovj{justify-items:start}.FyDA8v{justify-items:end}}@media (min-width:880px){._2nHZHD{justify-items:stretch}._3iI_Xb{justify-items:center}._3uLUuN{justify-items:start}._2-psLl{justify-items:end}}@media (min-width:1200px){._3fxN8H{justify-items:stretch}._3S7t6m{justify-items:center}._1xmoyO{justify-items:start}._2t1X9J{justify-items:end}}@media (min-width:1900px){.ffV0aM{justify-items:stretch}.mrt4_2{justify-items:center}._3y0Zid{justify-items:start}._2f0AFj{justify-items:end}}.BaHcER{grid-template-columns:var(--columns)}@media (min-width:400px){._22-pFs{grid-template-columns:var(--columns-narrow-l)}}@media (min-width:700px){._2u4ySh{grid-template-columns:var(--columns-medium-s)}}@media (min-width:880px){._1OvDoW{grid-template-columns:var(--columns-medium-l)}}@media (min-width:1200px){.qjgCNQ{grid-template-columns:var(--columns-wide-s)}}@media (min-width:1900px){._18U3NI{grid-template-columns:var(--columns-wide-l)}}";
3
+ var css_248z = "._15uGWh{border:none;border-spacing:0;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;font-weight:inherit;list-style:none;margin:0;padding:0;text-align:inherit}._3rnoor{-ms-flex-wrap:nowrap;flex-wrap:nowrap}._1_IXQm{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.X4eHUe{-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}._3_M_4w,.X4eHUe{-webkit-box-orient:horizontal}._3_M_4w{-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}._2ByMq1{-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}._2ByMq1,._3_8VIk{-webkit-box-orient:vertical}._3_8VIk{-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.TeMu3z{-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}._2JjQiK,.TeMu3z{-webkit-box-orient:vertical}._2JjQiK{-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}._1o4EVj{-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}._1o4EVj,._24jMtt{-webkit-box-orient:horizontal}._24jMtt{-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}@media (min-width:400px){._1RG37V{-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}._1RG37V,._3Rxyiw{-webkit-box-orient:vertical}._3Rxyiw{-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}._8jyTaM{-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}._1t_3rz,._8jyTaM{-webkit-box-orient:horizontal}._1t_3rz{-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}}@media (min-width:700px){._1dYvLd{-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}._1dYvLd,._3B2cts{-webkit-box-orient:vertical}._3B2cts{-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}._1V-ESa{-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}._1V-ESa,._2eL5Ug{-webkit-box-orient:horizontal}._2eL5Ug{-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}}@media (min-width:880px){._1zHTP_{-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}._1zHTP_,._3fBIHc{-webkit-box-orient:vertical}._3fBIHc{-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}._2r_ktS{-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}._2r_ktS,._3RGdxW{-webkit-box-orient:horizontal}._3RGdxW{-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}}@media (min-width:1200px){._3_7sne{-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}._3_7sne,._3z0dTP{-webkit-box-orient:vertical}._3z0dTP{-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.UEEKlY{-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.hMRiH8,.UEEKlY{-webkit-box-orient:horizontal}.hMRiH8{-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}}@media (min-width:1900px){.lmSiRy{-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}._1XoMkw,.lmSiRy{-webkit-box-orient:vertical}._1XoMkw{-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}._19m9cA{-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}._2gCQJe,._19m9cA{-webkit-box-orient:horizontal}._2gCQJe{-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}}._3Aw3T1{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}._10X-3Q{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}._33a0v9{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}._3qMVGq{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}._2REBgi{-ms-flex-pack:distribute;justify-content:space-around}._3zq1C_{-webkit-box-pack:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly}@media (min-width:400px){._36Psqa{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}._3-j-w1{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}._1Lu-3E{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}._2VnVRQ{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}._1nH_hK{-ms-flex-pack:distribute;justify-content:space-around}._3-_n_C{-webkit-box-pack:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly}}@media (min-width:700px){.Qf6Cla{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}._6sxNQO{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.ZxlLXH{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.Cn_Bv2{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}._1i_Qo3{-ms-flex-pack:distribute;justify-content:space-around}._2C1XQX{-webkit-box-pack:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly}}@media (min-width:880px){._3o7wjp{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}._1gPYrw{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}._22LB-D{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}._3MnmNN{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}._12WcM9{-ms-flex-pack:distribute;justify-content:space-around}._3Pz1zS{-webkit-box-pack:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly}}@media (min-width:1200px){._3R_B9A{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}._11KLzX{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}._3YOo5Q{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.HT4Jrf{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}._3NRNH8{-ms-flex-pack:distribute;justify-content:space-around}._32hfui{-webkit-box-pack:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly}}@media (min-width:1900px){.FQ1F3D{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.c6aMED{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}._3YO2K0{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}._32nrja{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}._2O5f5W{-ms-flex-pack:distribute;justify-content:space-around}.LoonNj{-webkit-box-pack:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly}}.hUFwKI{-webkit-box-align:center;-ms-flex-align:center;align-items:center}._1BOjPg{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}._3AQmNs{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}._3orDH1{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}.qh7on_{-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline}@media (min-width:400px){._1mmFAl{-webkit-box-align:center;-ms-flex-align:center;align-items:center}._10ybPf{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}._3Gldvl{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}.iA36V8{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}._-6GZ3C{-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline}}@media (min-width:700px){.o5yv5p{-webkit-box-align:center;-ms-flex-align:center;align-items:center}._3SIoEN{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}._3LKoyS{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}._18CZ6Z{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}.-nZAw3{-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline}}@media (min-width:880px){.AQDorR{-webkit-box-align:center;-ms-flex-align:center;align-items:center}._34BfZ_{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}._3iylCj{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}.Z1VCoB{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}._3dtfdr{-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline}}@media (min-width:1200px){._1Ks9s5{-webkit-box-align:center;-ms-flex-align:center;align-items:center}._34ZJYW{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}._2pqScu{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}.vkNyz8{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}._7Y7qo5{-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline}}@media (min-width:1900px){._1CEGxp{-webkit-box-align:center;-ms-flex-align:center;align-items:center}._2ZDTru{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}._1vx6fg{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}._25WgaN{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}._2oMAvk{-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline}}._1C0eq8{border:none;border-spacing:0;display:grid;font-weight:inherit;list-style:none;margin:0;padding:0;text-align:inherit}._25SpXB{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}._3GDeqz{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:start}._2-jaGe{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:end}._3lGct7{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}._2wHTdX{-ms-flex-pack:distribute;justify-content:space-around}._1BVKaN{-webkit-box-pack:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly}@media (min-width:400px){._1T-lc4{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}._2J4CPL{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:start}._2Aft_c{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:end}.dBFosZ{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}._1fCiiM{-ms-flex-pack:distribute;justify-content:space-around}.lbx7YH{-webkit-box-pack:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly}}@media (min-width:700px){.xXHa2D{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}._2tus7T{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:start}._1X9yZg{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:end}._2Qwy6e{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}._2edC8M{-ms-flex-pack:distribute;justify-content:space-around}._3RU3b0{-webkit-box-pack:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly}}@media (min-width:880px){._1arj0p{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}._1jhiec{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:start}._20XsA-{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:end}._15WN3j{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}._1gF4nW{-ms-flex-pack:distribute;justify-content:space-around}._11OeqJ{-webkit-box-pack:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly}}@media (min-width:1200px){._2JgpbG{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}._2enbh4{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:start}._36NHrt{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:end}._3FRFZs{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}._1ZsRFi{-ms-flex-pack:distribute;justify-content:space-around}.u6FwNM{-webkit-box-pack:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly}}@media (min-width:1900px){._3LAaFJ{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.bwlCap{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:start}.Cjj8pU{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:end}._1tRRgp{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}._12mrYT{-ms-flex-pack:distribute;justify-content:space-around}.OkauQs{-webkit-box-pack:space-evenly;-ms-flex-pack:space-evenly;justify-content:space-evenly}}._1nyAA2{-webkit-box-align:center;-ms-flex-align:center;align-items:center}._1Xe-EI{-webkit-box-align:start;-ms-flex-align:start;align-items:start}._3hQvqA{-webkit-box-align:end;-ms-flex-align:end;align-items:end}.KBSz7h{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}.KBW4yE{-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline}@media (min-width:400px){._3hQYZh{-webkit-box-align:center;-ms-flex-align:center;align-items:center}._1yu-Lc{-webkit-box-align:start;-ms-flex-align:start;align-items:start}.wMQW3S{-webkit-box-align:end;-ms-flex-align:end;align-items:end}.pW3b5B{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}._1prRSA{-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline}}@media (min-width:700px){._44IDPW{-webkit-box-align:center;-ms-flex-align:center;align-items:center}._2AP6r_{-webkit-box-align:start;-ms-flex-align:start;align-items:start}._1BBcE_{-webkit-box-align:end;-ms-flex-align:end;align-items:end}._1Lv_lm{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}._1fMkeb{-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline}}@media (min-width:880px){._3wNsry{-webkit-box-align:center;-ms-flex-align:center;align-items:center}._1QG5jh{-webkit-box-align:start;-ms-flex-align:start;align-items:start}._21PrAO{-webkit-box-align:end;-ms-flex-align:end;align-items:end}._3zOGJn{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}._1gnTEJ{-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline}}@media (min-width:1200px){.ePxzTG{-webkit-box-align:center;-ms-flex-align:center;align-items:center}._2HJ29S{-webkit-box-align:start;-ms-flex-align:start;align-items:start}._2hnsNI{-webkit-box-align:end;-ms-flex-align:end;align-items:end}._2lCZwy{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}._1juEXh{-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline}}@media (min-width:1900px){.nEAyoT{-webkit-box-align:center;-ms-flex-align:center;align-items:center}._2Edznx{-webkit-box-align:start;-ms-flex-align:start;align-items:start}._2YoGID{-webkit-box-align:end;-ms-flex-align:end;align-items:end}._3q0FuG{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}._1eMDtF{-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline}}._180uXD{justify-items:stretch}._3ZqB_F{justify-items:center}.ctOm0o{justify-items:start}.Ya0UyE{justify-items:end}@media (min-width:400px){._3uK5Jw{justify-items:stretch}._1XXOcV{justify-items:center}._2jHLc0{justify-items:start}._166Zje{justify-items:end}}@media (min-width:700px){._5k_mKE{justify-items:stretch}._3ON3H9{justify-items:center}._2m3ovj{justify-items:start}.FyDA8v{justify-items:end}}@media (min-width:880px){._2nHZHD{justify-items:stretch}._3iI_Xb{justify-items:center}._3uLUuN{justify-items:start}._2-psLl{justify-items:end}}@media (min-width:1200px){._3fxN8H{justify-items:stretch}._3S7t6m{justify-items:center}._1xmoyO{justify-items:start}._2t1X9J{justify-items:end}}@media (min-width:1900px){.ffV0aM{justify-items:stretch}.mrt4_2{justify-items:center}._3y0Zid{justify-items:start}._2f0AFj{justify-items:end}}.BaHcER{grid-template-columns:var(--columns)}@media (min-width:400px){._22-pFs{grid-template-columns:var(--columns-narrow-l)}}@media (min-width:700px){._2u4ySh{grid-template-columns:var(--columns-medium-s)}}@media (min-width:880px){._1OvDoW{grid-template-columns:var(--columns-medium-l)}}@media (min-width:1200px){.qjgCNQ{grid-template-columns:var(--columns-wide-s)}}@media (min-width:1900px){._18U3NI{grid-template-columns:var(--columns-wide-l)}}";
4
4
  var styles = {__id:"/home/jenkins/workspace/design-system_main/packages/web-core/src/layout/style/index.module.less",__css:css_248z,"LayoutFlex":"_15uGWh","LayoutFlex--nowrap":"_3rnoor","LayoutFlex--inline":"_1_IXQm","LayoutFlex--row-fwd":"X4eHUe","LayoutFlex--row-rev":"_3_M_4w","LayoutFlex--column-fwd":"_2ByMq1","LayoutFlex--column-rev":"_3_8VIk","LayoutFlex--direction-column":"TeMu3z","LayoutFlex--direction-column-reverse":"_2JjQiK","LayoutFlex--direction-row":"_1o4EVj","LayoutFlex--direction-row-reverse":"_24jMtt","LayoutFlex--narrow-l--direction-column":"_1RG37V","LayoutFlex--narrow-l--direction-column-reverse":"_3Rxyiw","LayoutFlex--narrow-l--direction-row":"_8jyTaM","LayoutFlex--narrow-l--direction-row-reverse":"_1t_3rz","LayoutFlex--medium-s--direction-column":"_1dYvLd","LayoutFlex--medium-s--direction-column-reverse":"_3B2cts","LayoutFlex--medium-s--direction-row":"_1V-ESa","LayoutFlex--medium-s--direction-row-reverse":"_2eL5Ug","LayoutFlex--medium-l--direction-column":"_1zHTP_","LayoutFlex--medium-l--direction-column-reverse":"_3fBIHc","LayoutFlex--medium-l--direction-row":"_2r_ktS","LayoutFlex--medium-l--direction-row-reverse":"_3RGdxW","LayoutFlex--wide-s--direction-column":"_3_7sne","LayoutFlex--wide-s--direction-column-reverse":"_3z0dTP","LayoutFlex--wide-s--direction-row":"UEEKlY","LayoutFlex--wide-s--direction-row-reverse":"hMRiH8","LayoutFlex--wide-l--direction-column":"lmSiRy","LayoutFlex--wide-l--direction-column-reverse":"_1XoMkw","LayoutFlex--wide-l--direction-row":"_19m9cA","LayoutFlex--wide-l--direction-row-reverse":"_2gCQJe","LayoutFlex--justify-content-center":"_3Aw3T1","LayoutFlex--justify-content-start":"_10X-3Q","LayoutFlex--justify-content-end":"_33a0v9","LayoutFlex--justify-content-space-between":"_3qMVGq","LayoutFlex--justify-content-space-around":"_2REBgi","LayoutFlex--justify-content-space-evenly":"_3zq1C_","LayoutFlex--narrow-l--justify-content-center":"_36Psqa","LayoutFlex--narrow-l--justify-content-start":"_3-j-w1","LayoutFlex--narrow-l--justify-content-end":"_1Lu-3E","LayoutFlex--narrow-l--justify-content-space-between":"_2VnVRQ","LayoutFlex--narrow-l--justify-content-space-around":"_1nH_hK","LayoutFlex--narrow-l--justify-content-space-evenly":"_3-_n_C","LayoutFlex--medium-s--justify-content-center":"Qf6Cla","LayoutFlex--medium-s--justify-content-start":"_6sxNQO","LayoutFlex--medium-s--justify-content-end":"ZxlLXH","LayoutFlex--medium-s--justify-content-space-between":"Cn_Bv2","LayoutFlex--medium-s--justify-content-space-around":"_1i_Qo3","LayoutFlex--medium-s--justify-content-space-evenly":"_2C1XQX","LayoutFlex--medium-l--justify-content-center":"_3o7wjp","LayoutFlex--medium-l--justify-content-start":"_1gPYrw","LayoutFlex--medium-l--justify-content-end":"_22LB-D","LayoutFlex--medium-l--justify-content-space-between":"_3MnmNN","LayoutFlex--medium-l--justify-content-space-around":"_12WcM9","LayoutFlex--medium-l--justify-content-space-evenly":"_3Pz1zS","LayoutFlex--wide-s--justify-content-center":"_3R_B9A","LayoutFlex--wide-s--justify-content-start":"_11KLzX","LayoutFlex--wide-s--justify-content-end":"_3YOo5Q","LayoutFlex--wide-s--justify-content-space-between":"HT4Jrf","LayoutFlex--wide-s--justify-content-space-around":"_3NRNH8","LayoutFlex--wide-s--justify-content-space-evenly":"_32hfui","LayoutFlex--wide-l--justify-content-center":"FQ1F3D","LayoutFlex--wide-l--justify-content-start":"c6aMED","LayoutFlex--wide-l--justify-content-end":"_3YO2K0","LayoutFlex--wide-l--justify-content-space-between":"_32nrja","LayoutFlex--wide-l--justify-content-space-around":"_2O5f5W","LayoutFlex--wide-l--justify-content-space-evenly":"LoonNj","LayoutFlex--align-items-center":"hUFwKI","LayoutFlex--align-items-start":"_1BOjPg","LayoutFlex--align-items-end":"_3AQmNs","LayoutFlex--align-items-stretch":"_3orDH1","LayoutFlex--align-items-baseline":"qh7on_","LayoutFlex--narrow-l--align-items-center":"_1mmFAl","LayoutFlex--narrow-l--align-items-start":"_10ybPf","LayoutFlex--narrow-l--align-items-end":"_3Gldvl","LayoutFlex--narrow-l--align-items-stretch":"iA36V8","LayoutFlex--narrow-l--align-items-baseline":"_-6GZ3C","LayoutFlex--medium-s--align-items-center":"o5yv5p","LayoutFlex--medium-s--align-items-start":"_3SIoEN","LayoutFlex--medium-s--align-items-end":"_3LKoyS","LayoutFlex--medium-s--align-items-stretch":"_18CZ6Z","LayoutFlex--medium-s--align-items-baseline":"-nZAw3","LayoutFlex--medium-l--align-items-center":"AQDorR","LayoutFlex--medium-l--align-items-start":"_34BfZ_","LayoutFlex--medium-l--align-items-end":"_3iylCj","LayoutFlex--medium-l--align-items-stretch":"Z1VCoB","LayoutFlex--medium-l--align-items-baseline":"_3dtfdr","LayoutFlex--wide-s--align-items-center":"_1Ks9s5","LayoutFlex--wide-s--align-items-start":"_34ZJYW","LayoutFlex--wide-s--align-items-end":"_2pqScu","LayoutFlex--wide-s--align-items-stretch":"vkNyz8","LayoutFlex--wide-s--align-items-baseline":"_7Y7qo5","LayoutFlex--wide-l--align-items-center":"_1CEGxp","LayoutFlex--wide-l--align-items-start":"_2ZDTru","LayoutFlex--wide-l--align-items-end":"_1vx6fg","LayoutFlex--wide-l--align-items-stretch":"_25WgaN","LayoutFlex--wide-l--align-items-baseline":"_2oMAvk","LayoutGrid":"_1C0eq8","LayoutGrid--justify-content-center":"_25SpXB","LayoutGrid--justify-content-start":"_3GDeqz","LayoutGrid--justify-content-end":"_2-jaGe","LayoutGrid--justify-content-space-between":"_3lGct7","LayoutGrid--justify-content-space-around":"_2wHTdX","LayoutGrid--justify-content-space-evenly":"_1BVKaN","LayoutGrid--narrow-l--justify-content-center":"_1T-lc4","LayoutGrid--narrow-l--justify-content-start":"_2J4CPL","LayoutGrid--narrow-l--justify-content-end":"_2Aft_c","LayoutGrid--narrow-l--justify-content-space-between":"dBFosZ","LayoutGrid--narrow-l--justify-content-space-around":"_1fCiiM","LayoutGrid--narrow-l--justify-content-space-evenly":"lbx7YH","LayoutGrid--medium-s--justify-content-center":"xXHa2D","LayoutGrid--medium-s--justify-content-start":"_2tus7T","LayoutGrid--medium-s--justify-content-end":"_1X9yZg","LayoutGrid--medium-s--justify-content-space-between":"_2Qwy6e","LayoutGrid--medium-s--justify-content-space-around":"_2edC8M","LayoutGrid--medium-s--justify-content-space-evenly":"_3RU3b0","LayoutGrid--medium-l--justify-content-center":"_1arj0p","LayoutGrid--medium-l--justify-content-start":"_1jhiec","LayoutGrid--medium-l--justify-content-end":"_20XsA-","LayoutGrid--medium-l--justify-content-space-between":"_15WN3j","LayoutGrid--medium-l--justify-content-space-around":"_1gF4nW","LayoutGrid--medium-l--justify-content-space-evenly":"_11OeqJ","LayoutGrid--wide-s--justify-content-center":"_2JgpbG","LayoutGrid--wide-s--justify-content-start":"_2enbh4","LayoutGrid--wide-s--justify-content-end":"_36NHrt","LayoutGrid--wide-s--justify-content-space-between":"_3FRFZs","LayoutGrid--wide-s--justify-content-space-around":"_1ZsRFi","LayoutGrid--wide-s--justify-content-space-evenly":"u6FwNM","LayoutGrid--wide-l--justify-content-center":"_3LAaFJ","LayoutGrid--wide-l--justify-content-start":"bwlCap","LayoutGrid--wide-l--justify-content-end":"Cjj8pU","LayoutGrid--wide-l--justify-content-space-between":"_1tRRgp","LayoutGrid--wide-l--justify-content-space-around":"_12mrYT","LayoutGrid--wide-l--justify-content-space-evenly":"OkauQs","LayoutGrid--align-items-center":"_1nyAA2","LayoutGrid--align-items-start":"_1Xe-EI","LayoutGrid--align-items-end":"_3hQvqA","LayoutGrid--align-items-stretch":"KBSz7h","LayoutGrid--align-items-baseline":"KBW4yE","LayoutGrid--narrow-l--align-items-center":"_3hQYZh","LayoutGrid--narrow-l--align-items-start":"_1yu-Lc","LayoutGrid--narrow-l--align-items-end":"wMQW3S","LayoutGrid--narrow-l--align-items-stretch":"pW3b5B","LayoutGrid--narrow-l--align-items-baseline":"_1prRSA","LayoutGrid--medium-s--align-items-center":"_44IDPW","LayoutGrid--medium-s--align-items-start":"_2AP6r_","LayoutGrid--medium-s--align-items-end":"_1BBcE_","LayoutGrid--medium-s--align-items-stretch":"_1Lv_lm","LayoutGrid--medium-s--align-items-baseline":"_1fMkeb","LayoutGrid--medium-l--align-items-center":"_3wNsry","LayoutGrid--medium-l--align-items-start":"_1QG5jh","LayoutGrid--medium-l--align-items-end":"_21PrAO","LayoutGrid--medium-l--align-items-stretch":"_3zOGJn","LayoutGrid--medium-l--align-items-baseline":"_1gnTEJ","LayoutGrid--wide-s--align-items-center":"ePxzTG","LayoutGrid--wide-s--align-items-start":"_2HJ29S","LayoutGrid--wide-s--align-items-end":"_2hnsNI","LayoutGrid--wide-s--align-items-stretch":"_2lCZwy","LayoutGrid--wide-s--align-items-baseline":"_1juEXh","LayoutGrid--wide-l--align-items-center":"nEAyoT","LayoutGrid--wide-l--align-items-start":"_2Edznx","LayoutGrid--wide-l--align-items-end":"_2YoGID","LayoutGrid--wide-l--align-items-stretch":"_3q0FuG","LayoutGrid--wide-l--align-items-baseline":"_1eMDtF","LayoutGrid--justify-items-stretch":"_180uXD","LayoutGrid--justify-items-center":"_3ZqB_F","LayoutGrid--justify-items-start":"ctOm0o","LayoutGrid--justify-items-end":"Ya0UyE","LayoutGrid--narrow-l--justify-items-stretch":"_3uK5Jw","LayoutGrid--narrow-l--justify-items-center":"_1XXOcV","LayoutGrid--narrow-l--justify-items-start":"_2jHLc0","LayoutGrid--narrow-l--justify-items-end":"_166Zje","LayoutGrid--medium-s--justify-items-stretch":"_5k_mKE","LayoutGrid--medium-s--justify-items-center":"_3ON3H9","LayoutGrid--medium-s--justify-items-start":"_2m3ovj","LayoutGrid--medium-s--justify-items-end":"FyDA8v","LayoutGrid--medium-l--justify-items-stretch":"_2nHZHD","LayoutGrid--medium-l--justify-items-center":"_3iI_Xb","LayoutGrid--medium-l--justify-items-start":"_3uLUuN","LayoutGrid--medium-l--justify-items-end":"_2-psLl","LayoutGrid--wide-s--justify-items-stretch":"_3fxN8H","LayoutGrid--wide-s--justify-items-center":"_3S7t6m","LayoutGrid--wide-s--justify-items-start":"_1xmoyO","LayoutGrid--wide-s--justify-items-end":"_2t1X9J","LayoutGrid--wide-l--justify-items-stretch":"ffV0aM","LayoutGrid--wide-l--justify-items-center":"mrt4_2","LayoutGrid--wide-l--justify-items-start":"_3y0Zid","LayoutGrid--wide-l--justify-items-end":"_2f0AFj","LayoutGrid--columns":"BaHcER","LayoutGrid--columns-narrow-l":"_22-pFs","LayoutGrid--columns-medium-s":"_2u4ySh","LayoutGrid--columns-medium-l":"_1OvDoW","LayoutGrid--columns-wide-s":"qjgCNQ","LayoutGrid--columns-wide-l":"_18U3NI"};
5
5
  var stylesheet=css_248z;
6
6
  styleInject(css_248z);
@@ -0,0 +1,8 @@
1
+ .layout-tag() {
2
+ margin: 0;
3
+ list-style: none;
4
+ font-weight: inherit;
5
+ border: none;
6
+ text-align: inherit;
7
+ border-spacing: 0;
8
+ }
@@ -0,0 +1,8 @@
1
+ import styleInject from '../../external/style-inject/dist/style-inject.es.js';
2
+
3
+ var css_248z = "";
4
+ var stylesheet="";
5
+ styleInject(css_248z);
6
+
7
+ export { css_248z as default, stylesheet };
8
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjpudWxsLCJzb3VyY2VzIjpbbnVsbF0sInNvdXJjZXNDb250ZW50IjpbbnVsbF0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLHdCQUF3QixxREFBeUQ7QUFDakY7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOyJ9
@@ -37,16 +37,20 @@
37
37
  });
38
38
  }
39
39
 
40
+ .text-variant(@text-variant) {
41
+ @token: 'variant-@{text-variant}';
42
+ .font-size('text', @token);
43
+ .font-weight('text', @token);
44
+ .line-height('text', @token);
45
+ .letter-spacing('text', @token);
46
+ .font-style('text', @token);
47
+ }
48
+
40
49
  .text-variants() {
41
50
  .responsive({
42
51
  each(@TEXT_VARIANT_OPTIONS, {
43
52
  &--variant-@{value} {
44
- @token: 'variant-@{value}';
45
- .font-size('text', @token);
46
- .font-weight('text', @token);
47
- .line-height('text', @token);
48
- .letter-spacing('text', @token);
49
- .font-style('text', @token)
53
+ .text-variant(@value);
50
54
  }
51
55
  });
52
56
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@preply/ds-web-core",
3
- "version": "0.45.0",
3
+ "version": "0.47.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -19,14 +19,14 @@
19
19
  "dev": "run build:rollup -w"
20
20
  },
21
21
  "dependencies": {
22
- "@preply/ds-core": "0.45.0",
23
- "@preply/ds-core-types": "0.45.0"
22
+ "@preply/ds-core": "0.47.0",
23
+ "@preply/ds-core-types": "0.47.0"
24
24
  },
25
25
  "peerDependencies": {
26
- "@preply/ds-core": "0.45.0",
27
- "@preply/ds-core-types": "0.45.0",
26
+ "@preply/ds-core": "0.47.0",
27
+ "@preply/ds-core-types": "0.47.0",
28
28
  "react": "^16.8.3",
29
29
  "react-dom": "^16.8.3"
30
30
  },
31
- "gitHead": "03d6ddbd1905f16d4ab455162cd178410904a8bd"
31
+ "gitHead": "9c70f1ccd45196cc6e404e1d4f59ebfe90f33e9d"
32
32
  }