@salutejs/plasma-new-hope 0.72.0-canary.1160.8612911363.0 → 0.72.0-canary.1161.8613087402.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Combobox/Combobox.css +10 -10
- package/cjs/components/Combobox/Combobox.styles.js +5 -5
- package/cjs/components/Combobox/Combobox.styles.js.map +1 -1
- package/cjs/components/Combobox/{Combobox.styles_17ei5vn.css → Combobox.styles_dw6hnk.css} +1 -1
- package/cjs/components/Combobox/ui/ComboboxDivider/ComboboxDivider.css +4 -4
- package/cjs/components/Combobox/ui/ComboboxFooter/ComboboxFooter.css +4 -4
- package/cjs/components/Combobox/ui/ComboboxGroup/ComboboxGroup.css +4 -4
- package/cjs/components/Combobox/ui/ComboboxHeader/ComboboxHeader.css +4 -4
- package/cjs/components/Combobox/ui/ComboboxItem/ComboboxItem.css +4 -4
- package/cjs/components/Dropdown/Dropdown.css +4 -4
- package/cjs/components/Dropdown/Dropdown.js +0 -1
- package/cjs/components/Dropdown/Dropdown.js.map +1 -1
- package/cjs/components/Pagination/Pagination.css +4 -4
- package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +4 -4
- package/cjs/components/Popover/Popover.css +4 -4
- package/cjs/components/Popover/Popover.js +33 -43
- package/cjs/components/Popover/Popover.js.map +1 -1
- package/cjs/components/Popover/Popover.styles.js +1 -1
- package/cjs/components/Popover/Popover.styles.js.map +1 -1
- package/{es/components/Popover/Popover.styles_1rk9t6z.css → cjs/components/Popover/Popover.styles_1ggb66y.css} +1 -1
- package/cjs/components/Select/Select.css +4 -4
- package/cjs/components/Select/ui/SelectDivider/SelectDivider.css +23 -0
- package/cjs/components/Select/ui/SelectDivider/SelectDivider.js +40 -0
- package/cjs/components/Select/ui/SelectDivider/SelectDivider.js.map +1 -0
- package/cjs/components/Select/ui/SelectDivider/SelectDivider.styles.js +12 -0
- package/cjs/components/Select/ui/SelectDivider/SelectDivider.styles.js.map +1 -0
- package/cjs/components/Select/ui/SelectDivider/SelectDivider.styles_673hj6.css +1 -0
- package/cjs/components/{TextField/variations/_view → Select/ui/SelectDivider/variations/_size}/base.js +2 -2
- package/cjs/components/Select/ui/SelectDivider/variations/_size/base.js.map +1 -0
- package/cjs/components/{TextField/variations/_read-only → Select/ui/SelectDivider/variations/_view}/base.js +2 -2
- package/cjs/components/Select/ui/SelectDivider/variations/_view/base.js.map +1 -0
- package/cjs/components/Select/ui/SelectFooter/SelectFooter.css +23 -0
- package/cjs/components/Select/ui/SelectFooter/SelectFooter.js +40 -0
- package/cjs/components/Select/ui/SelectFooter/SelectFooter.js.map +1 -0
- package/cjs/components/Select/ui/SelectFooter/SelectFooter.styles.js +12 -0
- package/cjs/components/Select/ui/SelectFooter/SelectFooter.styles.js.map +1 -0
- package/cjs/components/Select/ui/SelectFooter/SelectFooter.styles_11hk6tt.css +1 -0
- package/cjs/components/{TextField → Select/ui/SelectFooter}/variations/_size/base.js +2 -2
- package/cjs/components/Select/ui/SelectFooter/variations/_size/base.js.map +1 -0
- package/cjs/components/Select/ui/SelectFooter/variations/_size/base_x642ct.css +1 -0
- package/cjs/components/Select/ui/SelectFooter/variations/_view/base.js +9 -0
- package/cjs/components/Select/ui/SelectFooter/variations/_view/base.js.map +1 -0
- package/cjs/components/Select/ui/SelectFooter/variations/_view/base_x642ct.css +1 -0
- package/cjs/components/Select/ui/SelectGroup/SelectGroup.css +23 -0
- package/cjs/components/Select/ui/SelectGroup/SelectGroup.js +40 -0
- package/cjs/components/Select/ui/SelectGroup/SelectGroup.js.map +1 -0
- package/cjs/components/Select/ui/SelectGroup/SelectGroup.styles.js +12 -0
- package/cjs/components/Select/ui/SelectGroup/SelectGroup.styles.js.map +1 -0
- package/cjs/components/Select/ui/SelectGroup/SelectGroup.styles_mktu7e.css +1 -0
- package/cjs/components/Select/ui/SelectGroup/variations/_size/base.js +9 -0
- package/cjs/components/Select/ui/SelectGroup/variations/_size/base.js.map +1 -0
- package/cjs/components/Select/ui/SelectGroup/variations/_size/base_x642ct.css +1 -0
- package/cjs/components/Select/ui/SelectGroup/variations/_view/base.js +9 -0
- package/cjs/components/Select/ui/SelectGroup/variations/_view/base.js.map +1 -0
- package/cjs/components/Select/ui/SelectGroup/variations/_view/base_x642ct.css +1 -0
- package/cjs/components/Select/ui/SelectHeader/SelectHeader.css +23 -0
- package/cjs/components/Select/ui/SelectHeader/SelectHeader.js +40 -0
- package/cjs/components/Select/ui/SelectHeader/SelectHeader.js.map +1 -0
- package/cjs/components/Select/ui/SelectHeader/SelectHeader.styles.js +12 -0
- package/cjs/components/Select/ui/SelectHeader/SelectHeader.styles.js.map +1 -0
- package/cjs/components/Select/ui/SelectHeader/SelectHeader.styles_24gqog.css +1 -0
- package/cjs/components/Select/ui/SelectHeader/variations/_size/base.js +9 -0
- package/cjs/components/Select/ui/SelectHeader/variations/_size/base.js.map +1 -0
- package/cjs/components/Select/ui/SelectHeader/variations/_size/base_x642ct.css +1 -0
- package/cjs/components/Select/ui/SelectHeader/variations/_view/base.js +9 -0
- package/cjs/components/Select/ui/SelectHeader/variations/_view/base.js.map +1 -0
- package/cjs/components/Select/ui/SelectHeader/variations/_view/base_x642ct.css +1 -0
- package/cjs/components/Select/ui/SelectItem/SelectItem.css +4 -4
- package/cjs/components/Select/ui/SelectTarget/SelectTarget.js +2 -1
- package/cjs/components/Select/ui/SelectTarget/SelectTarget.js.map +1 -1
- package/cjs/components/TextField/TextField.js +40 -166
- package/cjs/components/TextField/TextField.js.map +1 -1
- package/cjs/components/TextField/TextField.styles.js +11 -27
- package/cjs/components/TextField/TextField.styles.js.map +1 -1
- package/cjs/components/TextField/TextField.styles_2qw1n8.css +5 -0
- package/cjs/components/TextField/TextField.tokens.js +20 -68
- package/cjs/components/TextField/TextField.tokens.js.map +1 -1
- package/cjs/components/TextField/TextField_1lzb2r1.css +1 -0
- package/cjs/components/TextField/{variations/_disabled → _disabled}/base.js +2 -2
- package/cjs/components/TextField/_disabled/base.js.map +1 -0
- package/cjs/components/TextField/_disabled/base_so3w81.css +1 -0
- package/cjs/components/TextField/{variations/_label-placement → _label-placement}/base.js +1 -1
- package/cjs/components/TextField/_label-placement/base.js.map +1 -0
- package/cjs/components/TextField/_label-placement/base_x642ct.css +1 -0
- package/cjs/components/TextField/{variations/_label-placement → _label-placement}/inner.js +2 -2
- package/cjs/components/TextField/_label-placement/inner.js.map +1 -0
- package/cjs/components/TextField/_label-placement/inner_1tyuicp.css +1 -0
- package/cjs/components/TextField/{variations/_label-placement → _label-placement}/outer.js +2 -2
- package/cjs/components/TextField/_label-placement/outer.js.map +1 -0
- package/cjs/components/TextField/_label-placement/outer_19ekaek.css +1 -0
- package/cjs/components/TextField/_size/base.js +9 -0
- package/cjs/components/TextField/_size/base.js.map +1 -0
- package/cjs/components/TextField/_size/base_b5smyu.css +1 -0
- package/cjs/components/TextField/_view/base.js +9 -0
- package/cjs/components/TextField/_view/base.js.map +1 -0
- package/cjs/components/TextField/_view/base_5bqzed.css +1 -0
- package/cjs/index.css +42 -49
- package/cjs/index.js +41 -6
- package/cjs/index.js.map +1 -1
- package/cjs/utils/index.js +13 -1
- package/cjs/utils/index.js.map +1 -1
- package/cjs/utils/react.js +12 -2
- package/cjs/utils/react.js.map +1 -1
- package/es/components/Combobox/Combobox.css +10 -10
- package/es/components/Combobox/Combobox.styles.js +5 -5
- package/es/components/Combobox/Combobox.styles.js.map +1 -1
- package/es/components/Combobox/{Combobox.styles_17ei5vn.css → Combobox.styles_dw6hnk.css} +1 -1
- package/es/components/Combobox/ui/ComboboxDivider/ComboboxDivider.css +4 -4
- package/es/components/Combobox/ui/ComboboxFooter/ComboboxFooter.css +4 -4
- package/es/components/Combobox/ui/ComboboxGroup/ComboboxGroup.css +4 -4
- package/es/components/Combobox/ui/ComboboxHeader/ComboboxHeader.css +4 -4
- package/es/components/Combobox/ui/ComboboxItem/ComboboxItem.css +4 -4
- package/es/components/Dropdown/Dropdown.css +4 -4
- package/es/components/Dropdown/Dropdown.js +0 -1
- package/es/components/Dropdown/Dropdown.js.map +1 -1
- package/es/components/Pagination/Pagination.css +4 -4
- package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +4 -4
- package/es/components/Popover/Popover.css +4 -4
- package/es/components/Popover/Popover.js +33 -43
- package/es/components/Popover/Popover.js.map +1 -1
- package/es/components/Popover/Popover.styles.js +1 -1
- package/es/components/Popover/Popover.styles.js.map +1 -1
- package/{cjs/components/Popover/Popover.styles_1rk9t6z.css → es/components/Popover/Popover.styles_1ggb66y.css} +1 -1
- package/es/components/Select/Select.css +4 -4
- package/es/components/Select/ui/SelectDivider/SelectDivider.css +23 -0
- package/es/components/Select/ui/SelectDivider/SelectDivider.js +35 -0
- package/es/components/Select/ui/SelectDivider/SelectDivider.js.map +1 -0
- package/es/components/Select/ui/SelectDivider/SelectDivider.styles.js +7 -0
- package/es/components/Select/ui/SelectDivider/SelectDivider.styles.js.map +1 -0
- package/es/components/Select/ui/SelectDivider/SelectDivider.styles_673hj6.css +1 -0
- package/es/components/{TextField/variations/_view → Select/ui/SelectDivider/variations/_size}/base.js +2 -2
- package/es/components/Select/ui/SelectDivider/variations/_size/base.js.map +1 -0
- package/es/components/Select/ui/SelectDivider/variations/_size/base_x642ct.css +1 -0
- package/es/components/Select/ui/SelectDivider/variations/_view/base.js +5 -0
- package/es/components/Select/ui/SelectDivider/variations/_view/base.js.map +1 -0
- package/es/components/Select/ui/SelectDivider/variations/_view/base_x642ct.css +1 -0
- package/es/components/Select/ui/SelectFooter/SelectFooter.css +23 -0
- package/es/components/Select/ui/SelectFooter/SelectFooter.js +35 -0
- package/es/components/Select/ui/SelectFooter/SelectFooter.js.map +1 -0
- package/es/components/Select/ui/SelectFooter/SelectFooter.styles.js +7 -0
- package/es/components/Select/ui/SelectFooter/SelectFooter.styles.js.map +1 -0
- package/es/components/Select/ui/SelectFooter/SelectFooter.styles_11hk6tt.css +1 -0
- package/es/components/Select/ui/SelectFooter/variations/_size/base.js +5 -0
- package/es/components/Select/ui/SelectFooter/variations/_size/base.js.map +1 -0
- package/es/components/Select/ui/SelectFooter/variations/_size/base_x642ct.css +1 -0
- package/es/components/Select/ui/SelectFooter/variations/_view/base.js +5 -0
- package/es/components/Select/ui/SelectFooter/variations/_view/base.js.map +1 -0
- package/es/components/Select/ui/SelectFooter/variations/_view/base_x642ct.css +1 -0
- package/es/components/Select/ui/SelectGroup/SelectGroup.css +23 -0
- package/es/components/Select/ui/SelectGroup/SelectGroup.js +35 -0
- package/es/components/Select/ui/SelectGroup/SelectGroup.js.map +1 -0
- package/es/components/Select/ui/SelectGroup/SelectGroup.styles.js +7 -0
- package/es/components/Select/ui/SelectGroup/SelectGroup.styles.js.map +1 -0
- package/es/components/Select/ui/SelectGroup/SelectGroup.styles_mktu7e.css +1 -0
- package/es/components/Select/ui/SelectGroup/variations/_size/base.js +5 -0
- package/es/components/Select/ui/SelectGroup/variations/_size/base.js.map +1 -0
- package/es/components/Select/ui/SelectGroup/variations/_size/base_x642ct.css +1 -0
- package/es/components/Select/ui/SelectGroup/variations/_view/base.js +5 -0
- package/es/components/Select/ui/SelectGroup/variations/_view/base.js.map +1 -0
- package/es/components/Select/ui/SelectGroup/variations/_view/base_x642ct.css +1 -0
- package/es/components/Select/ui/SelectHeader/SelectHeader.css +23 -0
- package/es/components/Select/ui/SelectHeader/SelectHeader.js +35 -0
- package/es/components/Select/ui/SelectHeader/SelectHeader.js.map +1 -0
- package/es/components/Select/ui/SelectHeader/SelectHeader.styles.js +7 -0
- package/es/components/Select/ui/SelectHeader/SelectHeader.styles.js.map +1 -0
- package/es/components/Select/ui/SelectHeader/SelectHeader.styles_24gqog.css +1 -0
- package/es/components/Select/ui/SelectHeader/variations/_size/base.js +5 -0
- package/es/components/Select/ui/SelectHeader/variations/_size/base.js.map +1 -0
- package/es/components/Select/ui/SelectHeader/variations/_size/base_x642ct.css +1 -0
- package/es/components/Select/ui/SelectHeader/variations/_view/base.js +5 -0
- package/es/components/Select/ui/SelectHeader/variations/_view/base.js.map +1 -0
- package/es/components/Select/ui/SelectHeader/variations/_view/base_x642ct.css +1 -0
- package/es/components/Select/ui/SelectItem/SelectItem.css +4 -4
- package/es/components/Select/ui/SelectTarget/SelectTarget.js +2 -1
- package/es/components/Select/ui/SelectTarget/SelectTarget.js.map +1 -1
- package/es/components/TextField/TextField.js +44 -169
- package/es/components/TextField/TextField.js.map +1 -1
- package/es/components/TextField/TextField.styles.js +12 -25
- package/es/components/TextField/TextField.styles.js.map +1 -1
- package/es/components/TextField/TextField.styles_2qw1n8.css +5 -0
- package/es/components/TextField/TextField.tokens.js +21 -68
- package/es/components/TextField/TextField.tokens.js.map +1 -1
- package/es/components/TextField/TextField_1lzb2r1.css +1 -0
- package/es/components/TextField/_disabled/base.js +5 -0
- package/es/components/TextField/_disabled/base.js.map +1 -0
- package/es/components/TextField/_disabled/base_so3w81.css +1 -0
- package/es/components/TextField/{variations/_label-placement → _label-placement}/base.js +1 -1
- package/es/components/TextField/_label-placement/base.js.map +1 -0
- package/es/components/TextField/_label-placement/base_x642ct.css +1 -0
- package/es/components/TextField/_label-placement/inner.js +5 -0
- package/es/components/TextField/_label-placement/inner.js.map +1 -0
- package/es/components/TextField/_label-placement/inner_1tyuicp.css +1 -0
- package/es/components/TextField/_label-placement/outer.js +5 -0
- package/es/components/TextField/_label-placement/outer.js.map +1 -0
- package/es/components/TextField/_label-placement/outer_19ekaek.css +1 -0
- package/es/components/TextField/_size/base.js +5 -0
- package/es/components/TextField/_size/base.js.map +1 -0
- package/es/components/TextField/_size/base_b5smyu.css +1 -0
- package/es/components/TextField/_view/base.js +5 -0
- package/es/components/TextField/_view/base.js.map +1 -0
- package/es/components/TextField/_view/base_5bqzed.css +1 -0
- package/es/index.css +42 -49
- package/es/index.js +15 -2
- package/es/index.js.map +1 -1
- package/es/utils/index.js +11 -2
- package/es/utils/index.js.map +1 -1
- package/es/utils/react.js +9 -2
- package/es/utils/react.js.map +1 -1
- package/package.json +2 -2
- package/styled-components/cjs/components/Combobox/Combobox.styles.js +1 -1
- package/styled-components/cjs/components/Dropdown/Dropdown.js +0 -1
- package/styled-components/cjs/components/Popover/Popover.js +33 -43
- package/styled-components/cjs/components/Popover/Popover.styles.js +1 -1
- package/styled-components/cjs/components/Select/ui/SelectTarget/SelectTarget.js +2 -1
- package/styled-components/cjs/components/TextField/TextField.js +43 -173
- package/styled-components/cjs/components/TextField/TextField.styles.js +10 -18
- package/styled-components/cjs/components/TextField/TextField.template-doc.mdx +0 -24
- package/styled-components/cjs/components/TextField/TextField.tokens.js +21 -68
- package/styled-components/cjs/components/TextField/_disabled/base.js +9 -0
- package/styled-components/cjs/components/TextField/_label-placement/inner.js +10 -0
- package/styled-components/cjs/components/TextField/{variations/_label-placement → _label-placement}/outer.js +3 -3
- package/styled-components/cjs/components/TextField/_size/base.js +10 -0
- package/styled-components/cjs/components/TextField/_view/base.js +10 -0
- package/styled-components/cjs/components/TextField/index.js +2 -2
- package/styled-components/cjs/examples/plasma_b2c/components/Popover/Popover.stories.tsx +0 -7
- package/styled-components/cjs/index.js +22 -0
- package/styled-components/es/components/Combobox/Combobox.styles.js +1 -1
- package/styled-components/es/components/Dropdown/Dropdown.js +0 -1
- package/styled-components/es/components/Popover/Popover.js +33 -43
- package/styled-components/es/components/Popover/Popover.styles.js +1 -1
- package/styled-components/es/components/Select/ui/SelectTarget/SelectTarget.js +2 -1
- package/styled-components/es/components/TextField/TextField.js +47 -177
- package/styled-components/es/components/TextField/TextField.styles.js +9 -17
- package/styled-components/es/components/TextField/TextField.template-doc.mdx +0 -24
- package/styled-components/es/components/TextField/TextField.tokens.js +20 -67
- package/styled-components/es/components/TextField/_disabled/base.js +3 -0
- package/styled-components/es/components/TextField/_label-placement/inner.js +4 -0
- package/styled-components/es/components/TextField/_label-placement/outer.js +4 -0
- package/styled-components/es/components/TextField/_size/base.js +4 -0
- package/styled-components/es/components/TextField/_view/base.js +4 -0
- package/styled-components/es/components/TextField/index.js +2 -2
- package/styled-components/es/examples/plasma_b2c/components/Popover/Popover.stories.tsx +0 -7
- package/styled-components/es/index.js +2 -0
- package/types/components/Combobox/Combobox.styles.d.ts +2 -8
- package/types/components/Combobox/Combobox.styles.d.ts.map +1 -1
- package/types/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/types/components/Dropdown/Dropdown.styles.d.ts +1 -7
- package/types/components/Dropdown/Dropdown.styles.d.ts.map +1 -1
- package/types/components/Popover/Popover.d.ts +2 -2
- package/types/components/Popover/Popover.d.ts.map +1 -1
- package/types/components/Popover/Popover.styles.d.ts.map +1 -1
- package/types/components/Popover/Popover.types.d.ts +12 -19
- package/types/components/Popover/Popover.types.d.ts.map +1 -1
- package/types/components/Select/Select.styles.d.ts +2 -8
- package/types/components/Select/Select.styles.d.ts.map +1 -1
- package/types/components/Select/ui/SelectTarget/SelectTarget.d.ts.map +1 -1
- package/types/components/TextField/TextField.d.ts +3 -8
- package/types/components/TextField/TextField.d.ts.map +1 -1
- package/types/components/TextField/TextField.styles.d.ts +3 -6
- package/types/components/TextField/TextField.styles.d.ts.map +1 -1
- package/types/components/TextField/TextField.tokens.d.ts +8 -57
- package/types/components/TextField/TextField.tokens.d.ts.map +1 -1
- package/types/components/TextField/TextField.types.d.ts +3 -45
- package/types/components/TextField/TextField.types.d.ts.map +1 -1
- package/types/components/TextField/_disabled/base.d.ts.map +1 -0
- package/types/components/TextField/_label-placement/base.d.ts.map +1 -0
- package/types/components/TextField/_label-placement/index.d.ts.map +1 -0
- package/types/components/TextField/_label-placement/inner.d.ts.map +1 -0
- package/types/components/TextField/_label-placement/outer.d.ts.map +1 -0
- package/types/components/TextField/_size/base.d.ts.map +1 -0
- package/types/components/TextField/_view/base.d.ts.map +1 -0
- package/types/components/TextField/index.d.ts +2 -3
- package/types/components/TextField/index.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Popover/Popover.d.ts +1 -7
- package/types/examples/plasma_b2c/components/Popover/Popover.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Popover/Popover.d.ts +1 -7
- package/types/examples/plasma_web/components/Popover/Popover.d.ts.map +1 -1
- package/types/examples/sds_engineer/components/Popover/Popover.d.ts +1 -7
- package/types/examples/sds_engineer/components/Popover/Popover.d.ts.map +1 -1
- package/types/index.d.ts +2 -0
- package/types/index.d.ts.map +1 -1
- package/cjs/components/TextField/TextField.styles_1b1mddp.css +0 -8
- package/cjs/components/TextField/TextField_wctd2m.css +0 -1
- package/cjs/components/TextField/hooks/useKeyNavigation.js +0 -131
- package/cjs/components/TextField/hooks/useKeyNavigation.js.map +0 -1
- package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.css +0 -19
- package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +0 -38
- package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js.map +0 -1
- package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +0 -26
- package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js.map +0 -1
- package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles_1y8n7la.css +0 -1
- package/cjs/components/TextField/variations/_disabled/base.js.map +0 -1
- package/cjs/components/TextField/variations/_disabled/base_1tnjoy9.css +0 -1
- package/cjs/components/TextField/variations/_label-placement/base.js.map +0 -1
- package/cjs/components/TextField/variations/_label-placement/inner.js.map +0 -1
- package/cjs/components/TextField/variations/_label-placement/inner_gqlcj2.css +0 -1
- package/cjs/components/TextField/variations/_label-placement/outer.js.map +0 -1
- package/cjs/components/TextField/variations/_label-placement/outer_is41nj.css +0 -1
- package/cjs/components/TextField/variations/_read-only/base.js.map +0 -1
- package/cjs/components/TextField/variations/_read-only/base_134hshp.css +0 -1
- package/cjs/components/TextField/variations/_size/base.js.map +0 -1
- package/cjs/components/TextField/variations/_size/base_1khzr9t.css +0 -1
- package/cjs/components/TextField/variations/_view/base.js.map +0 -1
- package/cjs/components/TextField/variations/_view/base_1qd77x6.css +0 -1
- package/es/components/TextField/TextField.styles_1b1mddp.css +0 -8
- package/es/components/TextField/TextField_wctd2m.css +0 -1
- package/es/components/TextField/hooks/useKeyNavigation.js +0 -126
- package/es/components/TextField/hooks/useKeyNavigation.js.map +0 -1
- package/es/components/TextField/ui/TextFieldChip/TextFieldChip.css +0 -19
- package/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +0 -34
- package/es/components/TextField/ui/TextFieldChip/TextFieldChip.js.map +0 -1
- package/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +0 -22
- package/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js.map +0 -1
- package/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles_1y8n7la.css +0 -1
- package/es/components/TextField/variations/_disabled/base.js +0 -5
- package/es/components/TextField/variations/_disabled/base.js.map +0 -1
- package/es/components/TextField/variations/_disabled/base_1tnjoy9.css +0 -1
- package/es/components/TextField/variations/_label-placement/base.js.map +0 -1
- package/es/components/TextField/variations/_label-placement/inner.js +0 -5
- package/es/components/TextField/variations/_label-placement/inner.js.map +0 -1
- package/es/components/TextField/variations/_label-placement/inner_gqlcj2.css +0 -1
- package/es/components/TextField/variations/_label-placement/outer.js +0 -5
- package/es/components/TextField/variations/_label-placement/outer.js.map +0 -1
- package/es/components/TextField/variations/_label-placement/outer_is41nj.css +0 -1
- package/es/components/TextField/variations/_read-only/base.js +0 -5
- package/es/components/TextField/variations/_read-only/base.js.map +0 -1
- package/es/components/TextField/variations/_read-only/base_134hshp.css +0 -1
- package/es/components/TextField/variations/_size/base.js +0 -5
- package/es/components/TextField/variations/_size/base.js.map +0 -1
- package/es/components/TextField/variations/_size/base_1khzr9t.css +0 -1
- package/es/components/TextField/variations/_view/base.js.map +0 -1
- package/es/components/TextField/variations/_view/base_1qd77x6.css +0 -1
- package/styled-components/cjs/components/TextField/hooks/index.js +0 -12
- package/styled-components/cjs/components/TextField/hooks/useKeyNavigation.js +0 -137
- package/styled-components/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +0 -39
- package/styled-components/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +0 -25
- package/styled-components/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.types.js +0 -5
- package/styled-components/cjs/components/TextField/ui/index.js +0 -12
- package/styled-components/cjs/components/TextField/variations/_disabled/base.js +0 -10
- package/styled-components/cjs/components/TextField/variations/_label-placement/inner.js +0 -10
- package/styled-components/cjs/components/TextField/variations/_read-only/base.js +0 -10
- package/styled-components/cjs/components/TextField/variations/_read-only/tokens.json +0 -1
- package/styled-components/cjs/components/TextField/variations/_size/base.js +0 -10
- package/styled-components/cjs/components/TextField/variations/_view/base.js +0 -10
- package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.config.js +0 -43
- package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.js +0 -11
- package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +0 -133
- package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.config.js +0 -40
- package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.js +0 -11
- package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +0 -133
- package/styled-components/cjs/examples/sds_engineer/components/TextField/TextField.config.js +0 -43
- package/styled-components/cjs/examples/sds_engineer/components/TextField/TextField.js +0 -11
- package/styled-components/cjs/examples/sds_engineer/components/TextField/TextField.stories.tsx +0 -133
- package/styled-components/es/components/TextField/hooks/index.js +0 -1
- package/styled-components/es/components/TextField/hooks/useKeyNavigation.js +0 -131
- package/styled-components/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +0 -30
- package/styled-components/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +0 -19
- package/styled-components/es/components/TextField/ui/TextFieldChip/TextFieldChip.types.js +0 -1
- package/styled-components/es/components/TextField/ui/index.js +0 -1
- package/styled-components/es/components/TextField/variations/_disabled/base.js +0 -4
- package/styled-components/es/components/TextField/variations/_label-placement/inner.js +0 -4
- package/styled-components/es/components/TextField/variations/_label-placement/outer.js +0 -4
- package/styled-components/es/components/TextField/variations/_read-only/base.js +0 -4
- package/styled-components/es/components/TextField/variations/_read-only/tokens.json +0 -1
- package/styled-components/es/components/TextField/variations/_size/base.js +0 -4
- package/styled-components/es/components/TextField/variations/_view/base.js +0 -4
- package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.config.js +0 -37
- package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.js +0 -5
- package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +0 -133
- package/styled-components/es/examples/plasma_web/components/TextField/TextField.config.js +0 -34
- package/styled-components/es/examples/plasma_web/components/TextField/TextField.js +0 -5
- package/styled-components/es/examples/plasma_web/components/TextField/TextField.stories.tsx +0 -133
- package/styled-components/es/examples/sds_engineer/components/TextField/TextField.config.js +0 -37
- package/styled-components/es/examples/sds_engineer/components/TextField/TextField.js +0 -5
- package/styled-components/es/examples/sds_engineer/components/TextField/TextField.stories.tsx +0 -133
- package/types/components/TextField/hooks/index.d.ts +0 -2
- package/types/components/TextField/hooks/index.d.ts.map +0 -1
- package/types/components/TextField/hooks/useKeyNavigation.d.ts +0 -17
- package/types/components/TextField/hooks/useKeyNavigation.d.ts.map +0 -1
- package/types/components/TextField/ui/TextFieldChip/TextFieldChip.d.ts +0 -7
- package/types/components/TextField/ui/TextFieldChip/TextFieldChip.d.ts.map +0 -1
- package/types/components/TextField/ui/TextFieldChip/TextFieldChip.styles.d.ts +0 -3
- package/types/components/TextField/ui/TextFieldChip/TextFieldChip.styles.d.ts.map +0 -1
- package/types/components/TextField/ui/TextFieldChip/TextFieldChip.types.d.ts +0 -37
- package/types/components/TextField/ui/TextFieldChip/TextFieldChip.types.d.ts.map +0 -1
- package/types/components/TextField/ui/index.d.ts +0 -2
- package/types/components/TextField/ui/index.d.ts.map +0 -1
- package/types/components/TextField/variations/_disabled/base.d.ts.map +0 -1
- package/types/components/TextField/variations/_label-placement/base.d.ts.map +0 -1
- package/types/components/TextField/variations/_label-placement/index.d.ts.map +0 -1
- package/types/components/TextField/variations/_label-placement/inner.d.ts.map +0 -1
- package/types/components/TextField/variations/_label-placement/outer.d.ts.map +0 -1
- package/types/components/TextField/variations/_read-only/base.d.ts.map +0 -1
- package/types/components/TextField/variations/_size/base.d.ts.map +0 -1
- package/types/components/TextField/variations/_view/base.d.ts +0 -2
- package/types/components/TextField/variations/_view/base.d.ts.map +0 -1
- package/types/examples/plasma_b2c/components/TextField/TextField.config.d.ts +0 -32
- package/types/examples/plasma_b2c/components/TextField/TextField.config.d.ts.map +0 -1
- package/types/examples/plasma_b2c/components/TextField/TextField.d.ts +0 -26
- package/types/examples/plasma_b2c/components/TextField/TextField.d.ts.map +0 -1
- package/types/examples/plasma_web/components/TextField/TextField.config.d.ts +0 -32
- package/types/examples/plasma_web/components/TextField/TextField.config.d.ts.map +0 -1
- package/types/examples/plasma_web/components/TextField/TextField.d.ts +0 -26
- package/types/examples/plasma_web/components/TextField/TextField.d.ts.map +0 -1
- package/types/examples/sds_engineer/components/TextField/TextField.config.d.ts +0 -32
- package/types/examples/sds_engineer/components/TextField/TextField.config.d.ts.map +0 -1
- package/types/examples/sds_engineer/components/TextField/TextField.d.ts +0 -26
- package/types/examples/sds_engineer/components/TextField/TextField.d.ts.map +0 -1
- /package/cjs/components/{TextField/variations/_label-placement → Select/ui/SelectDivider/variations/_size}/base_x642ct.css +0 -0
- /package/{es/components/TextField/variations/_label-placement → cjs/components/Select/ui/SelectDivider/variations/_view}/base_x642ct.css +0 -0
- /package/styled-components/cjs/components/TextField/{variations/_disabled → _disabled}/tokens.json +0 -0
- /package/styled-components/cjs/components/TextField/{variations/_label-placement → _label-placement}/base.js +0 -0
- /package/styled-components/cjs/components/TextField/{variations/_label-placement → _label-placement}/index.js +0 -0
- /package/styled-components/cjs/components/TextField/{variations/_size → _size}/tokens.json +0 -0
- /package/styled-components/cjs/components/TextField/{variations/_view → _view}/tokens.json +0 -0
- /package/styled-components/es/components/TextField/{variations/_disabled → _disabled}/tokens.json +0 -0
- /package/styled-components/es/components/TextField/{variations/_label-placement → _label-placement}/base.js +0 -0
- /package/styled-components/es/components/TextField/{variations/_label-placement → _label-placement}/index.js +0 -0
- /package/styled-components/es/components/TextField/{variations/_size → _size}/tokens.json +0 -0
- /package/styled-components/es/components/TextField/{variations/_view → _view}/tokens.json +0 -0
- /package/types/components/TextField/{variations/_disabled → _disabled}/base.d.ts +0 -0
- /package/types/components/TextField/{variations/_label-placement → _label-placement}/base.d.ts +0 -0
- /package/types/components/TextField/{variations/_label-placement → _label-placement}/index.d.ts +0 -0
- /package/types/components/TextField/{variations/_label-placement → _label-placement}/inner.d.ts +0 -0
- /package/types/components/TextField/{variations/_label-placement → _label-placement}/outer.d.ts +0 -0
- /package/types/components/TextField/{variations/_read-only → _size}/base.d.ts +0 -0
- /package/types/components/TextField/{variations/_size → _view}/base.d.ts +0 -0
@@ -1,133 +0,0 @@
|
|
1
|
-
import React, { ComponentProps, useState } from 'react';
|
2
|
-
import type { StoryObj, Meta } from '@storybook/react';
|
3
|
-
import { action } from '@storybook/addon-actions';
|
4
|
-
import { IconPlaceholder } from '@salutejs/plasma-sb-utils';
|
5
|
-
|
6
|
-
import { WithTheme } from '../../../_helpers';
|
7
|
-
|
8
|
-
import { TextField } from './TextField';
|
9
|
-
|
10
|
-
const onChange = action('onChange');
|
11
|
-
const onFocus = action('onFocus');
|
12
|
-
const onBlur = action('onBlur');
|
13
|
-
const onSearch = action('onSearch');
|
14
|
-
|
15
|
-
const sizes = ['l', 'm', 's', 'xs'];
|
16
|
-
const views = ['default', 'positive', 'warning', 'negative'];
|
17
|
-
const enumerationTypes = ['plain', 'chip'];
|
18
|
-
const labelPlacements = ['outer', 'inner'];
|
19
|
-
|
20
|
-
const meta: Meta<typeof TextField> = {
|
21
|
-
title: 'plasma_web/TextField',
|
22
|
-
component: TextField,
|
23
|
-
decorators: [WithTheme],
|
24
|
-
argTypes: {
|
25
|
-
view: {
|
26
|
-
options: views,
|
27
|
-
control: {
|
28
|
-
type: 'select',
|
29
|
-
},
|
30
|
-
},
|
31
|
-
maxLength: {
|
32
|
-
control: {
|
33
|
-
type: 'number',
|
34
|
-
},
|
35
|
-
},
|
36
|
-
labelPlacement: {
|
37
|
-
options: labelPlacements,
|
38
|
-
control: {
|
39
|
-
type: 'inline-radio',
|
40
|
-
},
|
41
|
-
},
|
42
|
-
enumerationType: {
|
43
|
-
options: enumerationTypes,
|
44
|
-
control: {
|
45
|
-
type: 'select',
|
46
|
-
},
|
47
|
-
},
|
48
|
-
size: {
|
49
|
-
options: sizes,
|
50
|
-
control: {
|
51
|
-
type: 'inline-radio',
|
52
|
-
},
|
53
|
-
},
|
54
|
-
},
|
55
|
-
};
|
56
|
-
|
57
|
-
export default meta;
|
58
|
-
|
59
|
-
type StoryPropsDefault = Omit<
|
60
|
-
ComponentProps<typeof TextField>,
|
61
|
-
| 'helperBlock'
|
62
|
-
| 'contentLeft'
|
63
|
-
| 'htmlSize'
|
64
|
-
| 'contentRight'
|
65
|
-
| 'type'
|
66
|
-
| 'name'
|
67
|
-
| 'onFocus'
|
68
|
-
| 'onBlur'
|
69
|
-
| 'onChange'
|
70
|
-
| 'value'
|
71
|
-
| 'checked'
|
72
|
-
| 'maxLength'
|
73
|
-
| 'minLength'
|
74
|
-
| 'required'
|
75
|
-
> & {
|
76
|
-
'storybook:contentLeft': boolean;
|
77
|
-
'storybook:contentRight': boolean;
|
78
|
-
};
|
79
|
-
|
80
|
-
const StoryDemo = ({
|
81
|
-
'storybook:contentLeft': enableContentLeft,
|
82
|
-
'storybook:contentRight': enableContentRight,
|
83
|
-
view,
|
84
|
-
...rest
|
85
|
-
}: StoryPropsDefault) => {
|
86
|
-
const [text, setText] = useState('Значение поля');
|
87
|
-
|
88
|
-
const iconSize = rest.size === 'xs' ? 'xs' : 's';
|
89
|
-
|
90
|
-
return (
|
91
|
-
<TextField
|
92
|
-
{...rest}
|
93
|
-
value={text}
|
94
|
-
contentLeft={enableContentLeft ? <IconPlaceholder size={iconSize} /> : undefined}
|
95
|
-
contentRight={enableContentRight ? <IconPlaceholder size={iconSize} /> : undefined}
|
96
|
-
view={view}
|
97
|
-
onChange={(e) => {
|
98
|
-
setText(e.target.value);
|
99
|
-
onChange(e.target.value);
|
100
|
-
}}
|
101
|
-
onFocus={onFocus}
|
102
|
-
onBlur={onBlur}
|
103
|
-
onSearch={onSearch}
|
104
|
-
/>
|
105
|
-
);
|
106
|
-
};
|
107
|
-
|
108
|
-
export const Default: StoryObj<StoryPropsDefault> = {
|
109
|
-
args: {
|
110
|
-
id: 'example-text-field',
|
111
|
-
size: 'l',
|
112
|
-
view: 'default',
|
113
|
-
label: 'Лейбл',
|
114
|
-
labelPlacement: 'outer',
|
115
|
-
placeholder: 'Заполните поле',
|
116
|
-
leftHelper: 'Подсказка к полю',
|
117
|
-
enumerationType: 'plain',
|
118
|
-
disabled: false,
|
119
|
-
readOnly: false,
|
120
|
-
'storybook:contentLeft': true,
|
121
|
-
'storybook:contentRight': true,
|
122
|
-
},
|
123
|
-
render: (args) => <StoryDemo {...args} />,
|
124
|
-
};
|
125
|
-
|
126
|
-
export const Chips: StoryObj<StoryPropsDefault> = {
|
127
|
-
args: {
|
128
|
-
...Default.args,
|
129
|
-
enumerationType: 'chip',
|
130
|
-
values: ['1 value', '2 value', '3 value', '4 value'],
|
131
|
-
},
|
132
|
-
render: (args) => <StoryDemo {...args} />,
|
133
|
-
};
|
@@ -1,37 +0,0 @@
|
|
1
|
-
import { css } from 'styled-components';
|
2
|
-
import { textFieldTokens as tokens, textField_labelPlacement_inner as labelPlacement_inner, textField_labelPlacement_outer as labelPlacement_outer } from '../../../../components/TextField';
|
3
|
-
export var config = {
|
4
|
-
defaults: {
|
5
|
-
view: 'default',
|
6
|
-
size: 'l',
|
7
|
-
labelPlacement: 'outer'
|
8
|
-
},
|
9
|
-
variations: {
|
10
|
-
view: {
|
11
|
-
"default": /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-transparent-primary);", ":var(--surface-transparent-secondary);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-secondary);", ":var(--text-secondary);", ":var(--surface-clear);", ":var(--text-secondary);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":0.72;", ":var(--text-accent);"], tokens.color, tokens.backgroundColor, tokens.backgroundColorFocus, tokens.caretColor, tokens.placeholderColor, tokens.labelColor, tokens.leftHelperColor, tokens.colorReadOnly, tokens.backgroundColorReadOnly, tokens.placeholderColorReadOnly, tokens.chipCloseIconColor, tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive, tokens.chipBackgroundReadOnly, tokens.chipColorReadOnly, tokens.chipBackgroundReadOnlyHover, tokens.chipColorReadOnlyHover, tokens.chipOpacityReadonly, tokens.focusColor),
|
12
|
-
// TODO заменить --surface-transparent-positive на корректный токен
|
13
|
-
positive: /*#__PURE__*/css(["", ":var(--plasma-colors-primary);", ":var(--surface-transparent-positive);", ":var(--surface-transparent-positive-active);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-positive);", ":var(--text-secondary);", ":var(--surface-clear);", ":var(--text-secondary);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":0.72;", ":var(--text-accent);"], tokens.color, tokens.backgroundColor, tokens.backgroundColorFocus, tokens.caretColor, tokens.placeholderColor, tokens.labelColor, tokens.leftHelperColor, tokens.colorReadOnly, tokens.backgroundColorReadOnly, tokens.placeholderColorReadOnly, tokens.chipCloseIconColor, tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive, tokens.chipBackgroundReadOnly, tokens.chipColorReadOnly, tokens.chipBackgroundReadOnlyHover, tokens.chipColorReadOnlyHover, tokens.chipOpacityReadonly, tokens.focusColor),
|
14
|
-
// // TODO заменить --surface-transparent-warning на корректный токен
|
15
|
-
warning: /*#__PURE__*/css(["", ":var(--plasma-colors-primary);", ":var(--surface-transparent-warning);", ":var(--surface-transparent-warning-active);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-warning);", ":var(--text-secondary);", ":var(--surface-clear);", ":var(--text-secondary);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":0.72;", ":var(--text-accent);"], tokens.color, tokens.backgroundColor, tokens.backgroundColorFocus, tokens.caretColor, tokens.placeholderColor, tokens.labelColor, tokens.leftHelperColor, tokens.colorReadOnly, tokens.backgroundColorReadOnly, tokens.placeholderColorReadOnly, tokens.chipCloseIconColor, tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive, tokens.chipBackgroundReadOnly, tokens.chipColorReadOnly, tokens.chipBackgroundReadOnlyHover, tokens.chipColorReadOnlyHover, tokens.chipOpacityReadonly, tokens.focusColor),
|
16
|
-
// // TODO заменить --surface-transparent-negative на корректный токен
|
17
|
-
negative: /*#__PURE__*/css(["", ":var(--plasma-colors-primary);", ":var(--surface-transparent-negative);", ":var(--surface-transparent-negative-active);", ":var(--text-accent);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--text-negative);", ":var(--text-secondary);", ":var(--surface-clear);", ":var(--text-secondary);", ":var(--text-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":0.72;", ":var(--text-accent);"], tokens.color, tokens.backgroundColor, tokens.backgroundColorFocus, tokens.caretColor, tokens.placeholderColor, tokens.labelColor, tokens.leftHelperColor, tokens.colorReadOnly, tokens.backgroundColorReadOnly, tokens.placeholderColorReadOnly, tokens.chipCloseIconColor, tokens.chipColor, tokens.chipBackground, tokens.chipColorHover, tokens.chipBackgroundHover, tokens.chipColorActive, tokens.chipBackgroundActive, tokens.chipBackgroundReadOnly, tokens.chipColorReadOnly, tokens.chipBackgroundReadOnlyHover, tokens.chipColorReadOnlyHover, tokens.chipOpacityReadonly, tokens.focusColor)
|
18
|
-
},
|
19
|
-
size: {
|
20
|
-
l: /*#__PURE__*/css(["", ":3.5rem;", ":1.0625rem 1.125rem 1.0625rem 1.125rem;", ":0.375rem;", ":0.875rem;", ":-0.0625rem 0.5rem -0.0625rem -0.125rem;", ":-0.0625rem -0.125rem -0.0625rem 0.75rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":0.75rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":0.25rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.5625rem 0 0.125rem 0;", ":1.5625rem 0 0.5625rem 0;", ":0.25rem;", ":0.5rem;", ":auto;", ":2.75rem;", ":0.75rem;", ":1rem;", ":0.625rem;", ":0rem;", ":1.5rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);"], tokens.height, tokens.padding, tokens.paddingWithChips, tokens.borderRadius, tokens.leftContentMargin, tokens.rightContentMargin, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.labelOffset, tokens.labelFontFamily, tokens.labelFontSize, tokens.labelFontStyle, tokens.labelFontWeight, tokens.labelLetterSpacing, tokens.labelLineHeight, tokens.leftHelperOffset, tokens.leftHelperFontFamily, tokens.leftHelperFontSize, tokens.leftHelperFontStyle, tokens.leftHelperFontWeight, tokens.leftHelperLetterSpacing, tokens.leftHelperLineHeight, tokens.labelInnerPadding, tokens.contentLabelInnerPadding, tokens.chipGap, tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPaddingRight, tokens.chipPaddingLeft, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipCloseIconSize, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight),
|
21
|
-
m: /*#__PURE__*/css(["", ":3rem;", ":0.875rem 1rem 0.875rem 1rem;", ":0.375rem;", ":0.75rem;", ":-0.125rem 0.375rem -0.125rem -0.125rem;", ":-0.125rem -0.125rem -0.125rem 0.75rem;", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":0.625rem;", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":0.25rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.375rem 0 0.125rem 0;", ":1.375rem 0 0.375rem 0;", ":0.25rem;", ":0.375rem;", ":auto;", ":2.25rem;", ":0.625rem;", ":0.875rem;", ":0.5rem;", ":0rem;", ":1.25rem;", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);"], tokens.height, tokens.padding, tokens.paddingWithChips, tokens.borderRadius, tokens.leftContentMargin, tokens.rightContentMargin, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.labelOffset, tokens.labelFontFamily, tokens.labelFontSize, tokens.labelFontStyle, tokens.labelFontWeight, tokens.labelLetterSpacing, tokens.labelLineHeight, tokens.leftHelperOffset, tokens.leftHelperFontFamily, tokens.leftHelperFontSize, tokens.leftHelperFontStyle, tokens.leftHelperFontWeight, tokens.leftHelperLetterSpacing, tokens.leftHelperLineHeight, tokens.labelInnerPadding, tokens.contentLabelInnerPadding, tokens.chipGap, tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPaddingRight, tokens.chipPaddingLeft, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipCloseIconSize, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight),
|
22
|
-
s: /*#__PURE__*/css(["", ":2.5rem;", ":0.6875rem 0.875rem 0.6875rem 0.875rem;", ":0.375rem;", ":0.625rem;", ":-0.1875rem 0.25rem -0.1875rem -0.125rem;", ":-0.1875rem -0.125rem -0.1875rem 0.75rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":0.5rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":0.25rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.3125rem 0 0 0;", ":1.0625rem 0 0.3125rem 0;", ":0.25rem;", ":0.25rem;", ":auto;", ":1.75rem;", ":0.5rem;", ":0.75rem;", ":0.375rem;", ":0rem;", ":1rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);"], tokens.height, tokens.padding, tokens.paddingWithChips, tokens.borderRadius, tokens.leftContentMargin, tokens.rightContentMargin, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.labelOffset, tokens.labelFontFamily, tokens.labelFontSize, tokens.labelFontStyle, tokens.labelFontWeight, tokens.labelLetterSpacing, tokens.labelLineHeight, tokens.leftHelperOffset, tokens.leftHelperFontFamily, tokens.leftHelperFontSize, tokens.leftHelperFontStyle, tokens.leftHelperFontWeight, tokens.leftHelperLetterSpacing, tokens.leftHelperLineHeight, tokens.labelInnerPadding, tokens.contentLabelInnerPadding, tokens.chipGap, tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPaddingRight, tokens.chipPaddingLeft, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipCloseIconSize, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight),
|
23
|
-
xs: /*#__PURE__*/css(["", ":2rem;", ":0.5625rem 0.625rem 0.5625rem 0.625rem;", ":0.375rem;", ":0.5rem;", ":-0.0625rem 0.25rem -0.0625rem -0.125rem;", ":-0.0625rem -0.125rem -0.0625rem 0.75rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.375rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.25rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":0.3125rem 0 0 0;", ":1.0625rem 0 0.3125rem 0;", ":0.25rem;", ":0.125rem;", ":auto;", ":1.25rem;", ":0.375rem;", ":0.625rem;", ":0.25rem;", ":0rem;", ":0.75rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);"], tokens.height, tokens.padding, tokens.paddingWithChips, tokens.borderRadius, tokens.leftContentMargin, tokens.rightContentMargin, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, tokens.labelOffset, tokens.labelFontFamily, tokens.labelFontSize, tokens.labelFontStyle, tokens.labelFontWeight, tokens.labelLetterSpacing, tokens.labelLineHeight, tokens.leftHelperOffset, tokens.leftHelperFontFamily, tokens.leftHelperFontSize, tokens.leftHelperFontStyle, tokens.leftHelperFontWeight, tokens.leftHelperLetterSpacing, tokens.leftHelperLineHeight, tokens.labelInnerPadding, tokens.contentLabelInnerPadding, tokens.chipGap, tokens.chipBorderRadius, tokens.chipWidth, tokens.chipHeight, tokens.chipPaddingRight, tokens.chipPaddingLeft, tokens.chipClearContentMarginLeft, tokens.chipClearContentMarginRight, tokens.chipCloseIconSize, tokens.chipFontFamily, tokens.chipFontSize, tokens.chipFontStyle, tokens.chipFontWeight, tokens.chipLetterSpacing, tokens.chipLineHeight)
|
24
|
-
},
|
25
|
-
labelPlacement: {
|
26
|
-
inner: [labelPlacement_inner, /*#__PURE__*/css(["&.", "{", ":var(--plasma-input-label-color,var(--plasma-input-placeholder-color,var(--plasma-colors-secondary)));", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);}"], labelPlacement_inner, tokens.placeholderColor, tokens.labelInnerFontFamily, tokens.labelInnerFontSize, tokens.labelInnerFontStyle, tokens.labelInnerFontWeight, tokens.labelInnerLetterSpacing, tokens.labelInnerLineHeight)],
|
27
|
-
outer: [labelPlacement_outer, /*#__PURE__*/css(["&.", "{}"], labelPlacement_outer)]
|
28
|
-
},
|
29
|
-
disabled: {
|
30
|
-
"true": /*#__PURE__*/css(["", ":0.4;"], tokens.disabledOpacity)
|
31
|
-
},
|
32
|
-
// TODO заменить --surface-transparent-primary на корректный токен
|
33
|
-
readOnly: {
|
34
|
-
"true": /*#__PURE__*/css(["", ":var(--text-secondary);", ":var(--surface-transparent-primary);", ":var(--text-secondary);", ":var(--text-secondary);", ":var(--text-secondary);"], tokens.colorReadOnly, tokens.backgroundColorReadOnly, tokens.placeholderColorReadOnly, tokens.leftHelperColorReadOnly, tokens.labelColorReadOnly)
|
35
|
-
}
|
36
|
-
}
|
37
|
-
};
|
@@ -1,5 +0,0 @@
|
|
1
|
-
import { component, mergeConfig } from '../../../../engines';
|
2
|
-
import { textFieldConfig } from '../../../../components/TextField';
|
3
|
-
import { config } from './TextField.config';
|
4
|
-
var mergedConfig = /*#__PURE__*/mergeConfig(textFieldConfig, config);
|
5
|
-
export var TextField = /*#__PURE__*/component(mergedConfig);
|
package/styled-components/es/examples/sds_engineer/components/TextField/TextField.stories.tsx
DELETED
@@ -1,133 +0,0 @@
|
|
1
|
-
import React, { ComponentProps, useState } from 'react';
|
2
|
-
import type { StoryObj, Meta } from '@storybook/react';
|
3
|
-
import { action } from '@storybook/addon-actions';
|
4
|
-
import { IconPlaceholder } from '@salutejs/plasma-sb-utils';
|
5
|
-
|
6
|
-
import { WithTheme } from '../../../_helpers';
|
7
|
-
|
8
|
-
import { TextField } from './TextField';
|
9
|
-
|
10
|
-
const onChange = action('onChange');
|
11
|
-
const onFocus = action('onFocus');
|
12
|
-
const onBlur = action('onBlur');
|
13
|
-
const onSearch = action('onSearch');
|
14
|
-
|
15
|
-
const sizes = ['l', 'm', 's', 'xs'];
|
16
|
-
const views = ['default', 'positive', 'warning', 'negative'];
|
17
|
-
const enumerationTypes = ['plain', 'chip'];
|
18
|
-
const labelPlacements = ['outer', 'inner'];
|
19
|
-
|
20
|
-
const meta: Meta<typeof TextField> = {
|
21
|
-
title: 'sds_engineer/TextField',
|
22
|
-
component: TextField,
|
23
|
-
decorators: [WithTheme],
|
24
|
-
argTypes: {
|
25
|
-
view: {
|
26
|
-
options: views,
|
27
|
-
control: {
|
28
|
-
type: 'select',
|
29
|
-
},
|
30
|
-
},
|
31
|
-
maxLength: {
|
32
|
-
control: {
|
33
|
-
type: 'number',
|
34
|
-
},
|
35
|
-
},
|
36
|
-
labelPlacement: {
|
37
|
-
options: labelPlacements,
|
38
|
-
control: {
|
39
|
-
type: 'inline-radio',
|
40
|
-
},
|
41
|
-
},
|
42
|
-
enumerationType: {
|
43
|
-
options: enumerationTypes,
|
44
|
-
control: {
|
45
|
-
type: 'select',
|
46
|
-
},
|
47
|
-
},
|
48
|
-
size: {
|
49
|
-
options: sizes,
|
50
|
-
control: {
|
51
|
-
type: 'inline-radio',
|
52
|
-
},
|
53
|
-
},
|
54
|
-
},
|
55
|
-
};
|
56
|
-
|
57
|
-
export default meta;
|
58
|
-
|
59
|
-
type StoryPropsDefault = Omit<
|
60
|
-
ComponentProps<typeof TextField>,
|
61
|
-
| 'helperBlock'
|
62
|
-
| 'contentLeft'
|
63
|
-
| 'htmlSize'
|
64
|
-
| 'contentRight'
|
65
|
-
| 'type'
|
66
|
-
| 'name'
|
67
|
-
| 'onFocus'
|
68
|
-
| 'onBlur'
|
69
|
-
| 'onChange'
|
70
|
-
| 'value'
|
71
|
-
| 'checked'
|
72
|
-
| 'maxLength'
|
73
|
-
| 'minLength'
|
74
|
-
| 'required'
|
75
|
-
> & {
|
76
|
-
'storybook:contentLeft': boolean;
|
77
|
-
'storybook:contentRight': boolean;
|
78
|
-
};
|
79
|
-
|
80
|
-
const StoryDemo = ({
|
81
|
-
'storybook:contentLeft': enableContentLeft,
|
82
|
-
'storybook:contentRight': enableContentRight,
|
83
|
-
view,
|
84
|
-
...rest
|
85
|
-
}: StoryPropsDefault) => {
|
86
|
-
const [text, setText] = useState('Значение поля');
|
87
|
-
|
88
|
-
const iconSize = rest.size === 'xs' ? 'xs' : 's';
|
89
|
-
|
90
|
-
return (
|
91
|
-
<TextField
|
92
|
-
{...rest}
|
93
|
-
value={text}
|
94
|
-
contentLeft={enableContentLeft ? <IconPlaceholder size={iconSize} /> : undefined}
|
95
|
-
contentRight={enableContentRight ? <IconPlaceholder size={iconSize} /> : undefined}
|
96
|
-
view={view}
|
97
|
-
onChange={(e) => {
|
98
|
-
setText(e.target.value);
|
99
|
-
onChange(e.target.value);
|
100
|
-
}}
|
101
|
-
onFocus={onFocus}
|
102
|
-
onBlur={onBlur}
|
103
|
-
onSearch={onSearch}
|
104
|
-
/>
|
105
|
-
);
|
106
|
-
};
|
107
|
-
|
108
|
-
export const Default: StoryObj<StoryPropsDefault> = {
|
109
|
-
args: {
|
110
|
-
id: 'example-text-field',
|
111
|
-
size: 'l',
|
112
|
-
view: 'default',
|
113
|
-
label: 'Лейбл',
|
114
|
-
labelPlacement: 'outer',
|
115
|
-
placeholder: 'Заполните поле',
|
116
|
-
leftHelper: 'Подсказка к полю',
|
117
|
-
enumerationType: 'plain',
|
118
|
-
disabled: false,
|
119
|
-
readOnly: false,
|
120
|
-
'storybook:contentLeft': true,
|
121
|
-
'storybook:contentRight': true,
|
122
|
-
},
|
123
|
-
render: (args) => <StoryDemo {...args} />,
|
124
|
-
};
|
125
|
-
|
126
|
-
export const Chips: StoryObj<StoryPropsDefault> = {
|
127
|
-
args: {
|
128
|
-
...Default.args,
|
129
|
-
enumerationType: 'chip',
|
130
|
-
values: ['1 value', '2 value', '3 value', '4 value'],
|
131
|
-
},
|
132
|
-
render: (args) => <StoryDemo {...args} />,
|
133
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/TextField/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import type { ChangeEvent, KeyboardEvent } from 'react';
|
2
|
-
import type { UseKeyNavigationProps } from '../TextField.types';
|
3
|
-
export declare const Keys: {
|
4
|
-
Enter: string;
|
5
|
-
Tab: string;
|
6
|
-
Escape: string;
|
7
|
-
ArrowLeft: string;
|
8
|
-
ArrowRight: string;
|
9
|
-
Backspace: string;
|
10
|
-
};
|
11
|
-
export declare const useKeyNavigation: ({ controlledRefs: { chipsRefs, contentRef, inputRef }, disabled, readOnly, chips, enumerationType, updateChips, onChange, onSearch, }: UseKeyNavigationProps) => {
|
12
|
-
readonly handleInputKeydown: (event: ChangeEvent<HTMLInputElement> & KeyboardEvent<HTMLInputElement>) => void;
|
13
|
-
readonly handleChipKeyDown: (event: KeyboardEvent<HTMLButtonElement>, chipId: string) => void;
|
14
|
-
readonly onChipClear: (clearId: string) => void;
|
15
|
-
readonly handleContentKeyDown: (event: KeyboardEvent<HTMLDivElement>) => void;
|
16
|
-
};
|
17
|
-
//# sourceMappingURL=useKeyNavigation.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"useKeyNavigation.d.ts","sourceRoot":"","sources":["../../../../src/components/TextField/hooks/useKeyNavigation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAExD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAEhE,eAAO,MAAM,IAAI;;;;;;;CAOhB,CAAC;AAEF,eAAO,MAAM,gBAAgB,0IAS1B,qBAAqB;yCAGe,YAAY,gBAAgB,CAAC,GAAG,cAAc,gBAAgB,CAAC;wCA4ChE,cAAc,iBAAiB,CAAC,UAAU,MAAM;oCAXpD,MAAM;2CAqBC,cAAc,cAAc,CAAC;CAkDrE,CAAC"}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import type { TextFieldChipProps } from './TextFieldChip.types';
|
3
|
-
/**
|
4
|
-
* Чип, отображающий выбранный элемент
|
5
|
-
*/
|
6
|
-
export declare const TextFieldChip: React.ForwardRefExoticComponent<TextFieldChipProps & React.RefAttributes<HTMLButtonElement>>;
|
7
|
-
//# sourceMappingURL=TextFieldChip.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"TextFieldChip.d.ts","sourceRoot":"","sources":["../../../../../src/components/TextField/ui/TextFieldChip/TextFieldChip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,aAAa,8FAqBzB,CAAC"}
|
@@ -1,3 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
export declare const StyledChip: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("../../../../engines/types").PropsType<import("../../../../engines/types").Variants> & import("../../../Chip").ChipProps & import("react").RefAttributes<HTMLButtonElement>>;
|
3
|
-
//# sourceMappingURL=TextFieldChip.styles.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"TextFieldChip.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/TextField/ui/TextFieldChip/TextFieldChip.styles.ts"],"names":[],"mappings":";AAYA,eAAO,MAAM,UAAU,6PA2CtB,CAAC"}
|
@@ -1,37 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import type { TextFieldPrimitiveValue } from '../../TextField.types';
|
3
|
-
export interface TextFieldChipProps {
|
4
|
-
/**
|
5
|
-
* ID для чипа.
|
6
|
-
*/
|
7
|
-
chipId: string;
|
8
|
-
/**
|
9
|
-
* Отображаемый текст.
|
10
|
-
*/
|
11
|
-
text: TextFieldPrimitiveValue;
|
12
|
-
/**
|
13
|
-
* Выбранное значение.
|
14
|
-
*/
|
15
|
-
value: TextFieldPrimitiveValue;
|
16
|
-
/**
|
17
|
-
* Компонент неактивен
|
18
|
-
*/
|
19
|
-
disabled?: boolean;
|
20
|
-
/**
|
21
|
-
* Элемент формы не может изменяться пользователем
|
22
|
-
*/
|
23
|
-
readOnly?: boolean;
|
24
|
-
/**
|
25
|
-
* Обработчик удаления выбранного значения.
|
26
|
-
*/
|
27
|
-
onClear: (id: string) => void;
|
28
|
-
/**
|
29
|
-
* Обработчик клика на выбранное значение.
|
30
|
-
*/
|
31
|
-
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
32
|
-
/**
|
33
|
-
* Обработчик нажатия клавиши.
|
34
|
-
*/
|
35
|
-
onKeyDown?: (event: React.KeyboardEvent<HTMLButtonElement>, chipId: string) => void;
|
36
|
-
}
|
37
|
-
//# sourceMappingURL=TextFieldChip.types.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"TextFieldChip.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/TextField/ui/TextFieldChip/TextFieldChip.types.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAErE,MAAM,WAAW,kBAAkB;IAC/B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,EAAE,uBAAuB,CAAC;IAC9B;;OAEG;IACH,KAAK,EAAE,uBAAuB,CAAC;IAC/B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9B;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAC/D;;OAEG;IACH,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,iBAAiB,CAAC,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACvF"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/TextField/ui/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/components/TextField/variations/_disabled/base.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI,0CAUhB,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/components/TextField/variations/_label-placement/base.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI,0CAAQ,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/TextField/variations/_label-placement/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"inner.d.ts","sourceRoot":"","sources":["../../../../../src/components/TextField/variations/_label-placement/inner.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,oBAAoB,0CA4ChC,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"outer.d.ts","sourceRoot":"","sources":["../../../../../src/components/TextField/variations/_label-placement/outer.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,oBAAoB,0CAMhC,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/components/TextField/variations/_read-only/base.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI,0CA8BhB,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/components/TextField/variations/_size/base.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI,0CAgDhB,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/components/TextField/variations/_view/base.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI,0CAmChB,CAAC"}
|
@@ -1,32 +0,0 @@
|
|
1
|
-
export declare const config: {
|
2
|
-
defaults: {
|
3
|
-
view: string;
|
4
|
-
size: string;
|
5
|
-
labelPlacement: string;
|
6
|
-
};
|
7
|
-
variations: {
|
8
|
-
view: {
|
9
|
-
default: import("@linaria/core").LinariaClassName;
|
10
|
-
positive: import("@linaria/core").LinariaClassName;
|
11
|
-
warning: import("@linaria/core").LinariaClassName;
|
12
|
-
negative: import("@linaria/core").LinariaClassName;
|
13
|
-
};
|
14
|
-
size: {
|
15
|
-
l: import("@linaria/core").LinariaClassName;
|
16
|
-
m: import("@linaria/core").LinariaClassName;
|
17
|
-
s: import("@linaria/core").LinariaClassName;
|
18
|
-
xs: import("@linaria/core").LinariaClassName;
|
19
|
-
};
|
20
|
-
labelPlacement: {
|
21
|
-
inner: import("@linaria/core").LinariaClassName[];
|
22
|
-
outer: import("@linaria/core").LinariaClassName[];
|
23
|
-
};
|
24
|
-
disabled: {
|
25
|
-
true: import("@linaria/core").LinariaClassName;
|
26
|
-
};
|
27
|
-
readOnly: {
|
28
|
-
true: import("@linaria/core").LinariaClassName;
|
29
|
-
};
|
30
|
-
};
|
31
|
-
};
|
32
|
-
//# sourceMappingURL=TextField.config.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"TextField.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/TextField/TextField.config.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiWlB,CAAC"}
|
@@ -1,26 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
export declare const TextField: import("react").FunctionComponent<import("../../../../engines/types").PropsType<{
|
3
|
-
view: {
|
4
|
-
default: import("@linaria/core").LinariaClassName;
|
5
|
-
positive: import("@linaria/core").LinariaClassName;
|
6
|
-
warning: import("@linaria/core").LinariaClassName;
|
7
|
-
negative: import("@linaria/core").LinariaClassName;
|
8
|
-
};
|
9
|
-
size: {
|
10
|
-
l: import("@linaria/core").LinariaClassName;
|
11
|
-
m: import("@linaria/core").LinariaClassName;
|
12
|
-
s: import("@linaria/core").LinariaClassName;
|
13
|
-
xs: import("@linaria/core").LinariaClassName;
|
14
|
-
};
|
15
|
-
labelPlacement: {
|
16
|
-
inner: import("@linaria/core").LinariaClassName[];
|
17
|
-
outer: import("@linaria/core").LinariaClassName[];
|
18
|
-
};
|
19
|
-
disabled: {
|
20
|
-
true: import("@linaria/core").LinariaClassName;
|
21
|
-
};
|
22
|
-
readOnly: {
|
23
|
-
true: import("@linaria/core").LinariaClassName;
|
24
|
-
};
|
25
|
-
}> & import("../../../../components/TextField").TextFieldProps & import("react").RefAttributes<HTMLDivElement>>;
|
26
|
-
//# sourceMappingURL=TextField.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/TextField/TextField.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;+GAA0B,CAAC"}
|
@@ -1,32 +0,0 @@
|
|
1
|
-
export declare const config: {
|
2
|
-
defaults: {
|
3
|
-
view: string;
|
4
|
-
size: string;
|
5
|
-
labelPlacement: string;
|
6
|
-
};
|
7
|
-
variations: {
|
8
|
-
view: {
|
9
|
-
default: import("@linaria/core").LinariaClassName;
|
10
|
-
positive: import("@linaria/core").LinariaClassName;
|
11
|
-
warning: import("@linaria/core").LinariaClassName;
|
12
|
-
negative: import("@linaria/core").LinariaClassName;
|
13
|
-
};
|
14
|
-
size: {
|
15
|
-
l: import("@linaria/core").LinariaClassName;
|
16
|
-
m: import("@linaria/core").LinariaClassName;
|
17
|
-
s: import("@linaria/core").LinariaClassName;
|
18
|
-
xs: import("@linaria/core").LinariaClassName;
|
19
|
-
};
|
20
|
-
labelPlacement: {
|
21
|
-
inner: import("@linaria/core").LinariaClassName[];
|
22
|
-
outer: import("@linaria/core").LinariaClassName[];
|
23
|
-
};
|
24
|
-
disabled: {
|
25
|
-
true: import("@linaria/core").LinariaClassName;
|
26
|
-
};
|
27
|
-
readOnly: {
|
28
|
-
true: import("@linaria/core").LinariaClassName;
|
29
|
-
};
|
30
|
-
};
|
31
|
-
};
|
32
|
-
//# sourceMappingURL=TextField.config.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"TextField.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/TextField/TextField.config.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+WlB,CAAC"}
|
@@ -1,26 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
export declare const TextField: import("react").FunctionComponent<import("../../../../engines/types").PropsType<{
|
3
|
-
view: {
|
4
|
-
default: import("@linaria/core").LinariaClassName;
|
5
|
-
positive: import("@linaria/core").LinariaClassName;
|
6
|
-
warning: import("@linaria/core").LinariaClassName;
|
7
|
-
negative: import("@linaria/core").LinariaClassName;
|
8
|
-
};
|
9
|
-
size: {
|
10
|
-
l: import("@linaria/core").LinariaClassName;
|
11
|
-
m: import("@linaria/core").LinariaClassName;
|
12
|
-
s: import("@linaria/core").LinariaClassName;
|
13
|
-
xs: import("@linaria/core").LinariaClassName;
|
14
|
-
};
|
15
|
-
labelPlacement: {
|
16
|
-
inner: import("@linaria/core").LinariaClassName[];
|
17
|
-
outer: import("@linaria/core").LinariaClassName[];
|
18
|
-
};
|
19
|
-
disabled: {
|
20
|
-
true: import("@linaria/core").LinariaClassName;
|
21
|
-
};
|
22
|
-
readOnly: {
|
23
|
-
true: import("@linaria/core").LinariaClassName;
|
24
|
-
};
|
25
|
-
}> & import("../../../../components/TextField").TextFieldProps & import("react").RefAttributes<HTMLDivElement>>;
|
26
|
-
//# sourceMappingURL=TextField.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/TextField/TextField.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;+GAA0B,CAAC"}
|