@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,58 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.handleCodeError = void 0;
|
7
|
+
var _CodeField = /*#__PURE__*/require("../CodeField.tokens");
|
8
|
+
var _constants = /*#__PURE__*/require("./constants");
|
9
|
+
var _initialValuesHelper = /*#__PURE__*/require("./initialValuesHelper");
|
10
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
11
|
+
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."); }
|
12
|
+
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; } }
|
13
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
14
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
15
|
+
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; }
|
16
|
+
var handleCodeError = exports.handleCodeError = function handleCodeError(_ref) {
|
17
|
+
var _captionRef$current, _captionRef$current2;
|
18
|
+
var codeLength = _ref.codeLength,
|
19
|
+
codeErrorBehavior = _ref.codeErrorBehavior,
|
20
|
+
currentCode = _ref.currentCode,
|
21
|
+
inputRefs = _ref.inputRefs,
|
22
|
+
inputContainerRef = _ref.inputContainerRef,
|
23
|
+
captionRef = _ref.captionRef,
|
24
|
+
setCode = _ref.setCode,
|
25
|
+
codeSetter = _ref.codeSetter;
|
26
|
+
if (!inputContainerRef.current) {
|
27
|
+
return;
|
28
|
+
}
|
29
|
+
switch (codeErrorBehavior) {
|
30
|
+
case 'keep':
|
31
|
+
inputContainerRef.current.classList.add(_CodeField.classes.codeError, _CodeField.classes.codeErrorAnimation);
|
32
|
+
(_captionRef$current = captionRef.current) === null || _captionRef$current === void 0 || _captionRef$current.classList.add(_CodeField.classes.captionError);
|
33
|
+
setTimeout(function () {
|
34
|
+
var _inputContainerRef$cu;
|
35
|
+
var newCode = _toConsumableArray(currentCode);
|
36
|
+
newCode.pop();
|
37
|
+
codeSetter(newCode);
|
38
|
+
setCode(currentCode);
|
39
|
+
(_inputContainerRef$cu = inputContainerRef.current) === null || _inputContainerRef$cu === void 0 || _inputContainerRef$cu.classList.remove(_CodeField.classes.codeErrorAnimation);
|
40
|
+
setTimeout(function () {
|
41
|
+
var _inputRefs$current, _inputRefs$current2;
|
42
|
+
(_inputRefs$current = inputRefs.current[inputRefs.current.length - 1]) === null || _inputRefs$current === void 0 || _inputRefs$current.setSelectionRange(0, 1);
|
43
|
+
(_inputRefs$current2 = inputRefs.current[inputRefs.current.length - 1]) === null || _inputRefs$current2 === void 0 || _inputRefs$current2.focus();
|
44
|
+
}, 0);
|
45
|
+
}, _constants.ANIMATION_TIMEOUT);
|
46
|
+
break;
|
47
|
+
case 'remove-code':
|
48
|
+
default:
|
49
|
+
inputContainerRef.current.classList.add(_CodeField.classes.codeError, _CodeField.classes.codeErrorAnimation, _CodeField.classes.codeErrorFade);
|
50
|
+
(_captionRef$current2 = captionRef.current) === null || _captionRef$current2 === void 0 || _captionRef$current2.classList.add(_CodeField.classes.captionError);
|
51
|
+
setTimeout(function () {
|
52
|
+
var _inputRefs$current$, _inputContainerRef$cu2;
|
53
|
+
codeSetter((0, _initialValuesHelper.getCodeValue)(codeLength, ''));
|
54
|
+
(_inputRefs$current$ = inputRefs.current[0]) === null || _inputRefs$current$ === void 0 || _inputRefs$current$.focus();
|
55
|
+
(_inputContainerRef$cu2 = inputContainerRef.current) === null || _inputContainerRef$cu2 === void 0 || _inputContainerRef$cu2.classList.remove(_CodeField.classes.codeError, _CodeField.classes.codeErrorAnimation, _CodeField.classes.codeErrorFade);
|
56
|
+
}, _constants.ANIMATION_TIMEOUT);
|
57
|
+
}
|
58
|
+
};
|
@@ -0,0 +1,56 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.handleItemError = void 0;
|
7
|
+
var _CodeField = /*#__PURE__*/require("../CodeField.tokens");
|
8
|
+
var _constants = /*#__PURE__*/require("./constants");
|
9
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
10
|
+
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."); }
|
11
|
+
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; } }
|
12
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
13
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
14
|
+
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; }
|
15
|
+
var handleItemError = exports.handleItemError = function handleItemError(_ref) {
|
16
|
+
var _inputRefs$current$in, _inputRefs$current$in4;
|
17
|
+
var currentSymbol = _ref.currentSymbol,
|
18
|
+
itemErrorBehavior = _ref.itemErrorBehavior,
|
19
|
+
index = _ref.index,
|
20
|
+
newCode = _ref.newCode,
|
21
|
+
inputRefs = _ref.inputRefs,
|
22
|
+
setCode = _ref.setCode,
|
23
|
+
codeSetter = _ref.codeSetter;
|
24
|
+
if (!inputRefs.current[index] || currentSymbol === ' ') {
|
25
|
+
return;
|
26
|
+
}
|
27
|
+
switch (itemErrorBehavior) {
|
28
|
+
case 'keep':
|
29
|
+
setCode(newCode);
|
30
|
+
(_inputRefs$current$in = inputRefs.current[index]) === null || _inputRefs$current$in === void 0 || _inputRefs$current$in.classList.add(_CodeField.classes.itemError, _CodeField.classes.itemErrorAnimation);
|
31
|
+
setTimeout(function () {
|
32
|
+
var _inputRefs$current$in2;
|
33
|
+
(_inputRefs$current$in2 = inputRefs.current[index]) === null || _inputRefs$current$in2 === void 0 || _inputRefs$current$in2.classList.remove(_CodeField.classes.itemErrorAnimation);
|
34
|
+
setTimeout(function () {
|
35
|
+
var _inputRefs$current$in3;
|
36
|
+
return (_inputRefs$current$in3 = inputRefs.current[index]) === null || _inputRefs$current$in3 === void 0 ? void 0 : _inputRefs$current$in3.setSelectionRange(0, 1);
|
37
|
+
}, 0);
|
38
|
+
}, _constants.ANIMATION_TIMEOUT);
|
39
|
+
break;
|
40
|
+
case 'forbid-enter':
|
41
|
+
newCode[index] = '';
|
42
|
+
codeSetter(newCode);
|
43
|
+
break;
|
44
|
+
case 'remove-symbol':
|
45
|
+
default:
|
46
|
+
setCode(newCode);
|
47
|
+
(_inputRefs$current$in4 = inputRefs.current[index]) === null || _inputRefs$current$in4 === void 0 || _inputRefs$current$in4.classList.add(_CodeField.classes.itemError, _CodeField.classes.itemErrorFade, _CodeField.classes.itemErrorAnimation);
|
48
|
+
setTimeout(function () {
|
49
|
+
var _inputRefs$current$in5;
|
50
|
+
var updatedCode = _toConsumableArray(newCode);
|
51
|
+
updatedCode[index] = '';
|
52
|
+
codeSetter(updatedCode);
|
53
|
+
(_inputRefs$current$in5 = inputRefs.current[index]) === null || _inputRefs$current$in5 === void 0 || _inputRefs$current$in5.classList.remove(_CodeField.classes.itemError, _CodeField.classes.itemErrorFade, _CodeField.classes.itemErrorAnimation);
|
54
|
+
}, _constants.ANIMATION_TIMEOUT);
|
55
|
+
}
|
56
|
+
};
|
@@ -0,0 +1,38 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
Object.defineProperty(exports, "getCodeValue", {
|
7
|
+
enumerable: true,
|
8
|
+
get: function get() {
|
9
|
+
return _initialValuesHelper.getCodeValue;
|
10
|
+
}
|
11
|
+
});
|
12
|
+
Object.defineProperty(exports, "getFieldPattern", {
|
13
|
+
enumerable: true,
|
14
|
+
get: function get() {
|
15
|
+
return _initialValuesHelper.getFieldPattern;
|
16
|
+
}
|
17
|
+
});
|
18
|
+
Object.defineProperty(exports, "getPlaceholderValue", {
|
19
|
+
enumerable: true,
|
20
|
+
get: function get() {
|
21
|
+
return _initialValuesHelper.getPlaceholderValue;
|
22
|
+
}
|
23
|
+
});
|
24
|
+
Object.defineProperty(exports, "handleCodeError", {
|
25
|
+
enumerable: true,
|
26
|
+
get: function get() {
|
27
|
+
return _handleCodeError.handleCodeError;
|
28
|
+
}
|
29
|
+
});
|
30
|
+
Object.defineProperty(exports, "handleItemError", {
|
31
|
+
enumerable: true,
|
32
|
+
get: function get() {
|
33
|
+
return _handleItemError.handleItemError;
|
34
|
+
}
|
35
|
+
});
|
36
|
+
var _initialValuesHelper = /*#__PURE__*/require("./initialValuesHelper");
|
37
|
+
var _handleItemError = /*#__PURE__*/require("./handleItemError");
|
38
|
+
var _handleCodeError = /*#__PURE__*/require("./handleCodeError");
|
@@ -0,0 +1,30 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.getPlaceholderValue = exports.getFieldPattern = exports.getCodeValue = void 0;
|
7
|
+
var getFieldPattern = exports.getFieldPattern = function getFieldPattern(allowedSymbols) {
|
8
|
+
if (!allowedSymbols) {
|
9
|
+
return null;
|
10
|
+
}
|
11
|
+
if (typeof allowedSymbols === 'string') {
|
12
|
+
return new RegExp(allowedSymbols, 'g');
|
13
|
+
}
|
14
|
+
return allowedSymbols;
|
15
|
+
};
|
16
|
+
var getCodeValue = exports.getCodeValue = function getCodeValue(codeLength, value) {
|
17
|
+
if (!value.length) {
|
18
|
+
return new Array(codeLength).fill('');
|
19
|
+
}
|
20
|
+
return value.slice(0, codeLength).split('');
|
21
|
+
};
|
22
|
+
var getPlaceholderValue = exports.getPlaceholderValue = function getPlaceholderValue(codeLength, placeholder) {
|
23
|
+
if (!placeholder || typeof placeholder !== 'string') {
|
24
|
+
return null;
|
25
|
+
}
|
26
|
+
if (placeholder.length === 1) {
|
27
|
+
return Array(codeLength).fill(placeholder);
|
28
|
+
}
|
29
|
+
return placeholder.slice(0, codeLength).split('');
|
30
|
+
};
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.base = void 0;
|
7
|
+
var _react = /*#__PURE__*/require("@emotion/react");
|
8
|
+
var _CodeField = /*#__PURE__*/require("../../CodeField.tokens");
|
9
|
+
var base = exports.base = /*#__PURE__*/(0, _react.css)("&&[disabled]{opacity:var(", _CodeField.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,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.base = void 0;
|
7
|
+
var _react = /*#__PURE__*/require("@emotion/react");
|
8
|
+
var _CodeField = /*#__PURE__*/require("../../CodeField.tokens");
|
9
|
+
var _CodeField2 = /*#__PURE__*/require("../../CodeField.styles");
|
10
|
+
var base = exports.base = /*#__PURE__*/(0, _react.css)(_CodeField2.ItemInput, "{border-radius:var(", _CodeField.tokens.borderRadius, ");&.", _CodeField.classes.segmented, "{border-radius:var(", _CodeField.tokens.borderRadiusSegmented, ");&:first-child{border-top-left-radius:var(", _CodeField.tokens.segmentedSideBorderRadius, ");border-bottom-left-radius:var(", _CodeField.tokens.segmentedSideBorderRadius, ");}&:last-child{border-top-right-radius:var(", _CodeField.tokens.segmentedSideBorderRadius, ");border-bottom-right-radius:var(", _CodeField.tokens.segmentedSideBorderRadius, ");}}};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQ29kZUZpZWxkL3ZhcmlhdGlvbnMvX3NoYXBlL2Jhc2UudHMiXSwibmFtZXMiOltdLCJtYXB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mRlci1ib3R0b20tcmlnaHQtcmFkaXVzOiB2YXIoJHt0b2tlbnMuc2VnbWVudGVkU2lkZUJvcmRlclJhZGl1c30pO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuYDtcbiJdfQ== */"));
|
@@ -0,0 +1 @@
|
|
1
|
+
["--plasma-codefield-code-item-border-radius", "--plasma-codefield-code-item-segmented-side-border-radius"]
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.base = void 0;
|
7
|
+
var _react = /*#__PURE__*/require("@emotion/react");
|
8
|
+
var _CodeField = /*#__PURE__*/require("../../CodeField.styles");
|
9
|
+
var _CodeField2 = /*#__PURE__*/require("../../CodeField.tokens");
|
10
|
+
var base = exports.base = /*#__PURE__*/(0, _react.css)("gap:var(", _CodeField2.tokens.captionGap, ");", _CodeField.CodeWrapper, ",", _CodeField.CodeGroup, "{gap:var(", _CodeField2.tokens.codeItemsGap, ");}", _CodeField.ItemInput, "{width:var(", _CodeField2.tokens.codeItemWidth, ");height:var(", _CodeField2.tokens.codeItemHeight, ");font-family:var(", _CodeField2.tokens.fontFamily, ");font-size:var(", _CodeField2.tokens.fontSize, ");font-style:var(", _CodeField2.tokens.fontStyle, ");font-weight:var(", _CodeField2.tokens.fontWeight, ");letter-spacing:var(", _CodeField2.tokens.letterSpacing, ");line-height:var(", _CodeField2.tokens.lineHeight, ");}", _CodeField.CaptionWrapper, "{font-family:var(", _CodeField2.tokens.captionFontFamily, ");font-size:var(", _CodeField2.tokens.captionFontSize, ");font-style:var(", _CodeField2.tokens.captionFontStyle, ");font-weight:var(", _CodeField2.tokens.captionFontWeight, ");letter-spacing:var(", _CodeField2.tokens.captionLetterSpacing, ");line-height:var(", _CodeField2.tokens.captionLineHeight, ");};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/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b250LXN0eWxlOiB2YXIoJHt0b2tlbnMuZm9udFN0eWxlfSk7XG4gICAgICAgIGZvbnQtd2VpZ2h0OiB2YXIoJHt0b2tlbnMuZm9udFdlaWdodH0pO1xuICAgICAgICBsZXR0ZXItc3BhY2luZzogdmFyKCR7dG9rZW5zLmxldHRlclNwYWNpbmd9KTtcbiAgICAgICAgbGluZS1oZWlnaHQ6IHZhcigke3Rva2Vucy5saW5lSGVpZ2h0fSk7XG4gICAgfVxuXG4gICAgJHtDYXB0aW9uV3JhcHBlcn0ge1xuICAgICAgICBmb250LWZhbWlseTogdmFyKCR7dG9rZW5zLmNhcHRpb25Gb250RmFtaWx5fSk7XG4gICAgICAgIGZvbnQtc2l6ZTogdmFyKCR7dG9rZW5zLmNhcHRpb25Gb250U2l6ZX0pO1xuICAgICAgICBmb250LXN0eWxlOiB2YXIoJHt0b2tlbnMuY2FwdGlvbkZvbnRTdHlsZX0pO1xuICAgICAgICBmb250LXdlaWdodDogdmFyKCR7dG9rZW5zLmNhcHRpb25Gb250V2VpZ2h0fSk7XG4gICAgICAgIGxldHRlci1zcGFjaW5nOiB2YXIoJHt0b2tlbnMuY2FwdGlvbkxldHRlclNwYWNpbmd9KTtcbiAgICAgICAgbGluZS1oZWlnaHQ6IHZhcigke3Rva2Vucy5jYXB0aW9uTGluZUhlaWdodH0pO1xuICAgIH1cbmA7XG4iXX0= */"));
|
@@ -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,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.base = void 0;
|
7
|
+
var _react = /*#__PURE__*/require("@emotion/react");
|
8
|
+
var _CodeField = /*#__PURE__*/require("../../CodeField.styles");
|
9
|
+
var _CodeField2 = /*#__PURE__*/require("../../CodeField.tokens");
|
10
|
+
var base = exports.base = /*#__PURE__*/(0, _react.css)(_CodeField.CaptionWrapper, "{color:var(", _CodeField2.tokens.captionColor, ");&.", _CodeField2.classes.captionError, "{color:var(", _CodeField2.tokens.captionColorError, ");}}", _CodeField.ItemInput, "{color:var(", _CodeField2.tokens.codeColor, ");caret-color:var(", _CodeField2.tokens.caretColor, ");background-color:var(", _CodeField2.tokens.backgroundColor, ");box-shadow:inset 0 0 0 var(", _CodeField2.tokens.borderWidth, ") var(", _CodeField2.tokens.borderColor, ");}&:hover{.", _CodeField2.classes.hoverEnabled, "{background-color:var(", _CodeField2.tokens.backgroundColorHover, ");box-shadow:inset 0 0 0 var(", _CodeField2.tokens.borderWidth, ") var(", _CodeField2.tokens.borderColorHover, ");}}&:focus-within{", _CodeField.ItemInput, ":focus-within{background-color:var(", _CodeField2.tokens.backgroundColorFocus, ");box-shadow:inset 0 0 0 var(", _CodeField2.tokens.borderWidth, ") var(", _CodeField2.tokens.borderColorFocus, ");}}&& .", _CodeField2.classes.codeErrorAnimation, "{animation:shakingError 0.3s forwards;}&& .", _CodeField2.classes.codeError, "{", _CodeField.ItemInput, "{color:var(", _CodeField2.tokens.codeColorError, ");background-color:var(", _CodeField2.tokens.backgroundErrorColor, ");box-shadow:inset 0 0 0 var(", _CodeField2.tokens.borderWidth, ") var(", _CodeField2.tokens.borderErrorColor, ");}&:focus-within{", _CodeField.ItemInput, "{background-color:var(", _CodeField2.tokens.backgroundErrorColor, ");box-shadow:inset 0 0 0 var(", _CodeField2.tokens.borderWidth, ") var(", _CodeField2.tokens.borderErrorColor, ");}}&.", _CodeField2.classes.codeErrorFade, "{", _CodeField.ItemInput, "{animation:fadeError 0.3s forwards;}}}&& .", _CodeField2.classes.itemErrorAnimation, "{animation:shakingError 0.3s forwards;}&& .", _CodeField2.classes.itemError, ",&& .", _CodeField2.classes.itemError, ":focus-within{color:var(", _CodeField2.tokens.codeColorError, ");background-color:var(", _CodeField2.tokens.backgroundErrorColor, ");box-shadow:inset 0 0 0 var(", _CodeField2.tokens.borderWidth, ") var(", _CodeField2.tokens.borderErrorColor, ");&.", _CodeField2.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(", _CodeField2.tokens.codeColorError, ");}100%{color:transparent;}};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQ29kZUZpZWxkL3ZhcmlhdGlvbnMvX3ZpZXcvYmFzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFLdUIiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9Db2RlRmllbGQvdmFyaWF0aW9ucy9fdmlldy9iYXNlLnRzIiwic291cmNlc0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4gICAgICAgICAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVgoLTAuMTI1cmVtKTtcbiAgICAgICAgfVxuICAgICAgICAyOCUge1xuICAgICAgICAgICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVYKDAuMTI1cmVtKTtcbiAgICAgICAgfVxuICAgICAgICA0MiUge1xuICAgICAgICAgICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVYKC0wLjEyNXJlbSk7XG4gICAgICAgIH1cbiAgICAgICAgNTclIHtcbiAgICAgICAgICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlWCgwLjEyNXJlbSk7XG4gICAgICAgIH1cbiAgICAgICAgNzElIHtcbiAgICAgICAgICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlWCgtMC4xMjVyZW0pO1xuICAgICAgICB9XG4gICAgICAgIDg1JSB7XG4gICAgICAgICAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVgoMC4xMjVyZW0pO1xuICAgICAgICB9XG4gICAgICAgIDEwMCUge1xuICAgICAgICAgICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVYKC0wLjEyNXJlbSk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBAa2V5ZnJhbWVzIGZhZGVFcnJvciB7XG4gICAgICAgIDUwJSB7XG4gICAgICAgICAgICBjb2xvcjogdmFyKCR7dG9rZW5zLmNvZGVDb2xvckVycm9yfSk7XG4gICAgICAgIH1cbiAgICAgICAgMTAwJSB7XG4gICAgICAgICAgICBjb2xvcjogdHJhbnNwYXJlbnQ7XG4gICAgICAgIH1cbiAgICB9XG5gO1xuIl19 */"));
|
File without changes
|
@@ -17,7 +17,7 @@ var _base4 = /*#__PURE__*/require("./variations/_closeIconType/base");
|
|
17
17
|
var _Notification2 = /*#__PURE__*/require("./Notification.types");
|
18
18
|
var _Notification3 = /*#__PURE__*/require("./Notification.styles");
|
19
19
|
var _utils2 = /*#__PURE__*/require("./utils");
|
20
|
-
var _excluded = ["role", "title", "children", "actions", "view", "size", "iconPlacement", "showCloseIcon", "layout", "icon", "closeIconType", "textColor", "titleColor", "backgroundColor", "onCloseButtonClick"];
|
20
|
+
var _excluded = ["role", "title", "children", "actions", "view", "size", "iconPlacement", "showCloseIcon", "layout", "icon", "closeIconType", "textColor", "titleColor", "backgroundColor", "width", "maxWidth", "onCloseButtonClick"];
|
21
21
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
22
22
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
23
23
|
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); }
|
@@ -45,6 +45,8 @@ var notificationRoot = exports.notificationRoot = function notificationRoot(Root
|
|
45
45
|
textColor = props.textColor,
|
46
46
|
titleColor = props.titleColor,
|
47
47
|
backgroundColor = props.backgroundColor,
|
48
|
+
width = props.width,
|
49
|
+
maxWidth = props.maxWidth,
|
48
50
|
onCloseButtonClick = props.onCloseButtonClick,
|
49
51
|
rest = _objectWithoutProperties(props, _excluded);
|
50
52
|
var ariaLive = 'polite';
|
@@ -72,6 +74,8 @@ var notificationRoot = exports.notificationRoot = function notificationRoot(Root
|
|
72
74
|
"aria-atomic": ariaAtomic
|
73
75
|
}, rest), /*#__PURE__*/_react["default"].createElement(_Notification3.Wrapper, {
|
74
76
|
backgroundColor: backgroundColor,
|
77
|
+
width: width,
|
78
|
+
maxWidth: maxWidth,
|
75
79
|
className: (0, _utils.cx)(_Notification.classes.wrapper, (0, _utils2.getLayoutClass)(layout), oneLineClass, withoutCloseIconClass)
|
76
80
|
}, /*#__PURE__*/_react["default"].createElement(_Notification3.ContentBox, {
|
77
81
|
iconPlacement: IconPlacementInternal,
|