@salutejs/plasma-new-hope 0.325.0-canary.1954.15277675821.0 → 0.325.0-canary.1954.15296930381.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/_variant → 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/CodeField/variations/_shape/base.js +9 -0
- 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/CodeField/variations/_size/base.js +9 -0
- 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/CodeField/variations/_view/base.js +9 -0
- 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/List/List.css +7 -1
- package/cjs/components/List/List.js +6 -10
- package/cjs/components/List/List.js.map +1 -1
- package/cjs/components/List/List.styles.js +1 -1
- package/cjs/components/List/List.styles.js.map +1 -1
- package/cjs/components/List/List.styles_97b8jq.css +1 -0
- package/cjs/components/List/List.tokens.js +5 -2
- package/cjs/components/List/List.tokens.js.map +1 -1
- package/cjs/components/List/ui/ListItem.css +2 -2
- package/cjs/components/List/ui/ListItem.js +2 -1
- package/cjs/components/List/ui/ListItem.js.map +1 -1
- package/cjs/components/List/ui/ListItem.styles.js +1 -1
- package/cjs/components/List/ui/ListItem.styles.js.map +1 -1
- package/cjs/components/List/ui/ListItem.styles_106alid.css +2 -0
- package/cjs/components/List/variations/_disabled/base.js +1 -1
- package/cjs/components/List/variations/_disabled/base.js.map +1 -1
- package/cjs/components/List/variations/_disabled/base_1p96e1z.css +1 -0
- package/cjs/components/List/variations/_size/base.js +1 -1
- package/cjs/components/List/variations/_size/base.js.map +1 -1
- package/cjs/components/List/variations/_size/base_jq4nc8.css +1 -0
- package/cjs/components/List/variations/_view/base.js +1 -1
- package/cjs/components/List/variations/_view/base.js.map +1 -1
- package/cjs/components/List/variations/_view/base_1fsqflm.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/NumberFormat/NumberFormat.js +2 -7
- package/cjs/components/NumberFormat/NumberFormat.js.map +1 -1
- 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 +36 -15
- package/cjs/index.js +10 -0
- 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/CodeField.types.js +5 -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/List/List.js +10 -14
- package/emotion/cjs/components/List/List.styles.js +10 -2
- package/emotion/cjs/components/List/List.tokens.js +5 -2
- package/emotion/cjs/components/List/ui/ListItem.js +2 -1
- package/emotion/cjs/components/List/ui/ListItem.styles.js +2 -2
- package/emotion/cjs/components/List/variations/_disabled/base.js +3 -1
- package/emotion/cjs/components/List/variations/_size/base.js +2 -1
- package/emotion/cjs/components/List/variations/_view/base.js +3 -1
- 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/NumberFormat/NumberFormat.js +2 -7
- package/emotion/cjs/components/NumberInput/ui/Input/Input.js +0 -3
- package/emotion/cjs/components/TextField/TextField.template-doc.mdx +16 -1
- 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/List/List.config.js +8 -13
- package/emotion/cjs/examples/plasma_b2c/components/List/List.stories.tsx +1 -0
- package/emotion/cjs/examples/plasma_b2c/components/Notification/Notification.stories.tsx +5 -1
- package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.config.js +23 -22
- package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +9 -4
- 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/List/List.config.js +8 -13
- package/emotion/cjs/examples/plasma_web/components/List/List.stories.tsx +1 -0
- package/emotion/cjs/examples/plasma_web/components/Notification/Notification.stories.tsx +5 -1
- package/emotion/cjs/examples/plasma_web/components/TextField/TextField.config.js +23 -22
- package/emotion/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +10 -5
- package/emotion/cjs/index.js +11 -0
- 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/CodeField.types.js +1 -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/List/List.js +3 -8
- package/emotion/es/components/List/List.styles.js +10 -2
- package/emotion/es/components/List/List.tokens.js +5 -2
- package/emotion/es/components/List/ui/ListItem.js +2 -1
- package/emotion/es/components/List/ui/ListItem.styles.js +3 -3
- package/emotion/es/components/List/variations/_disabled/base.js +3 -1
- package/emotion/es/components/List/variations/_size/base.js +2 -1
- package/emotion/es/components/List/variations/_view/base.js +3 -1
- 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/NumberFormat/NumberFormat.js +2 -7
- package/emotion/es/components/NumberInput/ui/Input/Input.js +0 -3
- package/emotion/es/components/TextField/TextField.template-doc.mdx +16 -1
- 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/List/List.config.js +8 -13
- package/emotion/es/examples/plasma_b2c/components/List/List.stories.tsx +1 -0
- package/emotion/es/examples/plasma_b2c/components/Notification/Notification.stories.tsx +5 -1
- package/emotion/es/examples/plasma_b2c/components/TextField/TextField.config.js +23 -22
- package/emotion/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +9 -4
- 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/List/List.config.js +8 -13
- package/emotion/es/examples/plasma_web/components/List/List.stories.tsx +1 -0
- package/emotion/es/examples/plasma_web/components/Notification/Notification.stories.tsx +5 -1
- package/emotion/es/examples/plasma_web/components/TextField/TextField.config.js +23 -22
- package/emotion/es/examples/plasma_web/components/TextField/TextField.stories.tsx +10 -5
- package/emotion/es/index.js +1 -0
- 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/_variant → 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/CodeField/variations/_size/base.js +5 -0
- 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/CodeField/variations/_view/base.js +5 -0
- 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/List/List.css +7 -1
- package/es/components/List/List.js +5 -10
- package/es/components/List/List.js.map +1 -1
- package/es/components/List/List.styles.js +1 -1
- package/es/components/List/List.styles.js.map +1 -1
- package/es/components/List/List.styles_97b8jq.css +1 -0
- package/es/components/List/List.tokens.js +5 -2
- package/es/components/List/List.tokens.js.map +1 -1
- package/es/components/List/ui/ListItem.css +2 -2
- package/es/components/List/ui/ListItem.js +2 -1
- package/es/components/List/ui/ListItem.js.map +1 -1
- package/es/components/List/ui/ListItem.styles.js +1 -1
- package/es/components/List/ui/ListItem.styles.js.map +1 -1
- package/es/components/List/ui/ListItem.styles_106alid.css +2 -0
- package/es/components/List/variations/_disabled/base.js +1 -1
- package/es/components/List/variations/_disabled/base.js.map +1 -1
- package/es/components/List/variations/_disabled/base_1p96e1z.css +1 -0
- package/es/components/List/variations/_size/base.js +1 -1
- package/es/components/List/variations/_size/base.js.map +1 -1
- package/es/components/List/variations/_size/base_jq4nc8.css +1 -0
- package/es/components/List/variations/_view/base.js +1 -1
- package/es/components/List/variations/_view/base.js.map +1 -1
- package/es/components/List/variations/_view/base_1fsqflm.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/NumberFormat/NumberFormat.js +2 -7
- package/es/components/NumberFormat/NumberFormat.js.map +1 -1
- 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 +36 -15
- package/es/index.js +3 -0
- package/es/index.js.map +1 -1
- 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/CodeField.types.js +5 -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/_variant → 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/List/List.js +10 -14
- package/styled-components/cjs/components/List/List.styles.js +1 -2
- package/styled-components/cjs/components/List/List.tokens.js +5 -2
- package/styled-components/cjs/components/List/ui/ListItem.js +2 -1
- package/styled-components/cjs/components/List/ui/ListItem.styles.js +1 -1
- package/styled-components/cjs/components/List/variations/_disabled/base.js +3 -1
- package/styled-components/cjs/components/List/variations/_size/base.js +2 -1
- package/styled-components/cjs/components/List/variations/_view/base.js +3 -1
- 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/NumberFormat/NumberFormat.js +2 -7
- package/styled-components/cjs/components/NumberInput/ui/Input/Input.js +0 -3
- package/styled-components/cjs/components/TextField/TextField.template-doc.mdx +16 -1
- 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/List/List.config.js +8 -13
- package/styled-components/cjs/examples/plasma_b2c/components/List/List.stories.tsx +1 -0
- package/styled-components/cjs/examples/plasma_b2c/components/Notification/Notification.stories.tsx +5 -1
- package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.config.js +2 -1
- package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +9 -4
- 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/List/List.config.js +8 -13
- package/styled-components/cjs/examples/plasma_web/components/List/List.stories.tsx +1 -0
- package/styled-components/cjs/examples/plasma_web/components/Notification/Notification.stories.tsx +5 -1
- package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.config.js +7 -6
- package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +10 -5
- package/styled-components/cjs/index.js +11 -0
- 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/CodeField.types.js +1 -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/List/List.js +3 -8
- package/styled-components/es/components/List/List.styles.js +1 -2
- package/styled-components/es/components/List/List.tokens.js +5 -2
- package/styled-components/es/components/List/ui/ListItem.js +2 -1
- package/styled-components/es/components/List/ui/ListItem.styles.js +2 -2
- package/styled-components/es/components/List/variations/_disabled/base.js +3 -1
- package/styled-components/es/components/List/variations/_size/base.js +2 -1
- package/styled-components/es/components/List/variations/_view/base.js +3 -1
- 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/NumberFormat/NumberFormat.js +2 -7
- package/styled-components/es/components/NumberInput/ui/Input/Input.js +0 -3
- package/styled-components/es/components/TextField/TextField.template-doc.mdx +16 -1
- 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/List/List.config.js +8 -13
- package/styled-components/es/examples/plasma_b2c/components/List/List.stories.tsx +1 -0
- package/styled-components/es/examples/plasma_b2c/components/Notification/Notification.stories.tsx +5 -1
- package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.config.js +2 -1
- package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +9 -4
- 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/List/List.config.js +8 -13
- package/styled-components/es/examples/plasma_web/components/List/List.stories.tsx +1 -0
- package/styled-components/es/examples/plasma_web/components/Notification/Notification.stories.tsx +5 -1
- package/styled-components/es/examples/plasma_web/components/TextField/TextField.config.js +7 -6
- package/styled-components/es/examples/plasma_web/components/TextField/TextField.stories.tsx +10 -5
- package/styled-components/es/index.js +1 -0
- 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 +2 -0
- package/types/components/CodeField/variations/_shape/base.d.ts.map +1 -0
- package/types/components/CodeField/variations/_size/base.d.ts +2 -0
- package/types/components/CodeField/variations/_size/base.d.ts.map +1 -0
- package/types/components/CodeField/variations/_view/base.d.ts +2 -0
- package/types/components/CodeField/variations/_view/base.d.ts.map +1 -0
- package/types/components/List/List.d.ts +8 -15
- package/types/components/List/List.d.ts.map +1 -1
- package/types/components/List/List.styles.d.ts.map +1 -1
- package/types/components/List/List.tokens.d.ts +4 -1
- package/types/components/List/List.tokens.d.ts.map +1 -1
- package/types/components/List/List.types.d.ts +4 -6
- package/types/components/List/List.types.d.ts.map +1 -1
- package/types/components/List/ui/ListItem.d.ts.map +1 -1
- package/types/components/List/ui/ListItem.styles.d.ts +1 -3
- package/types/components/List/ui/ListItem.styles.d.ts.map +1 -1
- package/types/components/List/ui/ListItem.types.d.ts +2 -3
- package/types/components/List/ui/ListItem.types.d.ts.map +1 -1
- package/types/components/List/variations/_disabled/base.d.ts.map +1 -1
- package/types/components/List/variations/_size/base.d.ts.map +1 -1
- package/types/components/List/variations/_view/base.d.ts.map +1 -1
- 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/NumberFormat/NumberFormat.d.ts.map +1 -1
- package/types/components/NumberInput/ui/Input/Input.d.ts.map +1 -1
- package/types/index.d.ts +1 -0
- package/types/index.d.ts.map +1 -1
- package/cjs/components/List/List.styles_9yg2yl.css +0 -1
- package/cjs/components/List/ui/ListItem.styles_1eo5k14.css +0 -2
- package/cjs/components/List/variations/_disabled/base_x642ct.css +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_x642ct.css +0 -1
- package/cjs/components/Notification/variations/_layout/base_qkc3i4.css +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/es/components/List/variations/_variant/base.js +0 -2
- package/emotion/es/components/List/variations/_variant/tokens.json +0 -1
- package/es/components/List/List.styles_9yg2yl.css +0 -1
- package/es/components/List/ui/ListItem.styles_1eo5k14.css +0 -2
- package/es/components/List/variations/_disabled/base_x642ct.css +0 -1
- package/es/components/List/variations/_size/base_x642ct.css +0 -1
- 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_x642ct.css +0 -1
- package/es/components/Notification/variations/_layout/base_qkc3i4.css +0 -1
- package/styled-components/cjs/components/List/variations/_variant/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/types/components/List/variations/_variant/base.d.ts.map +0 -1
- /package/types/components/{List/variations/_variant → CodeField/variations/_disabled}/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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQ29kZUZpZWxkL3ZhcmlhdGlvbnMvX3NoYXBlL2Jhc2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBS3VCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQ29kZUZpZWxkL3ZhcmlhdGlvbnMvX3NoYXBlL2Jhc2UudHMiL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*/"));
|
@@ -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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQ29kZUZpZWxkL3ZhcmlhdGlvbnMvX3NpemUvYmFzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFLdUIiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9Db2RlRmllbGQvdmFyaWF0aW9ucy9fc2l6ZS9iYXNlLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbX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G9rZW5zLmNhcHRpb25Gb250U2l6ZX0pO1xuICAgICAgICBmb250LXN0eWxlOiB2YXIoJHt0b2tlbnMuY2FwdGlvbkZvbnRTdHlsZX0pO1xuICAgICAgICBmb250LXdlaWdodDogdmFyKCR7dG9rZW5zLmNhcHRpb25Gb250V2VpZ2h0fSk7XG4gICAgICAgIGxldHRlci1zcGFjaW5nOiB2YXIoJHt0b2tlbnMuY2FwdGlvbkxldHRlclNwYWNpbmd9KTtcbiAgICAgICAgbGluZS1oZWlnaHQ6IHZhcigke3Rva2Vucy5jYXB0aW9uTGluZUhlaWdodH0pO1xuICAgIH1cbmA7XG4iXX0= */"));
|
@@ -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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4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cjogdHJhbnNwYXJlbnQ7XG4gICAgICAgIH1cbiAgICB9XG5gO1xuIl19 */"));
|
File without changes
|
@@ -1,8 +1,7 @@
|
|
1
1
|
import React, { forwardRef } from 'react';
|
2
|
-
import
|
2
|
+
import cls from 'classnames';
|
3
3
|
import { base } from "./List.styles";
|
4
4
|
import { classes } from "./List.tokens";
|
5
|
-
import { base as variantCSS } from "./variations/_variant/base";
|
6
5
|
import { base as viewCSS } from "./variations/_view/base";
|
7
6
|
import { base as sizeCSS } from "./variations/_size/base";
|
8
7
|
import { base as disabledCSS } from "./variations/_disabled/base";
|
@@ -10,17 +9,16 @@ export var listRoot = function listRoot(Root) {
|
|
10
9
|
return /*#__PURE__*/forwardRef(function (_ref, outerRootRef) {
|
11
10
|
var size = _ref.size,
|
12
11
|
view = _ref.view,
|
13
|
-
variant = _ref.variant,
|
14
12
|
disabled = _ref.disabled,
|
13
|
+
variant = _ref.variant,
|
15
14
|
className = _ref.className,
|
16
15
|
children = _ref.children;
|
17
16
|
return /*#__PURE__*/React.createElement(Root, {
|
18
17
|
ref: outerRootRef,
|
19
18
|
size: size,
|
20
19
|
view: view,
|
21
|
-
variant: variant,
|
22
20
|
disabled: disabled,
|
23
|
-
className:
|
21
|
+
className: cls(classes.listRoot, className, variant === 'tight' ? classes.tightListItem : '', disabled ? classes.disabledList : '')
|
24
22
|
}, children);
|
25
23
|
});
|
26
24
|
};
|
@@ -36,9 +34,6 @@ export var listConfig = {
|
|
36
34
|
size: {
|
37
35
|
css: sizeCSS
|
38
36
|
},
|
39
|
-
variant: {
|
40
|
-
css: variantCSS
|
41
|
-
},
|
42
37
|
disabled: {
|
43
38
|
css: disabledCSS
|
44
39
|
}
|
@@ -1,3 +1,11 @@
|
|
1
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
1
2
|
import { css } from '@emotion/react';
|
2
|
-
|
3
|
-
|
3
|
+
export var base = process.env.NODE_ENV === "production" ? {
|
4
|
+
name: "19gahao-plasma-new-hope__base",
|
5
|
+
styles: "display:flex;flex-direction:column;align-items:stretch;height:auto;width:100%;list-style-type:none;padding:0;margin:0;label:plasma-new-hope__base;"
|
6
|
+
} : {
|
7
|
+
name: "19gahao-plasma-new-hope__base",
|
8
|
+
styles: "display:flex;flex-direction:column;align-items:stretch;height:auto;width:100%;list-style-type:none;padding:0;margin:0;label:plasma-new-hope__base;",
|
9
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTGlzdC9MaXN0LnN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFdUIiLCJmaWxlIjoiLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9MaXN0L0xpc3Quc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG4gICAgYWxpZ24taXRlbXM6IHN0cmV0Y2g7XG4gICAgaGVpZ2h0OiBhdXRvO1xuICAgIHdpZHRoOiAxMDAlO1xuICAgIGxpc3Qtc3R5bGUtdHlwZTogbm9uZTtcbiAgICBwYWRkaW5nOiAwO1xuICAgIG1hcmdpbjogMDtcbmA7XG4iXX0= */",
|
10
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
11
|
+
};
|
@@ -2,7 +2,10 @@ export var classes = {
|
|
2
2
|
listRoot: 'list-root',
|
3
3
|
listItem: 'list-item',
|
4
4
|
filledStretching: 'list-stretching-filled',
|
5
|
-
fixedStretching: 'list-stretching-fixed'
|
5
|
+
fixedStretching: 'list-stretching-fixed',
|
6
|
+
tightListItem: 'list-item-tight',
|
7
|
+
disabledList: 'list-item-disabled',
|
8
|
+
disabledListItem: 'list-item-disabled-item'
|
6
9
|
};
|
7
10
|
export var tokens = {
|
8
11
|
listGap: '--plasma-list-gap',
|
@@ -20,7 +23,7 @@ export var tokens = {
|
|
20
23
|
listItemIconLeftColor: '--plasma-list-item-color-icon-left',
|
21
24
|
listItemIconRightColor: '--plasma-list-item-color-icon-right',
|
22
25
|
listItemGap: '--plasma-list-item-gap',
|
23
|
-
|
26
|
+
listItemTightDifference: '--plasma-list-item-tight-difference',
|
24
27
|
listItemColor: '--plasma-list-item-color',
|
25
28
|
listItemColorHover: '--plasma-list-item-color-hover',
|
26
29
|
listItemFontFamily: '--plasma-list-item-font-family',
|
@@ -3,6 +3,7 @@ function _extends() { return _extends = Object.assign ? Object.assign.bind() : f
|
|
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; }
|
5
5
|
import React from 'react';
|
6
|
+
import { classes } from "../List.tokens";
|
6
7
|
import { StyledListItem, CellItem } from "./ListItem.styles";
|
7
8
|
export var ListItem = function ListItem(_ref) {
|
8
9
|
var children = _ref.children,
|
@@ -10,7 +11,7 @@ export var ListItem = function ListItem(_ref) {
|
|
10
11
|
disabled = _ref.disabled,
|
11
12
|
rest = _objectWithoutProperties(_ref, _excluded);
|
12
13
|
return /*#__PURE__*/React.createElement(StyledListItem, _extends({
|
13
|
-
disabled:
|
14
|
+
className: disabled ? classes.disabledListItem : ''
|
14
15
|
}, rest), /*#__PURE__*/React.createElement(CellItem, {
|
15
16
|
contentRight: contentRight
|
16
17
|
}, children));
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import _styled from "@emotion/styled/base";
|
2
|
-
import { tokens } from "../List.tokens";
|
2
|
+
import { tokens, classes } from "../List.tokens";
|
3
3
|
import { cellConfig, cellTokens } from "../../Cell";
|
4
4
|
import { component, mergeConfig } from "../../../engines";
|
5
5
|
var mergedCellConfig = /*#__PURE__*/mergeConfig(cellConfig);
|
@@ -7,8 +7,8 @@ var Cell = /*#__PURE__*/component(mergedCellConfig);
|
|
7
7
|
export var CellItem = /*#__PURE__*/_styled(Cell, {
|
8
8
|
target: "e1juutei1",
|
9
9
|
label: "plasma-new-hope__CellItem"
|
10
|
-
})(cellTokens.cellWidth, ":100%;", cellTokens.cellPadding, ":0rem;", cellTokens.cellPaddingLeftContent, ":0rem;", cellTokens.cellPaddingContent, ":0rem;", cellTokens.cellPaddingRightContent, ":0rem;", cellTokens.cellTextboxGap, ":0rem;", cellTokens.cellGap, ":var(", tokens.listItemGap, ");", cellTokens.cellColor, ":var(", tokens.listItemColor, ");", cellTokens.cellBackgroundColor, ":transparent;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
10
|
+
})(cellTokens.cellWidth, ":100%;", cellTokens.cellPadding, ":0rem;", cellTokens.cellPaddingLeftContent, ":0rem;", cellTokens.cellPaddingContent, ":0rem;", cellTokens.cellPaddingRightContent, ":0rem;", cellTokens.cellTextboxGap, ":0rem;", cellTokens.cellGap, ":var(", tokens.listItemGap, ");", cellTokens.cellColor, ":var(", tokens.listItemColor, ");", cellTokens.cellBackgroundColor, ":transparent;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4u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xuICAgIGZvbnQtZmFtaWx5OiB2YXIoJHt0b2tlbnMubGlzdEl0ZW1Gb250RmFtaWx5fSk7XG4gICAgZm9udC1zdHlsZTogdmFyKCR7dG9rZW5zLmxpc3RJdGVtRm9udFN0eWxlfSk7XG4gICAgbGluZS1oZWlnaHQ6IHZhcigke3Rva2Vucy5saXN0SXRlbUxpbmVIZWlnaHR9KTtcbiAgICBsZXR0ZXItc3BhY2luZzogdmFyKCR7dG9rZW5zLmxpc3RJdGVtTGV0dGVyU3BhY2luZ30pO1xuXG4gICAgJjpob3ZlciB7XG4gICAgICAgIGJhY2tncm91bmQ6IHZhcigke3Rva2Vucy5saXN0SXRlbUJhY2tncm91bmRIb3Zlcn0pO1xuICAgICAgICBib3JkZXItY29sb3I6IHZhcigke3Rva2Vucy5saXN0SXRlbUJvcmRlckNvbG9ySG92ZXJ9KTtcbiAgICAgICAgY29sb3I6IHZhcigke3Rva2Vucy5saXN0SXRlbUNvbG9ySG92ZXJ9KTtcbiAgICB9XG5cbiAgICAmLiR7Y2xhc3Nlcy5kaXNhYmxlZExpc3RJdGVtfSB7XG4gICAgICAgIGN1cnNvcjogbm90LWFsbG93ZWQ7XG4gICAgICAgIG9wYWNpdHk6IHZhcigke3Rva2Vucy5saXN0RGlzYWJsZWRPcGFjaXR5fSk7XG4gICAgfVxuYDtcbiJdfQ== */"));
|
11
11
|
export var StyledListItem = /*#__PURE__*/_styled("li", {
|
12
12
|
target: "e1juutei0",
|
13
13
|
label: "plasma-new-hope__StyledListItem"
|
14
|
-
})("padding:
|
14
|
+
})("padding:var(", tokens.listItemPaddingTop, ") var(", tokens.listItemPaddingRight, ") var(", tokens.listItemPaddingBottom, ") var(", tokens.listItemPaddingLeft, ");border-radius:var(", tokens.listItemBorderRadius, ");background:var(", tokens.listItemBackground, ");border:var(", tokens.listItemBorderWidth, ") solid var(", tokens.listItemBorderColor, ");box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;color:var(", tokens.listItemColor, ");font-size:var(", tokens.listItemFontSize, ");font-weight:var(", tokens.listItemFontWeight, ");font-family:var(", tokens.listItemFontFamily, ");font-style:var(", tokens.listItemFontStyle, ");line-height:var(", tokens.listItemLineHeight, ");letter-spacing:var(", tokens.listItemLetterSpacing, ");&:hover{background:var(", tokens.listItemBackgroundHover, ");border-color:var(", tokens.listItemBorderColorHover, ");color:var(", tokens.listItemColorHover, ");}&.", classes.disabledListItem, "{cursor:not-allowed;opacity:var(", tokens.listDisabledOpacity, ");}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTGlzdC91aS9MaXN0SXRlbS5zdHlsZXMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXVCdUMiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9MaXN0L3VpL0xpc3RJdGVtLnN0eWxlcy50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5cbmltcG9ydCB7IHRva2VucywgY2xhc3NlcyB9IGZyb20gJy4uL0xpc3QudG9rZW5zJztcbmltcG9ydCB7IGNlbGxDb25maWcsIGNlbGxUb2tlbnMgfSBmcm9tICcuLi8uLi9DZWxsJztcbmltcG9ydCB7IGNvbXBvbmVudCwgbWVyZ2VDb25maWcgfSBmcm9tICcuLi8uLi8uLi9lbmdpbmVzJztcblxuY29uc3QgbWVyZ2VkQ2VsbENvbmZpZyA9IG1lcmdlQ29uZmlnKGNlbGxDb25maWcpO1xuY29uc3QgQ2VsbCA9IGNvbXBvbmVudChtZXJnZWRDZWxsQ29uZmlnKTtcblxuZXhwb3J0IGNvbnN0IENlbGxJdGVtID0gc3R5bGVkKENlbGwpYFxuICAgICR7Y2Vs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GVkT3BhY2l0eX0pO1xuICAgIH1cbmA7XG4iXX0= */"));
|
@@ -1,2 +1,4 @@
|
|
1
1
|
import { css } from '@emotion/react';
|
2
|
-
|
2
|
+
import { classes, tokens } from "../../List.tokens";
|
3
|
+
import { StyledListItem } from "../../ui/ListItem.styles";
|
4
|
+
export var base = /*#__PURE__*/css("&.", classes.disabledList, "{", StyledListItem, "{cursor:not-allowed;opacity:var(", tokens.listDisabledOpacity, ");}};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTGlzdC92YXJpYXRpb25zL19kaXNhYmxlZC9iYXNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUt1QiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL0xpc3QvdmFyaWF0aW9ucy9fZGlzYWJsZWQvYmFzZS50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHsgY2xhc3NlcywgdG9rZW5zIH0gZnJvbSAnLi4vLi4vTGlzdC50b2tlbnMnO1xuaW1wb3J0IHsgU3R5bGVkTGlzdEl0ZW0gfSBmcm9tICcuLi8uLi91aS9MaXN0SXRlbS5zdHlsZXMnO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICAmLiR7Y2xhc3Nlcy5kaXNhYmxlZExpc3R9IHtcbiAgICAgICAgJHtTdHlsZWRMaXN0SXRlbX0ge1xuICAgICAgICAgICAgY3Vyc29yOiBub3QtYWxsb3dlZDtcbiAgICAgICAgICAgIG9wYWNpdHk6IHZhcigke3Rva2Vucy5saXN0RGlzYWJsZWRPcGFjaXR5fSk7XG4gICAgICAgIH1cbiAgICB9XG5gO1xuIl19 */"));
|
@@ -1,2 +1,3 @@
|
|
1
1
|
import { css } from '@emotion/react';
|
2
|
-
|
2
|
+
import { tokens } from "../../List.tokens";
|
3
|
+
export var base = /*#__PURE__*/css("gap:var(", tokens.listGap, ");;label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTGlzdC92YXJpYXRpb25zL19zaXplL2Jhc2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBSXVCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTGlzdC92YXJpYXRpb25zL19zaXplL2Jhc2UudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IHRva2VucyB9IGZyb20gJy4uLy4uL0xpc3QudG9rZW5zJztcblxuZXhwb3J0IGNvbnN0IGJhc2UgPSBjc3NgXG4gICAgZ2FwOiB2YXIoJHt0b2tlbnMubGlzdEdhcH0pO1xuYDtcbiJdfQ== */"));
|
@@ -1,2 +1,4 @@
|
|
1
1
|
import { css } from '@emotion/react';
|
2
|
-
|
2
|
+
import { classes, tokens } from "../../List.tokens";
|
3
|
+
import { StyledListItem } from "../../ui/ListItem.styles";
|
4
|
+
export var base = /*#__PURE__*/css("&.", classes.tightListItem, "{", StyledListItem, "{padding:calc(var(", tokens.listItemPaddingTop, ") - var(", tokens.listItemTightDifference, ")) var(", tokens.listItemPaddingRight, ") calc(var(", tokens.listItemPaddingBottom, ") - var(", tokens.listItemTightDifference, ")) var(", tokens.listItemPaddingLeft, ");}};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTGlzdC92YXJpYXRpb25zL192aWV3L2Jhc2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBS3VCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTGlzdC92YXJpYXRpb25zL192aWV3L2Jhc2UudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IGNsYXNzZXMsIHRva2VucyB9IGZyb20gJy4uLy4uL0xpc3QudG9rZW5zJztcbmltcG9ydCB7IFN0eWxlZExpc3RJdGVtIH0gZnJvbSAnLi4vLi4vdWkvTGlzdEl0ZW0uc3R5bGVzJztcblxuZXhwb3J0IGNvbnN0IGJhc2UgPSBjc3NgXG4gICAgJi4ke2NsYXNzZXMudGlnaHRMaXN0SXRlbX0ge1xuICAgICAgICAke1N0eWxlZExpc3RJdGVtfSB7XG4gICAgICAgICAgICBwYWRkaW5nOiBjYWxjKHZhcigke3Rva2Vucy5saXN0SXRlbVBhZGRpbmdUb3B9KSAtIHZhcigke3Rva2Vucy5saXN0SXRlbVRpZ2h0RGlmZmVyZW5jZX0pKVxuICAgICAgICAgICAgICAgIHZhcigke3Rva2Vucy5saXN0SXRlbVBhZGRpbmdSaWdodH0pXG4gICAgICAgICAgICAgICAgY2FsYyh2YXIoJHt0b2tlbnMubGlzdEl0ZW1QYWRkaW5nQm90dG9tfSkgLSB2YXIoJHt0b2tlbnMubGlzdEl0ZW1UaWdodERpZmZlcmVuY2V9KSlcbiAgICAgICAgICAgICAgICB2YXIoJHt0b2tlbnMubGlzdEl0ZW1QYWRkaW5nTGVmdH0pO1xuICAgICAgICB9XG4gICAgfVxuYDtcbiJdfQ== */"));
|
@@ -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,
|