@salutejs/plasma-new-hope 0.72.0-canary.1161.8615189669.0 → 0.72.0-canary.1170.8602673297.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Cell/Cell.js +0 -2
- package/cjs/components/Cell/Cell.js.map +1 -1
- 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_dw6hnk.css → Combobox.styles_17ei5vn.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 +1 -0
- 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 +43 -33
- 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/cjs/components/Popover/{Popover.styles_1ggb66y.css → Popover.styles_1rk9t6z.css} +1 -1
- package/cjs/components/Select/Select.css +4 -4
- package/cjs/components/Select/ui/SelectItem/SelectItem.css +4 -4
- package/cjs/components/Select/ui/SelectTarget/SelectTarget.js +1 -2
- package/cjs/components/Select/ui/SelectTarget/SelectTarget.js.map +1 -1
- package/cjs/index.css +33 -33
- package/cjs/index.js +4 -39
- package/cjs/index.js.map +1 -1
- package/cjs/utils/index.js +1 -13
- package/cjs/utils/index.js.map +1 -1
- package/cjs/utils/react.js +2 -12
- package/cjs/utils/react.js.map +1 -1
- package/es/components/Cell/Cell.js +0 -2
- package/es/components/Cell/Cell.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_dw6hnk.css → Combobox.styles_17ei5vn.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 +1 -0
- 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 +43 -33
- 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/es/components/Popover/{Popover.styles_1ggb66y.css → Popover.styles_1rk9t6z.css} +1 -1
- package/es/components/Select/Select.css +4 -4
- package/es/components/Select/ui/SelectItem/SelectItem.css +4 -4
- package/es/components/Select/ui/SelectTarget/SelectTarget.js +1 -2
- package/es/components/Select/ui/SelectTarget/SelectTarget.js.map +1 -1
- package/es/index.css +33 -33
- package/es/index.js +0 -13
- package/es/index.js.map +1 -1
- package/es/utils/index.js +2 -11
- package/es/utils/index.js.map +1 -1
- package/es/utils/react.js +2 -9
- package/es/utils/react.js.map +1 -1
- package/package.json +2 -2
- package/styled-components/cjs/components/Cell/Cell.js +0 -2
- package/styled-components/cjs/components/Combobox/Combobox.styles.js +1 -1
- package/styled-components/cjs/components/Dropdown/Dropdown.js +1 -0
- package/styled-components/cjs/components/Popover/Popover.js +43 -33
- package/styled-components/cjs/components/Popover/Popover.styles.js +1 -1
- package/styled-components/cjs/components/Select/ui/SelectTarget/SelectTarget.js +1 -2
- package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +2 -2
- package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +2 -2
- package/styled-components/cjs/examples/plasma_b2c/components/Button/Button.config.js +2 -2
- package/styled-components/cjs/examples/plasma_b2c/components/Button/Button.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/ButtonGroup/ButtonGroup.config.js +2 -2
- package/styled-components/cjs/examples/plasma_b2c/components/ButtonGroup/ButtonGroup.stories.tsx +4 -4
- package/styled-components/cjs/examples/plasma_b2c/components/Calendar/CalendarBase.config.js +2 -2
- package/styled-components/cjs/examples/plasma_b2c/components/Calendar/CalendarDouble.config.js +2 -2
- package/styled-components/cjs/examples/plasma_b2c/components/Checkbox/Checkbox.config.js +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Counter/Counter.config.js +2 -2
- package/styled-components/cjs/examples/plasma_b2c/components/Counter/Counter.stories.tsx +2 -2
- package/styled-components/cjs/examples/plasma_b2c/components/Header/Header.config.js +2 -2
- package/styled-components/cjs/examples/plasma_b2c/components/Header/Header.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Link/Link.config.js +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Pagination/Pagination.config.js +2 -2
- package/styled-components/cjs/examples/plasma_b2c/components/Pagination/Pagination.stories.tsx +2 -2
- package/styled-components/cjs/examples/plasma_b2c/components/Popover/Popover.stories.tsx +7 -0
- package/styled-components/cjs/examples/plasma_b2c/components/Radiobox/Radiobox.config.js +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Spinner/Spinner.config.js +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/TextArea/TextArea.config.js +2 -2
- package/styled-components/cjs/examples/plasma_b2c/components/Toast/Toast.config.js +2 -2
- package/styled-components/cjs/examples/plasma_b2c/components/Toast/Toast.stories.tsx +2 -2
- package/styled-components/cjs/examples/plasma_web/components/Badge/Badge.config.js +2 -2
- package/styled-components/cjs/examples/plasma_web/components/Badge/Badge.stories.tsx +2 -2
- package/styled-components/cjs/examples/plasma_web/components/Button/Button.config.js +2 -2
- package/styled-components/cjs/examples/plasma_web/components/Button/Button.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/ButtonGroup/ButtonGroup.config.js +2 -2
- package/styled-components/cjs/examples/plasma_web/components/ButtonGroup/ButtonGroup.stories.tsx +4 -4
- package/styled-components/cjs/examples/plasma_web/components/Calendar/CalendarBase.config.js +2 -2
- package/styled-components/cjs/examples/plasma_web/components/Calendar/CalendarDouble.config.js +2 -2
- package/styled-components/cjs/examples/plasma_web/components/Checkbox/Checkbox.config.js +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Counter/Counter.config.js +2 -2
- package/styled-components/cjs/examples/plasma_web/components/Counter/Counter.stories.tsx +2 -2
- package/styled-components/cjs/examples/plasma_web/components/Header/Header.config.js +2 -2
- package/styled-components/cjs/examples/plasma_web/components/Header/Header.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Link/Link.config.js +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Pagination/Pagination.config.js +2 -2
- package/styled-components/cjs/examples/plasma_web/components/Pagination/Pagination.stories.tsx +2 -2
- package/styled-components/cjs/examples/plasma_web/components/Radiobox/Radiobox.config.js +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Spinner/Spinner.config.js +1 -1
- package/styled-components/cjs/examples/plasma_web/components/TextArea/TextArea.config.js +2 -2
- package/styled-components/cjs/examples/plasma_web/components/Toast/Toast.config.js +2 -2
- package/styled-components/cjs/examples/plasma_web/components/Toast/Toast.stories.tsx +2 -2
- package/styled-components/cjs/examples/sds_engineer/components/Badge/Badge.config.js +2 -2
- package/styled-components/cjs/examples/sds_engineer/components/Badge/Badge.stories.tsx +2 -2
- package/styled-components/cjs/examples/sds_engineer/components/Button/Button.config.js +2 -2
- package/styled-components/cjs/examples/sds_engineer/components/Button/Button.stories.tsx +1 -1
- package/styled-components/cjs/examples/sds_engineer/components/ButtonGroup/ButtonGroup.config.js +2 -2
- package/styled-components/cjs/examples/sds_engineer/components/ButtonGroup/ButtonGroup.stories.tsx +4 -4
- package/styled-components/cjs/examples/sds_engineer/components/Calendar/CalendarBase.config.js +2 -2
- package/styled-components/cjs/examples/sds_engineer/components/Calendar/CalendarDouble.config.js +2 -2
- package/styled-components/cjs/examples/sds_engineer/components/Checkbox/Checkbox.config.js +1 -1
- package/styled-components/cjs/examples/sds_engineer/components/Counter/Counter.config.js +2 -2
- package/styled-components/cjs/examples/sds_engineer/components/Counter/Counter.stories.tsx +2 -2
- package/styled-components/cjs/examples/sds_engineer/components/Link/Link.config.js +1 -1
- package/styled-components/cjs/examples/sds_engineer/components/Radiobox/Radiobox.config.js +1 -1
- package/styled-components/cjs/examples/sds_engineer/components/Spinner/Spinner.config.js +1 -1
- package/styled-components/cjs/examples/sds_engineer/components/TextArea/TextArea.config.js +2 -2
- package/styled-components/cjs/examples/sds_engineer/components/Toast/Toast.config.js +2 -2
- package/styled-components/cjs/examples/sds_engineer/components/Toast/Toast.stories.tsx +2 -2
- package/styled-components/cjs/index.js +0 -22
- package/styled-components/es/components/Cell/Cell.js +0 -2
- package/styled-components/es/components/Combobox/Combobox.styles.js +1 -1
- package/styled-components/es/components/Dropdown/Dropdown.js +1 -0
- package/styled-components/es/components/Popover/Popover.js +43 -33
- package/styled-components/es/components/Popover/Popover.styles.js +1 -1
- package/styled-components/es/components/Select/ui/SelectTarget/SelectTarget.js +1 -2
- package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.config.js +2 -2
- package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +2 -2
- package/styled-components/es/examples/plasma_b2c/components/Button/Button.config.js +2 -2
- package/styled-components/es/examples/plasma_b2c/components/Button/Button.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/ButtonGroup/ButtonGroup.config.js +2 -2
- package/styled-components/es/examples/plasma_b2c/components/ButtonGroup/ButtonGroup.stories.tsx +4 -4
- package/styled-components/es/examples/plasma_b2c/components/Calendar/CalendarBase.config.js +2 -2
- package/styled-components/es/examples/plasma_b2c/components/Calendar/CalendarDouble.config.js +2 -2
- package/styled-components/es/examples/plasma_b2c/components/Checkbox/Checkbox.config.js +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Counter/Counter.config.js +2 -2
- package/styled-components/es/examples/plasma_b2c/components/Counter/Counter.stories.tsx +2 -2
- package/styled-components/es/examples/plasma_b2c/components/Header/Header.config.js +2 -2
- package/styled-components/es/examples/plasma_b2c/components/Header/Header.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Link/Link.config.js +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Pagination/Pagination.config.js +2 -2
- package/styled-components/es/examples/plasma_b2c/components/Pagination/Pagination.stories.tsx +2 -2
- package/styled-components/es/examples/plasma_b2c/components/Popover/Popover.stories.tsx +7 -0
- package/styled-components/es/examples/plasma_b2c/components/Radiobox/Radiobox.config.js +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Spinner/Spinner.config.js +1 -1
- package/styled-components/es/examples/plasma_b2c/components/TextArea/TextArea.config.js +2 -2
- package/styled-components/es/examples/plasma_b2c/components/Toast/Toast.config.js +2 -2
- package/styled-components/es/examples/plasma_b2c/components/Toast/Toast.stories.tsx +2 -2
- package/styled-components/es/examples/plasma_web/components/Badge/Badge.config.js +2 -2
- package/styled-components/es/examples/plasma_web/components/Badge/Badge.stories.tsx +2 -2
- package/styled-components/es/examples/plasma_web/components/Button/Button.config.js +2 -2
- package/styled-components/es/examples/plasma_web/components/Button/Button.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/ButtonGroup/ButtonGroup.config.js +2 -2
- package/styled-components/es/examples/plasma_web/components/ButtonGroup/ButtonGroup.stories.tsx +4 -4
- package/styled-components/es/examples/plasma_web/components/Calendar/CalendarBase.config.js +2 -2
- package/styled-components/es/examples/plasma_web/components/Calendar/CalendarDouble.config.js +2 -2
- package/styled-components/es/examples/plasma_web/components/Checkbox/Checkbox.config.js +1 -1
- package/styled-components/es/examples/plasma_web/components/Counter/Counter.config.js +2 -2
- package/styled-components/es/examples/plasma_web/components/Counter/Counter.stories.tsx +2 -2
- package/styled-components/es/examples/plasma_web/components/Header/Header.config.js +2 -2
- package/styled-components/es/examples/plasma_web/components/Header/Header.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Link/Link.config.js +1 -1
- package/styled-components/es/examples/plasma_web/components/Pagination/Pagination.config.js +2 -2
- package/styled-components/es/examples/plasma_web/components/Pagination/Pagination.stories.tsx +2 -2
- package/styled-components/es/examples/plasma_web/components/Radiobox/Radiobox.config.js +1 -1
- package/styled-components/es/examples/plasma_web/components/Spinner/Spinner.config.js +1 -1
- package/styled-components/es/examples/plasma_web/components/TextArea/TextArea.config.js +2 -2
- package/styled-components/es/examples/plasma_web/components/Toast/Toast.config.js +2 -2
- package/styled-components/es/examples/plasma_web/components/Toast/Toast.stories.tsx +2 -2
- package/styled-components/es/examples/sds_engineer/components/Badge/Badge.config.js +2 -2
- package/styled-components/es/examples/sds_engineer/components/Badge/Badge.stories.tsx +2 -2
- package/styled-components/es/examples/sds_engineer/components/Button/Button.config.js +2 -2
- package/styled-components/es/examples/sds_engineer/components/Button/Button.stories.tsx +1 -1
- package/styled-components/es/examples/sds_engineer/components/ButtonGroup/ButtonGroup.config.js +2 -2
- package/styled-components/es/examples/sds_engineer/components/ButtonGroup/ButtonGroup.stories.tsx +4 -4
- package/styled-components/es/examples/sds_engineer/components/Calendar/CalendarBase.config.js +2 -2
- package/styled-components/es/examples/sds_engineer/components/Calendar/CalendarDouble.config.js +2 -2
- package/styled-components/es/examples/sds_engineer/components/Checkbox/Checkbox.config.js +1 -1
- package/styled-components/es/examples/sds_engineer/components/Counter/Counter.config.js +2 -2
- package/styled-components/es/examples/sds_engineer/components/Counter/Counter.stories.tsx +2 -2
- package/styled-components/es/examples/sds_engineer/components/Link/Link.config.js +1 -1
- package/styled-components/es/examples/sds_engineer/components/Radiobox/Radiobox.config.js +1 -1
- package/styled-components/es/examples/sds_engineer/components/Spinner/Spinner.config.js +1 -1
- package/styled-components/es/examples/sds_engineer/components/TextArea/TextArea.config.js +2 -2
- package/styled-components/es/examples/sds_engineer/components/Toast/Toast.config.js +2 -2
- package/styled-components/es/examples/sds_engineer/components/Toast/Toast.stories.tsx +2 -2
- package/styled-components/es/index.js +0 -2
- package/types/components/Badge/Badge.types.d.ts +1 -1
- package/types/components/Cell/Cell.d.ts.map +1 -1
- package/types/components/Combobox/Combobox.styles.d.ts +8 -2
- package/types/components/Combobox/Combobox.styles.d.ts.map +1 -1
- package/types/components/Counter/Counter.types.d.ts +1 -1
- package/types/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/types/components/Dropdown/Dropdown.styles.d.ts +7 -1
- package/types/components/Dropdown/Dropdown.styles.d.ts.map +1 -1
- package/types/components/Indicator/Indicator.d.ts +4 -4
- package/types/components/Indicator/Indicator.types.d.ts +12 -2
- package/types/components/Indicator/Indicator.types.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 +19 -12
- package/types/components/Popover/Popover.types.d.ts.map +1 -1
- package/types/components/Select/Select.styles.d.ts +8 -2
- 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/examples/plasma_b2c/components/Badge/Badge.config.d.ts +1 -1
- package/types/examples/plasma_b2c/components/Badge/Badge.d.ts +1 -1
- package/types/examples/plasma_b2c/components/Button/Button.config.d.ts +1 -1
- package/types/examples/plasma_b2c/components/Button/Button.d.ts +1 -1
- package/types/examples/plasma_b2c/components/ButtonGroup/ButtonGroup.config.d.ts +1 -1
- package/types/examples/plasma_b2c/components/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/types/examples/plasma_b2c/components/Calendar/Calendar.d.ts +2 -2
- package/types/examples/plasma_b2c/components/Calendar/CalendarBase.config.d.ts +1 -1
- package/types/examples/plasma_b2c/components/Calendar/CalendarDouble.config.d.ts +1 -1
- package/types/examples/plasma_b2c/components/Checkbox/Checkbox.config.d.ts +1 -1
- package/types/examples/plasma_b2c/components/Checkbox/Checkbox.d.ts +1 -1
- package/types/examples/plasma_b2c/components/Counter/Counter.config.d.ts +1 -1
- package/types/examples/plasma_b2c/components/Counter/Counter.d.ts +1 -1
- package/types/examples/plasma_b2c/components/Header/Header.config.d.ts +1 -1
- package/types/examples/plasma_b2c/components/Header/Header.d.ts +1 -1
- package/types/examples/plasma_b2c/components/Indicator/Indicator.d.ts +4 -4
- package/types/examples/plasma_b2c/components/Link/Link.config.d.ts +1 -1
- package/types/examples/plasma_b2c/components/Link/Link.d.ts +1 -1
- package/types/examples/plasma_b2c/components/Pagination/Pagination.config.d.ts +2 -2
- package/types/examples/plasma_b2c/components/Pagination/Pagination.d.ts +2 -2
- package/types/examples/plasma_b2c/components/Popover/Popover.d.ts +7 -1
- package/types/examples/plasma_b2c/components/Popover/Popover.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Radiobox/Radiobox.config.d.ts +1 -1
- package/types/examples/plasma_b2c/components/Radiobox/Radiobox.d.ts +1 -1
- package/types/examples/plasma_b2c/components/Spinner/Spinner.config.d.ts +1 -1
- package/types/examples/plasma_b2c/components/Spinner/Spinner.d.ts +1 -1
- package/types/examples/plasma_b2c/components/TextArea/TextArea.config.d.ts +1 -1
- package/types/examples/plasma_b2c/components/TextArea/TextArea.d.ts +1 -1
- package/types/examples/plasma_b2c/components/Toast/Toast.config.d.ts +1 -1
- package/types/examples/plasma_b2c/components/Toast/Toast.d.ts +1 -1
- package/types/examples/plasma_web/components/Badge/Badge.config.d.ts +1 -1
- package/types/examples/plasma_web/components/Badge/Badge.d.ts +1 -1
- package/types/examples/plasma_web/components/Button/Button.config.d.ts +1 -1
- package/types/examples/plasma_web/components/Button/Button.d.ts +1 -1
- package/types/examples/plasma_web/components/ButtonGroup/ButtonGroup.config.d.ts +1 -1
- package/types/examples/plasma_web/components/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/types/examples/plasma_web/components/Calendar/Calendar.d.ts +2 -2
- package/types/examples/plasma_web/components/Calendar/CalendarBase.config.d.ts +1 -1
- package/types/examples/plasma_web/components/Calendar/CalendarDouble.config.d.ts +1 -1
- package/types/examples/plasma_web/components/Checkbox/Checkbox.config.d.ts +1 -1
- package/types/examples/plasma_web/components/Checkbox/Checkbox.d.ts +1 -1
- package/types/examples/plasma_web/components/Counter/Counter.config.d.ts +1 -1
- package/types/examples/plasma_web/components/Counter/Counter.d.ts +1 -1
- package/types/examples/plasma_web/components/Header/Header.config.d.ts +1 -1
- package/types/examples/plasma_web/components/Header/Header.d.ts +1 -1
- package/types/examples/plasma_web/components/Indicator/Indicator.d.ts +4 -4
- package/types/examples/plasma_web/components/Link/Link.config.d.ts +1 -1
- package/types/examples/plasma_web/components/Link/Link.d.ts +1 -1
- package/types/examples/plasma_web/components/Pagination/Pagination.config.d.ts +2 -2
- package/types/examples/plasma_web/components/Pagination/Pagination.d.ts +2 -2
- package/types/examples/plasma_web/components/Popover/Popover.d.ts +7 -1
- package/types/examples/plasma_web/components/Popover/Popover.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Radiobox/Radiobox.config.d.ts +1 -1
- package/types/examples/plasma_web/components/Radiobox/Radiobox.d.ts +1 -1
- package/types/examples/plasma_web/components/Spinner/Spinner.config.d.ts +1 -1
- package/types/examples/plasma_web/components/Spinner/Spinner.d.ts +1 -1
- package/types/examples/plasma_web/components/TextArea/TextArea.config.d.ts +1 -1
- package/types/examples/plasma_web/components/TextArea/TextArea.d.ts +1 -1
- package/types/examples/plasma_web/components/Toast/Toast.config.d.ts +1 -1
- package/types/examples/plasma_web/components/Toast/Toast.d.ts +1 -1
- package/types/examples/sds_engineer/components/Badge/Badge.config.d.ts +1 -1
- package/types/examples/sds_engineer/components/Badge/Badge.d.ts +1 -1
- package/types/examples/sds_engineer/components/Button/Button.config.d.ts +1 -1
- package/types/examples/sds_engineer/components/Button/Button.d.ts +1 -1
- package/types/examples/sds_engineer/components/ButtonGroup/ButtonGroup.config.d.ts +1 -1
- package/types/examples/sds_engineer/components/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/types/examples/sds_engineer/components/Calendar/Calendar.d.ts +2 -2
- package/types/examples/sds_engineer/components/Calendar/CalendarBase.config.d.ts +1 -1
- package/types/examples/sds_engineer/components/Calendar/CalendarDouble.config.d.ts +1 -1
- package/types/examples/sds_engineer/components/Checkbox/Checkbox.config.d.ts +1 -1
- package/types/examples/sds_engineer/components/Checkbox/Checkbox.d.ts +1 -1
- package/types/examples/sds_engineer/components/Counter/Counter.config.d.ts +1 -1
- package/types/examples/sds_engineer/components/Counter/Counter.d.ts +1 -1
- package/types/examples/sds_engineer/components/Link/Link.config.d.ts +1 -1
- package/types/examples/sds_engineer/components/Link/Link.d.ts +1 -1
- package/types/examples/sds_engineer/components/Popover/Popover.d.ts +7 -1
- package/types/examples/sds_engineer/components/Popover/Popover.d.ts.map +1 -1
- package/types/examples/sds_engineer/components/Radiobox/Radiobox.config.d.ts +1 -1
- package/types/examples/sds_engineer/components/Radiobox/Radiobox.d.ts +1 -1
- package/types/examples/sds_engineer/components/Spinner/Spinner.config.d.ts +1 -1
- package/types/examples/sds_engineer/components/Spinner/Spinner.d.ts +1 -1
- package/types/examples/sds_engineer/components/TextArea/TextArea.config.d.ts +1 -1
- package/types/examples/sds_engineer/components/TextArea/TextArea.d.ts +1 -1
- package/types/examples/sds_engineer/components/Toast/Toast.config.d.ts +1 -1
- package/types/examples/sds_engineer/components/Toast/Toast.d.ts +1 -1
- package/types/index.d.ts +0 -2
- package/types/index.d.ts.map +1 -1
- package/cjs/components/Select/ui/SelectDivider/SelectDivider.css +0 -23
- package/cjs/components/Select/ui/SelectDivider/SelectDivider.js +0 -40
- package/cjs/components/Select/ui/SelectDivider/SelectDivider.js.map +0 -1
- package/cjs/components/Select/ui/SelectDivider/SelectDivider.styles.js +0 -12
- package/cjs/components/Select/ui/SelectDivider/SelectDivider.styles.js.map +0 -1
- package/cjs/components/Select/ui/SelectDivider/SelectDivider.styles_673hj6.css +0 -1
- package/cjs/components/Select/ui/SelectDivider/variations/_size/base.js +0 -9
- package/cjs/components/Select/ui/SelectDivider/variations/_size/base.js.map +0 -1
- package/cjs/components/Select/ui/SelectDivider/variations/_size/base_x642ct.css +0 -1
- package/cjs/components/Select/ui/SelectDivider/variations/_view/base.js +0 -9
- package/cjs/components/Select/ui/SelectDivider/variations/_view/base.js.map +0 -1
- package/cjs/components/Select/ui/SelectDivider/variations/_view/base_x642ct.css +0 -1
- package/cjs/components/Select/ui/SelectFooter/SelectFooter.css +0 -23
- package/cjs/components/Select/ui/SelectFooter/SelectFooter.js +0 -40
- package/cjs/components/Select/ui/SelectFooter/SelectFooter.js.map +0 -1
- package/cjs/components/Select/ui/SelectFooter/SelectFooter.styles.js +0 -12
- package/cjs/components/Select/ui/SelectFooter/SelectFooter.styles.js.map +0 -1
- package/cjs/components/Select/ui/SelectFooter/SelectFooter.styles_11hk6tt.css +0 -1
- package/cjs/components/Select/ui/SelectFooter/variations/_size/base.js +0 -9
- package/cjs/components/Select/ui/SelectFooter/variations/_size/base.js.map +0 -1
- package/cjs/components/Select/ui/SelectFooter/variations/_size/base_x642ct.css +0 -1
- package/cjs/components/Select/ui/SelectFooter/variations/_view/base.js +0 -9
- package/cjs/components/Select/ui/SelectFooter/variations/_view/base.js.map +0 -1
- package/cjs/components/Select/ui/SelectFooter/variations/_view/base_x642ct.css +0 -1
- package/cjs/components/Select/ui/SelectGroup/SelectGroup.css +0 -23
- package/cjs/components/Select/ui/SelectGroup/SelectGroup.js +0 -40
- package/cjs/components/Select/ui/SelectGroup/SelectGroup.js.map +0 -1
- package/cjs/components/Select/ui/SelectGroup/SelectGroup.styles.js +0 -12
- package/cjs/components/Select/ui/SelectGroup/SelectGroup.styles.js.map +0 -1
- package/cjs/components/Select/ui/SelectGroup/SelectGroup.styles_mktu7e.css +0 -1
- package/cjs/components/Select/ui/SelectGroup/variations/_size/base.js +0 -9
- package/cjs/components/Select/ui/SelectGroup/variations/_size/base.js.map +0 -1
- package/cjs/components/Select/ui/SelectGroup/variations/_size/base_x642ct.css +0 -1
- package/cjs/components/Select/ui/SelectGroup/variations/_view/base.js +0 -9
- package/cjs/components/Select/ui/SelectGroup/variations/_view/base.js.map +0 -1
- package/cjs/components/Select/ui/SelectGroup/variations/_view/base_x642ct.css +0 -1
- package/cjs/components/Select/ui/SelectHeader/SelectHeader.css +0 -23
- package/cjs/components/Select/ui/SelectHeader/SelectHeader.js +0 -40
- package/cjs/components/Select/ui/SelectHeader/SelectHeader.js.map +0 -1
- package/cjs/components/Select/ui/SelectHeader/SelectHeader.styles.js +0 -12
- package/cjs/components/Select/ui/SelectHeader/SelectHeader.styles.js.map +0 -1
- package/cjs/components/Select/ui/SelectHeader/SelectHeader.styles_24gqog.css +0 -1
- package/cjs/components/Select/ui/SelectHeader/variations/_size/base.js +0 -9
- package/cjs/components/Select/ui/SelectHeader/variations/_size/base.js.map +0 -1
- package/cjs/components/Select/ui/SelectHeader/variations/_size/base_x642ct.css +0 -1
- package/cjs/components/Select/ui/SelectHeader/variations/_view/base.js +0 -9
- package/cjs/components/Select/ui/SelectHeader/variations/_view/base.js.map +0 -1
- package/cjs/components/Select/ui/SelectHeader/variations/_view/base_x642ct.css +0 -1
- package/es/components/Select/ui/SelectDivider/SelectDivider.css +0 -23
- package/es/components/Select/ui/SelectDivider/SelectDivider.js +0 -35
- package/es/components/Select/ui/SelectDivider/SelectDivider.js.map +0 -1
- package/es/components/Select/ui/SelectDivider/SelectDivider.styles.js +0 -7
- package/es/components/Select/ui/SelectDivider/SelectDivider.styles.js.map +0 -1
- package/es/components/Select/ui/SelectDivider/SelectDivider.styles_673hj6.css +0 -1
- package/es/components/Select/ui/SelectDivider/variations/_size/base.js +0 -5
- package/es/components/Select/ui/SelectDivider/variations/_size/base.js.map +0 -1
- package/es/components/Select/ui/SelectDivider/variations/_size/base_x642ct.css +0 -1
- package/es/components/Select/ui/SelectDivider/variations/_view/base.js +0 -5
- package/es/components/Select/ui/SelectDivider/variations/_view/base.js.map +0 -1
- package/es/components/Select/ui/SelectDivider/variations/_view/base_x642ct.css +0 -1
- package/es/components/Select/ui/SelectFooter/SelectFooter.css +0 -23
- package/es/components/Select/ui/SelectFooter/SelectFooter.js +0 -35
- package/es/components/Select/ui/SelectFooter/SelectFooter.js.map +0 -1
- package/es/components/Select/ui/SelectFooter/SelectFooter.styles.js +0 -7
- package/es/components/Select/ui/SelectFooter/SelectFooter.styles.js.map +0 -1
- package/es/components/Select/ui/SelectFooter/SelectFooter.styles_11hk6tt.css +0 -1
- package/es/components/Select/ui/SelectFooter/variations/_size/base.js +0 -5
- package/es/components/Select/ui/SelectFooter/variations/_size/base.js.map +0 -1
- package/es/components/Select/ui/SelectFooter/variations/_size/base_x642ct.css +0 -1
- package/es/components/Select/ui/SelectFooter/variations/_view/base.js +0 -5
- package/es/components/Select/ui/SelectFooter/variations/_view/base.js.map +0 -1
- package/es/components/Select/ui/SelectFooter/variations/_view/base_x642ct.css +0 -1
- package/es/components/Select/ui/SelectGroup/SelectGroup.css +0 -23
- package/es/components/Select/ui/SelectGroup/SelectGroup.js +0 -35
- package/es/components/Select/ui/SelectGroup/SelectGroup.js.map +0 -1
- package/es/components/Select/ui/SelectGroup/SelectGroup.styles.js +0 -7
- package/es/components/Select/ui/SelectGroup/SelectGroup.styles.js.map +0 -1
- package/es/components/Select/ui/SelectGroup/SelectGroup.styles_mktu7e.css +0 -1
- package/es/components/Select/ui/SelectGroup/variations/_size/base.js +0 -5
- package/es/components/Select/ui/SelectGroup/variations/_size/base.js.map +0 -1
- package/es/components/Select/ui/SelectGroup/variations/_size/base_x642ct.css +0 -1
- package/es/components/Select/ui/SelectGroup/variations/_view/base.js +0 -5
- package/es/components/Select/ui/SelectGroup/variations/_view/base.js.map +0 -1
- package/es/components/Select/ui/SelectGroup/variations/_view/base_x642ct.css +0 -1
- package/es/components/Select/ui/SelectHeader/SelectHeader.css +0 -23
- package/es/components/Select/ui/SelectHeader/SelectHeader.js +0 -35
- package/es/components/Select/ui/SelectHeader/SelectHeader.js.map +0 -1
- package/es/components/Select/ui/SelectHeader/SelectHeader.styles.js +0 -7
- package/es/components/Select/ui/SelectHeader/SelectHeader.styles.js.map +0 -1
- package/es/components/Select/ui/SelectHeader/SelectHeader.styles_24gqog.css +0 -1
- package/es/components/Select/ui/SelectHeader/variations/_size/base.js +0 -5
- package/es/components/Select/ui/SelectHeader/variations/_size/base.js.map +0 -1
- package/es/components/Select/ui/SelectHeader/variations/_size/base_x642ct.css +0 -1
- package/es/components/Select/ui/SelectHeader/variations/_view/base.js +0 -5
- package/es/components/Select/ui/SelectHeader/variations/_view/base.js.map +0 -1
- package/es/components/Select/ui/SelectHeader/variations/_view/base_x642ct.css +0 -1
@@ -8,12 +8,12 @@ var _styledComponents = /*#__PURE__*/require("styled-components");
|
|
8
8
|
var _Counter = /*#__PURE__*/require("../../../../components/Counter");
|
9
9
|
var config = exports.config = {
|
10
10
|
defaults: {
|
11
|
-
view: '
|
11
|
+
view: 'default',
|
12
12
|
size: 'xs'
|
13
13
|
},
|
14
14
|
variations: {
|
15
15
|
view: {
|
16
|
-
|
16
|
+
"default": /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--inverse-text-primary);", ":var(--surface-solid-default);"], _Counter.counterTokens.color, _Counter.counterTokens.background),
|
17
17
|
accent: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--on-dark-text-primary);", ":var(--surface-accent);"], _Counter.counterTokens.color, _Counter.counterTokens.background),
|
18
18
|
positive: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--on-dark-text-primary);", ":var(--surface-positive);"], _Counter.counterTokens.color, _Counter.counterTokens.background),
|
19
19
|
warning: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--on-dark-text-primary);", ":var(--surface-warning);"], _Counter.counterTokens.color, _Counter.counterTokens.background),
|
@@ -18,7 +18,7 @@ const meta: Meta<typeof Counter> = {
|
|
18
18
|
},
|
19
19
|
},
|
20
20
|
view: {
|
21
|
-
options: ['
|
21
|
+
options: ['default', 'accent', 'positive', 'warning', 'negative', 'dark', 'light'],
|
22
22
|
control: {
|
23
23
|
type: 'select',
|
24
24
|
},
|
@@ -35,7 +35,7 @@ export const Default: Story = {
|
|
35
35
|
args: {
|
36
36
|
count: 25,
|
37
37
|
maxCount: 100,
|
38
|
-
view: '
|
38
|
+
view: 'default',
|
39
39
|
size: 'xs',
|
40
40
|
},
|
41
41
|
};
|
@@ -12,7 +12,7 @@ var config = exports.config = {
|
|
12
12
|
},
|
13
13
|
variations: {
|
14
14
|
view: {
|
15
|
-
|
15
|
+
"default": /*#__PURE__*/(0, _styledComponents.css)(["--plasma-link-color:var(--text-primary);--plasma-link-color-hover:var(--text-primary-hover);--plasma-link-color-active:var(--text-primary-active);--plasma-link-color-visited:var(--text-primary);--plasma-link-color-visited-hover:var(--text-primary-hover);--plasma-link-color-visited-active:var(--text-primary-active);--plasma-link-underline-border:0;"]),
|
16
16
|
secondary: /*#__PURE__*/(0, _styledComponents.css)(["--plasma-link-color:var(--text-secondary);--plasma-link-color-hover:var(--text-secondary-hover);--plasma-link-color-active:var(--text-secondary-active);--plasma-link-color-visited:var(--text-secondary);--plasma-link-color-visited-hover:var(--text-secondary-hover);--plasma-link-color-visited-active:var(--text-secondary-active);--plasma-link-underline-border:0;"]),
|
17
17
|
tertiary: /*#__PURE__*/(0, _styledComponents.css)(["--plasma-link-color:var(--text-tertiary);--plasma-link-color-hover:var(--text-tertiary-hover);--plasma-link-color-active:var(--text-tertiary-active);--plasma-link-color-visited:var(--text-tertiary);--plasma-link-color-visited-hover:var(--text-tertiary-hover);--plasma-link-color-visited-active:var(--text-tertiary-active);--plasma-link-underline-border:0;"]),
|
18
18
|
paragraph: /*#__PURE__*/(0, _styledComponents.css)(["--plasma-link-color:var(--text-paragraph);--plasma-link-color-hover:var(--text-paragraph-hover);--plasma-link-color-active:var(--text-paragraph-active);--plasma-link-color-visited:var(--text-paragraph);--plasma-link-color-visited-hover:var(--text-paragraph-hover);--plasma-link-color-visited-active:var(--text-paragraph-active);--plasma-link-underline-border:0;"]),
|
@@ -22,7 +22,7 @@ var config = exports.config = {
|
|
22
22
|
* Вид контрола.
|
23
23
|
*/
|
24
24
|
view: {
|
25
|
-
|
25
|
+
"default": /*#__PURE__*/(0, _styledComponents.css)(["--plasma-radiobox-fill-color:var(--text-primary);--plasma-radiobox-ellipse-color:var(--inverse-text-primary);--plasma-radiobox-description-color:var(--text-secondary);--plasma-radiobox-trigger-border-color:var(--text-secondary);"]),
|
26
26
|
secondary: /*#__PURE__*/(0, _styledComponents.css)(["--plasma-radiobox-fill-color:var(--text-secondary);--plasma-radiobox-ellipse-color:var(--inverse-text-primary);--plasma-radiobox-description-color:var(--text-secondary);--plasma-radiobox-trigger-border-color:var(--text-secondary);"]),
|
27
27
|
tertiary: /*#__PURE__*/(0, _styledComponents.css)(["--plasma-radiobox-fill-color:var(--text-tertiary);--plasma-radiobox-ellipse-color:var(--inverse-text-primary);--plasma-radiobox-description-color:var(--text-secondary);--plasma-radiobox-trigger-border-color:var(--text-secondary);"]),
|
28
28
|
paragraph: /*#__PURE__*/(0, _styledComponents.css)(["--plasma-radiobox-fill-color:var(--text-paragraph);--plasma-radiobox-ellipse-color:var(--inverse-text-primary);--plasma-radiobox-description-color:var(--text-secondary);--plasma-radiobox-trigger-border-color:var(--text-secondary);"]),
|
@@ -18,7 +18,7 @@ var config = exports.config = {
|
|
18
18
|
l: /*#__PURE__*/(0, _styledComponents.css)(["", ":36px;"], _Spinner.spinnerTokens.size)
|
19
19
|
},
|
20
20
|
view: {
|
21
|
-
|
21
|
+
"default": /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-primary);"], _Spinner.spinnerTokens.color),
|
22
22
|
secondary: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-secondary);"], _Spinner.spinnerTokens.color),
|
23
23
|
tertiary: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-tertiary);"], _Spinner.spinnerTokens.color),
|
24
24
|
paragraph: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-paragraph);"], _Spinner.spinnerTokens.color),
|
@@ -8,7 +8,7 @@ var _styledComponents = /*#__PURE__*/require("styled-components");
|
|
8
8
|
var _TextArea = /*#__PURE__*/require("../../../../components/TextArea");
|
9
9
|
var config = exports.config = {
|
10
10
|
defaults: {
|
11
|
-
view: '
|
11
|
+
view: 'default',
|
12
12
|
focused: 'true'
|
13
13
|
},
|
14
14
|
variations: {
|
@@ -18,7 +18,7 @@ var config = exports.config = {
|
|
18
18
|
m: /*#__PURE__*/(0, _styledComponents.css)(["", ":100%;", ":5.825rem;", ":1.125rem;", ":0.125rem;", ":0.25rem;", ":0.438rem;", ":0.5rem;", ":0.563rem;", ":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);"], _TextArea.textAreaTokens.inputWidth, _TextArea.textAreaTokens.inputHeight, _TextArea.textAreaTokens.inputMinHeight, _TextArea.textAreaTokens.borderSize, _TextArea.textAreaTokens.borderRadius, _TextArea.textAreaTokens.inputPaddingTop, _TextArea.textAreaTokens.inputPaddingRight, _TextArea.textAreaTokens.inputPaddingBottom, _TextArea.textAreaTokens.inputPaddingLeft, _TextArea.textAreaTokens.inputFontFamily, _TextArea.textAreaTokens.inputFontSize, _TextArea.textAreaTokens.inputFontStyle, _TextArea.textAreaTokens.inputFontWeight, _TextArea.textAreaTokens.inputLetterSpacing, _TextArea.textAreaTokens.inputLineHeight)
|
19
19
|
},
|
20
20
|
view: {
|
21
|
-
|
21
|
+
"default": /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--surface-transparent-tertiary);", ":var(--surface-accent-hover);", ":var(--surface-accent-active);", ":var(--surface-accent-active);", ":var(--text-primary);", ":var(--text-primary);", ":var(--text-secondary);", ":var(--text-secondary);"], _TextArea.textAreaTokens.inputBorderColor, _TextArea.textAreaTokens.inputBorderColorHover, _TextArea.textAreaTokens.inputBorderColorActive, _TextArea.textAreaTokens.inputBorderColorFocus, _TextArea.textAreaTokens.inputColor, _TextArea.textAreaTokens.inputColorFocus, _TextArea.textAreaTokens.placeholderColor, _TextArea.textAreaTokens.placeholderColorFocus),
|
22
22
|
negative: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--surface-transparent-negative);", ":var(--surface-transparent-negative);", ":var(--surface-transparent-negative);", ":var(--surface-transparent-negative);", ":var(--surface-transparent-tertiary);", ":var(--surface-accent-hover);", ":var(--surface-accent-active);", ":var(--surface-accent-active);", ":var(--text-primary);", ":var(--text-primary);", ":var(--text-secondary);", ":var(--plasma-colors-secondary);"], _TextArea.textAreaTokens.inputBackgroundColor, _TextArea.textAreaTokens.inputBackgroundColorHover, _TextArea.textAreaTokens.inputBackgroundColorActive, _TextArea.textAreaTokens.inputBackgroundColorFocus, _TextArea.textAreaTokens.inputBorderColor, _TextArea.textAreaTokens.inputBorderColorHover, _TextArea.textAreaTokens.inputBorderColorActive, _TextArea.textAreaTokens.inputBorderColorFocus, _TextArea.textAreaTokens.inputColor, _TextArea.textAreaTokens.inputColorFocus, _TextArea.textAreaTokens.placeholderColor, _TextArea.textAreaTokens.placeholderColorFocus)
|
23
23
|
},
|
24
24
|
disabled: {
|
@@ -8,12 +8,12 @@ var _styledComponents = /*#__PURE__*/require("styled-components");
|
|
8
8
|
var _Toast = /*#__PURE__*/require("../../../../components/Toast");
|
9
9
|
var config = exports.config = {
|
10
10
|
defaults: {
|
11
|
-
view: '
|
11
|
+
view: 'default',
|
12
12
|
size: 'm'
|
13
13
|
},
|
14
14
|
variations: {
|
15
15
|
view: {
|
16
|
-
|
16
|
+
"default": /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--text-primary);", ":var(--surface-solid-card);", ":var(--text-secondary);", ":var(--text-secondary);"], _Toast.toastTokens.color, _Toast.toastTokens.background, _Toast.toastTokens.closeIconColor, _Toast.toastTokens.closeIconColorOnHover),
|
17
17
|
dark: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--on-dark-text-primary);", ":var(--on-dark-surface-solid-primary);", ":var(--on-dark-text-secondary);", ":var(--on-dark-text-secondary);"], _Toast.toastTokens.color, _Toast.toastTokens.background, _Toast.toastTokens.closeIconColor, _Toast.toastTokens.closeIconColorOnHover),
|
18
18
|
light: /*#__PURE__*/(0, _styledComponents.css)(["", ":var(--on-light-text-primary);", ":var(--on-light-surface-solid-primary);", ":var(--on-light-text-secondary);", ":var(--on-light-text-secondary);"], _Toast.toastTokens.color, _Toast.toastTokens.background, _Toast.toastTokens.closeIconColor, _Toast.toastTokens.closeIconColorOnHover)
|
19
19
|
},
|
@@ -57,7 +57,7 @@ const Container = styled.div`
|
|
57
57
|
export const ToastComponent: StoryComponent = {
|
58
58
|
args: {
|
59
59
|
text: 'Текст всплывающего уведомления',
|
60
|
-
view: '
|
60
|
+
view: 'default',
|
61
61
|
size: 'm',
|
62
62
|
hasClose: true,
|
63
63
|
enableContentLeft: true,
|
@@ -196,7 +196,7 @@ const StoryComplex = ({
|
|
196
196
|
<Button text="Открыть модальное окно" onClick={() => setIsModalOpen(true)} />
|
197
197
|
<Modal frame="theme-root" isOpen={isModalOpen} onClose={() => setIsModalOpen(false)}>
|
198
198
|
<div>Hello!</div>
|
199
|
-
<Button view="
|
199
|
+
<Button view="default" text="Add notification" onClick={handleShowNotification} />
|
200
200
|
</Modal>
|
201
201
|
</PopupProvider>
|
202
202
|
</NotificationsProvider>
|
@@ -36,17 +36,6 @@ Object.keys(_hooks).forEach(function (key) {
|
|
36
36
|
}
|
37
37
|
});
|
38
38
|
});
|
39
|
-
var _utils = /*#__PURE__*/require("./utils");
|
40
|
-
Object.keys(_utils).forEach(function (key) {
|
41
|
-
if (key === "default" || key === "__esModule") return;
|
42
|
-
if (key in exports && exports[key] === _utils[key]) return;
|
43
|
-
Object.defineProperty(exports, key, {
|
44
|
-
enumerable: true,
|
45
|
-
get: function get() {
|
46
|
-
return _utils[key];
|
47
|
-
}
|
48
|
-
});
|
49
|
-
});
|
50
39
|
var _Button = /*#__PURE__*/require("./components/Button");
|
51
40
|
Object.keys(_Button).forEach(function (key) {
|
52
41
|
if (key === "default" || key === "__esModule") return;
|
@@ -465,17 +454,6 @@ Object.keys(_Progress).forEach(function (key) {
|
|
465
454
|
}
|
466
455
|
});
|
467
456
|
});
|
468
|
-
var _Select = /*#__PURE__*/require("./components/Select");
|
469
|
-
Object.keys(_Select).forEach(function (key) {
|
470
|
-
if (key === "default" || key === "__esModule") return;
|
471
|
-
if (key in exports && exports[key] === _Select[key]) return;
|
472
|
-
Object.defineProperty(exports, key, {
|
473
|
-
enumerable: true,
|
474
|
-
get: function get() {
|
475
|
-
return _Select[key];
|
476
|
-
}
|
477
|
-
});
|
478
|
-
});
|
479
457
|
var _Divider = /*#__PURE__*/require("./components/Divider");
|
480
458
|
Object.keys(_Divider).forEach(function (key) {
|
481
459
|
if (key === "default" || key === "__esModule") return;
|
@@ -24,8 +24,6 @@ export var cellRoot = function cellRoot(Root) {
|
|
24
24
|
_ref$stretching = _ref.stretching,
|
25
25
|
stretching = _ref$stretching === void 0 ? 'filled' : _ref$stretching;
|
26
26
|
var stretchingClass = classes["".concat(stretching, "Stretching")];
|
27
|
-
|
28
|
-
// Импорт старых свойств
|
29
27
|
var titleText = title || description;
|
30
28
|
var contentLeftDeprecated = contentLeft || content;
|
31
29
|
return /*#__PURE__*/React.createElement(Root, {
|
@@ -4,7 +4,7 @@ import { popoverClasses, popoverConfig } from '../Popover';
|
|
4
4
|
import { tokens } from './Combobox.tokens';
|
5
5
|
export var StyledRoot = /*#__PURE__*/styled.div.withConfig({
|
6
6
|
componentId: "plasma-new-hope__sc-gt7m6a-0"
|
7
|
-
})(["width:100%;position:relative
|
7
|
+
})(["width:100%;position:relative;"]);
|
8
8
|
export var StyledCombobox = /*#__PURE__*/styled.div.withConfig({
|
9
9
|
componentId: "plasma-new-hope__sc-gt7m6a-1"
|
10
10
|
})(["box-sizing:border-box;background:var(", ");box-shadow:var(", ");border-radius:var(", ");width:var(", ");height:var(", ");padding:var(", ") var(", ") var(", ") var(", ");"], tokens.background, tokens.boxShadow, tokens.borderRadius, tokens.width, tokens.height, tokens.paddingTop, tokens.paddingRight, tokens.paddingBottom, tokens.paddingLeft);
|
@@ -62,6 +62,7 @@ export var dropdownRoot = function dropdownRoot(Root) {
|
|
62
62
|
placement: getPlacements(placement),
|
63
63
|
trigger: trigger,
|
64
64
|
closeOnOverlayClick: closeOnOverlayClick,
|
65
|
+
closeOnBeyondTargetHover: false,
|
65
66
|
closeOnEsc: closeOnEsc,
|
66
67
|
isFocusTrapped: isFocusTrapped,
|
67
68
|
frame: frame
|
@@ -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"];
|
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,34 +30,41 @@ 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 (props, 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
|
-
|
35
|
+
var target = props.target,
|
36
|
+
children = props.children,
|
37
|
+
isOpen = props.isOpen,
|
38
|
+
_props$trigger = props.trigger,
|
39
|
+
trigger = _props$trigger === void 0 ? 'click' : _props$trigger,
|
40
|
+
hasArrow = props.hasArrow,
|
41
|
+
_props$frame = props.frame,
|
42
|
+
frame = _props$frame === void 0 ? 'document' : _props$frame,
|
43
|
+
className = props.className,
|
44
|
+
_props$placement = props.placement,
|
45
|
+
placement = _props$placement === void 0 ? 'auto' : _props$placement,
|
46
|
+
_props$offset = props.offset,
|
47
|
+
offset = _props$offset === void 0 ? [0, 0] : _props$offset,
|
48
|
+
zIndex = props.zIndex,
|
49
|
+
_props$isFocusTrapped = props.isFocusTrapped,
|
50
|
+
isFocusTrapped = _props$isFocusTrapped === void 0 ? true : _props$isFocusTrapped,
|
51
|
+
_props$closeOnEsc = props.closeOnEsc,
|
52
|
+
closeOnEsc = _props$closeOnEsc === void 0 ? true : _props$closeOnEsc,
|
53
|
+
_props$preventOverflo = props.preventOverflow,
|
54
|
+
preventOverflow = _props$preventOverflo === void 0 ? true : _props$preventOverflo,
|
55
|
+
_props$usePortal = props.usePortal,
|
56
|
+
usePortal = _props$usePortal === void 0 ? false : _props$usePortal,
|
57
|
+
view = props.view,
|
58
|
+
onToggle = props.onToggle,
|
59
|
+
rest = _objectWithoutProperties(props, _excluded);
|
60
|
+
var closeOnOverlayClick = true;
|
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
|
+
}
|
61
68
|
var rootRef = useRef(null);
|
62
69
|
var popoverRef = useRef(null);
|
63
70
|
var handleRef = useForkRef(rootRef, outerRootRef);
|
@@ -157,7 +164,7 @@ export var popoverRoot = function popoverRoot(Root) {
|
|
157
164
|
return function () {
|
158
165
|
return document.removeEventListener('click', onDocumentClick);
|
159
166
|
};
|
160
|
-
}, [isOpen, onToggle]);
|
167
|
+
}, [closeOnOverlayClick, isOpen, onToggle]);
|
161
168
|
useEffect(function () {
|
162
169
|
window.addEventListener('keydown', onEscape);
|
163
170
|
return function () {
|
@@ -204,19 +211,22 @@ export var popoverRoot = function popoverRoot(Root) {
|
|
204
211
|
Promise.resolve().then(forceUpdate);
|
205
212
|
}, [isOpen, children, forceUpdate]);
|
206
213
|
return /*#__PURE__*/React.createElement(StyledWrapper, {
|
207
|
-
className: classes.wrapper
|
208
|
-
onMouseEnter: onMouseEnter,
|
209
|
-
onMouseLeave: onMouseLeave
|
214
|
+
className: classes.wrapper
|
210
215
|
}, /*#__PURE__*/React.createElement(StyledRoot, {
|
211
216
|
ref: handleRef,
|
212
217
|
onClick: onClick,
|
218
|
+
onMouseEnter: onMouseEnter,
|
219
|
+
onMouseLeave: onMouseLeave,
|
213
220
|
onFocus: onFocus,
|
214
221
|
onBlur: onBlur,
|
215
222
|
className: cx(className, classes.target)
|
216
223
|
}, target), children && portalRef.current && /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(Root, _extends({
|
217
224
|
view: view,
|
218
225
|
className: className
|
219
|
-
}, rest
|
226
|
+
}, rest, {
|
227
|
+
onMouseEnter: closeOnBeyondTargetHover ? undefined : onMouseEnter,
|
228
|
+
onMouseLeave: closeOnBeyondTargetHover ? undefined : onMouseEnter
|
229
|
+
}), /*#__PURE__*/React.createElement(StyledPopover, _extends({}, attributes.popper, {
|
220
230
|
className: classes.root,
|
221
231
|
ref: popoverForkRef,
|
222
232
|
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
|
+
})([""]);
|
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,8 +111,7 @@ 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
|
115
|
-
stretching: "filled"
|
114
|
+
onKeyDown: onKeyDown
|
116
115
|
}), hasText && (enumerationType === 'comma' || target === 'button-like' ? /*#__PURE__*/React.createElement(StyledText, {
|
117
116
|
className: selectTargeText
|
118
117
|
}, textContent) : /*#__PURE__*/React.createElement(StyledChipsWrapper, {
|
@@ -2,12 +2,12 @@ import { css } from 'styled-components';
|
|
2
2
|
import { badgeTokens } from '../../../../components/Badge';
|
3
3
|
export var config = {
|
4
4
|
defaults: {
|
5
|
-
view: '
|
5
|
+
view: 'default',
|
6
6
|
size: 'm'
|
7
7
|
},
|
8
8
|
variations: {
|
9
9
|
view: {
|
10
|
-
|
10
|
+
"default": /*#__PURE__*/css(["", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--text-primary);", ":var(--surface-transparent-secondary);"], badgeTokens.color, badgeTokens.background, badgeTokens.colorTransparent, badgeTokens.backgroundTransparent),
|
11
11
|
accent: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--surface-accent);", ":var(--text-accent);", ":var(--surface-transparent-accent);"], badgeTokens.color, badgeTokens.background, badgeTokens.colorTransparent, badgeTokens.backgroundTransparent),
|
12
12
|
positive: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--surface-positive);", ":var(--text-positive);", ":var(--surface-transparent-positive);"], badgeTokens.color, badgeTokens.background, badgeTokens.colorTransparent, badgeTokens.backgroundTransparent),
|
13
13
|
warning: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--surface-warning);", ":var(--text-warning);", ":var(--surface-transparent-warning);"], badgeTokens.color, badgeTokens.background, badgeTokens.colorTransparent, badgeTokens.backgroundTransparent),
|
@@ -18,7 +18,7 @@ const meta: Meta<typeof Badge> = {
|
|
18
18
|
},
|
19
19
|
},
|
20
20
|
view: {
|
21
|
-
options: ['
|
21
|
+
options: ['default', 'accent', 'positive', 'warning', 'negative', 'dark', 'light'],
|
22
22
|
control: {
|
23
23
|
type: 'select',
|
24
24
|
},
|
@@ -43,7 +43,7 @@ const BellIcon = (props) => (
|
|
43
43
|
export const Default: Story = {
|
44
44
|
args: {
|
45
45
|
text: 'Hello',
|
46
|
-
view: '
|
46
|
+
view: 'default',
|
47
47
|
size: 'm',
|
48
48
|
pilled: false,
|
49
49
|
transparent: false,
|
@@ -2,13 +2,13 @@ import { css } from 'styled-components';
|
|
2
2
|
import { buttonTokens } from '../../../../components/Button';
|
3
3
|
export var config = {
|
4
4
|
defaults: {
|
5
|
-
view: '
|
5
|
+
view: 'default',
|
6
6
|
focused: 'true',
|
7
7
|
size: 'm'
|
8
8
|
},
|
9
9
|
variations: {
|
10
10
|
view: {
|
11
|
-
|
11
|
+
"default": /*#__PURE__*/css(["", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":var(--surface-solid-default-hover);", ":var(--inverse-text-primary);", ":var(--surface-solid-default-active);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
|
12
12
|
accent: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--surface-accent);", ":var(--on-dark-text-primary);", ":var(--surface-accent-hover);", ":var(--on-dark-text-primary);", ":var(--surface-accent-active);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
|
13
13
|
secondary: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":var(--surface-transparent-secondary-hover);", ":var(--text-primary);", ":var(--surface-transparent-secondary-active);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
|
14
14
|
clear: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-clear);", ":var(--text-primary-hover);", ":var(--surface-clear);", ":var(--text-primary-active);", ":var(--surface-clear);"], buttonTokens.buttonColor, buttonTokens.buttonBackgroundColor, buttonTokens.buttonColorHover, buttonTokens.buttonBackgroundColorHover, buttonTokens.buttonColorActive, buttonTokens.buttonBackgroundColorActive),
|
package/styled-components/es/examples/plasma_b2c/components/ButtonGroup/ButtonGroup.config.js
CHANGED
@@ -2,12 +2,12 @@ import { css } from 'styled-components';
|
|
2
2
|
import { buttonGroupTokens } from '../../../../components/ButtonGroup';
|
3
3
|
export var config = {
|
4
4
|
defaults: {
|
5
|
-
view: '
|
5
|
+
view: 'default',
|
6
6
|
size: 'm'
|
7
7
|
},
|
8
8
|
variations: {
|
9
9
|
view: {
|
10
|
-
|
10
|
+
"default": /*#__PURE__*/css(["", ":var(--inverse-text-primary);", ":var(--surface-solid-default);", ":var(--inverse-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-solid-default) 85% );", ":var(--inverse-text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-solid-default) 80% );"], buttonGroupTokens.buttonColor, buttonGroupTokens.buttonBackgroundColor, buttonGroupTokens.buttonColorHover, buttonGroupTokens.buttonBackgroundColorHover, buttonGroupTokens.buttonColorActive, buttonGroupTokens.buttonBackgroundColorActive),
|
11
11
|
accent: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--surface-accent);", ":var(--on-dark-text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-accent) 85%);", ":var(--on-dark-text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-accent) 80%);"], buttonGroupTokens.buttonColor, buttonGroupTokens.buttonBackgroundColor, buttonGroupTokens.buttonColorHover, buttonGroupTokens.buttonBackgroundColorHover, buttonGroupTokens.buttonColorActive, buttonGroupTokens.buttonBackgroundColorActive),
|
12
12
|
secondary: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-transparent-secondary);", ":var(--text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-transparent-secondary) 85% );", ":var(--text-primary);", ":color-mix( in srgb,var(--inverse-text-primary),var(--surface-transparent-secondary) 80% );"], buttonGroupTokens.buttonColor, buttonGroupTokens.buttonBackgroundColor, buttonGroupTokens.buttonColorHover, buttonGroupTokens.buttonBackgroundColorHover, buttonGroupTokens.buttonColorActive, buttonGroupTokens.buttonBackgroundColorActive),
|
13
13
|
clear: /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-clear);", ":var(--text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-clear) 95%);", ":var(--text-primary);", ":color-mix(in srgb,var(--text-primary),var(--surface-clear) 90%);"], buttonGroupTokens.buttonColor, buttonGroupTokens.buttonBackgroundColor, buttonGroupTokens.buttonColorHover, buttonGroupTokens.buttonBackgroundColorHover, buttonGroupTokens.buttonColorActive, buttonGroupTokens.buttonBackgroundColorActive),
|
package/styled-components/es/examples/plasma_b2c/components/ButtonGroup/ButtonGroup.stories.tsx
CHANGED
@@ -11,7 +11,7 @@ import { ButtonGroup } from './ButtonGroup';
|
|
11
11
|
type StoryProps = ComponentProps<typeof ButtonGroup> & { itemsCount?: number };
|
12
12
|
type Story = StoryObj<StoryProps>;
|
13
13
|
|
14
|
-
const views = ['accent', '
|
14
|
+
const views = ['accent', 'default', 'secondary', 'success', 'warning', 'critical', 'clear'];
|
15
15
|
const sizes = ['l', 'm', 's', 'xs', 'xxs'];
|
16
16
|
const orientationValues = ['horizontal', 'vertical'];
|
17
17
|
const gapValues = ['none', 'dense', 'wide'];
|
@@ -65,7 +65,7 @@ export default meta;
|
|
65
65
|
|
66
66
|
export const Default: Story = {
|
67
67
|
args: {
|
68
|
-
view: '
|
68
|
+
view: 'default',
|
69
69
|
size: 'm',
|
70
70
|
gap: 'dense',
|
71
71
|
orientation: 'horizontal',
|
@@ -99,7 +99,7 @@ export const CustomButtons: Story = {
|
|
99
99
|
<>
|
100
100
|
<h3>Группа кнопок с разными темами</h3>
|
101
101
|
<ButtonGroup {...args}>
|
102
|
-
<Button text="Primary" view="
|
102
|
+
<Button text="Primary" view="default" />
|
103
103
|
<Button text="Negative" view="negative" />
|
104
104
|
<Button text="Positive" view="positive" />
|
105
105
|
<Button text="Clear" view="clear" />
|
@@ -107,7 +107,7 @@ export const CustomButtons: Story = {
|
|
107
107
|
|
108
108
|
<h3>Группа кнопок с разными размерами</h3>
|
109
109
|
<ButtonGroup {...args}>
|
110
|
-
<Button text="Primary" view="
|
110
|
+
<Button text="Primary" view="default" size="l" />
|
111
111
|
<Button text="Negative" view="negative" size="m" />
|
112
112
|
<Button text="Positive" view="positive" size="s" />
|
113
113
|
<Button text="Clear" view="clear" size="l" />
|
@@ -2,12 +2,12 @@ import { css } from 'styled-components';
|
|
2
2
|
import { tokens as calendarBaseTokens } from '../../../../components/Calendar/Calendar.tokens';
|
3
3
|
export var config = {
|
4
4
|
defaults: {
|
5
|
-
view: '
|
5
|
+
view: 'default',
|
6
6
|
size: 'm'
|
7
7
|
},
|
8
8
|
variations: {
|
9
9
|
view: {
|
10
|
-
|
10
|
+
"default": /*#__PURE__*/css(["", ":transparent;", ":var(--plasma-colors-primary);", ":var(--plasma-colors-background-primary);", ":var(--plasma-colors-surface-liquid02);", ":var(--plasma-colors-primary);", ":transparent;", ":var(--plasma-colors-primary);", ":var(--plasma-colors-surface-liquid02);", ":var(--plasma-colors-primary);", ":var(--plasma-colors-surface-solid03);", ":var(--plasma-colors-accent);", ":var(--plasma-colors-background-primary);", ":var(--plasma-colors-surface-liquid02);", ":var(--plasma-colors-button-focused);", ":var(--plasma-colors-primary);", ":var(--plasma-colors-secondary);"], calendarBaseTokens.calendarBackgroundColor, calendarBaseTokens.calendarSelectedItemBackground, calendarBaseTokens.calendarSelectedItemColor, calendarBaseTokens.calendarSelectableItemBackgroundHover, calendarBaseTokens.calendarCurrentItemBorderColor, calendarBaseTokens.calendarCurrentItemBackgroundHover, calendarBaseTokens.calendarCurrentItemColorHover, calendarBaseTokens.calendarCurrentItemChildBackgroundHover, calendarBaseTokens.calendarActiveItemBackground, calendarBaseTokens.calendarActiveItemColor, calendarBaseTokens.calendarHoveredItemBackground, calendarBaseTokens.calendarHoveredItemColor, calendarBaseTokens.calendarRangeBackground, calendarBaseTokens.calendarOutlineFocusColor, calendarBaseTokens.calendarContentPrimaryColor, calendarBaseTokens.calendarContentSecondaryColor)
|
11
11
|
},
|
12
12
|
size: {
|
13
13
|
m: /*#__PURE__*/css(["", ":5.5rem;", ":0.5rem;", ":var(--plasma-typo-h4-font-family);", ":var(--plasma-typo-h4-font-size);", ":var(--plasma-typo-h4-font-style);", ":var(--plasma-typo-h4-letter-spacing);", ":var(--plasma-typo-h4-line-height);", ":var(--plasma-typo-h4-font-weight);", ":var(--plasma-typo-h4-bold-font-weight);", ":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-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":var(--plasma-typo-body-s-font-weight);", ":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-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":var(--plasma-typo-body-s-font-weight);", ":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-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":var(--plasma-typo-body-s-font-weight);"], calendarBaseTokens.calendarHeaderArrowContainerWidth, calendarBaseTokens.calendarItemBorderRadius, calendarBaseTokens.calendarHeaderFontFamily, calendarBaseTokens.calendarHeaderFontSize, calendarBaseTokens.calendarHeaderFontStyle, calendarBaseTokens.calendarHeaderFontLetterSpacing, calendarBaseTokens.calendarHeaderFontLineHeight, calendarBaseTokens.calendarHeaderFontWeight, calendarBaseTokens.calendarHeaderFontWeightBold, calendarBaseTokens.calendarYearFontFamily, calendarBaseTokens.calendarYearFontSize, calendarBaseTokens.calendarYearFontStyle, calendarBaseTokens.calendarYearFontLetterSpacing, calendarBaseTokens.calendarYearFontLineHeight, calendarBaseTokens.calendarYearFontWeight, calendarBaseTokens.calendarMonthFontFamily, calendarBaseTokens.calendarMonthFontSize, calendarBaseTokens.calendarMonthFontStyle, calendarBaseTokens.calendarMonthFontLetterSpacing, calendarBaseTokens.calendarMonthFontLineHeight, calendarBaseTokens.calendarMonthFontWeight, calendarBaseTokens.calendarDayFontFamily, calendarBaseTokens.calendarDayFontSize, calendarBaseTokens.calendarDayFontStyle, calendarBaseTokens.calendarDayFontLetterSpacing, calendarBaseTokens.calendarDayFontLineHeight, calendarBaseTokens.calendarDayFontWeight)
|
package/styled-components/es/examples/plasma_b2c/components/Calendar/CalendarDouble.config.js
CHANGED
@@ -2,12 +2,12 @@ import { css } from 'styled-components';
|
|
2
2
|
import { tokens as calendarDoubleTokens } from '../../../../components/Calendar/Calendar.tokens';
|
3
3
|
export var config = {
|
4
4
|
defaults: {
|
5
|
-
view: '
|
5
|
+
view: 'default',
|
6
6
|
size: 'm'
|
7
7
|
},
|
8
8
|
variations: {
|
9
9
|
view: {
|
10
|
-
|
10
|
+
"default": /*#__PURE__*/css(["", ":transparent;", ":var(--plasma-colors-primary);", ":var(--plasma-colors-background-primary);", ":var(--plasma-colors-surface-liquid02);", ":var(--plasma-colors-primary);", ":transparent;", ":var(--plasma-colors-primary);", ":var(--plasma-colors-surface-liquid02);", ":var(--plasma-colors-primary);", ":var(--plasma-colors-surface-solid03);", ":var(--plasma-colors-accent);", ":var(--plasma-colors-background-primary);", ":var(--plasma-colors-surface-liquid02);", ":var(--plasma-colors-surface-liquid02);", ":var(--plasma-colors-button-focused);", ":var(--plasma-colors-primary);", ":var(--plasma-colors-secondary);"], calendarDoubleTokens.calendarBackgroundColor, calendarDoubleTokens.calendarSelectedItemBackground, calendarDoubleTokens.calendarSelectedItemColor, calendarDoubleTokens.calendarSelectableItemBackgroundHover, calendarDoubleTokens.calendarCurrentItemBorderColor, calendarDoubleTokens.calendarCurrentItemBackgroundHover, calendarDoubleTokens.calendarCurrentItemColorHover, calendarDoubleTokens.calendarCurrentItemChildBackgroundHover, calendarDoubleTokens.calendarActiveItemBackground, calendarDoubleTokens.calendarActiveItemColor, calendarDoubleTokens.calendarHoveredItemBackground, calendarDoubleTokens.calendarHoveredItemColor, calendarDoubleTokens.calendarSeparatorBackground, calendarDoubleTokens.calendarRangeBackground, calendarDoubleTokens.calendarOutlineFocusColor, calendarDoubleTokens.calendarContentPrimaryColor, calendarDoubleTokens.calendarContentSecondaryColor)
|
11
11
|
},
|
12
12
|
size: {
|
13
13
|
m: /*#__PURE__*/css(["", ":0.5rem;", ":var(--plasma-typo-h4-font-family);", ":var(--plasma-typo-h4-font-size);", ":var(--plasma-typo-h4-font-style);", ":var(--plasma-typo-h4-letter-spacing);", ":var(--plasma-typo-h4-line-height);", ":var(--plasma-typo-h4-font-weight);", ":var(--plasma-typo-h4-bold-font-weight);", ":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-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":var(--plasma-typo-body-s-font-weight);", ":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-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":var(--plasma-typo-body-s-font-weight);", ":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-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":var(--plasma-typo-body-s-font-weight);"], calendarDoubleTokens.calendarItemBorderRadius, calendarDoubleTokens.calendarHeaderFontFamily, calendarDoubleTokens.calendarHeaderFontSize, calendarDoubleTokens.calendarHeaderFontStyle, calendarDoubleTokens.calendarHeaderFontLetterSpacing, calendarDoubleTokens.calendarHeaderFontLineHeight, calendarDoubleTokens.calendarHeaderFontWeight, calendarDoubleTokens.calendarHeaderFontWeightBold, calendarDoubleTokens.calendarYearFontFamily, calendarDoubleTokens.calendarYearFontSize, calendarDoubleTokens.calendarYearFontStyle, calendarDoubleTokens.calendarYearFontLetterSpacing, calendarDoubleTokens.calendarYearFontLineHeight, calendarDoubleTokens.calendarYearFontWeight, calendarDoubleTokens.calendarMonthFontFamily, calendarDoubleTokens.calendarMonthFontSize, calendarDoubleTokens.calendarMonthFontStyle, calendarDoubleTokens.calendarMonthFontLetterSpacing, calendarDoubleTokens.calendarMonthFontLineHeight, calendarDoubleTokens.calendarMonthFontWeight, calendarDoubleTokens.calendarDayFontFamily, calendarDoubleTokens.calendarDayFontSize, calendarDoubleTokens.calendarDayFontStyle, calendarDoubleTokens.calendarDayFontLetterSpacing, calendarDoubleTokens.calendarDayFontLineHeight, calendarDoubleTokens.calendarDayFontWeight)
|
@@ -16,7 +16,7 @@ export var config = {
|
|
16
16
|
* Вид контрола.
|
17
17
|
*/
|
18
18
|
view: {
|
19
|
-
|
19
|
+
"default": /*#__PURE__*/css(["--plasma-checkbox-fill-color:var(--text-primary);--plasma-checkbox-icon-color:var(--inverse-text-primary);--plasma-checkbox-description-color:var(--text-secondary);--plasma-checkbox-trigger-border-color:var(--text-secondary);"]),
|
20
20
|
secondary: /*#__PURE__*/css(["--plasma-checkbox-fill-color:var(--text-secondary);--plasma-checkbox-icon-color:var(--inverse-text-primary);--plasma-checkbox-description-color:var(--text-secondary);--plasma-checkbox-trigger-border-color:var(--text-secondary);"]),
|
21
21
|
tertiary: /*#__PURE__*/css(["--plasma-checkbox-fill-color:var(--text-tertiary);--plasma-checkbox-icon-color:var(--inverse-text-primary);--plasma-checkbox-description-color:var(--text-secondary);--plasma-checkbox-trigger-border-color:var(--text-secondary);"]),
|
22
22
|
paragraph: /*#__PURE__*/css(["--plasma-checkbox-fill-color:var(--text-paragraph);--plasma-checkbox-icon-color:var(--inverse-text-primary);--plasma-checkbox-description-color:var(--text-secondary);--plasma-checkbox-trigger-border-color:var(--text-secondary);"]),
|
@@ -2,12 +2,12 @@ import { css } from 'styled-components';
|
|
2
2
|
import { counterTokens } from '../../../../components/Counter';
|
3
3
|
export var config = {
|
4
4
|
defaults: {
|
5
|
-
view: '
|
5
|
+
view: 'default',
|
6
6
|
size: 'xs'
|
7
7
|
},
|
8
8
|
variations: {
|
9
9
|
view: {
|
10
|
-
|
10
|
+
"default": /*#__PURE__*/css(["", ":var(--inverse-text-primary);", ":var(--surface-solid-default);"], counterTokens.color, counterTokens.background),
|
11
11
|
accent: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--surface-accent);"], counterTokens.color, counterTokens.background),
|
12
12
|
positive: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--surface-positive);"], counterTokens.color, counterTokens.background),
|
13
13
|
warning: /*#__PURE__*/css(["", ":var(--on-dark-text-primary);", ":var(--surface-warning);"], counterTokens.color, counterTokens.background),
|
@@ -18,7 +18,7 @@ const meta: Meta<typeof Counter> = {
|
|
18
18
|
},
|
19
19
|
},
|
20
20
|
view: {
|
21
|
-
options: ['
|
21
|
+
options: ['default', 'accent', 'positive', 'warning', 'negative', 'dark', 'light'],
|
22
22
|
control: {
|
23
23
|
type: 'select',
|
24
24
|
},
|
@@ -35,7 +35,7 @@ export const Default: Story = {
|
|
35
35
|
args: {
|
36
36
|
count: 25,
|
37
37
|
maxCount: 100,
|
38
|
-
view: '
|
38
|
+
view: 'default',
|
39
39
|
size: 'xs',
|
40
40
|
},
|
41
41
|
};
|
@@ -2,12 +2,12 @@ import { css } from 'styled-components';
|
|
2
2
|
import { headerTokens } from '../../../../components/Header';
|
3
3
|
export var config = {
|
4
4
|
defaults: {
|
5
|
-
view: '
|
5
|
+
view: 'default',
|
6
6
|
size: 'm'
|
7
7
|
},
|
8
8
|
variations: {
|
9
9
|
view: {
|
10
|
-
|
10
|
+
"default": /*#__PURE__*/css(["", ":var(--text-primary);", ":var(--surface-clear);", ":transform 0.15s ease-in-out;", ":var(--plasma-colors-primary);", ":var(--plasma-colors-primary);", ":var(--plasma-colors-primary);", ":var(--plasma-colors-secondary);", ":var(--plasma-colors-secondary);", ":var(--plasma-colors-secondary);"], headerTokens.headerArrowButtonColor, headerTokens.headerArrowButtonBackgroundColor, headerTokens.headerArrowTransition, headerTokens.headerTitleColor, headerTokens.headerBigTitleColor, headerTokens.headerBiggerTitleColor, headerTokens.headerLabelColor, headerTokens.headerSubTitleColor, headerTokens.headerCaptionColor)
|
11
11
|
},
|
12
12
|
size: {
|
13
13
|
m: /*#__PURE__*/css(["", ":2.25rem;", ":1.625rem;", ":0.625rem;", ":0.75rem;", ":1rem;", ":1.5rem;", ":0.125rem 0;", ":0.5rem 0;", ":0.5rem 0;", ":0.375rem 0;", ":0.125rem 0;", ":0.25rem 0;", ":2.25rem;", ":0.5rem;"], headerTokens.headerHeight, headerTokens.headerPaddingTop, headerTokens.headerPaddingBottom, headerTokens.headerLogoMarginRight, headerTokens.headerArrowMarginRight, headerTokens.headerArrowIconSize, headerTokens.headerTitleMargin, headerTokens.headerBigTitleMargin, headerTokens.headerBiggerTitleMargin, headerTokens.headerLabelMargin, headerTokens.headerSubTitleMargin, headerTokens.headerCaptionMargin, headerTokens.headerArrowHeight, headerTokens.headerArrowPadding)
|
@@ -114,7 +114,7 @@ export const CustomAssembly: StoryObj<CustomAssemblyProps & ContentComponentProp
|
|
114
114
|
...argTypesFromConfig(mergeConfig(headerRootConfig, config)),
|
115
115
|
},
|
116
116
|
args: {
|
117
|
-
view: '
|
117
|
+
view: 'default',
|
118
118
|
size: 'm',
|
119
119
|
variant: 'title+subtitle',
|
120
120
|
title: 'Header title text',
|
@@ -6,7 +6,7 @@ export var config = {
|
|
6
6
|
},
|
7
7
|
variations: {
|
8
8
|
view: {
|
9
|
-
|
9
|
+
"default": /*#__PURE__*/css(["--plasma-link-font-family:var(--plasma-typo-text-m-font-family);--plasma-link-color:var(--text-primary);--plasma-link-color-hover:var(--text-primary-hover);--plasma-link-color-active:var(--text-primary-active);--plasma-link-color-visited:var(--text-primary);--plasma-link-color-visited-hover:var(--text-primary-hover);--plasma-link-color-visited-active:var(--text-primary-active);--plasma-link-underline-border:0;"]),
|
10
10
|
secondary: /*#__PURE__*/css(["--plasma-link-font-family:var(--plasma-typo-text-m-font-family);--plasma-link-color:var(--text-secondary);--plasma-link-color-hover:var(--text-secondary-hover);--plasma-link-color-active:var(--text-secondary-active);--plasma-link-color-visited:var(--text-secondary);--plasma-link-color-visited-hover:var(--text-secondary-hover);--plasma-link-color-visited-active:var(--text-secondary-active);--plasma-link-underline-border:0;"]),
|
11
11
|
tertiary: /*#__PURE__*/css(["--plasma-link-font-family:var(--plasma-typo-text-m-font-family);--plasma-link-color:var(--text-tertiary);--plasma-link-color-hover:var(--text-tertiary-hover);--plasma-link-color-active:var(--text-tertiary-active);--plasma-link-color-visited:var(--text-tertiary);--plasma-link-color-visited-hover:var(--text-tertiary-hover);--plasma-link-color-visited-active:var(--text-tertiary-active);--plasma-link-underline-border:0;"]),
|
12
12
|
paragraph: /*#__PURE__*/css(["--plasma-link-font-family:var(--plasma-typo-text-m-font-family);--plasma-link-color:var(--text-paragraph);--plasma-link-color-hover:var(--text-paragraph-hover);--plasma-link-color-active:var(--text-paragraph-active);--plasma-link-color-visited:var(--text-paragraph);--plasma-link-color-visited-hover:var(--text-paragraph-hover);--plasma-link-color-visited-active:var(--text-paragraph-active);--plasma-link-underline-border:0;"]),
|