@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,5 +1,5 @@
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
2
|
-
var _excluded = ["target", "children", "isOpen", "trigger", "hasArrow", "frame", "className", "placement", "offset", "zIndex", "isFocusTrapped", "closeOnEsc", "preventOverflow", "usePortal", "view", "onToggle"];
|
2
|
+
var _excluded = ["target", "children", "isOpen", "trigger", "hasArrow", "frame", "className", "placement", "offset", "zIndex", "isFocusTrapped", "closeOnEsc", "preventOverflow", "usePortal", "view", "onToggle", "closeOnOverlayClick"];
|
3
3
|
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); }
|
4
4
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
5
5
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
@@ -30,41 +30,34 @@ export var POPOVER_PORTAL_ID = 'plasma-popover-root';
|
|
30
30
|
* и вызова по клику либо ховеру.
|
31
31
|
*/
|
32
32
|
export var popoverRoot = function popoverRoot(Root) {
|
33
|
-
return /*#__PURE__*/forwardRef(function (
|
33
|
+
return /*#__PURE__*/forwardRef(function (_ref, outerRootRef) {
|
34
34
|
var _placement$;
|
35
|
-
var target =
|
36
|
-
children =
|
37
|
-
isOpen =
|
38
|
-
|
39
|
-
trigger =
|
40
|
-
hasArrow =
|
41
|
-
|
42
|
-
frame =
|
43
|
-
className =
|
44
|
-
|
45
|
-
placement =
|
46
|
-
|
47
|
-
offset =
|
48
|
-
zIndex =
|
49
|
-
|
50
|
-
isFocusTrapped =
|
51
|
-
|
52
|
-
closeOnEsc =
|
53
|
-
|
54
|
-
preventOverflow =
|
55
|
-
|
56
|
-
usePortal =
|
57
|
-
view =
|
58
|
-
onToggle =
|
59
|
-
|
60
|
-
|
61
|
-
var closeOnBeyondTargetHover = true;
|
62
|
-
if (props.trigger === 'click' && props.closeOnOverlayClick === false) {
|
63
|
-
closeOnOverlayClick = false;
|
64
|
-
}
|
65
|
-
if (props.trigger === 'hover' && props.closeOnBeyondTargetHover === false) {
|
66
|
-
closeOnBeyondTargetHover = false;
|
67
|
-
}
|
35
|
+
var target = _ref.target,
|
36
|
+
children = _ref.children,
|
37
|
+
isOpen = _ref.isOpen,
|
38
|
+
_ref$trigger = _ref.trigger,
|
39
|
+
trigger = _ref$trigger === void 0 ? 'click' : _ref$trigger,
|
40
|
+
hasArrow = _ref.hasArrow,
|
41
|
+
_ref$frame = _ref.frame,
|
42
|
+
frame = _ref$frame === void 0 ? 'document' : _ref$frame,
|
43
|
+
className = _ref.className,
|
44
|
+
_ref$placement = _ref.placement,
|
45
|
+
placement = _ref$placement === void 0 ? 'auto' : _ref$placement,
|
46
|
+
_ref$offset = _ref.offset,
|
47
|
+
offset = _ref$offset === void 0 ? [0, 0] : _ref$offset,
|
48
|
+
zIndex = _ref.zIndex,
|
49
|
+
_ref$isFocusTrapped = _ref.isFocusTrapped,
|
50
|
+
isFocusTrapped = _ref$isFocusTrapped === void 0 ? true : _ref$isFocusTrapped,
|
51
|
+
_ref$closeOnEsc = _ref.closeOnEsc,
|
52
|
+
closeOnEsc = _ref$closeOnEsc === void 0 ? true : _ref$closeOnEsc,
|
53
|
+
_ref$preventOverflow = _ref.preventOverflow,
|
54
|
+
preventOverflow = _ref$preventOverflow === void 0 ? true : _ref$preventOverflow,
|
55
|
+
_ref$usePortal = _ref.usePortal,
|
56
|
+
usePortal = _ref$usePortal === void 0 ? false : _ref$usePortal,
|
57
|
+
view = _ref.view,
|
58
|
+
onToggle = _ref.onToggle,
|
59
|
+
closeOnOverlayClick = _ref.closeOnOverlayClick,
|
60
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
68
61
|
var rootRef = useRef(null);
|
69
62
|
var popoverRef = useRef(null);
|
70
63
|
var handleRef = useForkRef(rootRef, outerRootRef);
|
@@ -164,7 +157,7 @@ export var popoverRoot = function popoverRoot(Root) {
|
|
164
157
|
return function () {
|
165
158
|
return document.removeEventListener('click', onDocumentClick);
|
166
159
|
};
|
167
|
-
}, [
|
160
|
+
}, [isOpen, onToggle]);
|
168
161
|
useEffect(function () {
|
169
162
|
window.addEventListener('keydown', onEscape);
|
170
163
|
return function () {
|
@@ -211,22 +204,19 @@ export var popoverRoot = function popoverRoot(Root) {
|
|
211
204
|
Promise.resolve().then(forceUpdate);
|
212
205
|
}, [isOpen, children, forceUpdate]);
|
213
206
|
return /*#__PURE__*/React.createElement(StyledWrapper, {
|
214
|
-
className: classes.wrapper
|
207
|
+
className: classes.wrapper,
|
208
|
+
onMouseEnter: onMouseEnter,
|
209
|
+
onMouseLeave: onMouseLeave
|
215
210
|
}, /*#__PURE__*/React.createElement(StyledRoot, {
|
216
211
|
ref: handleRef,
|
217
212
|
onClick: onClick,
|
218
|
-
onMouseEnter: onMouseEnter,
|
219
|
-
onMouseLeave: onMouseLeave,
|
220
213
|
onFocus: onFocus,
|
221
214
|
onBlur: onBlur,
|
222
215
|
className: cx(className, classes.target)
|
223
216
|
}, target), children && portalRef.current && /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(Root, _extends({
|
224
217
|
view: view,
|
225
218
|
className: className
|
226
|
-
}, rest, {
|
227
|
-
onMouseEnter: closeOnBeyondTargetHover ? undefined : onMouseEnter,
|
228
|
-
onMouseLeave: closeOnBeyondTargetHover ? undefined : onMouseEnter
|
229
|
-
}), /*#__PURE__*/React.createElement(StyledPopover, _extends({}, attributes.popper, {
|
219
|
+
}, rest), /*#__PURE__*/React.createElement(StyledPopover, _extends({}, attributes.popper, {
|
230
220
|
className: classes.root,
|
231
221
|
ref: popoverForkRef,
|
232
222
|
style: _objectSpread(_objectSpread(_objectSpread({}, styles.popper), {
|
@@ -3,7 +3,7 @@ import { DEFAULT_Z_INDEX } from '../Popup/utils';
|
|
3
3
|
import { classes, tokens } from './Popover.tokens';
|
4
4
|
export var StyledWrapper = /*#__PURE__*/styled.div.withConfig({
|
5
5
|
componentId: "plasma-new-hope__sc-tnpyex-0"
|
6
|
-
})([""]);
|
6
|
+
})(["display:inline-block;"]);
|
7
7
|
export var StyledRoot = /*#__PURE__*/styled.div.withConfig({
|
8
8
|
componentId: "plasma-new-hope__sc-tnpyex-1"
|
9
9
|
})(["display:inline-flex;box-sizing:border-box;position:relative;"]);
|
@@ -111,7 +111,8 @@ export var SelectTarget = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
111
111
|
"aria-label": label,
|
112
112
|
className: cx(withInnerLabelUp, withHasChips, withNoFocus, selectTarget),
|
113
113
|
onWheel: onWheel,
|
114
|
-
onKeyDown: onKeyDown
|
114
|
+
onKeyDown: onKeyDown,
|
115
|
+
stretching: "filled"
|
115
116
|
}), hasText && (enumerationType === 'comma' || target === 'button-like' ? /*#__PURE__*/React.createElement(StyledText, {
|
116
117
|
className: selectTargeText
|
117
118
|
}, textContent) : /*#__PURE__*/React.createElement(StyledChipsWrapper, {
|
@@ -1,221 +1,91 @@
|
|
1
|
-
var _excluded = ["
|
1
|
+
var _excluded = ["contentLeft", "contentRight", "children", "label", "labelPlacement", "placeholder", "leftHelper", "view", "size", "disabled", "onChange", "onSearch"];
|
2
2
|
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); }
|
3
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
4
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
5
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
6
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
7
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
8
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
9
3
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
10
4
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
11
|
-
import React, { forwardRef
|
12
|
-
import { safeUseId } from '@salutejs/plasma-core';
|
5
|
+
import React, { forwardRef } from 'react';
|
13
6
|
import { css } from 'styled-components';
|
14
|
-
import {
|
15
|
-
import { base as
|
16
|
-
import { base as
|
17
|
-
import { base as
|
18
|
-
import { base as
|
19
|
-
import {
|
20
|
-
|
21
|
-
import { classes } from './TextField.tokens';
|
22
|
-
import { TextFieldChip } from './ui';
|
23
|
-
import { useKeyNavigation } from './hooks/useKeyNavigation';
|
24
|
-
export var base = /*#__PURE__*/css(["display:block;overflow:hidden;"]);
|
7
|
+
import { safeUseId } from '@salutejs/plasma-core';
|
8
|
+
import { base as size } from './_size/base';
|
9
|
+
import { base as view } from './_view/base';
|
10
|
+
import { base as disabled } from './_disabled/base';
|
11
|
+
import { base as labelPlacement } from './_label-placement/base';
|
12
|
+
import { Input, LeftHelper, Label, InputWrapper, InputLabelWrapper } from './TextField.styles';
|
13
|
+
var base = /*#__PURE__*/css(["display:block;"]);
|
25
14
|
export var textFieldRoot = function textFieldRoot(Root) {
|
26
|
-
return /*#__PURE__*/forwardRef(function (
|
27
|
-
var
|
28
|
-
|
29
|
-
|
30
|
-
label =
|
31
|
-
labelPlacement =
|
32
|
-
placeholder =
|
33
|
-
leftHelper =
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
_ref$disabled = _ref.disabled,
|
41
|
-
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
42
|
-
values = _ref.values,
|
43
|
-
onChange = _ref.onChange,
|
44
|
-
onChangeChips = _ref.onChangeChips,
|
45
|
-
onSearch = _ref.onSearch,
|
46
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
47
|
-
var contentRef = useRef(null);
|
48
|
-
var inputRef = useRef(null);
|
49
|
-
var chipsRefs = useRef([]);
|
50
|
-
var controlledRefs = {
|
51
|
-
contentRef: contentRef,
|
52
|
-
inputRef: inputRef,
|
53
|
-
chipsRefs: chipsRefs
|
54
|
-
};
|
55
|
-
var _useState = useState([]),
|
56
|
-
_useState2 = _slicedToArray(_useState, 2),
|
57
|
-
chips = _useState2[0],
|
58
|
-
setChips = _useState2[1];
|
59
|
-
var uniqId = safeUseId();
|
60
|
-
var innerId = id || uniqId;
|
61
|
-
var labelId = safeUseId();
|
62
|
-
var helperTextId = safeUseId();
|
63
|
-
var isChipEnumeration = enumerationType === 'chip';
|
64
|
-
var hideLabel = (size === 'xs' || isChipEnumeration) && labelPlacement === 'inner';
|
65
|
-
var labelInside = size !== 'xs' && labelPlacement === 'inner';
|
66
|
-
var innerLabelPlacementValue = hideLabel ? 'outer' : labelPlacement;
|
67
|
-
var innerPlaceholderValue = hideLabel ? label : placeholder;
|
68
|
-
var innerLabelValue = hideLabel ? undefined : label;
|
69
|
-
var isChipsVisible = isChipEnumeration && (chips === null || chips === void 0 ? void 0 : chips.length);
|
70
|
-
var withHasChips = isChipsVisible ? classes.hasChips : undefined;
|
71
|
-
var wrapperWithoutLeftContent = !contentLeft && isChipsVisible ? classes.hasEmptyContentLeft : undefined;
|
72
|
-
var wrapperWithoutRightContent = !contentRight && isChipsVisible ? classes.hasEmptyContentRight : undefined;
|
15
|
+
return /*#__PURE__*/forwardRef(function (props, ref) {
|
16
|
+
var contentLeft = props.contentLeft,
|
17
|
+
contentRight = props.contentRight,
|
18
|
+
children = props.children,
|
19
|
+
label = props.label,
|
20
|
+
labelPlacement = props.labelPlacement,
|
21
|
+
placeholder = props.placeholder,
|
22
|
+
leftHelper = props.leftHelper,
|
23
|
+
view = props.view,
|
24
|
+
size = props.size,
|
25
|
+
disabled = props.disabled,
|
26
|
+
onChange = props.onChange,
|
27
|
+
onSearch = props.onSearch,
|
28
|
+
rest = _objectWithoutProperties(props, _excluded);
|
73
29
|
var handleChange = function handleChange(event) {
|
74
|
-
if (disabled || readOnly) {
|
75
|
-
return;
|
76
|
-
}
|
77
30
|
var _event$target = event.target,
|
78
31
|
maxLength = _event$target.maxLength,
|
79
32
|
value = _event$target.value;
|
80
|
-
if (maxLength !== -1 && value.length > maxLength) {
|
81
|
-
return;
|
82
|
-
}
|
83
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(event);
|
84
|
-
};
|
85
|
-
var updateChips = function updateChips(newChips, newValues) {
|
86
|
-
setChips(newChips);
|
87
|
-
onChangeChips === null || onChangeChips === void 0 ? void 0 : onChangeChips(newValues);
|
88
|
-
};
|
89
|
-
var _useKeyNavigation = useKeyNavigation({
|
90
|
-
controlledRefs: controlledRefs,
|
91
|
-
disabled: disabled,
|
92
|
-
readOnly: readOnly,
|
93
|
-
chips: chips,
|
94
|
-
enumerationType: enumerationType,
|
95
|
-
updateChips: updateChips,
|
96
|
-
onSearch: onSearch,
|
97
|
-
onChange: onChange
|
98
|
-
}),
|
99
|
-
handleInputKeydown = _useKeyNavigation.handleInputKeydown,
|
100
|
-
handleChipKeyDown = _useKeyNavigation.handleChipKeyDown,
|
101
|
-
onChipClear = _useKeyNavigation.onChipClear,
|
102
|
-
handleContentKeyDown = _useKeyNavigation.handleContentKeyDown;
|
103
|
-
var onChipClick = function onChipClick(event) {
|
104
|
-
return event.stopPropagation();
|
105
|
-
};
|
106
|
-
var handleInputFocus = function handleInputFocus() {
|
107
|
-
if (readOnly || disabled || !(inputRef !== null && inputRef !== void 0 && inputRef.current)) {
|
33
|
+
if (!onChange || maxLength !== -1 && value.length > maxLength) {
|
108
34
|
return;
|
109
35
|
}
|
110
|
-
|
111
|
-
behavior: 'smooth',
|
112
|
-
block: 'center',
|
113
|
-
inline: 'center'
|
114
|
-
});
|
115
|
-
inputRef.current.focus({
|
116
|
-
preventScroll: true
|
117
|
-
});
|
36
|
+
onChange(event);
|
118
37
|
};
|
119
|
-
var
|
120
|
-
if (
|
121
|
-
|
38
|
+
var handleKeyUp = function handleKeyUp(event) {
|
39
|
+
if (event.key === 'Enter' && onSearch) {
|
40
|
+
onSearch(event.target.value, event);
|
122
41
|
}
|
123
42
|
};
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
}
|
128
|
-
var newChips = (values === null || values === void 0 ? void 0 : values.map(function (value, index) {
|
129
|
-
return {
|
130
|
-
id: "".concat(index, "_").concat(value),
|
131
|
-
text: value
|
132
|
-
};
|
133
|
-
})) || [];
|
134
|
-
setChips(newChips);
|
135
|
-
}, [isChipEnumeration, values]);
|
43
|
+
var labelInside = labelPlacement === 'inner';
|
44
|
+
var lableId = safeUseId();
|
45
|
+
var helperTextId = safeUseId();
|
136
46
|
return /*#__PURE__*/React.createElement(Root, {
|
137
|
-
ref: ref,
|
138
47
|
view: view,
|
139
48
|
size: size,
|
140
49
|
disabled: disabled,
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
},
|
145
|
-
|
146
|
-
|
147
|
-
}, innerLabelValue), /*#__PURE__*/React.createElement(InputWrapper, {
|
148
|
-
className: cx(withHasChips, wrapperWithoutLeftContent, wrapperWithoutRightContent)
|
149
|
-
}, contentLeft && /*#__PURE__*/React.createElement(StyledContentLeft, null, contentLeft), /*#__PURE__*/React.createElement(InputLabelWrapper, {
|
150
|
-
tabIndex: -1,
|
151
|
-
ref: contentRef,
|
152
|
-
onKeyDown: handleContentKeyDown,
|
153
|
-
className: withHasChips
|
154
|
-
}, isChipEnumeration && Boolean(chips === null || chips === void 0 ? void 0 : chips.length) && /*#__PURE__*/React.createElement(StyledChips, null, chips === null || chips === void 0 ? void 0 : chips.map(function (_ref2, index) {
|
155
|
-
var chipId = _ref2.id,
|
156
|
-
text = _ref2.text;
|
157
|
-
return /*#__PURE__*/React.createElement(TextFieldChip, {
|
158
|
-
ref: function ref(element) {
|
159
|
-
return getRef(element, index);
|
160
|
-
},
|
161
|
-
chipId: chipId,
|
162
|
-
key: "".concat(chipId, "_").concat(index),
|
163
|
-
disabled: disabled,
|
164
|
-
readOnly: readOnly,
|
165
|
-
value: text,
|
166
|
-
text: text,
|
167
|
-
onKeyDown: function onKeyDown(event) {
|
168
|
-
return handleChipKeyDown(event, chipId);
|
169
|
-
},
|
170
|
-
onClear: function onClear() {
|
171
|
-
return onChipClear(chipId);
|
172
|
-
},
|
173
|
-
onClick: onChipClick
|
174
|
-
});
|
175
|
-
})), /*#__PURE__*/React.createElement(Input, _extends({}, rest, {
|
176
|
-
ref: inputRef,
|
177
|
-
id: innerId,
|
178
|
-
"aria-labelledby": labelId,
|
50
|
+
labelPlacement: labelPlacement
|
51
|
+
}, labelInside || label && /*#__PURE__*/React.createElement(Label, {
|
52
|
+
id: lableId
|
53
|
+
}, label), /*#__PURE__*/React.createElement(InputWrapper, null, contentLeft, /*#__PURE__*/React.createElement(InputLabelWrapper, null, /*#__PURE__*/React.createElement(Input, _extends({}, rest, {
|
54
|
+
ref: ref,
|
55
|
+
"aria-labelledby": lableId,
|
179
56
|
"aria-describedby": helperTextId,
|
180
|
-
placeholder:
|
57
|
+
placeholder: placeholder,
|
181
58
|
disabled: disabled,
|
182
|
-
readOnly: !disabled && readOnly,
|
183
59
|
onChange: handleChange,
|
184
|
-
|
60
|
+
onKeyUp: handleKeyUp
|
185
61
|
})), labelInside && /*#__PURE__*/React.createElement(Label, {
|
186
|
-
id:
|
187
|
-
|
188
|
-
}, innerLabelValue)), contentRight && /*#__PURE__*/React.createElement(StyledContentRight, null, contentRight)), leftHelper && /*#__PURE__*/React.createElement(LeftHelper, {
|
62
|
+
id: lableId
|
63
|
+
}, label)), contentRight), leftHelper && /*#__PURE__*/React.createElement(LeftHelper, {
|
189
64
|
id: helperTextId
|
190
65
|
}, leftHelper));
|
191
66
|
});
|
192
67
|
};
|
193
68
|
export var textFieldConfig = {
|
194
69
|
name: 'TextField',
|
195
|
-
tag: '
|
70
|
+
tag: 'label',
|
196
71
|
layout: textFieldRoot,
|
197
72
|
base: base,
|
198
73
|
variations: {
|
199
74
|
view: {
|
200
|
-
css:
|
75
|
+
css: view
|
201
76
|
},
|
202
77
|
size: {
|
203
|
-
css:
|
78
|
+
css: size
|
204
79
|
},
|
205
80
|
disabled: {
|
206
|
-
css:
|
207
|
-
attrs: true
|
208
|
-
},
|
209
|
-
readOnly: {
|
210
|
-
css: readOnlyCSS,
|
81
|
+
css: disabled,
|
211
82
|
attrs: true
|
212
83
|
},
|
213
84
|
labelPlacement: {
|
214
|
-
css:
|
85
|
+
css: labelPlacement
|
215
86
|
}
|
216
87
|
},
|
217
88
|
defaults: {
|
218
|
-
size: 'm'
|
219
|
-
view: 'default'
|
89
|
+
size: 'm'
|
220
90
|
}
|
221
91
|
};
|
@@ -1,26 +1,18 @@
|
|
1
1
|
import styled from 'styled-components';
|
2
|
-
|
3
|
-
export var InputWrapper = /*#__PURE__*/styled.div.withConfig({
|
2
|
+
export var Input = /*#__PURE__*/styled.input.withConfig({
|
4
3
|
componentId: "plasma-new-hope__sc-g4vxbb-0"
|
5
|
-
})(["
|
4
|
+
})(["box-sizing:border-box;appearance:none;border:0;padding:0;background-color:transparent;outline:none;"]);
|
6
5
|
export var InputLabelWrapper = /*#__PURE__*/styled.div.withConfig({
|
7
6
|
componentId: "plasma-new-hope__sc-g4vxbb-1"
|
8
|
-
})(["
|
9
|
-
|
7
|
+
})(["", "{width:100%;}"], Input);
|
8
|
+
|
9
|
+
// NOTE: border-width is used in size border-color is used in view
|
10
|
+
export var InputWrapper = /*#__PURE__*/styled.div.withConfig({
|
10
11
|
componentId: "plasma-new-hope__sc-g4vxbb-2"
|
11
|
-
})(["display:flex;
|
12
|
-
export var
|
12
|
+
})(["position:relative;display:flex;align-items:center;box-shadow:inset 0 0 0 var(--plasma_private-textfield-border-width) var(--plasma_private-textfield-border-color);", "{flex-grow:1;}"], InputLabelWrapper);
|
13
|
+
export var Label = /*#__PURE__*/styled.div.withConfig({
|
13
14
|
componentId: "plasma-new-hope__sc-g4vxbb-3"
|
14
|
-
})(["box-sizing:border-box;appearance:none;border:0;padding:0;background-color:transparent;outline:none;flex:1;min-width:60%;"]);
|
15
|
-
export var Label = /*#__PURE__*/styled.label.withConfig({
|
16
|
-
componentId: "plasma-new-hope__sc-g4vxbb-4"
|
17
15
|
})([""]);
|
18
|
-
export var StyledContentLeft = /*#__PURE__*/styled.div.withConfig({
|
19
|
-
componentId: "plasma-new-hope__sc-g4vxbb-5"
|
20
|
-
})(["margin:var(", ");"], tokens.leftContentMargin);
|
21
|
-
export var StyledContentRight = /*#__PURE__*/styled.div.withConfig({
|
22
|
-
componentId: "plasma-new-hope__sc-g4vxbb-6"
|
23
|
-
})(["margin:var(", ");"], tokens.rightContentMargin);
|
24
16
|
export var LeftHelper = /*#__PURE__*/styled.div.withConfig({
|
25
|
-
componentId: "plasma-new-hope__sc-g4vxbb-
|
17
|
+
componentId: "plasma-new-hope__sc-g4vxbb-4"
|
26
18
|
})([""]);
|
@@ -110,27 +110,3 @@ export function App() {
|
|
110
110
|
);
|
111
111
|
}
|
112
112
|
```
|
113
|
-
|
114
|
-
### Режим ввода
|
115
|
-
С помощью свойства `enumarationType` можно вводить элементы как теги.
|
116
|
-
По нажатию Enter, после ввода нужного текста, он преобразуется в Chip:
|
117
|
-
|
118
|
-
```tsx live
|
119
|
-
import React from 'react';
|
120
|
-
import { TextField } from '@salutejs/{{ package }};
|
121
|
-
|
122
|
-
export function App() {
|
123
|
-
return (
|
124
|
-
<div>
|
125
|
-
<TextField
|
126
|
-
placeholder="Введите значение"
|
127
|
-
defaultValue="Значение"
|
128
|
-
size="l"
|
129
|
-
enumerationType="chip"
|
130
|
-
helperText="Подсказка снизу"
|
131
|
-
values={["Значение 1"]}
|
132
|
-
/>
|
133
|
-
</div>
|
134
|
-
);
|
135
|
-
}
|
136
|
-
```
|
@@ -1,42 +1,31 @@
|
|
1
|
-
export var classes = {
|
2
|
-
hasChips: 'has-chips',
|
3
|
-
hasEmptyContentLeft: 'has-empty-content-left',
|
4
|
-
hasEmptyContentRight: 'has-empty-content-right'
|
5
|
-
};
|
6
1
|
export var tokens = {
|
7
2
|
color: '--plasma-textfield-color',
|
8
3
|
backgroundColor: '--plasma-textfield-bg-color',
|
9
4
|
backgroundColorHover: '--plasma-textfield-bg-color-hover',
|
10
5
|
backgroundColorFocus: '--plasma-textfield-bg-color-focus',
|
11
|
-
borderColor: '--plasma-textfield-border-color',
|
12
|
-
borderColorHover: '--plasma-textfield-border-color-hover',
|
13
|
-
borderColorFocus: '--plasma-textfield-border-color-focus',
|
14
|
-
/** Цвета для read-only состояния */
|
15
|
-
colorReadOnly: '--plasma-textfield-color-readonly',
|
16
|
-
backgroundColorReadOnly: '--plasma-textfield-bg-color-readonly',
|
17
|
-
borderColorReadOnly: '--plasma-textfield-border-color-readonly',
|
18
|
-
placeholderColorReadOnly: '--plasma-textfield__placeholder-color-readonly',
|
19
6
|
/** Цвет каретки */
|
20
7
|
caretColor: '--plasma-textfield__caret-color',
|
21
8
|
placeholderColor: '--plasma-textfield__placeholder-color',
|
9
|
+
borderColor: '--plasma-textfield-border-color',
|
10
|
+
borderColorHover: '--plasma-textfield-border-color-hover',
|
11
|
+
borderColorFocus: '--plasma-textfield-border-color-focus',
|
22
12
|
height: '--plasma-textfield-height',
|
23
13
|
borderWidth: '--plasmas-textfield-border-width',
|
24
14
|
borderRadius: '--plasma-textfield-border-radius',
|
25
|
-
/**
|
15
|
+
/** отступ от границы ТextField */
|
26
16
|
padding: '--plasma-textfield-padding',
|
27
|
-
|
28
|
-
/*
|
29
|
-
|
30
|
-
|
17
|
+
paddingWithContent: '--plasma-textfield-padding-with-content',
|
18
|
+
/* Отступ между Иконками и текстом Инпута */
|
19
|
+
/* Отступ при отсутствии Иконок сохраняется */
|
20
|
+
contentOffset: '--plasma-textfield__content-offset',
|
31
21
|
fontFamily: '--plasma-textfield-font-family',
|
32
22
|
fontStyle: '--plasma-textfield-font-style',
|
33
23
|
fontSize: '--plasma-textfield-font-size',
|
34
24
|
fontWeight: '--plasma-textfield-font-weight',
|
35
25
|
letterSpacing: '--plasma-textfield-letter-spacing',
|
36
26
|
lineHeight: '--plasma-textfield-line-height',
|
37
|
-
/**
|
27
|
+
/** Цвет подписи */
|
38
28
|
labelColor: '--plasma-textfield__label-color',
|
39
|
-
labelColorReadOnly: '--plasma-textfield__label-color-readonly',
|
40
29
|
labelOffset: '--plasma-textfield__label-offset',
|
41
30
|
labelFontFamily: '--plasma-textfield__label-font-family',
|
42
31
|
labelFontStyle: '--plasma-textfield__label-font-style',
|
@@ -51,52 +40,16 @@ export var tokens = {
|
|
51
40
|
labelInnerFontWeight: '--plasma-textfield-placement_inner__label-font-weight',
|
52
41
|
labelInnerLetterSpacing: '--plasma-textfield-placement_inner__label-letter-spacing',
|
53
42
|
labelInnerLineHeight: '--plasma-textfield-placement_inner__label-line-height',
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
leftHelperLineHeight: '--plasma-textfield__left-helper-line-height',
|
43
|
+
leftHelperColor: '--plasma-textfield__leftHelper-color',
|
44
|
+
leftHelperOffset: '--plasma-textfield__leftHelper-offset',
|
45
|
+
leftHelperFontFamily: '--plasma-textfield__leftHelper-font-family',
|
46
|
+
leftHelperFontStyle: '--plasma-textfield__leftHelper-font-style',
|
47
|
+
leftHelperFontSize: '--plasma-textfield__leftHelper-font-size',
|
48
|
+
leftHelperFontWeight: '--plasma-textfield__leftHelper-font-weight',
|
49
|
+
leftHelperLetterSpacing: '--plasma-textfield__leftHelper-letter-spacing',
|
50
|
+
leftHelperLineHeight: '--plasma-textfield__leftHelper-line-height',
|
51
|
+
/* Дополнительный цвет который можно использовать в <Icon color="inheit" /> */
|
52
|
+
contentColor: '--plasma-textfield__content-color',
|
65
53
|
/** Прозрачность для всего компонента в состоянии disabled */
|
66
|
-
disabledOpacity: '--plasma-textfield-disabled-opacity'
|
67
|
-
/** Токены чипа */
|
68
|
-
chipHeight: '--plasma-textfield__chip-height',
|
69
|
-
chipBorderRadius: '--plasma-textfield__chip-border-radius',
|
70
|
-
chipGap: '--plasma-textfield__chip-gap',
|
71
|
-
chipBackground: '--plasma-textfield__chip-background',
|
72
|
-
chipColor: '--plasma-textfield__chip-color',
|
73
|
-
chipBackgroundHover: '--plasma-textfield__chip-background-hover',
|
74
|
-
chipColorHover: '--plasma-textfield__chip-color-hover',
|
75
|
-
chipScaleHover: '--plasma-textfield__chip-scale-hover',
|
76
|
-
chipBackgroundReadOnly: '--plasma-textfield__chip-background-readonly',
|
77
|
-
chipColorReadOnly: '--plasma-textfield__chip-color-readonly',
|
78
|
-
chipBackgroundReadOnlyHover: '--plasma-textfield__chip-background-readonly-hover',
|
79
|
-
chipColorReadOnlyHover: '--plasma-textfield__chip-color-readonly-hover',
|
80
|
-
chipBackgroundActive: '--plasma-textfield__chip-background-active',
|
81
|
-
chipColorActive: '--plasma-textfield__chip-color-active',
|
82
|
-
chipScaleActive: '--plasma-textfield__chip-scale-active',
|
83
|
-
chipFocusColor: '--plasma-textfield__chip-focus-color',
|
84
|
-
chipCloseIconColor: '--plasma-textfield__chip-close-icon-color',
|
85
|
-
chipOutlineSize: '--plasma-textfield__chip-outline-size',
|
86
|
-
chipWidth: '--plasma-textfield__chip-width',
|
87
|
-
chipPaddingTop: '--plasma-textfield__chip-padding-top',
|
88
|
-
chipPaddingRight: '--plasma-textfield__chip-padding-right',
|
89
|
-
chipPaddingBottom: '--plasma-textfield__chip-padding-bottom',
|
90
|
-
chipPaddingLeft: '--plasma-textfield__chip-padding-left',
|
91
|
-
chipCloseIconSize: '--plasma-textfield__chip-close-icon-size',
|
92
|
-
chipFontFamily: '--plasma-textfield__chip-font-family',
|
93
|
-
chipFontSize: '--plasma-textfield__chip-font-size',
|
94
|
-
chipFontStyle: '--plasma-textfield__chip-font-style',
|
95
|
-
chipFontWeight: '--plasma-textfield__chip-font-weight',
|
96
|
-
chipLetterSpacing: '--plasma-textfield__chip-letter-spacing',
|
97
|
-
chipLineHeight: '--plasma-textfield__chip-line-height',
|
98
|
-
chipClearContentMarginLeft: '--plasma-textfield__chip-clear-content-margin-left',
|
99
|
-
chipClearContentMarginRight: '--plasma-textfield__chip-clear-content-margin-right',
|
100
|
-
chipOpacityReadonly: '--plasma-textfield__chip-opacity-readonly',
|
101
|
-
focusColor: '--plasma-textfield-focus-color'
|
54
|
+
disabledOpacity: '--plasma-textfield-disabled-opacity'
|
102
55
|
};
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { css } from 'styled-components';
|
2
|
+
import { Input, Label } from '../TextField.styles';
|
3
|
+
import { tokens } from '../TextField.tokens';
|
4
|
+
export var labelPlacement_inner = /*#__PURE__*/css(["", "{padding-top:calc(var(", ") + var(", "));padding-bottom:var(", ");}", ":focus ~ ", ",", ":not(:placeholder-shown) ~ ", "{height:auto;padding-top:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");}", ":not(:focus)::placeholder{color:transparent;}", ":focus::placeholder{color:transparent;}", "{color:var(", ");pointer-events:none;position:absolute;top:0;display:flex;align-items:center;box-sizing:border-box;transition:all 0.1s ease-in-out 0s;height:var(", ");padding-top:calc(var(", ") / 4);padding-bottom:calc(var(", ") / 4);}"], Input, tokens.labelOffset, tokens.labelInnerLineHeight, tokens.labelOffset, Input, Label, Input, Label, tokens.labelOffset, tokens.labelInnerFontFamily, tokens.labelInnerFontSize, tokens.labelInnerFontStyle, tokens.labelInnerFontWeight, tokens.labelInnerLetterSpacing, tokens.labelInnerLineHeight, Input, Input, Label, tokens.placeholderColor, tokens.height, tokens.height, tokens.height);
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { css } from 'styled-components';
|
2
|
+
import { tokens } from '../TextField.tokens';
|
3
|
+
import { Input, InputLabelWrapper, InputWrapper, Label, LeftHelper } from '../TextField.styles';
|
4
|
+
export var base = /*#__PURE__*/css(["--plasma_private-textfield-br:var(", ",calc(var(", ") / 4));--plasma_private-textfield-padding:var(", ",calc(var(", ") * 1.618 / 4));--plasma_private-textfield-border-width:var(", ");", "{height:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");}", "{border-radius:var(--plasma_private-textfield-br);gap:var(", ");}", " > ", ":first-child{margin-left:var(--plasma_private-textfield-padding);}", " >:not(", "):first-child{margin-left:var(", ",var(--plasma_private-textfield-padding));}", " > ", ":last-child{margin-right:var(--plasma_private-textfield-padding);}", " >:not(", "):last-child{margin-right:var(", ",var(--plasma_private-textfield-padding));}", "{font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");}", "{margin-top:var(", ");font-family:var(", ");font-size:var(", ");font-style:var(", ");font-weight:var(", ");letter-spacing:var(", ");line-height:var(", ");}"], tokens.borderRadius, tokens.height, tokens.padding, tokens.height, tokens.borderWidth, Input, tokens.height, tokens.fontFamily, tokens.fontSize, tokens.fontStyle, tokens.fontWeight, tokens.letterSpacing, tokens.lineHeight, InputWrapper, tokens.contentOffset, InputWrapper, InputLabelWrapper, InputWrapper, InputLabelWrapper, tokens.paddingWithContent, InputWrapper, InputLabelWrapper, InputWrapper, InputLabelWrapper, tokens.paddingWithContent, Label, tokens.labelFontFamily, tokens.labelFontSize, tokens.labelFontStyle, tokens.labelFontWeight, tokens.labelLetterSpacing, tokens.labelLineHeight, LeftHelper, tokens.leftHelperOffset, tokens.leftHelperFontFamily, tokens.leftHelperFontSize, tokens.leftHelperFontStyle, tokens.leftHelperFontWeight, tokens.leftHelperLetterSpacing, tokens.leftHelperLineHeight);
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { css } from 'styled-components';
|
2
|
+
import { tokens } from '../TextField.tokens';
|
3
|
+
import { Input, InputWrapper, LeftHelper } from '../TextField.styles';
|
4
|
+
export var base = /*#__PURE__*/css(["", "{color:var(", ",var(", "));background-color:var(", ");caret-color:var(", ");--plasma_private-textfield-border-color:var(", ");transition:box-shadow 0.1s ease-in,background-color 0.1s ease-in,color 0.1s ease-in;}", ":hover{--plasma_private-textfield-border-color:var(", ");background-color:var(", ",var(", "));}", ":focus-within{--plasma_private-textfield-border-color:var(", ");background-color:var(", ",var(", "));}", "::placeholder{color:var(", ");}", "{color:var(", ");}", "{color:var(", ");}"], InputWrapper, tokens.contentColor, tokens.color, tokens.backgroundColor, tokens.caretColor, tokens.borderColor, InputWrapper, tokens.borderColorHover, tokens.backgroundColorHover, tokens.backgroundColor, InputWrapper, tokens.borderColorFocus, tokens.backgroundColorFocus, tokens.backgroundColor, Input, tokens.placeholderColor, Input, tokens.color, LeftHelper, tokens.leftHelperColor);
|