@transferwise/components 46.84.1 → 46.86.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/build/avatarLayout/AvatarLayout.js +1 -0
- package/build/avatarLayout/AvatarLayout.js.map +1 -1
- package/build/avatarLayout/AvatarLayout.mjs +1 -0
- package/build/avatarLayout/AvatarLayout.mjs.map +1 -1
- package/build/circularButton/CircularButton.js +18 -21
- package/build/circularButton/CircularButton.js.map +1 -1
- package/build/circularButton/CircularButton.mjs +19 -22
- package/build/circularButton/CircularButton.mjs.map +1 -1
- package/build/definitionList/DefinitionList.js.map +1 -1
- package/build/definitionList/DefinitionList.mjs.map +1 -1
- package/build/dimmer/Dimmer.js.map +1 -1
- package/build/dimmer/Dimmer.mjs.map +1 -1
- package/build/i18n/de.json +1 -0
- package/build/i18n/de.json.js +1 -0
- package/build/i18n/de.json.js.map +1 -1
- package/build/i18n/de.json.mjs +1 -0
- package/build/i18n/de.json.mjs.map +1 -1
- package/build/i18n/en.json +1 -0
- package/build/i18n/en.json.js +1 -0
- package/build/i18n/en.json.js.map +1 -1
- package/build/i18n/en.json.mjs +1 -0
- package/build/i18n/en.json.mjs.map +1 -1
- package/build/i18n/es.json +1 -0
- package/build/i18n/es.json.js +1 -0
- package/build/i18n/es.json.js.map +1 -1
- package/build/i18n/es.json.mjs +1 -0
- package/build/i18n/es.json.mjs.map +1 -1
- package/build/i18n/fr.json +6 -5
- package/build/i18n/fr.json.js +6 -5
- package/build/i18n/fr.json.js.map +1 -1
- package/build/i18n/fr.json.mjs +6 -5
- package/build/i18n/fr.json.mjs.map +1 -1
- package/build/i18n/hu.json +1 -0
- package/build/i18n/hu.json.js +1 -0
- package/build/i18n/hu.json.js.map +1 -1
- package/build/i18n/hu.json.mjs +1 -0
- package/build/i18n/hu.json.mjs.map +1 -1
- package/build/i18n/id.json +1 -0
- package/build/i18n/id.json.js +1 -0
- package/build/i18n/id.json.js.map +1 -1
- package/build/i18n/id.json.mjs +1 -0
- package/build/i18n/id.json.mjs.map +1 -1
- package/build/i18n/it.json +1 -0
- package/build/i18n/it.json.js +1 -0
- package/build/i18n/it.json.js.map +1 -1
- package/build/i18n/it.json.mjs +1 -0
- package/build/i18n/it.json.mjs.map +1 -1
- package/build/i18n/pl.json +1 -0
- package/build/i18n/pl.json.js +1 -0
- package/build/i18n/pl.json.js.map +1 -1
- package/build/i18n/pl.json.mjs +1 -0
- package/build/i18n/pl.json.mjs.map +1 -1
- package/build/i18n/ro.json +1 -0
- package/build/i18n/ro.json.js +1 -0
- package/build/i18n/ro.json.js.map +1 -1
- package/build/i18n/ro.json.mjs +1 -0
- package/build/i18n/ro.json.mjs.map +1 -1
- package/build/i18n/th.json +6 -0
- package/build/i18n/th.json.js +6 -0
- package/build/i18n/th.json.js.map +1 -1
- package/build/i18n/th.json.mjs +6 -0
- package/build/i18n/th.json.mjs.map +1 -1
- package/build/i18n/tr.json +1 -0
- package/build/i18n/tr.json.js +1 -0
- package/build/i18n/tr.json.js.map +1 -1
- package/build/i18n/tr.json.mjs +1 -0
- package/build/i18n/tr.json.mjs.map +1 -1
- package/build/i18n/zh-CN.json +11 -0
- package/build/i18n/zh-CN.json.js +11 -0
- package/build/i18n/zh-CN.json.js.map +1 -1
- package/build/i18n/zh-CN.json.mjs +11 -0
- package/build/i18n/zh-CN.json.mjs.map +1 -1
- package/build/i18n/zh-HK.json +5 -0
- package/build/i18n/zh-HK.json.js +5 -0
- package/build/i18n/zh-HK.json.js.map +1 -1
- package/build/i18n/zh-HK.json.mjs +5 -0
- package/build/i18n/zh-HK.json.mjs.map +1 -1
- package/build/main.css +17 -158
- package/build/moneyInput/MoneyInput.js.map +1 -1
- package/build/moneyInput/MoneyInput.mjs.map +1 -1
- package/build/stepper/Stepper.js +6 -3
- package/build/stepper/Stepper.js.map +1 -1
- package/build/stepper/Stepper.mjs +6 -3
- package/build/stepper/Stepper.mjs.map +1 -1
- package/build/styles/circularButton/CircularButton.css +17 -158
- package/build/styles/main.css +17 -158
- package/build/types/avatarLayout/AvatarLayout.d.ts.map +1 -1
- package/build/types/circularButton/CircularButton.d.ts +11 -4
- package/build/types/circularButton/CircularButton.d.ts.map +1 -1
- package/build/types/definitionList/DefinitionList.d.ts +1 -2
- package/build/types/definitionList/DefinitionList.d.ts.map +1 -1
- package/build/types/dimmer/Dimmer.d.ts +1 -1
- package/build/types/dimmer/Dimmer.d.ts.map +1 -1
- package/build/types/moneyInput/MoneyInput.d.ts +1 -1
- package/build/types/moneyInput/MoneyInput.d.ts.map +1 -1
- package/build/types/stepper/Stepper.d.ts +2 -1
- package/build/types/stepper/Stepper.d.ts.map +1 -1
- package/build/types/test-utils/index.d.ts +2 -0
- package/build/types/test-utils/index.d.ts.map +1 -1
- package/build/types/uploadInput/uploadButton/UploadButton.messages.d.ts +5 -0
- package/build/types/uploadInput/uploadButton/UploadButton.messages.d.ts.map +1 -1
- package/build/uploadInput/uploadButton/UploadButton.js +3 -1
- package/build/uploadInput/uploadButton/UploadButton.js.map +1 -1
- package/build/uploadInput/uploadButton/UploadButton.messages.js +3 -0
- package/build/uploadInput/uploadButton/UploadButton.messages.js.map +1 -1
- package/build/uploadInput/uploadButton/UploadButton.messages.mjs +3 -0
- package/build/uploadInput/uploadButton/UploadButton.messages.mjs.map +1 -1
- package/build/uploadInput/uploadButton/UploadButton.mjs +3 -1
- package/build/uploadInput/uploadButton/UploadButton.mjs.map +1 -1
- package/package.json +5 -5
- package/src/avatar/Avatar.story.tsx +4 -1
- package/src/avatarLayout/AvatarLayout.story.tsx +2 -0
- package/src/avatarLayout/AvatarLayout.tsx +3 -1
- package/src/avatarWrapper/AvatarWrapper.story.tsx +4 -0
- package/src/badge/Badge.story.tsx +4 -0
- package/src/circularButton/CircularButton.css +17 -158
- package/src/circularButton/CircularButton.less +22 -91
- package/src/circularButton/CircularButton.story.tsx +45 -24
- package/src/circularButton/CircularButton.tsx +38 -25
- package/src/definitionList/DefinitionList.story.tsx +57 -57
- package/src/definitionList/DefinitionList.tsx +1 -1
- package/src/dimmer/{Dimmer.rtl.spec.tsx → Dimmer.spec.tsx} +33 -29
- package/src/dimmer/Dimmer.tsx +4 -4
- package/src/flowNavigation/__snapshots__/FlowNavigation.spec.js.snap +3 -1
- package/src/i18n/de.json +1 -0
- package/src/i18n/en.json +1 -0
- package/src/i18n/es.json +1 -0
- package/src/i18n/fr.json +6 -5
- package/src/i18n/hu.json +1 -0
- package/src/i18n/id.json +1 -0
- package/src/i18n/it.json +1 -0
- package/src/i18n/pl.json +1 -0
- package/src/i18n/ro.json +1 -0
- package/src/i18n/th.json +6 -0
- package/src/i18n/tr.json +1 -0
- package/src/i18n/zh-CN.json +11 -0
- package/src/i18n/zh-HK.json +5 -0
- package/src/iconButton/IconButton.story.tsx +6 -6
- package/src/main.css +17 -158
- package/src/moneyInput/MoneyInput.spec.tsx +468 -0
- package/src/moneyInput/MoneyInput.tsx +2 -1
- package/src/navigationOption/NavigationOption.spec.tsx +113 -0
- package/src/phoneNumberInput/PhoneNumberInput.spec.tsx +283 -0
- package/src/radioOption/RadioOption.spec.tsx +73 -0
- package/src/slidingPanel/SlidingPanel.spec.tsx +69 -0
- package/src/stepper/Stepper.spec.tsx +236 -0
- package/src/stepper/Stepper.tests.story.tsx +89 -0
- package/src/stepper/Stepper.tsx +9 -4
- package/src/stepper/{deviceDetection.spec.js → deviceDetection.spec.ts} +6 -3
- package/src/uploadInput/uploadButton/UploadButton.messages.ts +7 -0
- package/src/uploadInput/uploadButton/UploadButton.tsx +1 -1
- package/src/circularButton/_button-label-states.less +0 -34
- package/src/definitionList/DefinitionList.spec.js +0 -91
- package/src/dimmer/Dimmer.spec.js +0 -87
- package/src/moneyInput/MoneyInput.rtl.spec.tsx +0 -149
- package/src/moneyInput/MoneyInput.spec.js +0 -820
- package/src/navigationOption/NavigationOption.spec.js +0 -93
- package/src/phoneNumberInput/PhoneNumberInput.rtl.spec.tsx +0 -32
- package/src/phoneNumberInput/PhoneNumberInput.spec.js +0 -356
- package/src/radioOption/RadioOption.spec.js +0 -67
- package/src/slidingPanel/SlidingPanel.spec.js +0 -56
- package/src/stepper/Stepper.spec.js +0 -233
- /package/src/alert/{Alert.spec.story.tsx → Alert.tests.story.tsx} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stepper.mjs","sources":["../../src/stepper/Stepper.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport * as React from 'react';\n\nimport { Position } from '../common';\nimport { useDirection } from '../common/hooks';\nimport Tooltip from '../tooltip';\n\nimport { isTouchDevice } from './deviceDetection';\n\nfunction clamp(from: number, to: number, value: number) {\n return Math.max(Math.min(to, value), from);\n}\n\nexport interface Step {\n label: React.ReactNode;\n onClick?: () => void;\n hoverLabel?: React.ReactNode;\n}\n\nexport interface StepperProps {\n steps: readonly Step[];\n activeStep?: number;\n className?: string;\n}\n\n/**\n * This component is considered user-unfriendly and inaccessible on its own and will likely be made internal in the future. Please use `FlowNavigation` instead.\n * @see https://storybook.wise.design/?path=/story/navigation-flownavigation--variants\n */\nconst Stepper = ({ steps, activeStep = 0, className }: StepperProps) => {\n const { isRTL } = useDirection();\n\n if (steps.length === 0) {\n return null;\n }\n\n const activeStepIndex = clamp(0, steps.length - 1, activeStep);\n const stepPercentage = 1 / (steps.length - 1);\n const percentageCompleted = activeStepIndex / (steps.length - 1);\n\n const getProgressWidth = (): string => {\n if (percentageCompleted === 0) {\n return '
|
|
1
|
+
{"version":3,"file":"Stepper.mjs","sources":["../../src/stepper/Stepper.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport * as React from 'react';\n\nimport { Position } from '../common';\nimport { useDirection } from '../common/hooks';\nimport Tooltip from '../tooltip';\n\nimport { isTouchDevice } from './deviceDetection';\n\nfunction clamp(from: number, to: number, value: number) {\n return Math.max(Math.min(to, value), from);\n}\n\nexport interface Step {\n label: React.ReactNode;\n onClick?: () => void;\n hoverLabel?: React.ReactNode;\n}\n\nexport interface StepperProps {\n steps: readonly Step[];\n activeStep?: number;\n className?: string;\n testId?: string;\n}\n\n/**\n * This component is considered user-unfriendly and inaccessible on its own and will likely be made internal in the future. Please use `FlowNavigation` instead.\n * @see https://storybook.wise.design/?path=/story/navigation-flownavigation--variants\n */\nconst Stepper = ({ steps, activeStep = 0, className, testId }: StepperProps) => {\n const { isRTL } = useDirection();\n\n if (steps.length === 0) {\n return null;\n }\n\n const activeStepIndex = clamp(0, steps.length - 1, activeStep);\n const stepPercentage = 1 / (steps.length - 1);\n const percentageCompleted = activeStepIndex / (steps.length - 1);\n\n const getProgressWidth = (): string => {\n if (percentageCompleted === 0) {\n return '0%';\n }\n /**\n * Progress bar starts with left/right (depends on rtl) shift `--progress-bar-start-shift` for hiding Progress bar's left and right borders\n * which are used for progress vertical delimiter.\n * When progress is completed, we need to add `--progress-bar-border-width` to the width to allow the right border be outside of the progress area.\n */\n return `calc(${percentageCompleted * 100}% + var(--progress-bar-start-shift) + var(--progress-bar-border-width))`;\n };\n\n const renderStep = (step: Step, index: number) => {\n const active = index === activeStepIndex;\n const clickable = step.onClick && !active;\n\n const labelButton = clickable ? (\n <button\n type=\"button\"\n className=\"btn-unstyled tw-stepper__step-label\"\n onClick={() => clickable && step.onClick?.()}\n >\n <small>{step.label}</small>\n </button>\n ) : (\n <span className=\"tw-stepper__step-label\">{step.label}</span>\n );\n\n return (\n <li\n key={index}\n className={clsx(\n 'hidden-xs',\n 'tw-stepper__step',\n active ? 'np-text-body-default-bold tw-stepper__step--active' : 'np-text-body-default',\n clickable && 'tw-stepper__step--clickable',\n step.hoverLabel && 'tw-stepper__step--has-tooltip',\n )}\n aria-current={active ? 'step' : false}\n style={\n isRTL\n ? { right: `${index * stepPercentage * 100}%` }\n : { left: `${index * stepPercentage * 100}%` }\n }\n >\n {step.hoverLabel && !isTouchDevice() ? (\n <Tooltip position={Position.BOTTOM} label={step.hoverLabel}>\n {labelButton}\n </Tooltip>\n ) : (\n labelButton\n )}\n </li>\n );\n };\n\n return (\n <div className={clsx('tw-stepper', className)} data-testid={testId}>\n <div className=\"progress\">\n <div\n className=\"progress-bar\"\n style={{ width: getProgressWidth() }}\n data-testid=\"progress-bar\"\n />\n </div>\n <ol className=\"tw-stepper-steps p-t-1 m-b-0\">{steps.map(renderStep)}</ol>\n </div>\n );\n};\n\nexport default Stepper;\n"],"names":["clamp","from","to","value","Math","max","min","Stepper","steps","activeStep","className","testId","isRTL","useDirection","length","activeStepIndex","stepPercentage","percentageCompleted","getProgressWidth","renderStep","step","index","active","clickable","onClick","labelButton","_jsx","type","children","label","clsx","hoverLabel","style","right","left","isTouchDevice","Tooltip","position","Position","BOTTOM","_jsxs","width","map"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,SAASA,KAAKA,CAACC,IAAY,EAAEC,EAAU,EAAEC,KAAa,EAAA;AACpD,EAAA,OAAOC,IAAI,CAACC,GAAG,CAACD,IAAI,CAACE,GAAG,CAACJ,EAAE,EAAEC,KAAK,CAAC,EAAEF,IAAI,CAAC,CAAA;AAC5C,CAAA;AAeA;;;AAGG;AACGM,MAAAA,OAAO,GAAGA,CAAC;EAAEC,KAAK;AAAEC,EAAAA,UAAU,GAAG,CAAC;EAAEC,SAAS;AAAEC,EAAAA,MAAAA;AAAM,CAAgB,KAAI;EAC7E,MAAM;AAAEC,IAAAA,KAAAA;GAAO,GAAGC,YAAY,EAAE,CAAA;AAEhC,EAAA,IAAIL,KAAK,CAACM,MAAM,KAAK,CAAC,EAAE;AACtB,IAAA,OAAO,IAAI,CAAA;AACb,GAAA;AAEA,EAAA,MAAMC,eAAe,GAAGf,KAAK,CAAC,CAAC,EAAEQ,KAAK,CAACM,MAAM,GAAG,CAAC,EAAEL,UAAU,CAAC,CAAA;EAC9D,MAAMO,cAAc,GAAG,CAAC,IAAIR,KAAK,CAACM,MAAM,GAAG,CAAC,CAAC,CAAA;EAC7C,MAAMG,mBAAmB,GAAGF,eAAe,IAAIP,KAAK,CAACM,MAAM,GAAG,CAAC,CAAC,CAAA;EAEhE,MA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
|
}
|
|
9
|
-
.np-circular-btn .
|
|
10
|
-
|
|
11
|
-
top: 16px;
|
|
12
|
-
top: var(--size-16);
|
|
13
|
-
pointer-events: none;
|
|
14
|
-
color: white;
|
|
15
|
-
transition: color 0.15s ease-in-out;
|
|
16
|
-
width: 100%;
|
|
17
|
-
left: 0;
|
|
18
|
-
}
|
|
19
|
-
[dir="rtl"] .np-circular-btn .tw-icon {
|
|
20
|
-
right: 0;
|
|
21
|
-
left: auto;
|
|
22
|
-
left: initial;
|
|
23
|
-
}
|
|
24
|
-
@media (max-width: 320px) {
|
|
25
|
-
.np-circular-btn .tw-icon {
|
|
26
|
-
top: 12px;
|
|
27
|
-
top: var(--size-12);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
.np-circular-btn .tw-icon > svg {
|
|
31
|
-
margin: 0 auto;
|
|
32
|
-
}
|
|
33
|
-
.np-theme-personal .np-circular-btn {
|
|
34
|
-
/* stylelint-disable-next-line no-duplicate-selectors */
|
|
35
|
-
}
|
|
36
|
-
.np-theme-personal .np-circular-btn .tw-icon,
|
|
37
|
-
.np-theme-personal .np-circular-btn .tw-icon:hover,
|
|
38
|
-
.np-theme-personal .np-circular-btn .tw-icon:active {
|
|
39
|
-
color: var(--color-interactive-control);
|
|
40
|
-
}
|
|
41
|
-
.np-theme-personal .np-circular-btn.negative .tw-icon,
|
|
42
|
-
.np-theme-personal .np-circular-btn.negative.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
43
|
-
.np-theme-personal .np-circular-btn.negative.secondary:not(.disabled):not(:disabled):active .tw-icon {
|
|
44
|
-
color: var(--color-contrast) !important;
|
|
45
|
-
}
|
|
46
|
-
.np-theme-personal .np-circular-btn.negative.secondary:not(.disabled):not(:disabled) .tw-icon {
|
|
47
|
-
color: var(--color-sentiment-negative) !important;
|
|
48
|
-
}
|
|
49
|
-
.np-circular-btn.accent .np-circular-btn__label {
|
|
50
|
-
color: #00a2dd;
|
|
51
|
-
color: var(--color-interactive-accent);
|
|
52
|
-
}
|
|
53
|
-
.np-circular-btn.accent:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
54
|
-
color: #008fc9;
|
|
55
|
-
color: var(--color-interactive-accent-hover);
|
|
56
|
-
}
|
|
57
|
-
.np-circular-btn.accent:active .np-circular-btn__label,
|
|
58
|
-
.np-circular-btn.accent input[type="button"]:active ~ .np-circular-btn__label {
|
|
59
|
-
color: #0081ba;
|
|
60
|
-
color: var(--color-interactive-accent-active);
|
|
61
|
-
}
|
|
62
|
-
.np-circular-btn.accent.secondary .tw-icon {
|
|
63
|
-
color: #00a2dd;
|
|
64
|
-
color: var(--color-interactive-accent);
|
|
65
|
-
}
|
|
66
|
-
.np-circular-btn.accent.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
67
|
-
.np-circular-btn.accent.secondary input[type="button"]:active + .tw-icon {
|
|
68
|
-
color: white;
|
|
69
|
-
}
|
|
70
|
-
.np-circular-btn.positive .np-circular-btn__label {
|
|
71
|
-
color: #2ead4b;
|
|
72
|
-
color: var(--color-interactive-positive);
|
|
73
|
-
}
|
|
74
|
-
.np-circular-btn.positive:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
75
|
-
color: #069939;
|
|
76
|
-
color: var(--color-interactive-positive-hover);
|
|
77
|
-
}
|
|
78
|
-
.np-circular-btn.positive:active .np-circular-btn__label,
|
|
79
|
-
.np-circular-btn.positive input[type="button"]:active ~ .np-circular-btn__label {
|
|
80
|
-
color: #008b2b;
|
|
81
|
-
color: var(--color-interactive-positive-active);
|
|
82
|
-
}
|
|
83
|
-
.np-circular-btn.positive.secondary .tw-icon {
|
|
84
|
-
color: #2ead4b;
|
|
85
|
-
color: var(--color-interactive-positive);
|
|
86
|
-
}
|
|
87
|
-
.np-circular-btn.positive.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
88
|
-
.np-circular-btn.positive.secondary input[type="button"]:active + .tw-icon {
|
|
89
|
-
color: white;
|
|
90
|
-
}
|
|
91
|
-
.np-circular-btn.negative .np-circular-btn__label {
|
|
92
|
-
color: #e74848;
|
|
93
|
-
color: var(--color-interactive-negative);
|
|
94
|
-
}
|
|
95
|
-
.np-circular-btn.negative:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
96
|
-
color: #d03238;
|
|
97
|
-
color: var(--color-interactive-negative-hover);
|
|
98
|
-
}
|
|
99
|
-
.np-circular-btn.negative:active .np-circular-btn__label,
|
|
100
|
-
.np-circular-btn.negative input[type="button"]:active ~ .np-circular-btn__label {
|
|
101
|
-
color: #bf1e2c;
|
|
102
|
-
color: var(--color-interactive-negative-active);
|
|
103
|
-
}
|
|
104
|
-
.np-circular-btn.negative.secondary .tw-icon {
|
|
105
|
-
color: #e74848;
|
|
106
|
-
color: var(--color-interactive-negative);
|
|
107
|
-
}
|
|
108
|
-
.np-circular-btn.negative.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
109
|
-
.np-circular-btn.negative.secondary input[type="button"]:active + .tw-icon {
|
|
110
|
-
color: white;
|
|
111
|
-
}
|
|
112
|
-
.np-theme-personal .np-circular-btn.accent .np-circular-btn__label {
|
|
7
|
+
.np-circular-btn-primary-default .np-circular-btn-label,
|
|
8
|
+
.np-circular-btn-secondary-default .np-circular-btn-label {
|
|
113
9
|
color: var(--color-interactive-primary);
|
|
114
10
|
}
|
|
115
|
-
.np-
|
|
11
|
+
.np-circular-btn-primary-default .np-circular-btn-label:not(.disabled):not(:disabled):hover,
|
|
12
|
+
.np-circular-btn-secondary-default .np-circular-btn-label:not(.disabled):not(:disabled):hover {
|
|
116
13
|
color: var(--color-interactive-primary-hover);
|
|
117
14
|
}
|
|
118
|
-
.np-
|
|
119
|
-
.np-
|
|
15
|
+
.np-circular-btn-primary-default .np-circular-btn-label:not(.disabled):not(:disabled):active,
|
|
16
|
+
.np-circular-btn-secondary-default .np-circular-btn-label:not(.disabled):not(:disabled):active {
|
|
120
17
|
color: var(--color-interactive-primary-active);
|
|
121
18
|
}
|
|
122
|
-
.np-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
.np-theme-personal .np-circular-btn.accent.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
126
|
-
.np-theme-personal .np-circular-btn.accent.secondary input[type="button"]:active + .tw-icon {
|
|
127
|
-
color: white;
|
|
128
|
-
color: var(--color-interactive-control);
|
|
129
|
-
}
|
|
130
|
-
.np-theme-personal .np-circular-btn.accent.secondary:active input[type="button"] + .tw-icon {
|
|
131
|
-
color: var(--color-interactive-control);
|
|
132
|
-
}
|
|
133
|
-
.np-theme-personal .np-circular-btn.positive .np-circular-btn__label {
|
|
134
|
-
color: var(--color-interactive-primary);
|
|
135
|
-
}
|
|
136
|
-
.np-theme-personal .np-circular-btn.positive:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
137
|
-
color: var(--color-interactive-primary-hover);
|
|
138
|
-
}
|
|
139
|
-
.np-theme-personal .np-circular-btn.positive:active .np-circular-btn__label,
|
|
140
|
-
.np-theme-personal .np-circular-btn.positive input[type="button"]:active ~ .np-circular-btn__label {
|
|
141
|
-
color: var(--color-interactive-primary-active);
|
|
142
|
-
}
|
|
143
|
-
.np-theme-personal .np-circular-btn.positive.secondary .tw-icon {
|
|
144
|
-
color: var(--color-interactive-primary);
|
|
145
|
-
}
|
|
146
|
-
.np-theme-personal .np-circular-btn.positive.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
147
|
-
.np-theme-personal .np-circular-btn.positive.secondary input[type="button"]:active + .tw-icon {
|
|
148
|
-
color: white;
|
|
149
|
-
color: var(--color-interactive-control);
|
|
150
|
-
}
|
|
151
|
-
.np-theme-personal .np-circular-btn.positive.secondary:active input[type="button"] + .tw-icon {
|
|
152
|
-
color: var(--color-interactive-control);
|
|
153
|
-
}
|
|
154
|
-
.np-theme-personal .np-circular-btn.negative .np-circular-btn__label {
|
|
155
|
-
color: var(--color-sentiment-negative);
|
|
156
|
-
}
|
|
157
|
-
.np-theme-personal .np-circular-btn.negative:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
158
|
-
color: var(--color-sentiment-negative-hover);
|
|
159
|
-
}
|
|
160
|
-
.np-theme-personal .np-circular-btn.negative:active .np-circular-btn__label,
|
|
161
|
-
.np-theme-personal .np-circular-btn.negative input[type="button"]:active ~ .np-circular-btn__label {
|
|
162
|
-
color: var(--color-sentiment-negative-active);
|
|
19
|
+
.np-circular-btn-primary-negative .np-circular-btn-label,
|
|
20
|
+
.np-circular-btn-secondary-negative .np-circular-btn-label {
|
|
21
|
+
color: var(--color-sentiment-negative-primary);
|
|
163
22
|
}
|
|
164
|
-
.np-
|
|
165
|
-
|
|
23
|
+
.np-circular-btn-primary-negative .np-circular-btn-label:not(.disabled):not(:disabled):hover,
|
|
24
|
+
.np-circular-btn-secondary-negative .np-circular-btn-label:not(.disabled):not(:disabled):hover {
|
|
25
|
+
color: var(--color-sentiment-negative-primary-hover);
|
|
166
26
|
}
|
|
167
|
-
.np-
|
|
168
|
-
.np-
|
|
169
|
-
color:
|
|
170
|
-
color: var(--color-interactive-control);
|
|
27
|
+
.np-circular-btn-primary-negative .np-circular-btn-label:not(.disabled):not(:disabled):active,
|
|
28
|
+
.np-circular-btn-secondary-negative .np-circular-btn-label:not(.disabled):not(:disabled):active {
|
|
29
|
+
color: var(--color-sentiment-negative-primary-active);
|
|
171
30
|
}
|
|
172
|
-
.np-
|
|
173
|
-
|
|
31
|
+
.np-circular-btn-disabled {
|
|
32
|
+
cursor: not-allowed;
|
|
174
33
|
}
|
package/build/styles/main.css
CHANGED
|
@@ -1184,175 +1184,34 @@ div.critical-comms .critical-comms-body {
|
|
|
1184
1184
|
display: inline-flex;
|
|
1185
1185
|
flex-direction: column;
|
|
1186
1186
|
align-items: center;
|
|
1187
|
-
text-align: center;
|
|
1188
1187
|
cursor: pointer;
|
|
1189
|
-
position: relative;
|
|
1190
|
-
}
|
|
1191
|
-
.np-circular-btn .tw-icon {
|
|
1192
|
-
position: absolute;
|
|
1193
|
-
top: 16px;
|
|
1194
|
-
top: var(--size-16);
|
|
1195
|
-
pointer-events: none;
|
|
1196
|
-
color: white;
|
|
1197
|
-
transition: color 0.15s ease-in-out;
|
|
1198
|
-
width: 100%;
|
|
1199
|
-
left: 0;
|
|
1200
|
-
}
|
|
1201
|
-
[dir="rtl"] .np-circular-btn .tw-icon {
|
|
1202
|
-
right: 0;
|
|
1203
|
-
left: auto;
|
|
1204
|
-
left: initial;
|
|
1205
|
-
}
|
|
1206
|
-
@media (max-width: 320px) {
|
|
1207
|
-
.np-circular-btn .tw-icon {
|
|
1208
|
-
top: 12px;
|
|
1209
|
-
top: var(--size-12);
|
|
1210
|
-
}
|
|
1211
|
-
}
|
|
1212
|
-
.np-circular-btn .tw-icon > svg {
|
|
1213
|
-
margin: 0 auto;
|
|
1214
|
-
}
|
|
1215
|
-
.np-theme-personal .np-circular-btn {
|
|
1216
|
-
/* stylelint-disable-next-line no-duplicate-selectors */
|
|
1217
|
-
}
|
|
1218
|
-
.np-theme-personal .np-circular-btn .tw-icon,
|
|
1219
|
-
.np-theme-personal .np-circular-btn .tw-icon:hover,
|
|
1220
|
-
.np-theme-personal .np-circular-btn .tw-icon:active {
|
|
1221
|
-
color: var(--color-interactive-control);
|
|
1222
|
-
}
|
|
1223
|
-
.np-theme-personal .np-circular-btn.negative .tw-icon,
|
|
1224
|
-
.np-theme-personal .np-circular-btn.negative.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
1225
|
-
.np-theme-personal .np-circular-btn.negative.secondary:not(.disabled):not(:disabled):active .tw-icon {
|
|
1226
|
-
color: var(--color-contrast) !important;
|
|
1227
|
-
}
|
|
1228
|
-
.np-theme-personal .np-circular-btn.negative.secondary:not(.disabled):not(:disabled) .tw-icon {
|
|
1229
|
-
color: var(--color-sentiment-negative) !important;
|
|
1230
|
-
}
|
|
1231
|
-
.np-circular-btn.accent .np-circular-btn__label {
|
|
1232
|
-
color: #00a2dd;
|
|
1233
|
-
color: var(--color-interactive-accent);
|
|
1234
|
-
}
|
|
1235
|
-
.np-circular-btn.accent:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
1236
|
-
color: #008fc9;
|
|
1237
|
-
color: var(--color-interactive-accent-hover);
|
|
1238
|
-
}
|
|
1239
|
-
.np-circular-btn.accent:active .np-circular-btn__label,
|
|
1240
|
-
.np-circular-btn.accent input[type="button"]:active ~ .np-circular-btn__label {
|
|
1241
|
-
color: #0081ba;
|
|
1242
|
-
color: var(--color-interactive-accent-active);
|
|
1243
|
-
}
|
|
1244
|
-
.np-circular-btn.accent.secondary .tw-icon {
|
|
1245
|
-
color: #00a2dd;
|
|
1246
|
-
color: var(--color-interactive-accent);
|
|
1247
|
-
}
|
|
1248
|
-
.np-circular-btn.accent.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
1249
|
-
.np-circular-btn.accent.secondary input[type="button"]:active + .tw-icon {
|
|
1250
|
-
color: white;
|
|
1251
|
-
}
|
|
1252
|
-
.np-circular-btn.positive .np-circular-btn__label {
|
|
1253
|
-
color: #2ead4b;
|
|
1254
|
-
color: var(--color-interactive-positive);
|
|
1255
|
-
}
|
|
1256
|
-
.np-circular-btn.positive:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
1257
|
-
color: #069939;
|
|
1258
|
-
color: var(--color-interactive-positive-hover);
|
|
1259
|
-
}
|
|
1260
|
-
.np-circular-btn.positive:active .np-circular-btn__label,
|
|
1261
|
-
.np-circular-btn.positive input[type="button"]:active ~ .np-circular-btn__label {
|
|
1262
|
-
color: #008b2b;
|
|
1263
|
-
color: var(--color-interactive-positive-active);
|
|
1264
|
-
}
|
|
1265
|
-
.np-circular-btn.positive.secondary .tw-icon {
|
|
1266
|
-
color: #2ead4b;
|
|
1267
|
-
color: var(--color-interactive-positive);
|
|
1268
1188
|
}
|
|
1269
|
-
.np-circular-btn
|
|
1270
|
-
.np-circular-btn
|
|
1271
|
-
color: white;
|
|
1272
|
-
}
|
|
1273
|
-
.np-circular-btn.negative .np-circular-btn__label {
|
|
1274
|
-
color: #e74848;
|
|
1275
|
-
color: var(--color-interactive-negative);
|
|
1276
|
-
}
|
|
1277
|
-
.np-circular-btn.negative:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
1278
|
-
color: #d03238;
|
|
1279
|
-
color: var(--color-interactive-negative-hover);
|
|
1280
|
-
}
|
|
1281
|
-
.np-circular-btn.negative:active .np-circular-btn__label,
|
|
1282
|
-
.np-circular-btn.negative input[type="button"]:active ~ .np-circular-btn__label {
|
|
1283
|
-
color: #bf1e2c;
|
|
1284
|
-
color: var(--color-interactive-negative-active);
|
|
1285
|
-
}
|
|
1286
|
-
.np-circular-btn.negative.secondary .tw-icon {
|
|
1287
|
-
color: #e74848;
|
|
1288
|
-
color: var(--color-interactive-negative);
|
|
1289
|
-
}
|
|
1290
|
-
.np-circular-btn.negative.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
1291
|
-
.np-circular-btn.negative.secondary input[type="button"]:active + .tw-icon {
|
|
1292
|
-
color: white;
|
|
1293
|
-
}
|
|
1294
|
-
.np-theme-personal .np-circular-btn.accent .np-circular-btn__label {
|
|
1189
|
+
.np-circular-btn-primary-default .np-circular-btn-label,
|
|
1190
|
+
.np-circular-btn-secondary-default .np-circular-btn-label {
|
|
1295
1191
|
color: var(--color-interactive-primary);
|
|
1296
1192
|
}
|
|
1297
|
-
.np-
|
|
1193
|
+
.np-circular-btn-primary-default .np-circular-btn-label:not(.disabled):not(:disabled):hover,
|
|
1194
|
+
.np-circular-btn-secondary-default .np-circular-btn-label:not(.disabled):not(:disabled):hover {
|
|
1298
1195
|
color: var(--color-interactive-primary-hover);
|
|
1299
1196
|
}
|
|
1300
|
-
.np-
|
|
1301
|
-
.np-
|
|
1197
|
+
.np-circular-btn-primary-default .np-circular-btn-label:not(.disabled):not(:disabled):active,
|
|
1198
|
+
.np-circular-btn-secondary-default .np-circular-btn-label:not(.disabled):not(:disabled):active {
|
|
1302
1199
|
color: var(--color-interactive-primary-active);
|
|
1303
1200
|
}
|
|
1304
|
-
.np-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
.np-theme-personal .np-circular-btn.accent.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
1308
|
-
.np-theme-personal .np-circular-btn.accent.secondary input[type="button"]:active + .tw-icon {
|
|
1309
|
-
color: white;
|
|
1310
|
-
color: var(--color-interactive-control);
|
|
1311
|
-
}
|
|
1312
|
-
.np-theme-personal .np-circular-btn.accent.secondary:active input[type="button"] + .tw-icon {
|
|
1313
|
-
color: var(--color-interactive-control);
|
|
1314
|
-
}
|
|
1315
|
-
.np-theme-personal .np-circular-btn.positive .np-circular-btn__label {
|
|
1316
|
-
color: var(--color-interactive-primary);
|
|
1317
|
-
}
|
|
1318
|
-
.np-theme-personal .np-circular-btn.positive:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
1319
|
-
color: var(--color-interactive-primary-hover);
|
|
1320
|
-
}
|
|
1321
|
-
.np-theme-personal .np-circular-btn.positive:active .np-circular-btn__label,
|
|
1322
|
-
.np-theme-personal .np-circular-btn.positive input[type="button"]:active ~ .np-circular-btn__label {
|
|
1323
|
-
color: var(--color-interactive-primary-active);
|
|
1324
|
-
}
|
|
1325
|
-
.np-theme-personal .np-circular-btn.positive.secondary .tw-icon {
|
|
1326
|
-
color: var(--color-interactive-primary);
|
|
1327
|
-
}
|
|
1328
|
-
.np-theme-personal .np-circular-btn.positive.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
1329
|
-
.np-theme-personal .np-circular-btn.positive.secondary input[type="button"]:active + .tw-icon {
|
|
1330
|
-
color: white;
|
|
1331
|
-
color: var(--color-interactive-control);
|
|
1332
|
-
}
|
|
1333
|
-
.np-theme-personal .np-circular-btn.positive.secondary:active input[type="button"] + .tw-icon {
|
|
1334
|
-
color: var(--color-interactive-control);
|
|
1335
|
-
}
|
|
1336
|
-
.np-theme-personal .np-circular-btn.negative .np-circular-btn__label {
|
|
1337
|
-
color: var(--color-sentiment-negative);
|
|
1338
|
-
}
|
|
1339
|
-
.np-theme-personal .np-circular-btn.negative:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
1340
|
-
color: var(--color-sentiment-negative-hover);
|
|
1341
|
-
}
|
|
1342
|
-
.np-theme-personal .np-circular-btn.negative:active .np-circular-btn__label,
|
|
1343
|
-
.np-theme-personal .np-circular-btn.negative input[type="button"]:active ~ .np-circular-btn__label {
|
|
1344
|
-
color: var(--color-sentiment-negative-active);
|
|
1201
|
+
.np-circular-btn-primary-negative .np-circular-btn-label,
|
|
1202
|
+
.np-circular-btn-secondary-negative .np-circular-btn-label {
|
|
1203
|
+
color: var(--color-sentiment-negative-primary);
|
|
1345
1204
|
}
|
|
1346
|
-
.np-
|
|
1347
|
-
|
|
1205
|
+
.np-circular-btn-primary-negative .np-circular-btn-label:not(.disabled):not(:disabled):hover,
|
|
1206
|
+
.np-circular-btn-secondary-negative .np-circular-btn-label:not(.disabled):not(:disabled):hover {
|
|
1207
|
+
color: var(--color-sentiment-negative-primary-hover);
|
|
1348
1208
|
}
|
|
1349
|
-
.np-
|
|
1350
|
-
.np-
|
|
1351
|
-
color:
|
|
1352
|
-
color: var(--color-interactive-control);
|
|
1209
|
+
.np-circular-btn-primary-negative .np-circular-btn-label:not(.disabled):not(:disabled):active,
|
|
1210
|
+
.np-circular-btn-secondary-negative .np-circular-btn-label:not(.disabled):not(:disabled):active {
|
|
1211
|
+
color: var(--color-sentiment-negative-primary-active);
|
|
1353
1212
|
}
|
|
1354
|
-
.np-
|
|
1355
|
-
|
|
1213
|
+
.np-circular-btn-disabled {
|
|
1214
|
+
cursor: not-allowed;
|
|
1356
1215
|
}
|
|
1357
1216
|
.np-circle {
|
|
1358
1217
|
border-radius: 9999px;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AvatarLayout.d.ts","sourceRoot":"","sources":["../../../src/avatarLayout/AvatarLayout.tsx"],"names":[],"mappings":"AACA,OAAmB,EAAE,eAAe,EAAE,MAAM,eAAe,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AAY,EACZ,WAAW,EAAE,eAA8B,EAC3C,IAAS,EACT,SAAS,EACT,WAAW,EACX,GAAG,SAAS,EACb,EAAE,KAAK,sCAgDP"}
|
|
@@ -1,15 +1,22 @@
|
|
|
1
1
|
import { ControlType, Priority } from '../common';
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated use `'default'` instead
|
|
4
|
+
*/
|
|
5
|
+
type DeprecatedTypes = `${ControlType.ACCENT | ControlType.POSITIVE}`;
|
|
2
6
|
export interface CircularButtonProps {
|
|
3
7
|
className?: string;
|
|
4
8
|
children: string;
|
|
5
9
|
disabled?: boolean;
|
|
6
10
|
icon: React.ReactElement<{
|
|
7
11
|
size?: unknown;
|
|
8
|
-
}
|
|
9
|
-
onClick?: React.MouseEventHandler<HTMLInputElement>;
|
|
12
|
+
}> | React.ReactNode;
|
|
13
|
+
onClick?: React.MouseEventHandler<HTMLInputElement> & React.MouseEventHandler<HTMLButtonElement> & React.MouseEventHandler<HTMLAnchorElement>;
|
|
10
14
|
priority?: `${Priority.PRIMARY | Priority.SECONDARY}`;
|
|
11
|
-
|
|
15
|
+
/**
|
|
16
|
+
* `"accent"` and `"positive"` values are **deprecated**, please use `"default"` instead
|
|
17
|
+
*/
|
|
18
|
+
type?: DeprecatedTypes | 'default' | `${ControlType.NEGATIVE}`;
|
|
12
19
|
}
|
|
13
|
-
declare const CircularButton: ({ className, children, disabled, icon, priority, type,
|
|
20
|
+
declare const CircularButton: ({ className, children, disabled, icon, onClick, priority, type, }: CircularButtonProps) => import("react").JSX.Element;
|
|
14
21
|
export default CircularButton;
|
|
15
22
|
//# sourceMappingURL=CircularButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CircularButton.d.ts","sourceRoot":"","sources":["../../../src/circularButton/CircularButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CircularButton.d.ts","sourceRoot":"","sources":["../../../src/circularButton/CircularButton.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAc,WAAW,EAAE,QAAQ,EAAc,MAAM,WAAW,CAAC;AAI1E;;GAEG;AACH,KAAK,eAAe,GAAG,GAAG,WAAW,CAAC,MAAM,GAAG,WAAW,CAAC,QAAQ,EAAE,CAAC;AAEtE,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC;QAAE,IAAI,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC;IAC/D,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,GACjD,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,GAC1C,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IAC7C,QAAQ,CAAC,EAAE,GAAG,QAAQ,CAAC,OAAO,GAAG,QAAQ,CAAC,SAAS,EAAE,CAAC;IACtD;;OAEG;IACH,IAAI,CAAC,EAAE,eAAe,GAAG,SAAS,GAAG,GAAG,WAAW,CAAC,QAAQ,EAAE,CAAC;CAChE;AAED,QAAA,MAAM,cAAc,sEAQjB,mBAAmB,gCA8BrB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -8,12 +8,11 @@ export interface DefinitionListDefinition {
|
|
|
8
8
|
value: React.ReactNode;
|
|
9
9
|
key: string;
|
|
10
10
|
}
|
|
11
|
-
type DefinitionListLayout = `${Layout.VERTICAL_TWO_COLUMN | Layout.VERTICAL_ONE_COLUMN | Layout.HORIZONTAL_JUSTIFIED | Layout.HORIZONTAL_LEFT_ALIGNED | Layout.HORIZONTAL_RIGHT_ALIGNED}`;
|
|
11
|
+
export type DefinitionListLayout = `${Layout.VERTICAL_TWO_COLUMN | Layout.VERTICAL_ONE_COLUMN | Layout.HORIZONTAL_JUSTIFIED | Layout.HORIZONTAL_LEFT_ALIGNED | Layout.HORIZONTAL_RIGHT_ALIGNED}`;
|
|
12
12
|
export interface DefinitionListProps {
|
|
13
13
|
definitions?: DefinitionListDefinition[];
|
|
14
14
|
layout?: DefinitionListLayout;
|
|
15
15
|
muted?: boolean;
|
|
16
16
|
}
|
|
17
17
|
export default function DefinitionList({ definitions, layout, muted, }: DefinitionListProps): import("react").JSX.Element;
|
|
18
|
-
export {};
|
|
19
18
|
//# sourceMappingURL=DefinitionList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefinitionList.d.ts","sourceRoot":"","sources":["../../../src/definitionList/DefinitionList.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,MAAM,WAAW,wBAAwB;IACvC,MAAM,CAAC,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;KACtD,CAAC;IACF,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,
|
|
1
|
+
{"version":3,"file":"DefinitionList.d.ts","sourceRoot":"","sources":["../../../src/definitionList/DefinitionList.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,MAAM,WAAW,wBAAwB;IACvC,MAAM,CAAC,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;KACtD,CAAC;IACF,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,MAAM,oBAAoB,GAC9B,GAAG,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,oBAAoB,GAAG,MAAM,CAAC,uBAAuB,GAAG,MAAM,CAAC,wBAAwB,EAAE,CAAC;AAEhK,MAAM,WAAW,mBAAmB;IAClC,WAAW,CAAC,EAAE,wBAAwB,EAAE,CAAC;IACzC,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAoCD,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,WAAgC,EAChC,MAA8B,EAC9B,KAAK,GACN,EAAE,mBAAmB,+BAmCrB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MouseEvent, ReactNode } from 'react';
|
|
2
|
-
import { CommonProps, PositionBottom, PositionCenter, PositionTop } from '../common';
|
|
2
|
+
import { type CommonProps, type PositionBottom, type PositionCenter, type PositionTop } from '../common';
|
|
3
3
|
export declare const EXIT_ANIMATION = 350;
|
|
4
4
|
export type DimmerProps = CommonProps & {
|
|
5
5
|
children?: ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dimmer.d.ts","sourceRoot":"","sources":["../../../src/dimmer/Dimmer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,SAAS,EAA4C,MAAM,OAAO,CAAC;AAGxF,OAAO,
|
|
1
|
+
{"version":3,"file":"Dimmer.d.ts","sourceRoot":"","sources":["../../../src/dimmer/Dimmer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,SAAS,EAA4C,MAAM,OAAO,CAAC;AAGxF,OAAO,EAGL,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,WAAW,EACjB,MAAM,WAAW,CAAC;AAOnB,eAAO,MAAM,cAAc,MAAM,CAAC;AAIlC,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG;IACtC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,eAAe,CAAC,EAAE,WAAW,GAAG,cAAc,GAAG,cAAc,CAAC;IAChE,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,GAAG,UAAU,KAAK,IAAI,CAAC;IACtD,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,eAAe,UAAW,KAAK,SAU3C,CAAC;AAEF,QAAA,MAAM,MAAM,0KAYT,WAAW,gCAmHb,CAAC;AAsBF,eAAO,MAAM,oBAAoB,8BAG9B;IACD,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC;IAC7B,UAAU,EAAE,OAAO,CAAC;CACrB,2FAcA,CAAC;AAGF,OAAO,EAAE,MAAM,EAAE,CAAC;;AAElB,wBAAsC"}
|
|
@@ -38,7 +38,7 @@ export interface MoneyInputProps extends WrappedComponentProps {
|
|
|
38
38
|
classNames?: Record<string, string>;
|
|
39
39
|
selectProps?: Partial<SelectInputProps<CurrencyOptionItem>>;
|
|
40
40
|
}
|
|
41
|
-
type MoneyInputPropsWithInputAttributes = MoneyInputProps & Partial<WithInputAttributesProps>;
|
|
41
|
+
export type MoneyInputPropsWithInputAttributes = MoneyInputProps & Partial<WithInputAttributesProps>;
|
|
42
42
|
declare const _default: import("react").FC<import("react-intl").WithIntlProps<Omit<MoneyInputPropsWithInputAttributes, "inputAttributes"> & {
|
|
43
43
|
id?: string;
|
|
44
44
|
}>> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MoneyInput.d.ts","sourceRoot":"","sources":["../../../src/moneyInput/MoneyInput.tsx"],"names":[],"mappings":"AAIA,O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kBAAkB,KAAK,IAAI,CAAC;IACvD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;IAC1C,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAChD,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,eAAe,EAAE,YAAY,EAAE,CAAA;KAAE,KAAK,IAAI,CAAC;IAC3F,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACpC,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,WAAW,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,CAAC,CAAC;CAC7D;AAED,MAAM,MAAM,kCAAkC,GAAG,eAAe,GAC9D,OAAO,CAAC,wBAAwB,CAAC,CAAC;;;;;;;;AAkZpC,wBAA2F"}
|
|
@@ -8,11 +8,12 @@ export interface StepperProps {
|
|
|
8
8
|
steps: readonly Step[];
|
|
9
9
|
activeStep?: number;
|
|
10
10
|
className?: string;
|
|
11
|
+
testId?: string;
|
|
11
12
|
}
|
|
12
13
|
/**
|
|
13
14
|
* This component is considered user-unfriendly and inaccessible on its own and will likely be made internal in the future. Please use `FlowNavigation` instead.
|
|
14
15
|
* @see https://storybook.wise.design/?path=/story/navigation-flownavigation--variants
|
|
15
16
|
*/
|
|
16
|
-
declare const Stepper: ({ steps, activeStep, className }: StepperProps) => React.JSX.Element | null;
|
|
17
|
+
declare const Stepper: ({ steps, activeStep, className, testId }: StepperProps) => React.JSX.Element | null;
|
|
17
18
|
export default Stepper;
|
|
18
19
|
//# sourceMappingURL=Stepper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../src/stepper/Stepper.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,SAAS,IAAI,EAAE,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../src/stepper/Stepper.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,SAAS,IAAI,EAAE,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,QAAA,MAAM,OAAO,6CAAkD,YAAY,6BA+E1E,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -64,6 +64,7 @@ declare function customRender(ui: ReactElement, { locale, messages, ...renderOpt
|
|
|
64
64
|
"neptune.UploadButton.allFileTypes": string;
|
|
65
65
|
"neptune.UploadButton.dropFiles": string;
|
|
66
66
|
"neptune.UploadButton.instructions": string;
|
|
67
|
+
"neptune.UploadButton.maximumFiles": string;
|
|
67
68
|
"neptune.UploadButton.uploadFile": string;
|
|
68
69
|
"neptune.UploadButton.uploadFiles": string;
|
|
69
70
|
"neptune.UploadInput.deleteModalBody": string;
|
|
@@ -143,6 +144,7 @@ declare function customRenderHook(callback: () => unknown, { locale, messages }?
|
|
|
143
144
|
"neptune.UploadButton.allFileTypes": string;
|
|
144
145
|
"neptune.UploadButton.dropFiles": string;
|
|
145
146
|
"neptune.UploadButton.instructions": string;
|
|
147
|
+
"neptune.UploadButton.maximumFiles": string;
|
|
146
148
|
"neptune.UploadButton.uploadFile": string;
|
|
147
149
|
"neptune.UploadButton.uploadFiles": string;
|
|
148
150
|
"neptune.UploadInput.deleteModalBody": string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/test-utils/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAM,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,MAAM,EAAc,MAAM,wBAAwB,CAAC;AAE5D,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAMxD;;;;GAIG;AACH,iBAAS,YAAY,CACnB,EAAE,EAAE,YAAY,EAChB,EAAE,MAAuB,EAAE,QAAa,EAAE,GAAG,aAAa,EAAE
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/test-utils/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAM,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,MAAM,EAAc,MAAM,wBAAwB,CAAC;AAE5D,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAMxD;;;;GAIG;AACH,iBAAS,YAAY,CACnB,EAAE,EAAE,YAAY,EAChB,EAAE,MAAuB,EAAE,QAAa,EAAE,GAAG,aAAa,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAK,GAChE,UAAU,CAAC,OAAO,MAAM,CAAC,CAK3B;AAED;;;GAGG;AACH,iBAAS,gBAAgB,CACvB,QAAQ,EAAE,MAAM,OAAO,EACvB,EAAE,MAAuB,EAAE,QAAa,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAK,uEAKhD;AAED,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,YAAY,IAAI,MAAM,EAAE,gBAAgB,IAAI,UAAU,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UploadButton.messages.d.ts","sourceRoot":"","sources":["../../../../src/uploadInput/uploadButton/UploadButton.messages.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UploadButton.messages.d.ts","sourceRoot":"","sources":["../../../../src/uploadInput/uploadButton/UploadButton.messages.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,wBAqCG"}
|
|
@@ -136,7 +136,9 @@ const UploadButton = /*#__PURE__*/React.forwardRef(({
|
|
|
136
136
|
return /*#__PURE__*/jsxRuntime.jsxs(Body, {
|
|
137
137
|
className: "np-upload-input__text",
|
|
138
138
|
children: [getDescription(), maxFiles && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
139
|
-
children: [/*#__PURE__*/jsxRuntime.jsx("br", {}),
|
|
139
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("br", {}), formatMessage(UploadButton_messages.maximumFiles, {
|
|
140
|
+
maxFiles
|
|
141
|
+
})]
|
|
140
142
|
})]
|
|
141
143
|
});
|
|
142
144
|
}
|