@salutejs/plasma-new-hope 0.325.0-canary.1954.15277675821.0 → 0.325.0-canary.1967.15291487889.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/components/CodeField/CodeField.css +14 -0
- package/cjs/components/CodeField/CodeField.js +290 -0
- package/cjs/components/CodeField/CodeField.js.map +1 -0
- package/cjs/components/CodeField/CodeField.styles.js +57 -0
- package/cjs/components/CodeField/CodeField.styles.js.map +1 -0
- package/cjs/components/CodeField/CodeField.styles_7zxgpc.css +6 -0
- package/cjs/components/CodeField/CodeField.tokens.js +59 -0
- package/cjs/components/CodeField/CodeField.tokens.js.map +1 -0
- package/cjs/components/CodeField/utils/constants.js +18 -0
- package/cjs/components/CodeField/utils/constants.js.map +1 -0
- package/cjs/components/CodeField/utils/handleCodeError.js +55 -0
- package/cjs/components/CodeField/utils/handleCodeError.js.map +1 -0
- package/cjs/components/CodeField/utils/handleItemError.js +53 -0
- package/cjs/components/CodeField/utils/handleItemError.js.map +1 -0
- package/cjs/components/CodeField/utils/initialValuesHelper.js +33 -0
- package/cjs/components/CodeField/utils/initialValuesHelper.js.map +1 -0
- package/cjs/components/{List/variations/_view → CodeField/variations/_disabled}/base.js +2 -2
- package/cjs/components/CodeField/variations/_disabled/base.js.map +1 -0
- package/cjs/components/CodeField/variations/_disabled/base_obsae2.css +1 -0
- package/cjs/components/{List/variations/_variant → CodeField/variations/_shape}/base.js +2 -2
- package/cjs/components/CodeField/variations/_shape/base.js.map +1 -0
- package/cjs/components/CodeField/variations/_shape/base_1scsyya.css +1 -0
- package/cjs/components/{List/variations/_disabled → CodeField/variations/_size}/base.js +2 -2
- package/cjs/components/CodeField/variations/_size/base.js.map +1 -0
- package/cjs/components/CodeField/variations/_size/base_1wrvbr5.css +1 -0
- package/cjs/components/{List/variations/_size → CodeField/variations/_view}/base.js +2 -2
- package/cjs/components/CodeField/variations/_view/base.js.map +1 -0
- package/cjs/components/CodeField/variations/_view/base_9a5yza.css +1 -0
- package/cjs/components/Notification/Notification.css +12 -12
- package/cjs/components/Notification/Notification.js +5 -1
- package/cjs/components/Notification/Notification.js.map +1 -1
- package/cjs/components/Notification/Notification.styles.js +63 -48
- package/cjs/components/Notification/Notification.styles.js.map +1 -1
- package/cjs/components/Notification/{Notification.styles_1yt699o.css → Notification.styles_1uyb7ob.css} +1 -1
- package/cjs/components/Notification/Notification.types.js.map +1 -1
- package/cjs/components/Notification/NotificationsProvider.css +11 -11
- package/cjs/components/Notification/variations/_layout/base.js +1 -1
- package/cjs/components/Notification/variations/_layout/base.js.map +1 -1
- package/cjs/components/Notification/variations/_layout/base_1g9g70c.css +1 -0
- package/cjs/components/NumberInput/ui/Input/Input.js +0 -3
- package/cjs/components/NumberInput/ui/Input/Input.js.map +1 -1
- package/cjs/index.css +27 -17
- package/cjs/index.js +10 -8
- package/cjs/index.js.map +1 -1
- package/emotion/cjs/components/CodeField/CodeField.js +299 -0
- package/emotion/cjs/components/CodeField/CodeField.styles.js +65 -0
- package/emotion/cjs/components/CodeField/CodeField.template-doc.mdx +150 -0
- package/emotion/cjs/components/CodeField/CodeField.tokens.js +57 -0
- package/emotion/cjs/components/CodeField/index.js +50 -0
- package/emotion/cjs/components/CodeField/utils/constants.js +12 -0
- package/emotion/cjs/components/CodeField/utils/handleCodeError.js +58 -0
- package/emotion/cjs/components/CodeField/utils/handleItemError.js +56 -0
- package/emotion/cjs/components/CodeField/utils/index.js +38 -0
- package/emotion/cjs/components/CodeField/utils/initialValuesHelper.js +30 -0
- package/emotion/cjs/components/CodeField/variations/_disabled/base.js +9 -0
- package/emotion/cjs/components/CodeField/variations/_disabled/tokens.json +4 -0
- package/emotion/cjs/components/CodeField/variations/_shape/base.js +10 -0
- package/emotion/cjs/components/CodeField/variations/_shape/tokens.json +1 -0
- package/emotion/cjs/components/CodeField/variations/_size/base.js +10 -0
- package/emotion/cjs/components/CodeField/variations/_size/tokens.json +19 -0
- package/emotion/cjs/components/CodeField/variations/_view/base.js +10 -0
- package/emotion/cjs/components/CodeField/variations/_view/tokens.json +0 -0
- package/emotion/cjs/components/Notification/Notification.js +5 -1
- package/emotion/cjs/components/Notification/Notification.styles.js +43 -36
- package/emotion/cjs/components/Notification/Notification.template-doc.mdx +44 -0
- package/emotion/cjs/components/Notification/variations/_layout/base.js +1 -1
- package/emotion/cjs/components/NumberInput/ui/Input/Input.js +0 -3
- package/emotion/cjs/examples/fixtures/Notification.js +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/CodeField/CodeField.config.js +31 -0
- package/emotion/cjs/examples/plasma_b2c/components/CodeField/CodeField.js +11 -0
- package/emotion/cjs/examples/plasma_b2c/components/CodeField/CodeField.stories.tsx +107 -0
- package/emotion/cjs/examples/plasma_b2c/components/Notification/Notification.stories.tsx +5 -1
- package/emotion/cjs/examples/plasma_web/components/CodeField/CodeField.config.js +31 -0
- package/emotion/cjs/examples/plasma_web/components/CodeField/CodeField.js +11 -0
- package/emotion/cjs/examples/plasma_web/components/CodeField/CodeField.stories.tsx +107 -0
- package/emotion/cjs/examples/plasma_web/components/Notification/Notification.stories.tsx +5 -1
- package/emotion/cjs/index.js +11 -11
- package/emotion/es/components/CodeField/CodeField.js +290 -0
- package/emotion/es/components/CodeField/CodeField.styles.js +58 -0
- package/emotion/es/components/CodeField/CodeField.template-doc.mdx +150 -0
- package/emotion/es/components/CodeField/CodeField.tokens.js +51 -0
- package/emotion/es/components/CodeField/index.js +3 -0
- package/emotion/es/components/CodeField/utils/constants.js +6 -0
- package/emotion/es/components/CodeField/utils/handleCodeError.js +52 -0
- package/emotion/es/components/CodeField/utils/handleItemError.js +50 -0
- package/emotion/es/components/CodeField/utils/index.js +3 -0
- package/emotion/es/components/CodeField/utils/initialValuesHelper.js +24 -0
- package/emotion/es/components/CodeField/variations/_disabled/base.js +3 -0
- package/emotion/es/components/CodeField/variations/_disabled/tokens.json +4 -0
- package/emotion/es/components/CodeField/variations/_shape/base.js +4 -0
- package/emotion/es/components/CodeField/variations/_shape/tokens.json +1 -0
- package/emotion/es/components/CodeField/variations/_size/base.js +4 -0
- package/emotion/es/components/CodeField/variations/_size/tokens.json +19 -0
- package/emotion/es/components/CodeField/variations/_view/base.js +4 -0
- package/emotion/es/components/CodeField/variations/_view/tokens.json +0 -0
- package/emotion/es/components/Notification/Notification.js +5 -1
- package/emotion/es/components/Notification/Notification.styles.js +43 -36
- package/emotion/es/components/Notification/Notification.template-doc.mdx +44 -0
- package/emotion/es/components/Notification/variations/_layout/base.js +1 -1
- package/emotion/es/components/NumberInput/ui/Input/Input.js +0 -3
- package/emotion/es/examples/fixtures/Notification.js +1 -1
- package/emotion/es/examples/plasma_b2c/components/CodeField/CodeField.config.js +25 -0
- package/emotion/es/examples/plasma_b2c/components/CodeField/CodeField.js +5 -0
- package/emotion/es/examples/plasma_b2c/components/CodeField/CodeField.stories.tsx +107 -0
- package/emotion/es/examples/plasma_b2c/components/Notification/Notification.stories.tsx +5 -1
- package/emotion/es/examples/plasma_web/components/CodeField/CodeField.config.js +25 -0
- package/emotion/es/examples/plasma_web/components/CodeField/CodeField.js +5 -0
- package/emotion/es/examples/plasma_web/components/CodeField/CodeField.stories.tsx +107 -0
- package/emotion/es/examples/plasma_web/components/Notification/Notification.stories.tsx +5 -1
- package/emotion/es/index.js +1 -2
- package/es/components/CodeField/CodeField.css +14 -0
- package/es/components/CodeField/CodeField.js +280 -0
- package/es/components/CodeField/CodeField.js.map +1 -0
- package/es/components/CodeField/CodeField.styles.js +48 -0
- package/es/components/CodeField/CodeField.styles.js.map +1 -0
- package/es/components/CodeField/CodeField.styles_7zxgpc.css +6 -0
- package/es/components/CodeField/CodeField.tokens.js +54 -0
- package/es/components/CodeField/CodeField.tokens.js.map +1 -0
- package/es/components/CodeField/utils/constants.js +9 -0
- package/es/components/CodeField/utils/constants.js.map +1 -0
- package/es/components/CodeField/utils/handleCodeError.js +51 -0
- package/es/components/CodeField/utils/handleCodeError.js.map +1 -0
- package/es/components/CodeField/utils/handleItemError.js +49 -0
- package/es/components/CodeField/utils/handleItemError.js.map +1 -0
- package/es/components/CodeField/utils/initialValuesHelper.js +27 -0
- package/es/components/CodeField/utils/initialValuesHelper.js.map +1 -0
- package/es/components/{List/variations/_view → CodeField/variations/_disabled}/base.js +2 -2
- package/es/components/CodeField/variations/_disabled/base.js.map +1 -0
- package/es/components/CodeField/variations/_disabled/base_obsae2.css +1 -0
- package/es/components/CodeField/variations/_shape/base.js +5 -0
- package/es/components/CodeField/variations/_shape/base.js.map +1 -0
- package/es/components/CodeField/variations/_shape/base_1scsyya.css +1 -0
- package/es/components/{List/variations/_disabled → CodeField/variations/_size}/base.js +2 -2
- package/es/components/CodeField/variations/_size/base.js.map +1 -0
- package/es/components/CodeField/variations/_size/base_1wrvbr5.css +1 -0
- package/es/components/{List/variations/_size → CodeField/variations/_view}/base.js +2 -2
- package/es/components/CodeField/variations/_view/base.js.map +1 -0
- package/es/components/CodeField/variations/_view/base_9a5yza.css +1 -0
- package/es/components/Notification/Notification.css +12 -12
- package/es/components/Notification/Notification.js +5 -1
- package/es/components/Notification/Notification.js.map +1 -1
- package/es/components/Notification/Notification.styles.js +63 -48
- package/es/components/Notification/Notification.styles.js.map +1 -1
- package/es/components/Notification/{Notification.styles_1yt699o.css → Notification.styles_1uyb7ob.css} +1 -1
- package/es/components/Notification/Notification.types.js.map +1 -1
- package/es/components/Notification/NotificationsProvider.css +11 -11
- package/es/components/Notification/variations/_layout/base.js +1 -1
- package/es/components/Notification/variations/_layout/base.js.map +1 -1
- package/es/components/Notification/variations/_layout/base_1g9g70c.css +1 -0
- package/es/components/NumberInput/ui/Input/Input.js +0 -3
- package/es/components/NumberInput/ui/Input/Input.js.map +1 -1
- package/es/index.css +27 -17
- package/es/index.js +3 -3
- package/package.json +2 -2
- package/styled-components/cjs/components/CodeField/CodeField.js +299 -0
- package/styled-components/cjs/components/CodeField/CodeField.styles.js +38 -0
- package/styled-components/cjs/components/CodeField/CodeField.template-doc.mdx +150 -0
- package/styled-components/cjs/components/CodeField/CodeField.tokens.js +57 -0
- package/styled-components/cjs/components/CodeField/index.js +50 -0
- package/styled-components/cjs/components/CodeField/utils/constants.js +12 -0
- package/styled-components/cjs/components/CodeField/utils/handleCodeError.js +58 -0
- package/styled-components/cjs/components/CodeField/utils/handleItemError.js +56 -0
- package/styled-components/cjs/components/CodeField/utils/index.js +38 -0
- package/styled-components/cjs/components/CodeField/utils/initialValuesHelper.js +30 -0
- package/styled-components/cjs/components/{List/variations/_view → CodeField/variations/_disabled}/base.js +2 -1
- package/styled-components/cjs/components/CodeField/variations/_disabled/tokens.json +4 -0
- package/styled-components/cjs/components/CodeField/variations/_shape/base.js +10 -0
- package/styled-components/cjs/components/CodeField/variations/_shape/tokens.json +1 -0
- package/styled-components/cjs/components/CodeField/variations/_size/base.js +10 -0
- package/styled-components/cjs/components/CodeField/variations/_size/tokens.json +19 -0
- package/styled-components/cjs/components/CodeField/variations/_view/base.js +10 -0
- package/styled-components/cjs/components/CodeField/variations/_view/tokens.json +0 -0
- package/styled-components/cjs/components/Notification/Notification.js +5 -1
- package/styled-components/cjs/components/Notification/Notification.styles.js +33 -26
- package/styled-components/cjs/components/Notification/Notification.template-doc.mdx +44 -0
- package/styled-components/cjs/components/Notification/variations/_layout/base.js +1 -1
- package/styled-components/cjs/components/NumberInput/ui/Input/Input.js +0 -3
- package/styled-components/cjs/examples/fixtures/Notification.js +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/CodeField/CodeField.config.js +31 -0
- package/styled-components/cjs/examples/plasma_b2c/components/CodeField/CodeField.js +11 -0
- package/styled-components/cjs/examples/plasma_b2c/components/CodeField/CodeField.stories.tsx +107 -0
- package/styled-components/cjs/examples/plasma_b2c/components/Notification/Notification.stories.tsx +5 -1
- package/styled-components/cjs/examples/plasma_web/components/CodeField/CodeField.config.js +31 -0
- package/styled-components/cjs/examples/plasma_web/components/CodeField/CodeField.js +11 -0
- package/styled-components/cjs/examples/plasma_web/components/CodeField/CodeField.stories.tsx +107 -0
- package/styled-components/cjs/examples/plasma_web/components/Notification/Notification.stories.tsx +5 -1
- package/styled-components/cjs/index.js +11 -11
- package/styled-components/es/components/CodeField/CodeField.js +290 -0
- package/styled-components/es/components/CodeField/CodeField.styles.js +30 -0
- package/styled-components/es/components/CodeField/CodeField.template-doc.mdx +150 -0
- package/styled-components/es/components/CodeField/CodeField.tokens.js +51 -0
- package/styled-components/es/components/CodeField/index.js +3 -0
- package/styled-components/es/components/CodeField/utils/constants.js +6 -0
- package/styled-components/es/components/CodeField/utils/handleCodeError.js +52 -0
- package/styled-components/es/components/CodeField/utils/handleItemError.js +50 -0
- package/styled-components/es/components/CodeField/utils/index.js +3 -0
- package/styled-components/es/components/CodeField/utils/initialValuesHelper.js +24 -0
- package/styled-components/es/components/CodeField/variations/_disabled/base.js +3 -0
- package/styled-components/es/components/CodeField/variations/_disabled/tokens.json +4 -0
- package/styled-components/es/components/CodeField/variations/_shape/base.js +4 -0
- package/styled-components/es/components/CodeField/variations/_shape/tokens.json +1 -0
- package/styled-components/es/components/CodeField/variations/_size/base.js +4 -0
- package/styled-components/es/components/CodeField/variations/_size/tokens.json +19 -0
- package/styled-components/es/components/CodeField/variations/_view/base.js +4 -0
- package/styled-components/es/components/CodeField/variations/_view/tokens.json +0 -0
- package/styled-components/es/components/Notification/Notification.js +5 -1
- package/styled-components/es/components/Notification/Notification.styles.js +33 -26
- package/styled-components/es/components/Notification/Notification.template-doc.mdx +44 -0
- package/styled-components/es/components/Notification/variations/_layout/base.js +1 -1
- package/styled-components/es/components/NumberInput/ui/Input/Input.js +0 -3
- package/styled-components/es/examples/fixtures/Notification.js +1 -1
- package/styled-components/es/examples/plasma_b2c/components/CodeField/CodeField.config.js +25 -0
- package/styled-components/es/examples/plasma_b2c/components/CodeField/CodeField.js +5 -0
- package/styled-components/es/examples/plasma_b2c/components/CodeField/CodeField.stories.tsx +107 -0
- package/styled-components/es/examples/plasma_b2c/components/Notification/Notification.stories.tsx +5 -1
- package/styled-components/es/examples/plasma_web/components/CodeField/CodeField.config.js +25 -0
- package/styled-components/es/examples/plasma_web/components/CodeField/CodeField.js +5 -0
- package/styled-components/es/examples/plasma_web/components/CodeField/CodeField.stories.tsx +107 -0
- package/styled-components/es/examples/plasma_web/components/Notification/Notification.stories.tsx +5 -1
- package/styled-components/es/index.js +1 -2
- package/types/components/CodeField/CodeField.d.ts +69 -0
- package/types/components/CodeField/CodeField.d.ts.map +1 -0
- package/types/components/CodeField/CodeField.styles.d.ts +11 -0
- package/types/components/CodeField/CodeField.styles.d.ts.map +1 -0
- package/types/components/CodeField/CodeField.tokens.d.ts +52 -0
- package/types/components/CodeField/CodeField.tokens.d.ts.map +1 -0
- package/types/components/CodeField/CodeField.types.d.ts +93 -0
- package/types/components/CodeField/CodeField.types.d.ts.map +1 -0
- package/types/components/CodeField/index.d.ts +4 -0
- package/types/components/CodeField/index.d.ts.map +1 -0
- package/types/components/CodeField/utils/constants.d.ts +7 -0
- package/types/components/CodeField/utils/constants.d.ts.map +1 -0
- package/types/components/CodeField/utils/handleCodeError.d.ts +15 -0
- package/types/components/CodeField/utils/handleCodeError.d.ts.map +1 -0
- package/types/components/CodeField/utils/handleItemError.d.ts +14 -0
- package/types/components/CodeField/utils/handleItemError.d.ts.map +1 -0
- package/types/components/CodeField/utils/index.d.ts +4 -0
- package/types/components/CodeField/utils/index.d.ts.map +1 -0
- package/types/components/CodeField/utils/initialValuesHelper.d.ts +4 -0
- package/types/components/CodeField/utils/initialValuesHelper.d.ts.map +1 -0
- package/types/components/CodeField/variations/_disabled/base.d.ts.map +1 -0
- package/types/components/CodeField/variations/_shape/base.d.ts.map +1 -0
- package/types/components/CodeField/variations/_size/base.d.ts.map +1 -0
- package/types/components/CodeField/variations/_view/base.d.ts.map +1 -0
- package/types/components/Notification/Notification.d.ts.map +1 -1
- package/types/components/Notification/Notification.styles.d.ts +3 -1
- package/types/components/Notification/Notification.styles.d.ts.map +1 -1
- package/types/components/Notification/Notification.types.d.ts +9 -0
- package/types/components/Notification/Notification.types.d.ts.map +1 -1
- package/types/components/NumberInput/ui/Input/Input.d.ts.map +1 -1
- package/types/index.d.ts +1 -2
- package/types/index.d.ts.map +1 -1
- package/cjs/components/List/List.css +0 -1
- package/cjs/components/List/List.js +0 -63
- package/cjs/components/List/List.js.map +0 -1
- package/cjs/components/List/List.styles.js +0 -9
- package/cjs/components/List/List.styles.js.map +0 -1
- package/cjs/components/List/List.styles_9yg2yl.css +0 -1
- package/cjs/components/List/List.tokens.js +0 -41
- package/cjs/components/List/List.tokens.js.map +0 -1
- package/cjs/components/List/ui/ListItem.css +0 -18
- package/cjs/components/List/ui/ListItem.js +0 -27
- package/cjs/components/List/ui/ListItem.js.map +0 -1
- package/cjs/components/List/ui/ListItem.styles.js +0 -28
- package/cjs/components/List/ui/ListItem.styles.js.map +0 -1
- package/cjs/components/List/ui/ListItem.styles_1eo5k14.css +0 -2
- package/cjs/components/List/variations/_disabled/base.js.map +0 -1
- package/cjs/components/List/variations/_disabled/base_x642ct.css +0 -1
- package/cjs/components/List/variations/_size/base.js.map +0 -1
- package/cjs/components/List/variations/_size/base_x642ct.css +0 -1
- package/cjs/components/List/variations/_variant/base.js.map +0 -1
- package/cjs/components/List/variations/_variant/base_x642ct.css +0 -1
- package/cjs/components/List/variations/_view/base.js.map +0 -1
- package/cjs/components/List/variations/_view/base_x642ct.css +0 -1
- package/cjs/components/Notification/variations/_layout/base_qkc3i4.css +0 -1
- package/emotion/cjs/components/List/List.js +0 -59
- package/emotion/cjs/components/List/List.styles.js +0 -9
- package/emotion/cjs/components/List/List.tokens.js +0 -39
- package/emotion/cjs/components/List/index.js +0 -38
- package/emotion/cjs/components/List/ui/ListItem.js +0 -24
- package/emotion/cjs/components/List/ui/ListItem.styles.js +0 -21
- package/emotion/cjs/components/List/variations/_disabled/base.js +0 -8
- package/emotion/cjs/components/List/variations/_disabled/tokens.json +0 -1
- package/emotion/cjs/components/List/variations/_size/base.js +0 -8
- package/emotion/cjs/components/List/variations/_size/tokens.json +0 -1
- package/emotion/cjs/components/List/variations/_variant/base.js +0 -8
- package/emotion/cjs/components/List/variations/_variant/tokens.json +0 -1
- package/emotion/cjs/components/List/variations/_view/base.js +0 -8
- package/emotion/cjs/components/List/variations/_view/tokens.json +0 -1
- package/emotion/cjs/examples/plasma_b2c/components/List/List.config.js +0 -34
- package/emotion/cjs/examples/plasma_b2c/components/List/List.js +0 -12
- package/emotion/cjs/examples/plasma_b2c/components/List/List.stories.tsx +0 -60
- package/emotion/cjs/examples/plasma_web/components/List/List.config.js +0 -34
- package/emotion/cjs/examples/plasma_web/components/List/List.js +0 -12
- package/emotion/cjs/examples/plasma_web/components/List/List.stories.tsx +0 -60
- package/emotion/es/components/List/List.js +0 -50
- package/emotion/es/components/List/List.styles.js +0 -3
- package/emotion/es/components/List/List.tokens.js +0 -33
- package/emotion/es/components/List/index.js +0 -3
- package/emotion/es/components/List/ui/ListItem.js +0 -17
- package/emotion/es/components/List/ui/ListItem.styles.js +0 -14
- package/emotion/es/components/List/variations/_disabled/base.js +0 -2
- package/emotion/es/components/List/variations/_disabled/tokens.json +0 -1
- package/emotion/es/components/List/variations/_size/base.js +0 -2
- package/emotion/es/components/List/variations/_size/tokens.json +0 -1
- package/emotion/es/components/List/variations/_variant/base.js +0 -2
- package/emotion/es/components/List/variations/_variant/tokens.json +0 -1
- package/emotion/es/components/List/variations/_view/base.js +0 -2
- package/emotion/es/components/List/variations/_view/tokens.json +0 -1
- package/emotion/es/examples/plasma_b2c/components/List/List.config.js +0 -28
- package/emotion/es/examples/plasma_b2c/components/List/List.js +0 -6
- package/emotion/es/examples/plasma_b2c/components/List/List.stories.tsx +0 -60
- package/emotion/es/examples/plasma_web/components/List/List.config.js +0 -28
- package/emotion/es/examples/plasma_web/components/List/List.js +0 -6
- package/emotion/es/examples/plasma_web/components/List/List.stories.tsx +0 -60
- package/es/components/List/List.css +0 -1
- package/es/components/List/List.js +0 -54
- package/es/components/List/List.js.map +0 -1
- package/es/components/List/List.styles.js +0 -5
- package/es/components/List/List.styles.js.map +0 -1
- package/es/components/List/List.styles_9yg2yl.css +0 -1
- package/es/components/List/List.tokens.js +0 -36
- package/es/components/List/List.tokens.js.map +0 -1
- package/es/components/List/ui/ListItem.css +0 -18
- package/es/components/List/ui/ListItem.js +0 -19
- package/es/components/List/ui/ListItem.js.map +0 -1
- package/es/components/List/ui/ListItem.styles.js +0 -23
- package/es/components/List/ui/ListItem.styles.js.map +0 -1
- package/es/components/List/ui/ListItem.styles_1eo5k14.css +0 -2
- package/es/components/List/variations/_disabled/base.js.map +0 -1
- package/es/components/List/variations/_disabled/base_x642ct.css +0 -1
- package/es/components/List/variations/_size/base.js.map +0 -1
- package/es/components/List/variations/_size/base_x642ct.css +0 -1
- package/es/components/List/variations/_variant/base.js +0 -5
- package/es/components/List/variations/_variant/base.js.map +0 -1
- package/es/components/List/variations/_variant/base_x642ct.css +0 -1
- package/es/components/List/variations/_view/base.js.map +0 -1
- package/es/components/List/variations/_view/base_x642ct.css +0 -1
- package/es/components/Notification/variations/_layout/base_qkc3i4.css +0 -1
- package/styled-components/cjs/components/List/List.js +0 -59
- package/styled-components/cjs/components/List/List.styles.js +0 -9
- package/styled-components/cjs/components/List/List.tokens.js +0 -39
- package/styled-components/cjs/components/List/List.types.js +0 -5
- package/styled-components/cjs/components/List/index.js +0 -38
- package/styled-components/cjs/components/List/ui/ListItem.js +0 -24
- package/styled-components/cjs/components/List/ui/ListItem.styles.js +0 -19
- package/styled-components/cjs/components/List/ui/ListItem.types.js +0 -5
- package/styled-components/cjs/components/List/variations/_disabled/base.js +0 -8
- package/styled-components/cjs/components/List/variations/_disabled/tokens.json +0 -1
- package/styled-components/cjs/components/List/variations/_size/base.js +0 -8
- package/styled-components/cjs/components/List/variations/_size/tokens.json +0 -1
- package/styled-components/cjs/components/List/variations/_variant/base.js +0 -8
- package/styled-components/cjs/components/List/variations/_variant/tokens.json +0 -1
- package/styled-components/cjs/components/List/variations/_view/tokens.json +0 -1
- package/styled-components/cjs/examples/plasma_b2c/components/List/List.config.js +0 -34
- package/styled-components/cjs/examples/plasma_b2c/components/List/List.js +0 -12
- package/styled-components/cjs/examples/plasma_b2c/components/List/List.stories.tsx +0 -60
- package/styled-components/cjs/examples/plasma_web/components/List/List.config.js +0 -34
- package/styled-components/cjs/examples/plasma_web/components/List/List.js +0 -12
- package/styled-components/cjs/examples/plasma_web/components/List/List.stories.tsx +0 -60
- package/styled-components/es/components/List/List.js +0 -50
- package/styled-components/es/components/List/List.styles.js +0 -3
- package/styled-components/es/components/List/List.tokens.js +0 -33
- package/styled-components/es/components/List/List.types.js +0 -1
- package/styled-components/es/components/List/index.js +0 -3
- package/styled-components/es/components/List/ui/ListItem.js +0 -17
- package/styled-components/es/components/List/ui/ListItem.styles.js +0 -12
- package/styled-components/es/components/List/ui/ListItem.types.js +0 -1
- package/styled-components/es/components/List/variations/_disabled/base.js +0 -2
- package/styled-components/es/components/List/variations/_disabled/tokens.json +0 -1
- package/styled-components/es/components/List/variations/_size/base.js +0 -2
- package/styled-components/es/components/List/variations/_size/tokens.json +0 -1
- package/styled-components/es/components/List/variations/_variant/base.js +0 -2
- package/styled-components/es/components/List/variations/_variant/tokens.json +0 -1
- package/styled-components/es/components/List/variations/_view/base.js +0 -2
- package/styled-components/es/components/List/variations/_view/tokens.json +0 -1
- package/styled-components/es/examples/plasma_b2c/components/List/List.config.js +0 -28
- package/styled-components/es/examples/plasma_b2c/components/List/List.js +0 -6
- package/styled-components/es/examples/plasma_b2c/components/List/List.stories.tsx +0 -60
- package/styled-components/es/examples/plasma_web/components/List/List.config.js +0 -28
- package/styled-components/es/examples/plasma_web/components/List/List.js +0 -6
- package/styled-components/es/examples/plasma_web/components/List/List.stories.tsx +0 -60
- package/types/components/List/List.d.ts +0 -43
- package/types/components/List/List.d.ts.map +0 -1
- package/types/components/List/List.styles.d.ts +0 -2
- package/types/components/List/List.styles.d.ts.map +0 -1
- package/types/components/List/List.tokens.d.ts +0 -34
- package/types/components/List/List.tokens.d.ts.map +0 -1
- package/types/components/List/List.types.d.ts +0 -24
- package/types/components/List/List.types.d.ts.map +0 -1
- package/types/components/List/index.d.ts +0 -5
- package/types/components/List/index.d.ts.map +0 -1
- package/types/components/List/ui/ListItem.d.ts +0 -4
- package/types/components/List/ui/ListItem.d.ts.map +0 -1
- package/types/components/List/ui/ListItem.styles.d.ts +0 -36
- package/types/components/List/ui/ListItem.styles.d.ts.map +0 -1
- package/types/components/List/ui/ListItem.types.d.ts +0 -15
- package/types/components/List/ui/ListItem.types.d.ts.map +0 -1
- package/types/components/List/variations/_disabled/base.d.ts.map +0 -1
- package/types/components/List/variations/_size/base.d.ts.map +0 -1
- package/types/components/List/variations/_variant/base.d.ts.map +0 -1
- package/types/components/List/variations/_view/base.d.ts.map +0 -1
- /package/emotion/cjs/components/{List/List.types.js → CodeField/CodeField.types.js} +0 -0
- /package/emotion/es/components/{List/List.types.js → CodeField/CodeField.types.js} +0 -0
- /package/{emotion/cjs/components/List/ui/ListItem.types.js → styled-components/cjs/components/CodeField/CodeField.types.js} +0 -0
- /package/{emotion/es/components/List/ui/ListItem.types.js → styled-components/es/components/CodeField/CodeField.types.js} +0 -0
- /package/types/components/{List → CodeField}/variations/_disabled/base.d.ts +0 -0
- /package/types/components/{List/variations/_size → CodeField/variations/_shape}/base.d.ts +0 -0
- /package/types/components/{List/variations/_variant → CodeField/variations/_size}/base.d.ts +0 -0
- /package/types/components/{List → CodeField}/variations/_view/base.d.ts +0 -0
@@ -0,0 +1,52 @@
|
|
1
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
2
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
3
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
4
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
5
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
6
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
7
|
+
import { classes } from "../CodeField.tokens";
|
8
|
+
import { ANIMATION_TIMEOUT } from "./constants";
|
9
|
+
import { getCodeValue } from "./initialValuesHelper";
|
10
|
+
export var handleCodeError = function handleCodeError(_ref) {
|
11
|
+
var _captionRef$current, _captionRef$current2;
|
12
|
+
var codeLength = _ref.codeLength,
|
13
|
+
codeErrorBehavior = _ref.codeErrorBehavior,
|
14
|
+
currentCode = _ref.currentCode,
|
15
|
+
inputRefs = _ref.inputRefs,
|
16
|
+
inputContainerRef = _ref.inputContainerRef,
|
17
|
+
captionRef = _ref.captionRef,
|
18
|
+
setCode = _ref.setCode,
|
19
|
+
codeSetter = _ref.codeSetter;
|
20
|
+
if (!inputContainerRef.current) {
|
21
|
+
return;
|
22
|
+
}
|
23
|
+
switch (codeErrorBehavior) {
|
24
|
+
case 'keep':
|
25
|
+
inputContainerRef.current.classList.add(classes.codeError, classes.codeErrorAnimation);
|
26
|
+
(_captionRef$current = captionRef.current) === null || _captionRef$current === void 0 || _captionRef$current.classList.add(classes.captionError);
|
27
|
+
setTimeout(function () {
|
28
|
+
var _inputContainerRef$cu;
|
29
|
+
var newCode = _toConsumableArray(currentCode);
|
30
|
+
newCode.pop();
|
31
|
+
codeSetter(newCode);
|
32
|
+
setCode(currentCode);
|
33
|
+
(_inputContainerRef$cu = inputContainerRef.current) === null || _inputContainerRef$cu === void 0 || _inputContainerRef$cu.classList.remove(classes.codeErrorAnimation);
|
34
|
+
setTimeout(function () {
|
35
|
+
var _inputRefs$current, _inputRefs$current2;
|
36
|
+
(_inputRefs$current = inputRefs.current[inputRefs.current.length - 1]) === null || _inputRefs$current === void 0 || _inputRefs$current.setSelectionRange(0, 1);
|
37
|
+
(_inputRefs$current2 = inputRefs.current[inputRefs.current.length - 1]) === null || _inputRefs$current2 === void 0 || _inputRefs$current2.focus();
|
38
|
+
}, 0);
|
39
|
+
}, ANIMATION_TIMEOUT);
|
40
|
+
break;
|
41
|
+
case 'remove-code':
|
42
|
+
default:
|
43
|
+
inputContainerRef.current.classList.add(classes.codeError, classes.codeErrorAnimation, classes.codeErrorFade);
|
44
|
+
(_captionRef$current2 = captionRef.current) === null || _captionRef$current2 === void 0 || _captionRef$current2.classList.add(classes.captionError);
|
45
|
+
setTimeout(function () {
|
46
|
+
var _inputRefs$current$, _inputContainerRef$cu2;
|
47
|
+
codeSetter(getCodeValue(codeLength, ''));
|
48
|
+
(_inputRefs$current$ = inputRefs.current[0]) === null || _inputRefs$current$ === void 0 || _inputRefs$current$.focus();
|
49
|
+
(_inputContainerRef$cu2 = inputContainerRef.current) === null || _inputContainerRef$cu2 === void 0 || _inputContainerRef$cu2.classList.remove(classes.codeError, classes.codeErrorAnimation, classes.codeErrorFade);
|
50
|
+
}, ANIMATION_TIMEOUT);
|
51
|
+
}
|
52
|
+
};
|
@@ -0,0 +1,50 @@
|
|
1
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
2
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
3
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
4
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
5
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
6
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
7
|
+
import { classes } from "../CodeField.tokens";
|
8
|
+
import { ANIMATION_TIMEOUT } from "./constants";
|
9
|
+
export var handleItemError = function handleItemError(_ref) {
|
10
|
+
var _inputRefs$current$in, _inputRefs$current$in4;
|
11
|
+
var currentSymbol = _ref.currentSymbol,
|
12
|
+
itemErrorBehavior = _ref.itemErrorBehavior,
|
13
|
+
index = _ref.index,
|
14
|
+
newCode = _ref.newCode,
|
15
|
+
inputRefs = _ref.inputRefs,
|
16
|
+
setCode = _ref.setCode,
|
17
|
+
codeSetter = _ref.codeSetter;
|
18
|
+
if (!inputRefs.current[index] || currentSymbol === ' ') {
|
19
|
+
return;
|
20
|
+
}
|
21
|
+
switch (itemErrorBehavior) {
|
22
|
+
case 'keep':
|
23
|
+
setCode(newCode);
|
24
|
+
(_inputRefs$current$in = inputRefs.current[index]) === null || _inputRefs$current$in === void 0 || _inputRefs$current$in.classList.add(classes.itemError, classes.itemErrorAnimation);
|
25
|
+
setTimeout(function () {
|
26
|
+
var _inputRefs$current$in2;
|
27
|
+
(_inputRefs$current$in2 = inputRefs.current[index]) === null || _inputRefs$current$in2 === void 0 || _inputRefs$current$in2.classList.remove(classes.itemErrorAnimation);
|
28
|
+
setTimeout(function () {
|
29
|
+
var _inputRefs$current$in3;
|
30
|
+
return (_inputRefs$current$in3 = inputRefs.current[index]) === null || _inputRefs$current$in3 === void 0 ? void 0 : _inputRefs$current$in3.setSelectionRange(0, 1);
|
31
|
+
}, 0);
|
32
|
+
}, ANIMATION_TIMEOUT);
|
33
|
+
break;
|
34
|
+
case 'forbid-enter':
|
35
|
+
newCode[index] = '';
|
36
|
+
codeSetter(newCode);
|
37
|
+
break;
|
38
|
+
case 'remove-symbol':
|
39
|
+
default:
|
40
|
+
setCode(newCode);
|
41
|
+
(_inputRefs$current$in4 = inputRefs.current[index]) === null || _inputRefs$current$in4 === void 0 || _inputRefs$current$in4.classList.add(classes.itemError, classes.itemErrorFade, classes.itemErrorAnimation);
|
42
|
+
setTimeout(function () {
|
43
|
+
var _inputRefs$current$in5;
|
44
|
+
var updatedCode = _toConsumableArray(newCode);
|
45
|
+
updatedCode[index] = '';
|
46
|
+
codeSetter(updatedCode);
|
47
|
+
(_inputRefs$current$in5 = inputRefs.current[index]) === null || _inputRefs$current$in5 === void 0 || _inputRefs$current$in5.classList.remove(classes.itemError, classes.itemErrorFade, classes.itemErrorAnimation);
|
48
|
+
}, ANIMATION_TIMEOUT);
|
49
|
+
}
|
50
|
+
};
|
@@ -0,0 +1,24 @@
|
|
1
|
+
export var getFieldPattern = function getFieldPattern(allowedSymbols) {
|
2
|
+
if (!allowedSymbols) {
|
3
|
+
return null;
|
4
|
+
}
|
5
|
+
if (typeof allowedSymbols === 'string') {
|
6
|
+
return new RegExp(allowedSymbols, 'g');
|
7
|
+
}
|
8
|
+
return allowedSymbols;
|
9
|
+
};
|
10
|
+
export var getCodeValue = function getCodeValue(codeLength, value) {
|
11
|
+
if (!value.length) {
|
12
|
+
return new Array(codeLength).fill('');
|
13
|
+
}
|
14
|
+
return value.slice(0, codeLength).split('');
|
15
|
+
};
|
16
|
+
export var getPlaceholderValue = function getPlaceholderValue(codeLength, placeholder) {
|
17
|
+
if (!placeholder || typeof placeholder !== 'string') {
|
18
|
+
return null;
|
19
|
+
}
|
20
|
+
if (placeholder.length === 1) {
|
21
|
+
return Array(codeLength).fill(placeholder);
|
22
|
+
}
|
23
|
+
return placeholder.slice(0, codeLength).split('');
|
24
|
+
};
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import { css } from '@emotion/react';
|
2
|
+
import { tokens } from "../../CodeField.tokens";
|
3
|
+
export var base = /*#__PURE__*/css("&&[disabled]{opacity:var(", tokens.disabledOpacity, ");cursor:not-allowed;&>*{pointer-events:none;}};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQ29kZUZpZWxkL3ZhcmlhdGlvbnMvX2Rpc2FibGVkL2Jhc2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBSXVCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQ29kZUZpZWxkL3ZhcmlhdGlvbnMvX2Rpc2FibGVkL2Jhc2UudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IHRva2VucyB9IGZyb20gJy4uLy4uL0NvZGVGaWVsZC50b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICAmJltkaXNhYmxlZF0ge1xuICAgICAgICBvcGFjaXR5OiB2YXIoJHt0b2tlbnMuZGlzYWJsZWRPcGFjaXR5fSk7XG4gICAgICAgIGN1cnNvcjogbm90LWFsbG93ZWQ7XG5cbiAgICAgICAgJiA+ICoge1xuICAgICAgICAgICAgcG9pbnRlci1ldmVudHM6IG5vbmU7XG4gICAgICAgIH1cbiAgICB9XG5gO1xuIl19 */"));
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { css } from '@emotion/react';
|
2
|
+
import { tokens, classes } from "../../CodeField.tokens";
|
3
|
+
import { ItemInput } from "../../CodeField.styles";
|
4
|
+
export var base = /*#__PURE__*/css(ItemInput, "{border-radius:var(", tokens.borderRadius, ");&.", classes.segmented, "{border-radius:var(", tokens.borderRadiusSegmented, ");&:first-child{border-top-left-radius:var(", tokens.segmentedSideBorderRadius, ");border-bottom-left-radius:var(", tokens.segmentedSideBorderRadius, ");}&:last-child{border-top-right-radius:var(", tokens.segmentedSideBorderRadius, ");border-bottom-right-radius:var(", tokens.segmentedSideBorderRadius, ");}}};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQ29kZUZpZWxkL3ZhcmlhdGlvbnMvX3NoYXBlL2Jhc2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBS3VCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQ29kZUZpZWxkL3ZhcmlhdGlvbnMvX3NoYXBlL2Jhc2UudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IHRva2VucywgY2xhc3NlcyB9IGZyb20gJy4uLy4uL0NvZGVGaWVsZC50b2tlbnMnO1xuaW1wb3J0IHsgSXRlbUlucHV0IH0gZnJvbSAnLi4vLi4vQ29kZUZpZWxkLnN0eWxlcyc7XG5cbmV4cG9ydCBjb25zdCBiYXNlID0gY3NzYFxuICAgICR7SXRlbUlucHV0fSB7XG4gICAgICAgIGJvcmRlci1yYWRpdXM6IHZhcigke3Rva2Vucy5ib3JkZXJSYWRpdXN9KTtcblxuICAgICAgICAmLiR7Y2xhc3Nlcy5zZWdtZW50ZWR9IHtcbiAgICAgICAgICAgIGJvcmRlci1yYWRpdXM6IHZhcigke3Rva2Vucy5ib3JkZXJSYWRpdXNTZWdtZW50ZWR9KTtcblxuICAgICAgICAgICAgJjpmaXJzdC1jaGlsZCB7XG4gICAgICAgICAgICAgICAgYm9yZGVyLXRvcC1sZWZ0LXJhZGl1czogdmFyKCR7dG9rZW5zLnNlZ21lbnRlZFNpZGVCb3JkZXJSYWRpdXN9KTtcbiAgICAgICAgICAgICAgICBib3JkZXItYm90dG9tLWxlZnQtcmFkaXVzOiB2YXIoJHt0b2tlbnMuc2VnbWVudGVkU2lkZUJvcmRlclJhZGl1c30pO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAmOmxhc3QtY2hpbGQge1xuICAgICAgICAgICAgICAgIGJvcmRlci10b3AtcmlnaHQtcmFkaXVzOiB2YXIoJHt0b2tlbnMuc2VnbWVudGVkU2lkZUJvcmRlclJhZGl1c30pO1xuICAgICAgICAgICAgICAgIGJvcmRlci1ib3R0b20tcmlnaHQtcmFkaXVzOiB2YXIoJHt0b2tlbnMuc2VnbWVudGVkU2lkZUJvcmRlclJhZGl1c30pO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuYDtcbiJdfQ== */"));
|
@@ -0,0 +1 @@
|
|
1
|
+
["--plasma-codefield-code-item-border-radius", "--plasma-codefield-code-item-segmented-side-border-radius"]
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { css } from '@emotion/react';
|
2
|
+
import { CaptionWrapper, CodeGroup, CodeWrapper, ItemInput } from "../../CodeField.styles";
|
3
|
+
import { tokens } from "../../CodeField.tokens";
|
4
|
+
export var base = /*#__PURE__*/css("gap:var(", tokens.captionGap, ");", CodeWrapper, ",", CodeGroup, "{gap:var(", tokens.codeItemsGap, ");}", ItemInput, "{width:var(", tokens.codeItemWidth, ");height:var(", tokens.codeItemHeight, ");font-family:var(", tokens.fontFamily, ");font-size:var(", tokens.fontSize, ");font-style:var(", tokens.fontStyle, ");font-weight:var(", tokens.fontWeight, ");letter-spacing:var(", tokens.letterSpacing, ");line-height:var(", tokens.lineHeight, ");}", CaptionWrapper, "{font-family:var(", tokens.captionFontFamily, ");font-size:var(", tokens.captionFontSize, ");font-style:var(", tokens.captionFontStyle, ");font-weight:var(", tokens.captionFontWeight, ");letter-spacing:var(", tokens.captionLetterSpacing, ");line-height:var(", tokens.captionLineHeight, ");};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQ29kZUZpZWxkL3ZhcmlhdGlvbnMvX3NpemUvYmFzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFLdUIiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9Db2RlRmllbGQvdmFyaWF0aW9ucy9fc2l6ZS9iYXNlLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyBDYXB0aW9uV3JhcHBlciwgQ29kZUdyb3VwLCBDb2RlV3JhcHBlciwgSXRlbUlucHV0IH0gZnJvbSAnLi4vLi4vQ29kZUZpZWxkLnN0eWxlcyc7XG5pbXBvcnQgeyB0b2tlbnMgfSBmcm9tICcuLi8uLi9Db2RlRmllbGQudG9rZW5zJztcblxuZXhwb3J0IGNvbnN0IGJhc2UgPSBjc3NgXG4gICAgZ2FwOiB2YXIoJHt0b2tlbnMuY2FwdGlvbkdhcH0pO1xuXG4gICAgJHtDb2RlV3JhcHBlcn0sICR7Q29kZUdyb3VwfSB7XG4gICAgICAgIGdhcDogdmFyKCR7dG9rZW5zLmNvZGVJdGVtc0dhcH0pO1xuICAgIH1cblxuICAgICR7SXRlbUlucHV0fSB7XG4gICAgICAgIHdpZHRoOiB2YXIoJHt0b2tlbnMuY29kZUl0ZW1XaWR0aH0pO1xuICAgICAgICBoZWlnaHQ6IHZhcigke3Rva2Vucy5jb2RlSXRlbUhlaWdodH0pO1xuXG4gICAgICAgIGZvbnQtZmFtaWx5OiB2YXIoJHt0b2tlbnMuZm9udEZhbWlseX0pO1xuICAgICAgICBmb250LXNpemU6IHZhcigke3Rva2Vucy5mb250U2l6ZX0pO1xuICAgICAgICBmb250LXN0eWxlOiB2YXIoJHt0b2tlbnMuZm9udFN0eWxlfSk7XG4gICAgICAgIGZvbnQtd2VpZ2h0OiB2YXIoJHt0b2tlbnMuZm9udFdlaWdodH0pO1xuICAgICAgICBsZXR0ZXItc3BhY2luZzogdmFyKCR7dG9rZW5zLmxldHRlclNwYWNpbmd9KTtcbiAgICAgICAgbGluZS1oZWlnaHQ6IHZhcigke3Rva2Vucy5saW5lSGVpZ2h0fSk7XG4gICAgfVxuXG4gICAgJHtDYXB0aW9uV3JhcHBlcn0ge1xuICAgICAgICBmb250LWZhbWlseTogdmFyKCR7dG9rZW5zLmNhcHRpb25Gb250RmFtaWx5fSk7XG4gICAgICAgIGZvbnQtc2l6ZTogdmFyKCR7dG9rZW5zLmNhcHRpb25Gb250U2l6ZX0pO1xuICAgICAgICBmb250LXN0eWxlOiB2YXIoJHt0b2tlbnMuY2FwdGlvbkZvbnRTdHlsZX0pO1xuICAgICAgICBmb250LXdlaWdodDogdmFyKCR7dG9rZW5zLmNhcHRpb25Gb250V2VpZ2h0fSk7XG4gICAgICAgIGxldHRlci1zcGFjaW5nOiB2YXIoJHt0b2tlbnMuY2FwdGlvbkxldHRlclNwYWNpbmd9KTtcbiAgICAgICAgbGluZS1oZWlnaHQ6IHZhcigke3Rva2Vucy5jYXB0aW9uTGluZUhlaWdodH0pO1xuICAgIH1cbmA7XG4iXX0= */"));
|
@@ -0,0 +1,19 @@
|
|
1
|
+
[
|
2
|
+
"--plasma-codefield-caption-gap",
|
3
|
+
"--plasma-codefield-code-item-gap",
|
4
|
+
"--plasma-codefield-separator-width",
|
5
|
+
"--plasma-codefield-item-width",
|
6
|
+
"--plasma-codefield-item-height",
|
7
|
+
"--plasma-codefield-font-family",
|
8
|
+
"--plasma-codefield-font-style",
|
9
|
+
"--plasma-codefield-font-size",
|
10
|
+
"--plasma-codefield-font-weight",
|
11
|
+
"--plasma-codefield-letter-spacing",
|
12
|
+
"--plasma-codefield-line-height",
|
13
|
+
"--plasma-codefield-caption-font-family",
|
14
|
+
"--plasma-codefield-caption-font-style",
|
15
|
+
"--plasma-codefield-caption-font-size",
|
16
|
+
"--plasma-codefield-caption-font-weight",
|
17
|
+
"--plasma-codefield-caption-letter-spacing",
|
18
|
+
"--plasma-codefield-caption-line-height"
|
19
|
+
]
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { css } from '@emotion/react';
|
2
|
+
import { CaptionWrapper, ItemInput } from "../../CodeField.styles";
|
3
|
+
import { classes, tokens } from "../../CodeField.tokens";
|
4
|
+
export var base = /*#__PURE__*/css(CaptionWrapper, "{color:var(", tokens.captionColor, ");&.", classes.captionError, "{color:var(", tokens.captionColorError, ");}}", ItemInput, "{color:var(", tokens.codeColor, ");caret-color:var(", tokens.caretColor, ");background-color:var(", tokens.backgroundColor, ");box-shadow:inset 0 0 0 var(", tokens.borderWidth, ") var(", tokens.borderColor, ");}&:hover{.", classes.hoverEnabled, "{background-color:var(", tokens.backgroundColorHover, ");box-shadow:inset 0 0 0 var(", tokens.borderWidth, ") var(", tokens.borderColorHover, ");}}&:focus-within{", ItemInput, ":focus-within{background-color:var(", tokens.backgroundColorFocus, ");box-shadow:inset 0 0 0 var(", tokens.borderWidth, ") var(", tokens.borderColorFocus, ");}}&& .", classes.codeErrorAnimation, "{animation:shakingError 0.3s forwards;}&& .", classes.codeError, "{", ItemInput, "{color:var(", tokens.codeColorError, ");background-color:var(", tokens.backgroundErrorColor, ");box-shadow:inset 0 0 0 var(", tokens.borderWidth, ") var(", tokens.borderErrorColor, ");}&:focus-within{", ItemInput, "{background-color:var(", tokens.backgroundErrorColor, ");box-shadow:inset 0 0 0 var(", tokens.borderWidth, ") var(", tokens.borderErrorColor, ");}}&.", classes.codeErrorFade, "{", ItemInput, "{animation:fadeError 0.3s forwards;}}}&& .", classes.itemErrorAnimation, "{animation:shakingError 0.3s forwards;}&& .", classes.itemError, ",&& .", classes.itemError, ":focus-within{color:var(", tokens.codeColorError, ");background-color:var(", tokens.backgroundErrorColor, ");box-shadow:inset 0 0 0 var(", tokens.borderWidth, ") var(", tokens.borderErrorColor, ");&.", classes.codeErrorFade, "{animation:shakingError 0.3s forwards fadeError 0.3s forwards;}}@keyframes shakingError{14%{transform:translateX(-0.125rem);}28%{transform:translateX(0.125rem);}42%{transform:translateX(-0.125rem);}57%{transform:translateX(0.125rem);}71%{transform:translateX(-0.125rem);}85%{transform:translateX(0.125rem);}100%{transform:translateX(-0.125rem);}}@keyframes fadeError{50%{color:var(", tokens.codeColorError, ");}100%{color:transparent;}};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQ29kZUZpZWxkL3ZhcmlhdGlvbnMvX3ZpZXcvYmFzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFLdUIiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9Db2RlRmllbGQvdmFyaWF0aW9ucy9fdmlldy9iYXNlLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyBDYXB0aW9uV3JhcHBlciwgSXRlbUlucHV0IH0gZnJvbSAnLi4vLi4vQ29kZUZpZWxkLnN0eWxlcyc7XG5pbXBvcnQgeyBjbGFzc2VzLCB0b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AgdHJhbnNmb3JtOiB0cmFuc2xhdGVYKC0wLjEyNXJlbSk7XG4gICAgICAgIH1cbiAgICAgICAgNTclIHtcbiAgICAgICAgICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlWCgwLjEyNXJlbSk7XG4gICAgICAgIH1cbiAgICAgICAgNzElIHtcbiAgICAgICAgICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlWCgtMC4xMjVyZW0pO1xuICAgICAgICB9XG4gICAgICAgIDg1JSB7XG4gICAgICAgICAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVgoMC4xMjVyZW0pO1xuICAgICAgICB9XG4gICAgICAgIDEwMCUge1xuICAgICAgICAgICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVYKC0wLjEyNXJlbSk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBAa2V5ZnJhbWVzIGZhZGVFcnJvciB7XG4gICAgICAgIDUwJSB7XG4gICAgICAgICAgICBjb2xvcjogdmFyKCR7dG9rZW5zLmNvZGVDb2xvckVycm9yfSk7XG4gICAgICAgIH1cbiAgICAgICAgMTAwJSB7XG4gICAgICAgICAgICBjb2xvcjogdHJhbnNwYXJlbnQ7XG4gICAgICAgIH1cbiAgICB9XG5gO1xuIl19 */"));
|
File without changes
|
@@ -1,4 +1,4 @@
|
|
1
|
-
var _excluded = ["role", "title", "children", "actions", "view", "size", "iconPlacement", "showCloseIcon", "layout", "icon", "closeIconType", "textColor", "titleColor", "backgroundColor", "onCloseButtonClick"];
|
1
|
+
var _excluded = ["role", "title", "children", "actions", "view", "size", "iconPlacement", "showCloseIcon", "layout", "icon", "closeIconType", "textColor", "titleColor", "backgroundColor", "width", "maxWidth", "onCloseButtonClick"];
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
3
3
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
4
4
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
@@ -37,6 +37,8 @@ export var notificationRoot = function notificationRoot(Root) {
|
|
37
37
|
textColor = props.textColor,
|
38
38
|
titleColor = props.titleColor,
|
39
39
|
backgroundColor = props.backgroundColor,
|
40
|
+
width = props.width,
|
41
|
+
maxWidth = props.maxWidth,
|
40
42
|
onCloseButtonClick = props.onCloseButtonClick,
|
41
43
|
rest = _objectWithoutProperties(props, _excluded);
|
42
44
|
var ariaLive = 'polite';
|
@@ -64,6 +66,8 @@ export var notificationRoot = function notificationRoot(Root) {
|
|
64
66
|
"aria-atomic": ariaAtomic
|
65
67
|
}, rest), /*#__PURE__*/React.createElement(Wrapper, {
|
66
68
|
backgroundColor: backgroundColor,
|
69
|
+
width: width,
|
70
|
+
maxWidth: maxWidth,
|
67
71
|
className: cx(classes.wrapper, getLayoutClass(layout), oneLineClass, withoutCloseIconClass)
|
68
72
|
}, /*#__PURE__*/React.createElement(ContentBox, {
|
69
73
|
iconPlacement: IconPlacementInternal,
|