@salutejs/plasma-new-hope 0.197.0-canary.1572.11971256317.0 → 0.197.0-canary.1588.11972699441.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Autocomplete/Autocomplete.css +2 -1
- package/cjs/components/Calendar/CalendarBase/CalendarBase.js +1 -1
- package/cjs/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
- package/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +1 -1
- package/cjs/components/Calendar/CalendarDouble/CalendarDouble.js.map +1 -1
- package/cjs/components/Calendar/store/reducer.js +2 -2
- package/cjs/components/Calendar/store/reducer.js.map +1 -1
- package/cjs/components/Combobox/ComboboxNew/Combobox.css +2 -1
- package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.css +2 -1
- package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +2 -1
- package/cjs/components/DatePicker/RangeDate/RangeDate.css +2 -1
- package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +2 -1
- package/cjs/components/DatePicker/SingleDate/SingleDate.css +2 -1
- package/cjs/components/Pagination/Pagination.css +2 -1
- package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +2 -1
- package/cjs/components/Range/Range.css +2 -1
- package/cjs/components/Select/Select.css +2 -1
- package/cjs/components/Select/ui/Inner/Inner.css +2 -1
- package/cjs/components/Select/ui/Inner/ui/Item/Item.css +2 -1
- package/cjs/components/Select/ui/Target/Target.css +2 -1
- package/cjs/components/Select/ui/Target/Target.js +2 -1
- package/cjs/components/Select/ui/Target/Target.js.map +1 -1
- package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.css +2 -1
- package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +4 -2
- package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
- package/cjs/components/Slider/Slider.css +2 -1
- package/cjs/components/Slider/components/Double/Double.css +2 -1
- package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +2 -1
- package/cjs/components/TextField/TextField.js +7 -4
- package/cjs/components/TextField/TextField.js.map +1 -1
- package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.css +2 -1
- package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +17 -3
- package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js.map +1 -1
- package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +7 -1
- package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js.map +1 -1
- package/cjs/components/TextField/ui/TextFieldChip/{TextFieldChip.styles_1y8n7la.css → TextFieldChip.styles_1yosnxc.css} +1 -0
- package/cjs/components/Typography/Body/Body.css +1 -1
- package/cjs/components/Typography/Old/Button/Button.css +1 -1
- package/cjs/components/Typography/Old/Paragraph/Paragraph.css +1 -1
- package/cjs/components/Typography/Old/Paragraph/Paragraph.styles.js +1 -1
- package/cjs/components/Typography/Old/Paragraph/Paragraph.styles.js.map +1 -1
- package/{es/components/Typography/Old/Paragraph/Paragraph.styles_179bahu.css → cjs/components/Typography/Old/Paragraph/Paragraph.styles_f6q9s8.css} +1 -1
- package/cjs/components/Typography/Old/Subtitle/Subtitle.css +1 -1
- package/cjs/components/Typography/Old/Subtitle/Subtitle.js +7 -1
- package/cjs/components/Typography/Old/Subtitle/Subtitle.js.map +1 -1
- package/cjs/components/Typography/Old/Subtitle/Subtitle.styles.js +1 -1
- package/cjs/components/Typography/Old/Subtitle/Subtitle.styles.js.map +1 -1
- package/{es/components/Typography/Old/Subtitle/Subtitle.styles_1plleej.css → cjs/components/Typography/Old/Subtitle/Subtitle.styles_g6d0r2.css} +1 -1
- package/cjs/components/Typography/Old/TypographyOld.js +4 -2
- package/cjs/components/Typography/Old/TypographyOld.js.map +1 -1
- package/cjs/components/Typography/Old/TypographyOld.styles.js +1 -1
- package/cjs/components/Typography/Old/TypographyOld.styles.js.map +1 -1
- package/{es/components/Typography/Old/TypographyOld.styles_17w0rtq.css → cjs/components/Typography/Old/TypographyOld.styles_168abbx.css} +1 -1
- package/cjs/components/Typography/Old/Underline/Underline.css +1 -1
- package/cjs/components/Typography/Old/Underline/Underline.styles.js +1 -1
- package/cjs/components/Typography/Old/Underline/Underline.styles.js.map +1 -1
- package/cjs/components/Typography/Old/Underline/{Underline.styles_vsz834.css → Underline.styles_1x2vb5e.css} +1 -1
- package/cjs/components/Typography/Typography.js +4 -2
- package/cjs/components/Typography/Typography.js.map +1 -1
- package/cjs/components/Typography/Typography.styles.js +1 -1
- package/cjs/components/Typography/Typography.styles.js.map +1 -1
- package/cjs/components/Typography/{Typography.styles_6mr47g.css → Typography.styles_fa07dt.css} +1 -1
- package/cjs/components/Typography/tokens.js +1 -0
- package/cjs/components/Typography/tokens.js.map +1 -1
- package/cjs/index.css +7 -6
- package/emotion/cjs/components/Calendar/CalendarBase/CalendarBase.js +1 -1
- package/emotion/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +1 -1
- package/emotion/cjs/components/Calendar/store/reducer.js +2 -2
- package/emotion/cjs/components/Select/ui/Target/Target.js +2 -1
- package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +4 -2
- package/emotion/cjs/components/TextField/TextField.js +8 -5
- package/emotion/cjs/components/TextField/TextField.template-doc.mdx +13 -3
- package/emotion/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +17 -3
- package/emotion/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +12 -3
- package/emotion/cjs/components/Typography/Old/Paragraph/Paragraph.styles.js +1 -1
- package/emotion/cjs/components/Typography/Old/Subtitle/Subtitle.js +7 -1
- package/emotion/cjs/components/Typography/Old/Subtitle/Subtitle.styles.js +1 -1
- package/emotion/cjs/components/Typography/Old/TypographyOld.js +4 -2
- package/emotion/cjs/components/Typography/Old/TypographyOld.styles.js +1 -1
- package/emotion/cjs/components/Typography/Old/Underline/Underline.styles.js +1 -1
- package/emotion/cjs/components/Typography/Typography.js +4 -2
- package/emotion/cjs/components/Typography/Typography.styles.js +1 -1
- package/emotion/cjs/components/Typography/Typography.template-doc.mdx +4 -0
- package/emotion/cjs/components/Typography/tokens.js +1 -0
- package/emotion/cjs/examples/plasma_b2c/components/Select/Select.stories.tsx +8 -1
- package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +10 -0
- package/emotion/cjs/examples/plasma_web/components/Select/Select.stories.tsx +8 -1
- package/emotion/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +10 -0
- package/emotion/cjs/examples/typograpy/components/Body/Body.stories.tsx +9 -1
- package/emotion/cjs/examples/typograpy/components/Dspl/Dspl.stories.tsx +9 -1
- package/emotion/cjs/examples/typograpy/components/Heading/Heading.stories.tsx +9 -1
- package/emotion/cjs/examples/typograpy/components/Old/Body/Body.stories.tsx +9 -1
- package/emotion/cjs/examples/typograpy/components/Old/Button/Button.stories.tsx +9 -1
- package/emotion/cjs/examples/typograpy/components/Old/Caption/Caption.stories.tsx +9 -1
- package/emotion/cjs/examples/typograpy/components/Old/Display/Display.stories.tsx +9 -1
- package/emotion/cjs/examples/typograpy/components/Old/Footnote/Footnote.stories.tsx +9 -1
- package/emotion/cjs/examples/typograpy/components/Old/Headline/Headline.stories.tsx +9 -1
- package/emotion/cjs/examples/typograpy/components/Old/Paragraph/Paragraph.stories.tsx +9 -1
- package/emotion/cjs/examples/typograpy/components/Old/Subtitle/Subtitle.stories.tsx +11 -1
- package/emotion/cjs/examples/typograpy/components/Old/Underline/Underline.stories.tsx +9 -1
- package/emotion/cjs/examples/typograpy/components/Text/Text.stories.tsx +9 -1
- package/emotion/es/components/Calendar/CalendarBase/CalendarBase.js +1 -1
- package/emotion/es/components/Calendar/CalendarDouble/CalendarDouble.js +1 -1
- package/emotion/es/components/Calendar/store/reducer.js +2 -2
- package/emotion/es/components/Select/ui/Target/Target.js +2 -1
- package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.js +4 -2
- package/emotion/es/components/TextField/TextField.js +8 -5
- package/emotion/es/components/TextField/TextField.template-doc.mdx +13 -3
- package/emotion/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +18 -4
- package/emotion/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +11 -2
- package/emotion/es/components/Typography/Old/Paragraph/Paragraph.styles.js +1 -1
- package/emotion/es/components/Typography/Old/Subtitle/Subtitle.js +7 -1
- package/emotion/es/components/Typography/Old/Subtitle/Subtitle.styles.js +2 -2
- package/emotion/es/components/Typography/Old/TypographyOld.js +4 -2
- package/emotion/es/components/Typography/Old/TypographyOld.styles.js +1 -1
- package/emotion/es/components/Typography/Old/Underline/Underline.styles.js +1 -1
- package/emotion/es/components/Typography/Typography.js +4 -2
- package/emotion/es/components/Typography/Typography.styles.js +1 -1
- package/emotion/es/components/Typography/Typography.template-doc.mdx +4 -0
- package/emotion/es/components/Typography/tokens.js +1 -0
- package/emotion/es/examples/plasma_b2c/components/Select/Select.stories.tsx +8 -1
- package/emotion/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +10 -0
- package/emotion/es/examples/plasma_web/components/Select/Select.stories.tsx +8 -1
- package/emotion/es/examples/plasma_web/components/TextField/TextField.stories.tsx +10 -0
- package/emotion/es/examples/typograpy/components/Body/Body.stories.tsx +9 -1
- package/emotion/es/examples/typograpy/components/Dspl/Dspl.stories.tsx +9 -1
- package/emotion/es/examples/typograpy/components/Heading/Heading.stories.tsx +9 -1
- package/emotion/es/examples/typograpy/components/Old/Body/Body.stories.tsx +9 -1
- package/emotion/es/examples/typograpy/components/Old/Button/Button.stories.tsx +9 -1
- package/emotion/es/examples/typograpy/components/Old/Caption/Caption.stories.tsx +9 -1
- package/emotion/es/examples/typograpy/components/Old/Display/Display.stories.tsx +9 -1
- package/emotion/es/examples/typograpy/components/Old/Footnote/Footnote.stories.tsx +9 -1
- package/emotion/es/examples/typograpy/components/Old/Headline/Headline.stories.tsx +9 -1
- package/emotion/es/examples/typograpy/components/Old/Paragraph/Paragraph.stories.tsx +9 -1
- package/emotion/es/examples/typograpy/components/Old/Subtitle/Subtitle.stories.tsx +11 -1
- package/emotion/es/examples/typograpy/components/Old/Underline/Underline.stories.tsx +9 -1
- package/emotion/es/examples/typograpy/components/Text/Text.stories.tsx +9 -1
- package/es/components/Autocomplete/Autocomplete.css +2 -1
- package/es/components/Calendar/CalendarBase/CalendarBase.js +1 -1
- package/es/components/Calendar/CalendarBase/CalendarBase.js.map +1 -1
- package/es/components/Calendar/CalendarDouble/CalendarDouble.js +1 -1
- package/es/components/Calendar/CalendarDouble/CalendarDouble.js.map +1 -1
- package/es/components/Calendar/store/reducer.js +2 -2
- package/es/components/Calendar/store/reducer.js.map +1 -1
- package/es/components/Combobox/ComboboxNew/Combobox.css +2 -1
- package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.css +2 -1
- package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +2 -1
- package/es/components/DatePicker/RangeDate/RangeDate.css +2 -1
- package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +2 -1
- package/es/components/DatePicker/SingleDate/SingleDate.css +2 -1
- package/es/components/Pagination/Pagination.css +2 -1
- package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +2 -1
- package/es/components/Range/Range.css +2 -1
- package/es/components/Select/Select.css +2 -1
- package/es/components/Select/ui/Inner/Inner.css +2 -1
- package/es/components/Select/ui/Inner/ui/Item/Item.css +2 -1
- package/es/components/Select/ui/Target/Target.css +2 -1
- package/es/components/Select/ui/Target/Target.js +2 -1
- package/es/components/Select/ui/Target/Target.js.map +1 -1
- package/es/components/Select/ui/Target/ui/Textfield/Textfield.css +2 -1
- package/es/components/Select/ui/Target/ui/Textfield/Textfield.js +4 -2
- package/es/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
- package/es/components/Slider/Slider.css +2 -1
- package/es/components/Slider/components/Double/Double.css +2 -1
- package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +2 -1
- package/es/components/TextField/TextField.js +7 -4
- package/es/components/TextField/TextField.js.map +1 -1
- package/es/components/TextField/ui/TextFieldChip/TextFieldChip.css +2 -1
- package/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +18 -4
- package/es/components/TextField/ui/TextFieldChip/TextFieldChip.js.map +1 -1
- package/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +7 -2
- package/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js.map +1 -1
- package/es/components/TextField/ui/TextFieldChip/{TextFieldChip.styles_1y8n7la.css → TextFieldChip.styles_1yosnxc.css} +1 -0
- package/es/components/Typography/Body/Body.css +1 -1
- package/es/components/Typography/Old/Button/Button.css +1 -1
- package/es/components/Typography/Old/Paragraph/Paragraph.css +1 -1
- package/es/components/Typography/Old/Paragraph/Paragraph.styles.js +1 -1
- package/es/components/Typography/Old/Paragraph/Paragraph.styles.js.map +1 -1
- package/{cjs/components/Typography/Old/Paragraph/Paragraph.styles_179bahu.css → es/components/Typography/Old/Paragraph/Paragraph.styles_f6q9s8.css} +1 -1
- package/es/components/Typography/Old/Subtitle/Subtitle.css +1 -1
- package/es/components/Typography/Old/Subtitle/Subtitle.js +7 -1
- package/es/components/Typography/Old/Subtitle/Subtitle.js.map +1 -1
- package/es/components/Typography/Old/Subtitle/Subtitle.styles.js +1 -1
- package/es/components/Typography/Old/Subtitle/Subtitle.styles.js.map +1 -1
- package/{cjs/components/Typography/Old/Subtitle/Subtitle.styles_1plleej.css → es/components/Typography/Old/Subtitle/Subtitle.styles_g6d0r2.css} +1 -1
- package/es/components/Typography/Old/TypographyOld.js +4 -2
- package/es/components/Typography/Old/TypographyOld.js.map +1 -1
- package/es/components/Typography/Old/TypographyOld.styles.js +1 -1
- package/es/components/Typography/Old/TypographyOld.styles.js.map +1 -1
- package/{cjs/components/Typography/Old/TypographyOld.styles_17w0rtq.css → es/components/Typography/Old/TypographyOld.styles_168abbx.css} +1 -1
- package/es/components/Typography/Old/Underline/Underline.css +1 -1
- package/es/components/Typography/Old/Underline/Underline.styles.js +1 -1
- package/es/components/Typography/Old/Underline/Underline.styles.js.map +1 -1
- package/es/components/Typography/Old/Underline/{Underline.styles_vsz834.css → Underline.styles_1x2vb5e.css} +1 -1
- package/es/components/Typography/Typography.js +4 -2
- package/es/components/Typography/Typography.js.map +1 -1
- package/es/components/Typography/Typography.styles.js +1 -1
- package/es/components/Typography/Typography.styles.js.map +1 -1
- package/es/components/Typography/{Typography.styles_6mr47g.css → Typography.styles_fa07dt.css} +1 -1
- package/es/components/Typography/tokens.js +1 -0
- package/es/components/Typography/tokens.js.map +1 -1
- package/es/index.css +7 -6
- package/package.json +2 -2
- package/styled-components/cjs/components/Calendar/CalendarBase/CalendarBase.js +1 -1
- package/styled-components/cjs/components/Calendar/CalendarDouble/CalendarDouble.js +1 -1
- package/styled-components/cjs/components/Calendar/store/reducer.js +2 -2
- package/styled-components/cjs/components/Select/ui/Target/Target.js +2 -1
- package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +4 -2
- package/styled-components/cjs/components/TextField/TextField.js +7 -4
- package/styled-components/cjs/components/TextField/TextField.template-doc.mdx +13 -3
- package/styled-components/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +17 -3
- package/styled-components/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +10 -2
- package/styled-components/cjs/components/Typography/Old/Paragraph/Paragraph.styles.js +1 -1
- package/styled-components/cjs/components/Typography/Old/Subtitle/Subtitle.js +7 -1
- package/styled-components/cjs/components/Typography/Old/Subtitle/Subtitle.styles.js +1 -1
- package/styled-components/cjs/components/Typography/Old/TypographyOld.js +4 -2
- package/styled-components/cjs/components/Typography/Old/TypographyOld.styles.js +1 -1
- package/styled-components/cjs/components/Typography/Old/Underline/Underline.styles.js +1 -1
- package/styled-components/cjs/components/Typography/Typography.js +4 -2
- package/styled-components/cjs/components/Typography/Typography.styles.js +1 -1
- package/styled-components/cjs/components/Typography/Typography.template-doc.mdx +4 -0
- package/styled-components/cjs/components/Typography/tokens.js +1 -0
- package/styled-components/cjs/examples/plasma_b2c/components/Select/Select.stories.tsx +8 -1
- package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +10 -0
- package/styled-components/cjs/examples/plasma_web/components/Select/Select.stories.tsx +8 -1
- package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +10 -0
- package/styled-components/cjs/examples/typograpy/components/Body/Body.stories.tsx +9 -1
- package/styled-components/cjs/examples/typograpy/components/Dspl/Dspl.stories.tsx +9 -1
- package/styled-components/cjs/examples/typograpy/components/Heading/Heading.stories.tsx +9 -1
- package/styled-components/cjs/examples/typograpy/components/Old/Body/Body.stories.tsx +9 -1
- package/styled-components/cjs/examples/typograpy/components/Old/Button/Button.stories.tsx +9 -1
- package/styled-components/cjs/examples/typograpy/components/Old/Caption/Caption.stories.tsx +9 -1
- package/styled-components/cjs/examples/typograpy/components/Old/Display/Display.stories.tsx +9 -1
- package/styled-components/cjs/examples/typograpy/components/Old/Footnote/Footnote.stories.tsx +9 -1
- package/styled-components/cjs/examples/typograpy/components/Old/Headline/Headline.stories.tsx +9 -1
- package/styled-components/cjs/examples/typograpy/components/Old/Paragraph/Paragraph.stories.tsx +9 -1
- package/styled-components/cjs/examples/typograpy/components/Old/Subtitle/Subtitle.stories.tsx +11 -1
- package/styled-components/cjs/examples/typograpy/components/Old/Underline/Underline.stories.tsx +9 -1
- package/styled-components/cjs/examples/typograpy/components/Text/Text.stories.tsx +9 -1
- package/styled-components/es/components/Calendar/CalendarBase/CalendarBase.js +1 -1
- package/styled-components/es/components/Calendar/CalendarDouble/CalendarDouble.js +1 -1
- package/styled-components/es/components/Calendar/store/reducer.js +2 -2
- package/styled-components/es/components/Select/ui/Target/Target.js +2 -1
- package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.js +4 -2
- package/styled-components/es/components/TextField/TextField.js +7 -4
- package/styled-components/es/components/TextField/TextField.template-doc.mdx +13 -3
- package/styled-components/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +18 -4
- package/styled-components/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +9 -1
- package/styled-components/es/components/Typography/Old/Paragraph/Paragraph.styles.js +1 -1
- package/styled-components/es/components/Typography/Old/Subtitle/Subtitle.js +7 -1
- package/styled-components/es/components/Typography/Old/Subtitle/Subtitle.styles.js +2 -2
- package/styled-components/es/components/Typography/Old/TypographyOld.js +4 -2
- package/styled-components/es/components/Typography/Old/TypographyOld.styles.js +1 -1
- package/styled-components/es/components/Typography/Old/Underline/Underline.styles.js +1 -1
- package/styled-components/es/components/Typography/Typography.js +4 -2
- package/styled-components/es/components/Typography/Typography.styles.js +1 -1
- package/styled-components/es/components/Typography/Typography.template-doc.mdx +4 -0
- package/styled-components/es/components/Typography/tokens.js +1 -0
- package/styled-components/es/examples/plasma_b2c/components/Select/Select.stories.tsx +8 -1
- package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +10 -0
- package/styled-components/es/examples/plasma_web/components/Select/Select.stories.tsx +8 -1
- package/styled-components/es/examples/plasma_web/components/TextField/TextField.stories.tsx +10 -0
- package/styled-components/es/examples/typograpy/components/Body/Body.stories.tsx +9 -1
- package/styled-components/es/examples/typograpy/components/Dspl/Dspl.stories.tsx +9 -1
- package/styled-components/es/examples/typograpy/components/Heading/Heading.stories.tsx +9 -1
- package/styled-components/es/examples/typograpy/components/Old/Body/Body.stories.tsx +9 -1
- package/styled-components/es/examples/typograpy/components/Old/Button/Button.stories.tsx +9 -1
- package/styled-components/es/examples/typograpy/components/Old/Caption/Caption.stories.tsx +9 -1
- package/styled-components/es/examples/typograpy/components/Old/Display/Display.stories.tsx +9 -1
- package/styled-components/es/examples/typograpy/components/Old/Footnote/Footnote.stories.tsx +9 -1
- package/styled-components/es/examples/typograpy/components/Old/Headline/Headline.stories.tsx +9 -1
- package/styled-components/es/examples/typograpy/components/Old/Paragraph/Paragraph.stories.tsx +9 -1
- package/styled-components/es/examples/typograpy/components/Old/Subtitle/Subtitle.stories.tsx +11 -1
- package/styled-components/es/examples/typograpy/components/Old/Underline/Underline.stories.tsx +9 -1
- package/styled-components/es/examples/typograpy/components/Text/Text.stories.tsx +9 -1
- package/types/components/Autocomplete/Autocomplete.types.d.ts +3 -2
- package/types/components/Autocomplete/Autocomplete.types.d.ts.map +1 -1
- package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts +16 -0
- package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts.map +1 -1
- package/types/components/Calendar/store/reducer.d.ts +1 -1
- package/types/components/Calendar/store/reducer.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts +16 -0
- package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts.map +1 -1
- package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts +16 -0
- package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts.map +1 -1
- package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts +6 -0
- package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts.map +1 -1
- package/types/components/Range/Range.styles.d.ts +16 -0
- package/types/components/Range/Range.styles.d.ts.map +1 -1
- package/types/components/Select/Select.types.d.ts +5 -0
- package/types/components/Select/Select.types.d.ts.map +1 -1
- package/types/components/Select/ui/Target/Target.d.ts +1 -1
- package/types/components/Select/ui/Target/Target.d.ts.map +1 -1
- package/types/components/Select/ui/Target/Target.types.d.ts +1 -1
- package/types/components/Select/ui/Target/Target.types.d.ts.map +1 -1
- package/types/components/Select/ui/Target/ui/Textfield/Textfield.d.ts.map +1 -1
- package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts +16 -0
- package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts.map +1 -1
- package/types/components/Select/ui/Target/ui/Textfield/Textfield.types.d.ts +1 -1
- package/types/components/Select/ui/Target/ui/Textfield/Textfield.types.d.ts.map +1 -1
- package/types/components/Slider/components/Double/Double.styles.d.ts +16 -0
- package/types/components/Slider/components/Double/Double.styles.d.ts.map +1 -1
- package/types/components/TextField/TextField.d.ts.map +1 -1
- package/types/components/TextField/TextField.types.d.ts +8 -0
- package/types/components/TextField/TextField.types.d.ts.map +1 -1
- package/types/components/TextField/ui/TextFieldChip/TextFieldChip.d.ts.map +1 -1
- package/types/components/TextField/ui/TextFieldChip/TextFieldChip.styles.d.ts +1 -0
- package/types/components/TextField/ui/TextFieldChip/TextFieldChip.styles.d.ts.map +1 -1
- package/types/components/TextField/ui/TextFieldChip/TextFieldChip.types.d.ts +5 -1
- package/types/components/TextField/ui/TextFieldChip/TextFieldChip.types.d.ts.map +1 -1
- package/types/components/Typography/Body/Body.d.ts +2 -0
- package/types/components/Typography/Body/Body.d.ts.map +1 -1
- package/types/components/Typography/Dspl/Dspl.d.ts +2 -0
- package/types/components/Typography/Dspl/Dspl.d.ts.map +1 -1
- package/types/components/Typography/Heading/Heading.d.ts +2 -0
- package/types/components/Typography/Heading/Heading.d.ts.map +1 -1
- package/types/components/Typography/Old/Paragraph/Paragraph.styles.d.ts.map +1 -1
- package/types/components/Typography/Old/Subtitle/Subtitle.d.ts.map +1 -1
- package/types/components/Typography/Old/Subtitle/Subtitle.styles.d.ts.map +1 -1
- package/types/components/Typography/Old/TypographyOld.d.ts.map +1 -1
- package/types/components/Typography/Old/TypographyOld.styles.d.ts.map +1 -1
- package/types/components/Typography/Old/Underline/Underline.styles.d.ts.map +1 -1
- package/types/components/Typography/Text/Text.d.ts +2 -0
- package/types/components/Typography/Text/Text.d.ts.map +1 -1
- package/types/components/Typography/Typography.d.ts +1 -0
- package/types/components/Typography/Typography.d.ts.map +1 -1
- package/types/components/Typography/Typography.styles.d.ts.map +1 -1
- package/types/components/Typography/Typography.types.d.ts +1 -0
- package/types/components/Typography/Typography.types.d.ts.map +1 -1
- package/types/components/Typography/tokens.d.ts +1 -0
- package/types/components/Typography/tokens.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Autocomplete/Autocomplete.d.ts +553 -3
- package/types/examples/plasma_b2c/components/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Editable/Editable.d.ts +4 -0
- package/types/examples/plasma_b2c/components/Editable/Editable.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Mask/Mask.d.ts +16 -0
- package/types/examples/plasma_b2c/components/Mask/Mask.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Select/Select.d.ts +6 -0
- package/types/examples/plasma_b2c/components/Select/Select.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/TextField/TextField.d.ts +16 -0
- package/types/examples/plasma_b2c/components/TextField/TextField.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Autocomplete/Autocomplete.d.ts +553 -3
- package/types/examples/plasma_web/components/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Editable/Editable.d.ts +4 -0
- package/types/examples/plasma_web/components/Editable/Editable.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Mask/Mask.d.ts +16 -0
- package/types/examples/plasma_web/components/Mask/Mask.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Select/Select.d.ts +6 -0
- package/types/examples/plasma_web/components/Select/Select.d.ts.map +1 -1
- package/types/examples/plasma_web/components/TextField/TextField.d.ts +16 -0
- package/types/examples/plasma_web/components/TextField/TextField.d.ts.map +1 -1
- package/types/examples/typograpy/components/Body/Body.d.ts +1 -0
- package/types/examples/typograpy/components/Body/Body.d.ts.map +1 -1
- package/types/examples/typograpy/components/Dspl/Dspl.d.ts +1 -0
- package/types/examples/typograpy/components/Dspl/Dspl.d.ts.map +1 -1
- package/types/examples/typograpy/components/Heading/Heading.d.ts +1 -0
- package/types/examples/typograpy/components/Heading/Heading.d.ts.map +1 -1
- package/types/examples/typograpy/components/Text/Text.d.ts +1 -0
- package/types/examples/typograpy/components/Text/Text.d.ts.map +1 -1
@@ -62,7 +62,7 @@ export function App() {
|
|
62
62
|
```
|
63
63
|
|
64
64
|
### Статус поля
|
65
|
-
Статус поля задается с помощью свойства `status`.
|
65
|
+
Статус поля задается с помощью свойства `status`.
|
66
66
|
Возможные значения свойства: `success`, `warning` и `error`.
|
67
67
|
На отображение TextField так же влияют свойства `clear` и `hasDivider`:
|
68
68
|
|
@@ -150,7 +150,7 @@ export function App() {
|
|
150
150
|
```
|
151
151
|
|
152
152
|
### Режим ввода
|
153
|
-
С помощью свойства `enumerationType` можно вводить элементы как теги.
|
153
|
+
С помощью свойства `enumerationType` можно вводить элементы как теги. Свойство `chipType` изменяет внешний вид чипа.
|
154
154
|
По нажатию Enter, после ввода нужного текста, он преобразуется в Chip:
|
155
155
|
|
156
156
|
```tsx live
|
@@ -166,7 +166,17 @@ export function App() {
|
|
166
166
|
size="l"
|
167
167
|
enumerationType="chip"
|
168
168
|
helperText="Подсказка снизу"
|
169
|
-
|
169
|
+
chips={["Значение 1"]}
|
170
|
+
/>
|
171
|
+
|
172
|
+
<TextField
|
173
|
+
placeholder="Введите значение"
|
174
|
+
defaultValue="Значение"
|
175
|
+
size="l"
|
176
|
+
enumerationType="chip"
|
177
|
+
helperText="Подсказка снизу"
|
178
|
+
chips={["Значение 1"]}
|
179
|
+
chipType="text"
|
170
180
|
/>
|
171
181
|
</div>
|
172
182
|
);
|
@@ -20,14 +20,23 @@ var TextFieldChip = exports.TextFieldChip = /*#__PURE__*/(0, _react.forwardRef)(
|
|
20
20
|
onClick = _ref.onClick,
|
21
21
|
onClear = _ref.onClear,
|
22
22
|
onKeyDown = _ref.onKeyDown,
|
23
|
-
_forceChipManipulationWithReadonly = _ref._forceChipManipulationWithReadonly
|
23
|
+
_forceChipManipulationWithReadonly = _ref._forceChipManipulationWithReadonly,
|
24
|
+
chipType = _ref.chipType;
|
24
25
|
var onClearHandle = function onClearHandle() {
|
25
26
|
return onClear(id);
|
26
27
|
};
|
27
28
|
var onKeyDownHandle = function onKeyDownHandle(event) {
|
28
29
|
onKeyDown === null || onKeyDown === void 0 || onKeyDown(event, id);
|
29
30
|
};
|
30
|
-
|
31
|
+
var handleClick = function handleClick(e) {
|
32
|
+
if (onClick) {
|
33
|
+
onClick(e);
|
34
|
+
}
|
35
|
+
if (onClear) {
|
36
|
+
onClear(id);
|
37
|
+
}
|
38
|
+
};
|
39
|
+
return chipType === 'default' ? /*#__PURE__*/_react["default"].createElement(_TextFieldChip.StyledChip, {
|
31
40
|
ref: ref,
|
32
41
|
tabIndex: -1,
|
33
42
|
disabled: disabled,
|
@@ -41,5 +50,10 @@ var TextFieldChip = exports.TextFieldChip = /*#__PURE__*/(0, _react.forwardRef)(
|
|
41
50
|
// @ts-ignore
|
42
51
|
,
|
43
52
|
_forceChipManipulationWithReadonly: _forceChipManipulationWithReadonly
|
44
|
-
})
|
53
|
+
}) : /*#__PURE__*/_react["default"].createElement(_TextFieldChip.TextChip, {
|
54
|
+
ref: ref,
|
55
|
+
tabIndex: -1,
|
56
|
+
onClick: handleClick,
|
57
|
+
onKeyDown: onKeyDownHandle
|
58
|
+
}, text);
|
45
59
|
});
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.StyledChip = void 0;
|
6
|
+
exports.TextChip = exports.StyledChip = void 0;
|
7
7
|
var _styledComponents = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("styled-components"));
|
8
8
|
var _Chip = /*#__PURE__*/require("../../../Chip");
|
9
9
|
var _engines = /*#__PURE__*/require("../../../../engines");
|
@@ -22,4 +22,12 @@ var StyledChip = exports.StyledChip = /*#__PURE__*/(0, _styledComponents["defaul
|
|
22
22
|
outlineSize: '0.0625rem',
|
23
23
|
outlineRadius: /*#__PURE__*/"calc(var(".concat(_TextField.tokens.chipBorderRadius, ") - 0.1rem)"),
|
24
24
|
outlineColor: /*#__PURE__*/"var(".concat(_TextField.tokens.focusColor, ")")
|
25
|
-
}), _TextField.tokens.chipOpacityReadonly);
|
25
|
+
}), _TextField.tokens.chipOpacityReadonly);
|
26
|
+
var TextChip = exports.TextChip = /*#__PURE__*/_styledComponents["default"].button.withConfig({
|
27
|
+
componentId: "plasma-new-hope__sc-1mypbcr-1"
|
28
|
+
})(["display:block;flex:none;background:none;border:none;outline:none;padding:0;white-space:nowrap;cursor:pointer;font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");color:var(", ");", " &:after{content:',';}&:last-child{&:after{content:'';}}"], _TextField.tokens.fontFamily, _TextField.tokens.fontSize, _TextField.tokens.fontStyle, _TextField.tokens.fontWeight, _TextField.tokens.letterSpacing, _TextField.tokens.lineHeight, _TextField.tokens.color, /*#__PURE__*/(0, _mixins.addFocus)({
|
29
|
+
outlineOffset: '0.0625rem',
|
30
|
+
outlineSize: '0.0625rem',
|
31
|
+
outlineRadius: /*#__PURE__*/"calc(var(".concat(_TextField.tokens.chipBorderRadius, ") - 0.1rem)"),
|
32
|
+
outlineColor: /*#__PURE__*/"var(".concat(_TextField.tokens.focusColor, ")")
|
33
|
+
}));
|
@@ -7,4 +7,4 @@ exports.base = void 0;
|
|
7
7
|
var _styledComponents = /*#__PURE__*/require("styled-components");
|
8
8
|
var _tokens = /*#__PURE__*/require("../../tokens");
|
9
9
|
var _mixins = /*#__PURE__*/require("../../../../mixins");
|
10
|
-
var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["font-family:var(", ");font-size:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");font-weight:var(", ");margin:0;", ";&.", "{", ";}"], _tokens.tokens.typoFontFamily, _tokens.tokens.typoFontSize, _tokens.tokens.typoFontStyle, _tokens.tokens.typoFontLetterSpacing, _tokens.tokens.typoFontLineHeight, _tokens.tokens.typoFontWeight,
|
10
|
+
var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["font-family:var(", ");font-size:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");font-weight:var(", ");margin:0;&.", "{white-space:nowrap;}", ";&.", "{", ";}"], _tokens.tokens.typoFontFamily, _tokens.tokens.typoFontSize, _tokens.tokens.typoFontStyle, _tokens.tokens.typoFontLetterSpacing, _tokens.tokens.typoFontLineHeight, _tokens.tokens.typoFontWeight, _tokens.classes.typoWithNoWrap, _mixins.applyHyphensNormal, _tokens.classes.typoWithBreakWord, _mixins.applyHyphens);
|
@@ -8,8 +8,10 @@ exports.subtitleRoot = exports.subtitleConfig = void 0;
|
|
8
8
|
var _react = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("react"));
|
9
9
|
var _applySpacing = /*#__PURE__*/require("../../../../mixins/applySpacing");
|
10
10
|
var _base = /*#__PURE__*/require("../../variations/_size/base");
|
11
|
+
var _tokens = /*#__PURE__*/require("../../tokens");
|
12
|
+
var _utils = /*#__PURE__*/require("../../../../utils");
|
11
13
|
var _Subtitle = /*#__PURE__*/require("./Subtitle.styles");
|
12
|
-
var _excluded = ["size", "children", "color", "style"];
|
14
|
+
var _excluded = ["size", "children", "color", "noWrap", "className", "style"];
|
13
15
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
14
16
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
15
17
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
@@ -25,11 +27,15 @@ var subtitleRoot = exports.subtitleRoot = function subtitleRoot(Root) {
|
|
25
27
|
var size = props.size,
|
26
28
|
children = props.children,
|
27
29
|
color = props.color,
|
30
|
+
noWrap = props.noWrap,
|
31
|
+
className = props.className,
|
28
32
|
style = props.style,
|
29
33
|
rest = _objectWithoutProperties(props, _excluded);
|
34
|
+
var withNoWrap = noWrap ? _tokens.classes.typoWithNoWrap : undefined;
|
30
35
|
return /*#__PURE__*/_react["default"].createElement(Root, _extends({
|
31
36
|
size: size,
|
32
37
|
ref: ref,
|
38
|
+
className: (0, _utils.cx)(withNoWrap, className),
|
33
39
|
style: _objectSpread(_objectSpread({
|
34
40
|
color: color
|
35
41
|
}, style), (0, _applySpacing.applySpacing)(rest))
|
@@ -7,4 +7,4 @@ exports.base = void 0;
|
|
7
7
|
var _styledComponents = /*#__PURE__*/require("styled-components");
|
8
8
|
var _tokens = /*#__PURE__*/require("../../tokens");
|
9
9
|
var _mixins = /*#__PURE__*/require("../../../../mixins");
|
10
|
-
var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["font-family:var(", ");font-size:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");font-weight:var(", ");", ";"], _tokens.tokens.typoFontFamily, _tokens.tokens.typoFontSize, _tokens.tokens.typoFontStyle, _tokens.tokens.typoFontLetterSpacing, _tokens.tokens.typoFontLineHeight, _tokens.tokens.typoFontWeight,
|
10
|
+
var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["font-family:var(", ");font-size:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");font-weight:var(", ");&.", "{white-space:nowrap;}", ";"], _tokens.tokens.typoFontFamily, _tokens.tokens.typoFontSize, _tokens.tokens.typoFontStyle, _tokens.tokens.typoFontLetterSpacing, _tokens.tokens.typoFontLineHeight, _tokens.tokens.typoFontWeight, _tokens.classes.typoWithNoWrap, _mixins.applyHyphens);
|
@@ -9,7 +9,7 @@ var _react = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("react")
|
|
9
9
|
var _applySpacing = /*#__PURE__*/require("../../../mixins/applySpacing");
|
10
10
|
var _tokens = /*#__PURE__*/require("../tokens");
|
11
11
|
var _utils = /*#__PURE__*/require("../../../utils");
|
12
|
-
var _excluded = ["size", "children", "breakWord", "color", "className", "style"];
|
12
|
+
var _excluded = ["size", "children", "breakWord", "noWrap", "color", "className", "style"];
|
13
13
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
14
14
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
15
15
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
@@ -25,15 +25,17 @@ var typographyOldRoot = exports.typographyOldRoot = function typographyOldRoot(R
|
|
25
25
|
var size = props.size,
|
26
26
|
children = props.children,
|
27
27
|
breakWord = props.breakWord,
|
28
|
+
noWrap = props.noWrap,
|
28
29
|
color = props.color,
|
29
30
|
className = props.className,
|
30
31
|
style = props.style,
|
31
32
|
rest = _objectWithoutProperties(props, _excluded);
|
33
|
+
var withNoWrap = noWrap ? _tokens.classes.typoWithNoWrap : undefined;
|
32
34
|
var withBreakWord = breakWord ? _tokens.classes.typoWithBreakWord : undefined;
|
33
35
|
return /*#__PURE__*/_react["default"].createElement(Root, _extends({
|
34
36
|
size: size,
|
35
37
|
ref: ref,
|
36
|
-
className: (0, _utils.cx)(withBreakWord, className),
|
38
|
+
className: (0, _utils.cx)(withNoWrap, withBreakWord, className),
|
37
39
|
style: _objectSpread(_objectSpread({
|
38
40
|
color: color
|
39
41
|
}, style), (0, _applySpacing.applySpacing)(rest))
|
@@ -7,4 +7,4 @@ exports.base = void 0;
|
|
7
7
|
var _styledComponents = /*#__PURE__*/require("styled-components");
|
8
8
|
var _tokens = /*#__PURE__*/require("../tokens");
|
9
9
|
var _mixins = /*#__PURE__*/require("../../../mixins");
|
10
|
-
var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["font-family:var(", ");font-size:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");font-weight:var(", ");", ";&.", "{", ";}"], _tokens.tokens.typoFontFamily, _tokens.tokens.typoFontSize, _tokens.tokens.typoFontStyle, _tokens.tokens.typoFontLetterSpacing, _tokens.tokens.typoFontLineHeight, _tokens.tokens.typoFontWeight,
|
10
|
+
var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["font-family:var(", ");font-size:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");font-weight:var(", ");&.", "{white-space:nowrap;}", ";&.", "{", ";}"], _tokens.tokens.typoFontFamily, _tokens.tokens.typoFontSize, _tokens.tokens.typoFontStyle, _tokens.tokens.typoFontLetterSpacing, _tokens.tokens.typoFontLineHeight, _tokens.tokens.typoFontWeight, _tokens.classes.typoWithNoWrap, _mixins.applyHyphensNormal, _tokens.classes.typoWithBreakWord, _mixins.applyHyphens);
|
@@ -7,4 +7,4 @@ exports.base = void 0;
|
|
7
7
|
var _styledComponents = /*#__PURE__*/require("styled-components");
|
8
8
|
var _tokens = /*#__PURE__*/require("../../tokens");
|
9
9
|
var _mixins = /*#__PURE__*/require("../../../../mixins");
|
10
|
-
var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["font-family:var(", ");font-size:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");font-weight:var(", ");text-transform:uppercase;", ";&.", "{", ";}"], _tokens.tokens.typoFontFamily, _tokens.tokens.typoFontSize, _tokens.tokens.typoFontStyle, _tokens.tokens.typoFontLetterSpacing, _tokens.tokens.typoFontLineHeight, _tokens.tokens.typoFontWeight,
|
10
|
+
var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["font-family:var(", ");font-size:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");font-weight:var(", ");text-transform:uppercase;&.", "{white-space:nowrap;}", ";&.", "{", ";}"], _tokens.tokens.typoFontFamily, _tokens.tokens.typoFontSize, _tokens.tokens.typoFontStyle, _tokens.tokens.typoFontLetterSpacing, _tokens.tokens.typoFontLineHeight, _tokens.tokens.typoFontWeight, _tokens.classes.typoWithNoWrap, _mixins.applyHyphensNormal, _tokens.classes.typoWithBreakWord, _mixins.applyHyphens);
|
@@ -9,7 +9,7 @@ var _react = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("react")
|
|
9
9
|
var _applySpacing = /*#__PURE__*/require("../../mixins/applySpacing");
|
10
10
|
var _utils = /*#__PURE__*/require("../../utils");
|
11
11
|
var _tokens = /*#__PURE__*/require("./tokens");
|
12
|
-
var _excluded = ["size", "children", "breakWord", "bold", "color", "className", "style"];
|
12
|
+
var _excluded = ["size", "children", "breakWord", "noWrap", "bold", "color", "className", "style"];
|
13
13
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
14
14
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
15
15
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
@@ -26,18 +26,20 @@ var typographyRootCompose = exports.typographyRootCompose = function typographyR
|
|
26
26
|
var size = props.size,
|
27
27
|
children = props.children,
|
28
28
|
breakWord = props.breakWord,
|
29
|
+
noWrap = props.noWrap,
|
29
30
|
_props$bold = props.bold,
|
30
31
|
bold = _props$bold === void 0 ? defaultArgs === null || defaultArgs === void 0 ? void 0 : defaultArgs.defaultBold : _props$bold,
|
31
32
|
color = props.color,
|
32
33
|
className = props.className,
|
33
34
|
style = props.style,
|
34
35
|
rest = _objectWithoutProperties(props, _excluded);
|
36
|
+
var withNoWrap = noWrap ? _tokens.classes.typoWithNoWrap : undefined;
|
35
37
|
var withBreakWord = breakWord ? _tokens.classes.typoWithBreakWord : undefined;
|
36
38
|
var typographyBold = bold ? _tokens.classes.typoBold : undefined;
|
37
39
|
return /*#__PURE__*/_react["default"].createElement(Root, _extends({
|
38
40
|
size: size,
|
39
41
|
ref: ref,
|
40
|
-
className: (0, _utils.cx)(withBreakWord, typographyBold, className),
|
42
|
+
className: (0, _utils.cx)(withNoWrap, withBreakWord, typographyBold, className),
|
41
43
|
style: _objectSpread(_objectSpread({
|
42
44
|
color: color
|
43
45
|
}, style), (0, _applySpacing.applySpacing)(rest)),
|
@@ -7,4 +7,4 @@ exports.base = void 0;
|
|
7
7
|
var _styledComponents = /*#__PURE__*/require("styled-components");
|
8
8
|
var _mixins = /*#__PURE__*/require("../../mixins");
|
9
9
|
var _tokens = /*#__PURE__*/require("./tokens");
|
10
|
-
var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["font-family:var(", ");font-size:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");font-weight:var(", ");&.", "{font-weight:var(", ");}", ";&.", "{", ";}"], _tokens.tokens.typoFontFamily, _tokens.tokens.typoFontSize, _tokens.tokens.typoFontStyle, _tokens.tokens.typoFontLetterSpacing, _tokens.tokens.typoFontLineHeight, _tokens.tokens.typoFontWeight,
|
10
|
+
var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["font-family:var(", ");font-size:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");font-weight:var(", ");&.", "{font-weight:var(", ");}&.", "{white-space:nowrap;}", ";&.", "{", ";}"], _tokens.tokens.typoFontFamily, _tokens.tokens.typoFontSize, _tokens.tokens.typoFontStyle, _tokens.tokens.typoFontLetterSpacing, _tokens.tokens.typoFontLineHeight, _tokens.tokens.typoFontWeight, _tokens.classes.typoBold, _tokens.tokens.typoFontWeightBold, _tokens.classes.typoWithNoWrap, _mixins.applyHyphensNormal, _tokens.classes.typoWithBreakWord, _mixins.applyHyphens);
|
@@ -19,6 +19,10 @@ title: Typography
|
|
19
19
|
По умолчанию в типографике слова переносятся по слогам.
|
20
20
|
Чтобы отключить данный функционал, необходимо установить свойство `breakWord` в значении `false`.
|
21
21
|
|
22
|
+
## Пробелы
|
23
|
+
По умолчанию в типографике если текст превышает ширину элемента, то слова будут переноситься по пробелам.
|
24
|
+
Чтобы запретить перенос по пробелам, необходимо установить свойство `noWrap` в значении `true`.
|
25
|
+
|
22
26
|
## Состав
|
23
27
|
|
24
28
|
### Hero unit
|
@@ -104,6 +104,11 @@ const meta: Meta<StorySelectProps> = {
|
|
104
104
|
},
|
105
105
|
if: { arg: 'required', truthy: false },
|
106
106
|
},
|
107
|
+
chipType: {
|
108
|
+
control: 'select',
|
109
|
+
options: ['default', 'text'],
|
110
|
+
if: { arg: 'target', eq: 'textfield-like' },
|
111
|
+
},
|
107
112
|
},
|
108
113
|
args: {
|
109
114
|
target: 'textfield-like',
|
@@ -121,6 +126,7 @@ const meta: Meta<StorySelectProps> = {
|
|
121
126
|
optional: false,
|
122
127
|
required: false,
|
123
128
|
requiredPlacement: 'right',
|
129
|
+
chipType: 'default',
|
124
130
|
},
|
125
131
|
parameters: {
|
126
132
|
controls: {
|
@@ -144,6 +150,7 @@ const meta: Meta<StorySelectProps> = {
|
|
144
150
|
'optional',
|
145
151
|
'required',
|
146
152
|
'requiredPlacement',
|
153
|
+
'chipType',
|
147
154
|
],
|
148
155
|
},
|
149
156
|
},
|
@@ -382,7 +389,7 @@ const SingleStory = (args: StorySelectProps) => {
|
|
382
389
|
export const Single: StoryObj<StorySelectProps> = {
|
383
390
|
parameters: {
|
384
391
|
controls: {
|
385
|
-
exclude: ['chipView', 'isTargetAmount'],
|
392
|
+
exclude: ['chipView', 'isTargetAmount', 'chipType'],
|
386
393
|
},
|
387
394
|
},
|
388
395
|
render: (args) => <SingleStory {...args} />,
|
package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx
CHANGED
@@ -134,6 +134,10 @@ const meta: Meta<typeof TextField> = {
|
|
134
134
|
control: { type: 'text' },
|
135
135
|
if: { arg: 'hasHint', truthy: true },
|
136
136
|
},
|
137
|
+
chipType: {
|
138
|
+
control: 'select',
|
139
|
+
options: ['default', 'text'],
|
140
|
+
},
|
137
141
|
},
|
138
142
|
};
|
139
143
|
|
@@ -233,6 +237,11 @@ export const Default: StoryObj<StoryPropsDefault> = {
|
|
233
237
|
hintWidth: '10rem',
|
234
238
|
hintHasArrow: true,
|
235
239
|
},
|
240
|
+
parameters: {
|
241
|
+
controls: {
|
242
|
+
exclude: ['chipType'],
|
243
|
+
},
|
244
|
+
},
|
236
245
|
render: (args) => <StoryDemo {...args} />,
|
237
246
|
};
|
238
247
|
|
@@ -288,6 +297,7 @@ export const Chips: StoryObj<StoryPropsChips> = {
|
|
288
297
|
args: {
|
289
298
|
...Default.args,
|
290
299
|
chips: ['1 value', '2 value', '3 value', '4 value'],
|
300
|
+
chipType: 'default',
|
291
301
|
},
|
292
302
|
render: (args) => <StoryChips {...args} />,
|
293
303
|
};
|
@@ -103,6 +103,11 @@ const meta: Meta<StorySelectProps> = {
|
|
103
103
|
},
|
104
104
|
if: { arg: 'required', truthy: false },
|
105
105
|
},
|
106
|
+
chipType: {
|
107
|
+
control: 'select',
|
108
|
+
options: ['default', 'text'],
|
109
|
+
if: { arg: 'target', eq: 'textfield-like' },
|
110
|
+
},
|
106
111
|
},
|
107
112
|
args: {
|
108
113
|
target: 'textfield-like',
|
@@ -120,6 +125,7 @@ const meta: Meta<StorySelectProps> = {
|
|
120
125
|
optional: false,
|
121
126
|
required: false,
|
122
127
|
requiredPlacement: 'right',
|
128
|
+
chipType: 'default',
|
123
129
|
},
|
124
130
|
parameters: {
|
125
131
|
controls: {
|
@@ -143,6 +149,7 @@ const meta: Meta<StorySelectProps> = {
|
|
143
149
|
'optional',
|
144
150
|
'required',
|
145
151
|
'requiredPlacement',
|
152
|
+
'chipType',
|
146
153
|
],
|
147
154
|
},
|
148
155
|
},
|
@@ -381,7 +388,7 @@ const SingleStory = (args: StorySelectProps) => {
|
|
381
388
|
export const Single: StoryObj<StorySelectProps> = {
|
382
389
|
parameters: {
|
383
390
|
controls: {
|
384
|
-
exclude: ['chipView', 'isTargetAmount'],
|
391
|
+
exclude: ['chipView', 'isTargetAmount', 'chipType'],
|
385
392
|
},
|
386
393
|
},
|
387
394
|
render: (args) => <SingleStory {...args} />,
|
package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx
CHANGED
@@ -134,6 +134,10 @@ const meta: Meta<typeof TextField> = {
|
|
134
134
|
control: { type: 'text' },
|
135
135
|
if: { arg: 'hasHint', truthy: true },
|
136
136
|
},
|
137
|
+
chipType: {
|
138
|
+
control: 'select',
|
139
|
+
options: ['default', 'text'],
|
140
|
+
},
|
137
141
|
},
|
138
142
|
};
|
139
143
|
|
@@ -233,6 +237,11 @@ export const Default: StoryObj<StoryPropsDefault> = {
|
|
233
237
|
hintWidth: '10rem',
|
234
238
|
hintHasArrow: true,
|
235
239
|
},
|
240
|
+
parameters: {
|
241
|
+
controls: {
|
242
|
+
exclude: ['chipType'],
|
243
|
+
},
|
244
|
+
},
|
236
245
|
render: (args) => <StoryDemo {...args} />,
|
237
246
|
};
|
238
247
|
|
@@ -288,6 +297,7 @@ export const Chips: StoryObj<StoryPropsChips> = {
|
|
288
297
|
args: {
|
289
298
|
...Default.args,
|
290
299
|
chips: ['1 value', '2 value', '3 value', '4 value'],
|
300
|
+
chipType: 'default',
|
291
301
|
},
|
292
302
|
render: (args) => <StoryChips {...args} />,
|
293
303
|
};
|
@@ -12,8 +12,16 @@ const meta: Meta<typeof Body> = {
|
|
12
12
|
title: 'typography/Body',
|
13
13
|
decorators: [WithTheme],
|
14
14
|
component: Body,
|
15
|
-
argTypes:
|
15
|
+
argTypes: {
|
16
|
+
...argTypesFromConfig(mergeConfig(bodyConfig, config)),
|
17
|
+
color: {
|
18
|
+
control: {
|
19
|
+
type: 'color',
|
20
|
+
},
|
21
|
+
},
|
22
|
+
},
|
16
23
|
args: {
|
24
|
+
noWrap: false,
|
17
25
|
breakWord: true,
|
18
26
|
bold: false,
|
19
27
|
},
|
@@ -12,8 +12,16 @@ const meta: Meta<typeof Dspl> = {
|
|
12
12
|
title: 'typography/Dspl',
|
13
13
|
decorators: [WithTheme],
|
14
14
|
component: Dspl,
|
15
|
-
argTypes:
|
15
|
+
argTypes: {
|
16
|
+
...argTypesFromConfig(mergeConfig(dsplConfig, config)),
|
17
|
+
color: {
|
18
|
+
control: {
|
19
|
+
type: 'color',
|
20
|
+
},
|
21
|
+
},
|
22
|
+
},
|
16
23
|
args: {
|
24
|
+
noWrap: false,
|
17
25
|
breakWord: true,
|
18
26
|
bold: false,
|
19
27
|
},
|
@@ -12,8 +12,16 @@ const meta: Meta<typeof Heading> = {
|
|
12
12
|
title: 'typography/Heading',
|
13
13
|
decorators: [WithTheme],
|
14
14
|
component: Heading,
|
15
|
-
argTypes:
|
15
|
+
argTypes: {
|
16
|
+
...argTypesFromConfig(mergeConfig(dsplConfig, config)),
|
17
|
+
color: {
|
18
|
+
control: {
|
19
|
+
type: 'color',
|
20
|
+
},
|
21
|
+
},
|
22
|
+
},
|
16
23
|
args: {
|
24
|
+
noWrap: false,
|
17
25
|
breakWord: true,
|
18
26
|
bold: false,
|
19
27
|
},
|
@@ -12,8 +12,16 @@ const meta: Meta<typeof OldBody> = {
|
|
12
12
|
title: 'typography/Old/Body',
|
13
13
|
decorators: [WithTheme],
|
14
14
|
component: OldBody,
|
15
|
-
argTypes:
|
15
|
+
argTypes: {
|
16
|
+
...argTypesFromConfig(mergeConfig(oldBodyConfig, config)),
|
17
|
+
color: {
|
18
|
+
control: {
|
19
|
+
type: 'color',
|
20
|
+
},
|
21
|
+
},
|
22
|
+
},
|
16
23
|
args: {
|
24
|
+
noWrap: false,
|
17
25
|
breakWord: true,
|
18
26
|
},
|
19
27
|
};
|
@@ -12,8 +12,16 @@ const meta: Meta<typeof Button> = {
|
|
12
12
|
title: 'typography/Old/Button',
|
13
13
|
decorators: [WithTheme],
|
14
14
|
component: Button,
|
15
|
-
argTypes:
|
15
|
+
argTypes: {
|
16
|
+
...argTypesFromConfig(mergeConfig(buttonTypographyConfig, config)),
|
17
|
+
color: {
|
18
|
+
control: {
|
19
|
+
type: 'color',
|
20
|
+
},
|
21
|
+
},
|
22
|
+
},
|
16
23
|
args: {
|
24
|
+
noWrap: false,
|
17
25
|
breakWord: true,
|
18
26
|
},
|
19
27
|
};
|
@@ -12,8 +12,16 @@ const meta: Meta<typeof Caption> = {
|
|
12
12
|
title: 'typography/Old/Caption',
|
13
13
|
decorators: [WithTheme],
|
14
14
|
component: Caption,
|
15
|
-
argTypes:
|
15
|
+
argTypes: {
|
16
|
+
...argTypesFromConfig(mergeConfig(captionConfig, config)),
|
17
|
+
color: {
|
18
|
+
control: {
|
19
|
+
type: 'color',
|
20
|
+
},
|
21
|
+
},
|
22
|
+
},
|
16
23
|
args: {
|
24
|
+
noWrap: false,
|
17
25
|
breakWord: true,
|
18
26
|
},
|
19
27
|
};
|
@@ -12,8 +12,16 @@ const meta: Meta<typeof Display> = {
|
|
12
12
|
title: 'typography/Old/Display',
|
13
13
|
decorators: [WithTheme],
|
14
14
|
component: Display,
|
15
|
-
argTypes:
|
15
|
+
argTypes: {
|
16
|
+
...argTypesFromConfig(mergeConfig(displayConfig, config)),
|
17
|
+
color: {
|
18
|
+
control: {
|
19
|
+
type: 'color',
|
20
|
+
},
|
21
|
+
},
|
22
|
+
},
|
16
23
|
args: {
|
24
|
+
noWrap: false,
|
17
25
|
breakWord: true,
|
18
26
|
},
|
19
27
|
};
|
package/styled-components/cjs/examples/typograpy/components/Old/Footnote/Footnote.stories.tsx
CHANGED
@@ -12,8 +12,16 @@ const meta: Meta<typeof Footnote> = {
|
|
12
12
|
title: 'typography/Old/Footnote',
|
13
13
|
decorators: [WithTheme],
|
14
14
|
component: Footnote,
|
15
|
-
argTypes:
|
15
|
+
argTypes: {
|
16
|
+
...argTypesFromConfig(mergeConfig(footnoteConfig, config)),
|
17
|
+
color: {
|
18
|
+
control: {
|
19
|
+
type: 'color',
|
20
|
+
},
|
21
|
+
},
|
22
|
+
},
|
16
23
|
args: {
|
24
|
+
noWrap: false,
|
17
25
|
breakWord: true,
|
18
26
|
},
|
19
27
|
};
|
package/styled-components/cjs/examples/typograpy/components/Old/Headline/Headline.stories.tsx
CHANGED
@@ -12,8 +12,16 @@ const meta: Meta<typeof Headline> = {
|
|
12
12
|
title: 'typography/Old/Headline',
|
13
13
|
decorators: [WithTheme],
|
14
14
|
component: Headline,
|
15
|
-
argTypes:
|
15
|
+
argTypes: {
|
16
|
+
...argTypesFromConfig(mergeConfig(headlineConfig, config)),
|
17
|
+
color: {
|
18
|
+
control: {
|
19
|
+
type: 'color',
|
20
|
+
},
|
21
|
+
},
|
22
|
+
},
|
16
23
|
args: {
|
24
|
+
noWrap: false,
|
17
25
|
breakWord: true,
|
18
26
|
},
|
19
27
|
};
|
package/styled-components/cjs/examples/typograpy/components/Old/Paragraph/Paragraph.stories.tsx
CHANGED
@@ -12,8 +12,16 @@ const meta: Meta<typeof Paragraph> = {
|
|
12
12
|
title: 'typography/Old/Paragraph',
|
13
13
|
decorators: [WithTheme],
|
14
14
|
component: Paragraph,
|
15
|
-
argTypes:
|
15
|
+
argTypes: {
|
16
|
+
...argTypesFromConfig(mergeConfig(paragraphConfig, config)),
|
17
|
+
color: {
|
18
|
+
control: {
|
19
|
+
type: 'color',
|
20
|
+
},
|
21
|
+
},
|
22
|
+
},
|
16
23
|
args: {
|
24
|
+
noWrap: false,
|
17
25
|
breakWord: true,
|
18
26
|
resetMargin: false,
|
19
27
|
m: 2,
|
package/styled-components/cjs/examples/typograpy/components/Old/Subtitle/Subtitle.stories.tsx
CHANGED
@@ -12,7 +12,17 @@ const meta: Meta<typeof Subtitle> = {
|
|
12
12
|
title: 'typography/Old/Subtitle',
|
13
13
|
decorators: [WithTheme],
|
14
14
|
component: Subtitle,
|
15
|
-
argTypes:
|
15
|
+
argTypes: {
|
16
|
+
...argTypesFromConfig(mergeConfig(subtitleConfig, config)),
|
17
|
+
color: {
|
18
|
+
control: {
|
19
|
+
type: 'color',
|
20
|
+
},
|
21
|
+
},
|
22
|
+
},
|
23
|
+
args: {
|
24
|
+
noWrap: false,
|
25
|
+
},
|
16
26
|
};
|
17
27
|
|
18
28
|
export default meta;
|
package/styled-components/cjs/examples/typograpy/components/Old/Underline/Underline.stories.tsx
CHANGED
@@ -12,8 +12,16 @@ const meta: Meta<typeof Underline> = {
|
|
12
12
|
title: 'typography/Old/Underline',
|
13
13
|
decorators: [WithTheme],
|
14
14
|
component: Underline,
|
15
|
-
argTypes:
|
15
|
+
argTypes: {
|
16
|
+
...argTypesFromConfig(mergeConfig(underlineConfig, config)),
|
17
|
+
color: {
|
18
|
+
control: {
|
19
|
+
type: 'color',
|
20
|
+
},
|
21
|
+
},
|
22
|
+
},
|
16
23
|
args: {
|
24
|
+
noWrap: false,
|
17
25
|
breakWord: true,
|
18
26
|
},
|
19
27
|
};
|
@@ -12,8 +12,16 @@ const meta: Meta<typeof Text> = {
|
|
12
12
|
title: 'typography/Text',
|
13
13
|
decorators: [WithTheme],
|
14
14
|
component: Text,
|
15
|
-
argTypes:
|
15
|
+
argTypes: {
|
16
|
+
...argTypesFromConfig(mergeConfig(textConfig, config)),
|
17
|
+
color: {
|
18
|
+
control: {
|
19
|
+
type: 'color',
|
20
|
+
},
|
21
|
+
},
|
22
|
+
},
|
16
23
|
args: {
|
24
|
+
noWrap: false,
|
17
25
|
breakWord: true,
|
18
26
|
bold: false,
|
19
27
|
},
|