@alfalab/core-components-number-input 2.6.4 → 2.6.5-snapshot-1393ffa
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/Component.responsive.js +3 -2
- package/Component.responsive.js.map +1 -0
- package/components/number-input/Component.js +8 -13
- package/components/number-input/Component.js.map +1 -0
- package/components/number-input/default.css +5 -27
- package/components/number-input/default.module.css.js +8 -0
- package/components/number-input/default.module.css.js.map +1 -0
- package/components/number-input/index.css +6 -28
- package/components/number-input/index.js +3 -2
- package/components/number-input/index.js.map +1 -0
- package/components/number-input/index.module.css.js +8 -0
- package/components/number-input/index.module.css.js.map +1 -0
- package/components/number-input/inverted.css +5 -27
- package/components/number-input/inverted.module.css.js +8 -0
- package/components/number-input/inverted.module.css.js.map +1 -0
- package/components/steppers/Component.js +10 -15
- package/components/steppers/Component.js.map +1 -0
- package/components/steppers/default.css +3 -25
- package/components/steppers/default.module.css.js +8 -0
- package/components/steppers/default.module.css.js.map +1 -0
- package/components/steppers/index.css +3 -26
- package/components/steppers/index.js +3 -2
- package/components/steppers/index.js.map +1 -0
- package/components/steppers/index.module.css.js +8 -0
- package/components/steppers/index.module.css.js.map +1 -0
- package/components/steppers/inverted.css +3 -25
- package/components/steppers/inverted.module.css.js +8 -0
- package/components/steppers/inverted.module.css.js.map +1 -0
- package/cssm/Component.responsive.js +6 -5
- package/cssm/Component.responsive.js.map +1 -0
- package/cssm/components/number-input/Component.js +7 -6
- package/cssm/components/number-input/Component.js.map +1 -0
- package/cssm/components/number-input/default.module.css +3 -24
- package/cssm/components/number-input/index.js +3 -2
- package/cssm/components/number-input/index.js.map +1 -0
- package/cssm/components/number-input/index.module.css +4 -25
- package/cssm/components/number-input/inverted.module.css +3 -24
- package/cssm/components/steppers/Component.js +5 -4
- package/cssm/components/steppers/Component.js.map +1 -0
- package/cssm/components/steppers/default.module.css +3 -24
- package/cssm/components/steppers/index.js +3 -2
- package/cssm/components/steppers/index.js.map +1 -0
- package/cssm/components/steppers/index.module.css +1 -23
- package/cssm/components/steppers/inverted.module.css +3 -24
- package/cssm/desktop/Component.desktop.js +3 -2
- package/cssm/desktop/Component.desktop.js.map +1 -0
- package/cssm/desktop/index.js +3 -2
- package/cssm/desktop/index.js.map +1 -0
- package/cssm/index.js +1 -0
- package/cssm/index.js.map +1 -0
- package/cssm/mobile/Component.mobile.js +3 -2
- package/cssm/mobile/Component.mobile.js.map +1 -0
- package/cssm/mobile/index.js +3 -2
- package/cssm/mobile/index.js.map +1 -0
- package/cssm/shared/index.js +1 -0
- package/cssm/shared/index.js.map +1 -0
- package/cssm/src/Component.responsive.d.ts +4 -0
- package/cssm/{components → src/components}/number-input/Component.d.ts +4 -7
- package/cssm/src/components/number-input/index.d.ts +1 -0
- package/{esm → cssm/src}/components/steppers/Component.d.ts +3 -5
- package/cssm/src/components/steppers/index.d.ts +1 -0
- package/cssm/src/desktop/Component.desktop.d.ts +4 -0
- package/cssm/src/desktop/index.d.ts +1 -0
- package/cssm/src/index.d.ts +1 -0
- package/cssm/src/mobile/Component.mobile.d.ts +4 -0
- package/cssm/src/mobile/index.d.ts +1 -0
- package/cssm/src/shared/index.d.ts +1 -0
- package/cssm/src/utils.d.ts +33 -0
- package/cssm/utils.js +11 -10
- package/cssm/utils.js.map +1 -0
- package/desktop/Component.desktop.js +3 -2
- package/desktop/Component.desktop.js.map +1 -0
- package/desktop/index.js +3 -2
- package/desktop/index.js.map +1 -0
- package/esm/Component.responsive.js +1 -0
- package/esm/Component.responsive.js.map +1 -0
- package/esm/components/number-input/Component.js +5 -10
- package/esm/components/number-input/Component.js.map +1 -0
- package/esm/components/number-input/default.css +5 -27
- package/esm/components/number-input/default.module.css.js +6 -0
- package/esm/components/number-input/default.module.css.js.map +1 -0
- package/esm/components/number-input/index.css +6 -28
- package/esm/components/number-input/index.js +1 -0
- package/esm/components/number-input/index.js.map +1 -0
- package/esm/components/number-input/index.module.css.js +6 -0
- package/esm/components/number-input/index.module.css.js.map +1 -0
- package/esm/components/number-input/inverted.css +5 -27
- package/esm/components/number-input/inverted.module.css.js +6 -0
- package/esm/components/number-input/inverted.module.css.js.map +1 -0
- package/esm/components/steppers/Component.js +4 -9
- package/esm/components/steppers/Component.js.map +1 -0
- package/esm/components/steppers/default.css +3 -25
- package/esm/components/steppers/default.module.css.js +6 -0
- package/esm/components/steppers/default.module.css.js.map +1 -0
- package/esm/components/steppers/index.css +3 -26
- package/esm/components/steppers/index.js +1 -0
- package/esm/components/steppers/index.js.map +1 -0
- package/esm/components/steppers/index.module.css.js +6 -0
- package/esm/components/steppers/index.module.css.js.map +1 -0
- package/esm/components/steppers/inverted.css +3 -25
- package/esm/components/steppers/inverted.module.css.js +6 -0
- package/esm/components/steppers/inverted.module.css.js.map +1 -0
- package/esm/desktop/Component.desktop.js +1 -0
- package/esm/desktop/Component.desktop.js.map +1 -0
- package/esm/desktop/index.js +1 -0
- package/esm/desktop/index.js.map +1 -0
- package/esm/index.js +1 -0
- package/esm/index.js.map +1 -0
- package/esm/mobile/Component.mobile.js +1 -0
- package/esm/mobile/Component.mobile.js.map +1 -0
- package/esm/mobile/index.js +1 -0
- package/esm/mobile/index.js.map +1 -0
- package/esm/shared/index.js +1 -0
- package/esm/shared/index.js.map +1 -0
- package/esm/src/Component.responsive.d.ts +4 -0
- package/{components → esm/src/components}/number-input/Component.d.ts +4 -7
- package/esm/src/components/number-input/index.d.ts +1 -0
- package/{cssm → esm/src}/components/steppers/Component.d.ts +3 -5
- package/esm/src/components/steppers/index.d.ts +1 -0
- package/esm/src/desktop/Component.desktop.d.ts +4 -0
- package/esm/src/desktop/index.d.ts +1 -0
- package/esm/src/index.d.ts +1 -0
- package/esm/src/mobile/Component.mobile.d.ts +4 -0
- package/esm/src/mobile/index.d.ts +1 -0
- package/esm/src/shared/index.d.ts +1 -0
- package/esm/src/utils.d.ts +33 -0
- package/esm/utils.js +2 -1
- package/esm/utils.js.map +1 -0
- package/index.js +1 -0
- package/index.js.map +1 -0
- package/mobile/Component.mobile.js +3 -2
- package/mobile/Component.mobile.js.map +1 -0
- package/mobile/index.js +3 -2
- package/mobile/index.js.map +1 -0
- package/modern/Component.responsive.js +1 -0
- package/modern/Component.responsive.js.map +1 -0
- package/modern/components/number-input/Component.js +5 -10
- package/modern/components/number-input/Component.js.map +1 -0
- package/modern/components/number-input/default.css +5 -27
- package/modern/components/number-input/default.module.css.js +6 -0
- package/modern/components/number-input/default.module.css.js.map +1 -0
- package/modern/components/number-input/index.css +6 -28
- package/modern/components/number-input/index.js +1 -0
- package/modern/components/number-input/index.js.map +1 -0
- package/modern/components/number-input/index.module.css.js +6 -0
- package/modern/components/number-input/index.module.css.js.map +1 -0
- package/modern/components/number-input/inverted.css +5 -27
- package/modern/components/number-input/inverted.module.css.js +6 -0
- package/modern/components/number-input/inverted.module.css.js.map +1 -0
- package/modern/components/steppers/Component.js +4 -9
- package/modern/components/steppers/Component.js.map +1 -0
- package/modern/components/steppers/default.css +3 -25
- package/modern/components/steppers/default.module.css.js +6 -0
- package/modern/components/steppers/default.module.css.js.map +1 -0
- package/modern/components/steppers/index.css +3 -26
- package/modern/components/steppers/index.js +1 -0
- package/modern/components/steppers/index.js.map +1 -0
- package/modern/components/steppers/index.module.css.js +6 -0
- package/modern/components/steppers/index.module.css.js.map +1 -0
- package/modern/components/steppers/inverted.css +3 -25
- package/modern/components/steppers/inverted.module.css.js +6 -0
- package/modern/components/steppers/inverted.module.css.js.map +1 -0
- package/modern/desktop/Component.desktop.js +1 -0
- package/modern/desktop/Component.desktop.js.map +1 -0
- package/modern/desktop/index.js +1 -0
- package/modern/desktop/index.js.map +1 -0
- package/modern/index.js +1 -0
- package/modern/index.js.map +1 -0
- package/modern/mobile/Component.mobile.js +1 -0
- package/modern/mobile/Component.mobile.js.map +1 -0
- package/modern/mobile/index.js +1 -0
- package/modern/mobile/index.js.map +1 -0
- package/modern/shared/index.js +1 -0
- package/modern/shared/index.js.map +1 -0
- package/modern/src/Component.responsive.d.ts +4 -0
- package/{esm → modern/src}/components/number-input/Component.d.ts +4 -7
- package/modern/src/components/number-input/index.d.ts +1 -0
- package/modern/{components → src/components}/steppers/Component.d.ts +3 -5
- package/modern/src/components/steppers/index.d.ts +1 -0
- package/modern/src/desktop/Component.desktop.d.ts +4 -0
- package/modern/src/desktop/index.d.ts +1 -0
- package/modern/src/index.d.ts +1 -0
- package/modern/src/mobile/Component.mobile.d.ts +4 -0
- package/modern/src/mobile/index.d.ts +1 -0
- package/modern/src/shared/index.d.ts +1 -0
- package/modern/src/utils.d.ts +33 -0
- package/modern/utils.js +3 -2
- package/modern/utils.js.map +1 -0
- package/moderncssm/Component.responsive.js +1 -0
- package/moderncssm/Component.responsive.js.map +1 -0
- package/moderncssm/components/number-input/Component.js +2 -1
- package/moderncssm/components/number-input/Component.js.map +1 -0
- package/moderncssm/components/number-input/default.module.css +0 -2
- package/moderncssm/components/number-input/index.js +1 -0
- package/moderncssm/components/number-input/index.js.map +1 -0
- package/moderncssm/components/number-input/index.module.css +0 -2
- package/moderncssm/components/number-input/inverted.module.css +0 -2
- package/moderncssm/components/steppers/Component.js +1 -0
- package/moderncssm/components/steppers/Component.js.map +1 -0
- package/moderncssm/components/steppers/default.module.css +0 -2
- package/moderncssm/components/steppers/index.js +1 -0
- package/moderncssm/components/steppers/index.js.map +1 -0
- package/moderncssm/components/steppers/index.module.css +0 -2
- package/moderncssm/components/steppers/inverted.module.css +0 -2
- package/moderncssm/desktop/Component.desktop.js +1 -0
- package/moderncssm/desktop/Component.desktop.js.map +1 -0
- package/moderncssm/desktop/index.js +1 -0
- package/moderncssm/desktop/index.js.map +1 -0
- package/moderncssm/index.js +1 -0
- package/moderncssm/index.js.map +1 -0
- package/moderncssm/mobile/Component.mobile.js +1 -0
- package/moderncssm/mobile/Component.mobile.js.map +1 -0
- package/moderncssm/mobile/index.js +1 -0
- package/moderncssm/mobile/index.js.map +1 -0
- package/moderncssm/shared/index.js +1 -0
- package/moderncssm/shared/index.js.map +1 -0
- package/moderncssm/src/Component.responsive.d.ts +4 -0
- package/{modern → moderncssm/src}/components/number-input/Component.d.ts +4 -7
- package/moderncssm/src/components/number-input/index.d.ts +1 -0
- package/{components → moderncssm/src/components}/steppers/Component.d.ts +3 -5
- package/moderncssm/src/components/steppers/index.d.ts +1 -0
- package/moderncssm/src/desktop/Component.desktop.d.ts +4 -0
- package/moderncssm/src/desktop/index.d.ts +1 -0
- package/moderncssm/src/index.d.ts +1 -0
- package/moderncssm/src/mobile/Component.mobile.d.ts +4 -0
- package/moderncssm/src/mobile/index.d.ts +1 -0
- package/moderncssm/src/shared/index.d.ts +1 -0
- package/moderncssm/src/utils.d.ts +33 -0
- package/moderncssm/utils.js +3 -2
- package/moderncssm/utils.js.map +1 -0
- package/package.json +7 -7
- package/shared/index.js +1 -0
- package/shared/index.js.map +1 -0
- package/src/Component.responsive.d.ts +4 -0
- package/src/components/number-input/Component.d.ts +57 -0
- package/src/components/number-input/index.d.ts +1 -0
- package/src/components/steppers/Component.d.ts +15 -0
- package/src/components/steppers/index.d.ts +1 -0
- package/src/desktop/Component.desktop.d.ts +4 -0
- package/src/desktop/index.d.ts +1 -0
- package/src/index.d.ts +1 -0
- package/src/mobile/Component.mobile.d.ts +4 -0
- package/src/mobile/index.d.ts +1 -0
- package/src/shared/index.d.ts +1 -0
- package/src/utils.d.ts +33 -0
- package/utils.js +1 -0
- package/utils.js.map +1 -0
- package/Component.responsive.d.ts +0 -6
- package/components/number-input/index.d.ts +0 -1
- package/components/steppers/index.d.ts +0 -1
- package/cssm/Component.responsive.d.ts +0 -6
- package/cssm/components/number-input/index.d.ts +0 -1
- package/cssm/components/steppers/index.d.ts +0 -1
- package/cssm/desktop/Component.desktop.d.ts +0 -6
- package/cssm/desktop/index.d.ts +0 -2
- package/cssm/index.d.ts +0 -2
- package/cssm/mobile/Component.mobile.d.ts +0 -6
- package/cssm/mobile/index.d.ts +0 -2
- package/cssm/shared/index.d.ts +0 -1
- package/cssm/utils.d.ts +0 -34
- package/desktop/Component.desktop.d.ts +0 -6
- package/desktop/index.d.ts +0 -2
- package/esm/Component.responsive.d.ts +0 -6
- package/esm/components/number-input/index.d.ts +0 -1
- package/esm/components/steppers/index.d.ts +0 -1
- package/esm/desktop/Component.desktop.d.ts +0 -6
- package/esm/desktop/index.d.ts +0 -2
- package/esm/index.d.ts +0 -2
- package/esm/mobile/Component.mobile.d.ts +0 -6
- package/esm/mobile/index.d.ts +0 -2
- package/esm/shared/index.d.ts +0 -1
- package/esm/utils.d.ts +0 -34
- package/index.d.ts +0 -2
- package/mobile/Component.mobile.d.ts +0 -6
- package/mobile/index.d.ts +0 -2
- package/modern/Component.responsive.d.ts +0 -6
- package/modern/components/number-input/index.d.ts +0 -1
- package/modern/components/steppers/index.d.ts +0 -1
- package/modern/desktop/Component.desktop.d.ts +0 -6
- package/modern/desktop/index.d.ts +0 -2
- package/modern/index.d.ts +0 -2
- package/modern/mobile/Component.mobile.d.ts +0 -6
- package/modern/mobile/index.d.ts +0 -2
- package/modern/shared/index.d.ts +0 -1
- package/modern/utils.d.ts +0 -34
- package/moderncssm/Component.responsive.d.ts +0 -6
- package/moderncssm/components/number-input/Component.d.ts +0 -60
- package/moderncssm/components/number-input/index.d.ts +0 -1
- package/moderncssm/components/steppers/Component.d.ts +0 -17
- package/moderncssm/components/steppers/index.d.ts +0 -1
- package/moderncssm/desktop/Component.desktop.d.ts +0 -6
- package/moderncssm/desktop/index.d.ts +0 -2
- package/moderncssm/index.d.ts +0 -2
- package/moderncssm/mobile/Component.mobile.d.ts +0 -6
- package/moderncssm/mobile/index.d.ts +0 -2
- package/moderncssm/shared/index.d.ts +0 -1
- package/moderncssm/utils.d.ts +0 -34
- package/shared/index.d.ts +0 -1
- package/utils.d.ts +0 -34
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Component.js","sources":["../../../../src/components/steppers/Component.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'classnames';\n\nimport { IconButton } from '@alfalab/core-components-icon-button';\nimport { InputProps } from '@alfalab/core-components-input';\nimport { getDataTestId } from '@alfalab/core-components-shared';\nimport { MinusMIcon } from '@alfalab/icons-glyph/MinusMIcon';\nimport { MinusSIcon } from '@alfalab/icons-glyph/MinusSIcon';\nimport { PlusMediumMIcon } from '@alfalab/icons-glyph/PlusMediumMIcon';\nimport { PlusSIcon } from '@alfalab/icons-glyph/PlusSIcon';\n\nimport defaultColors from './default.module.css';\nimport styles from './index.module.css';\nimport invertedColors from './inverted.module.css';\n\nexport type SteppersProps = {\n value: number;\n min: number;\n max: number;\n className?: string;\n disabled?: boolean;\n onIncrement: () => void;\n onDecrement: () => void;\n dataTestId?: string;\n colors: 'default' | 'inverted';\n size: InputProps['size'];\n};\n\nconst colorStyles = {\n default: defaultColors,\n inverted: invertedColors,\n};\n\nfunction preventDefault(e: React.MouseEvent<HTMLElement>) {\n e.preventDefault();\n}\n\nexport const Steppers: React.FC<SteppersProps> = ({\n className,\n onIncrement,\n onDecrement,\n value,\n min,\n max,\n disabled,\n dataTestId,\n colors,\n size,\n}) => {\n const decButtonDisabled = disabled || value <= min;\n const incButtonDisabled = disabled || value >= max;\n\n const MinusIconComponent = size === 40 ? MinusSIcon : MinusMIcon;\n const PlusIconComponent = size === 40 ? PlusSIcon : PlusMediumMIcon;\n\n return (\n <div className={cn(styles.component, className)}>\n <IconButton\n colors={colors}\n disabled={decButtonDisabled}\n className={styles.button}\n icon={<MinusIconComponent />}\n aria-label='уменьшить'\n onMouseDown={preventDefault}\n onClick={onDecrement}\n dataTestId={getDataTestId(dataTestId, 'decrement-button')}\n view='secondary'\n />\n <div className={cn(styles.separator, colorStyles[colors].separator)} />\n <IconButton\n colors={colors}\n disabled={incButtonDisabled}\n className={styles.button}\n icon={<PlusIconComponent />}\n aria-label='увеличить'\n onMouseDown={preventDefault}\n onClick={onIncrement}\n dataTestId={getDataTestId(dataTestId, 'increment-button')}\n view='secondary'\n />\n </div>\n );\n};\n"],"names":["defaultColors","invertedColors","MinusSIcon","MinusMIcon","PlusSI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kBAAkB,EAAG,IAAA,CAAA,EAAA,YAAA,EACjB,wDAAW,EACtB,WAAW,EAAE,cAAc,EAC3B,OAAO,EAAE,WAAW,EACpB,UAAU,EAAEI,oBAAa,CAAC,UAAU,EAAE,kBAAkB,CAAC,EACzD,IAAI,EAAC,WAAW,EAClB,CAAA;AACF,QAAAJ,sBAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAEC,mBAAE,CAACC,uBAAM,CAAC,SAAS,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,EAAI,CAAA;QACvEF,sBAAC,CAAA,aAAA,CAAAG,eAAU,IACP,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,iBAAiB,EAC3B,SAAS,EAAED,uBAAM,CAAC,MAAM,EACxB,IAAI,EAAEF,sBAAA,CAAA,aAAA,CAAC,iBAAiB,EAAA,IAAA,CAAG,EAChB,YAAA,EAAA,wDAAW,EACtB,WAAW,EAAE,cAAc,EAC3B,OAAO,EAAE,WAAW,EACpB,UAAU,EAAEI,oBAAa,CAAC,UAAU,EAAE,kBAAkB,CAAC,EACzD,IAAI,EAAC,WAAW,EAAA,CAClB,CACA;AAEd;;;;"}
|
|
@@ -1,26 +1,5 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
5
|
-
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
6
|
-
} :root {
|
|
7
|
-
|
|
8
|
-
/* Hard */
|
|
9
|
-
|
|
10
|
-
/* Up */
|
|
11
|
-
|
|
12
|
-
/* Hard up */
|
|
13
|
-
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
14
|
-
|
|
15
|
-
/* новые значения, используйте их */
|
|
16
|
-
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
17
|
-
|
|
18
|
-
/* новые значения, используйте их */
|
|
19
|
-
|
|
20
|
-
/* no-unit может приводить к проблемам в calc (#1559) */
|
|
21
|
-
/* stylelint-disable-next-line length-zero-no-unit */
|
|
22
|
-
} :root {
|
|
23
|
-
} :root {
|
|
24
|
-
} /* сбрасывает синюю подсветку при нажатии */ .separator {
|
|
1
|
+
:root {
|
|
2
|
+
--color-light-neutral-translucent-300: rgba(15, 25, 55, 0.1);
|
|
3
|
+
} .separator {
|
|
25
4
|
background-color: var(--color-light-neutral-translucent-300);
|
|
26
5
|
}
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var Component = require('./Component.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.Steppers =
|
|
9
|
+
exports.Steppers = Component.Steppers;
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -1,26 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
} /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
3
|
-
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
4
|
-
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
5
|
-
} :root {
|
|
6
|
-
|
|
7
|
-
/* Hard */
|
|
8
|
-
|
|
9
|
-
/* Up */
|
|
10
|
-
|
|
11
|
-
/* Hard up */
|
|
12
|
-
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
13
|
-
|
|
14
|
-
/* новые значения, используйте их */
|
|
15
|
-
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
16
|
-
|
|
17
|
-
/* новые значения, используйте их */
|
|
18
|
-
|
|
19
|
-
/* no-unit может приводить к проблемам в calc (#1559) */
|
|
20
|
-
/* stylelint-disable-next-line length-zero-no-unit */
|
|
21
|
-
} :root {
|
|
22
|
-
} :root {
|
|
23
|
-
} /* сбрасывает синюю подсветку при нажатии */ .component {
|
|
1
|
+
.component {
|
|
24
2
|
display: flex;
|
|
25
3
|
flex-flow: row nowrap;
|
|
26
4
|
align-items: center;
|
|
@@ -1,26 +1,5 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
5
|
-
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
6
|
-
} :root {
|
|
7
|
-
|
|
8
|
-
/* Hard */
|
|
9
|
-
|
|
10
|
-
/* Up */
|
|
11
|
-
|
|
12
|
-
/* Hard up */
|
|
13
|
-
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
14
|
-
|
|
15
|
-
/* новые значения, используйте их */
|
|
16
|
-
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
17
|
-
|
|
18
|
-
/* новые значения, используйте их */
|
|
19
|
-
|
|
20
|
-
/* no-unit может приводить к проблемам в calc (#1559) */
|
|
21
|
-
/* stylelint-disable-next-line length-zero-no-unit */
|
|
22
|
-
} :root {
|
|
23
|
-
} :root {
|
|
24
|
-
} /* сбрасывает синюю подсветку при нажатии */ .separator {
|
|
1
|
+
:root {
|
|
2
|
+
--color-light-neutral-translucent-300-inverted: rgba(222, 222, 238, 0.13);
|
|
3
|
+
} .separator {
|
|
25
4
|
background-color: var(--color-light-neutral-translucent-300-inverted);
|
|
26
5
|
}
|
|
@@ -5,12 +5,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var tslib = require('tslib');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var desktop = require('@alfalab/core-components-input/cssm/desktop');
|
|
8
|
-
var
|
|
8
|
+
var Component = require('../components/number-input/Component.js');
|
|
9
9
|
|
|
10
10
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
11
11
|
|
|
12
12
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
13
13
|
|
|
14
|
-
var NumberInputDesktop = React.forwardRef(function (props, ref) { return React__default.default.createElement(
|
|
14
|
+
var NumberInputDesktop = React.forwardRef(function (props, ref) { return React__default.default.createElement(Component.NumberInput, tslib.__assign({}, props, { Input: desktop.InputDesktop, ref: ref, view: 'desktop' })); });
|
|
15
15
|
|
|
16
16
|
exports.NumberInputDesktop = NumberInputDesktop;
|
|
17
|
+
//# sourceMappingURL=Component.desktop.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Component.desktop.js","sources":["../../../src/desktop/Component.desktop.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { InputDesktop } from '@alfalab/core-components-input/desktop';\n\nimport { NumberInput, NumberInputProps } from '../components/number-input';\n\nexport type NumberInputDesktopProps = Omit<NumberInputProps, 'Input' | 'breakpoint' | 'view'>;\n\nexport const NumberInputDesktop = forwardRef<HTMLInputElement, NumberInputDesktopProps>(\n (props, ref) => <NumberInput {...props} Input={InputDesktop} ref={ref} view='desktop' />,\n);\n"],"names":["forwardRef","React","NumberInput","__assign","InputDesktop"],"mappings":";;;;;;;;;;;;;AAQO,IAAM,kBAAkB,GAAGA,gBAAU,CACxC,UAAC,KAAK,EAAE,GAAG,EAAA,EAAK,OAAAC,sBAAA,CAAA,aAAA,CAACC,qBAAW,EAAKC,cAAA,CAAA,EAAA,EAAA,KAAK,EAAE,EAAA,KAAK,EAAEC,oBAAY,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAC,SAAS,EAAA,CAAA,CAAG,CAAxE,EAAwE;;;;"}
|
package/cssm/desktop/index.js
CHANGED
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var Component_desktop = require('./Component.desktop.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.NumberInputDesktop =
|
|
9
|
+
exports.NumberInputDesktop = Component_desktop.NumberInputDesktop;
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/cssm/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -5,12 +5,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var tslib = require('tslib');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var mobile = require('@alfalab/core-components-input/cssm/mobile');
|
|
8
|
-
var
|
|
8
|
+
var Component = require('../components/number-input/Component.js');
|
|
9
9
|
|
|
10
10
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
11
11
|
|
|
12
12
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
13
13
|
|
|
14
|
-
var NumberInputMobile = React.forwardRef(function (props, ref) { return React__default.default.createElement(
|
|
14
|
+
var NumberInputMobile = React.forwardRef(function (props, ref) { return React__default.default.createElement(Component.NumberInput, tslib.__assign({}, props, { Input: mobile.InputMobile, ref: ref, view: 'mobile' })); });
|
|
15
15
|
|
|
16
16
|
exports.NumberInputMobile = NumberInputMobile;
|
|
17
|
+
//# sourceMappingURL=Component.mobile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Component.mobile.js","sources":["../../../src/mobile/Component.mobile.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { InputMobile } from '@alfalab/core-components-input/mobile';\n\nimport { NumberInput, NumberInputProps } from '../components/number-input';\n\nexport type NumberInputMobileProps = Omit<NumberInputProps, 'Input' | 'breakpoint' | 'view'>;\n\nexport const NumberInputMobile = forwardRef<HTMLInputElement, NumberInputMobileProps>(\n (props, ref) => <NumberInput {...props} Input={InputMobile} ref={ref} view='mobile' />,\n);\n"],"names":["forwardRef","React","NumberInput","__assign","InputMobile"],"mappings":";;;;;;;;;;;;;AAQO,IAAM,iBAAiB,GAAGA,gBAAU,CACvC,UAAC,KAAK,EAAE,GAAG,EAAA,EAAK,OAAAC,sBAAA,CAAA,aAAA,CAACC,qBAAW,EAAKC,cAAA,CAAA,EAAA,EAAA,KAAK,EAAE,EAAA,KAAK,EAAEC,kBAAW,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAC,QAAQ,EAAA,CAAA,CAAG,CAAtE,EAAsE;;;;"}
|
package/cssm/mobile/index.js
CHANGED
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var Component_mobile = require('./Component.mobile.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.NumberInputMobile =
|
|
9
|
+
exports.NumberInputMobile = Component_mobile.NumberInputMobile;
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/cssm/shared/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { NumberInputProps } from './components/number-input';
|
|
3
|
+
export declare type NumberInputResponsiveProps = Omit<NumberInputProps, 'Input' | 'view'>;
|
|
4
|
+
export declare const NumberInputResponsive: React.ForwardRefExoticComponent<NumberInputResponsiveProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
import { InputProps } from "@alfalab/core-components-input";
|
|
5
|
-
interface NumberInputProps extends Omit<InputProps, 'value' | 'onChange' | 'type' | 'defaultValue' | 'dataTestId'> {
|
|
1
|
+
import React, { ChangeEvent, FC, Ref } from 'react';
|
|
2
|
+
import type { InputProps } from '@alfalab/core-components-input';
|
|
3
|
+
export interface NumberInputProps extends Omit<InputProps, 'value' | 'onChange' | 'type' | 'defaultValue' | 'dataTestId'> {
|
|
6
4
|
/**
|
|
7
5
|
* Значение поля ввода
|
|
8
6
|
*/
|
|
@@ -56,5 +54,4 @@ interface NumberInputProps extends Omit<InputProps, 'value' | 'onChange' | 'type
|
|
|
56
54
|
*/
|
|
57
55
|
dataTestId?: string;
|
|
58
56
|
}
|
|
59
|
-
declare const NumberInput: React.ForwardRefExoticComponent<NumberInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
60
|
-
export { NumberInputProps, NumberInput };
|
|
57
|
+
export declare const NumberInput: React.ForwardRefExoticComponent<NumberInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NumberInput, NumberInputProps } from './Component';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import { InputProps } from
|
|
4
|
-
type SteppersProps = {
|
|
2
|
+
import { InputProps } from '@alfalab/core-components-input';
|
|
3
|
+
export declare type SteppersProps = {
|
|
5
4
|
value: number;
|
|
6
5
|
min: number;
|
|
7
6
|
max: number;
|
|
@@ -13,5 +12,4 @@ type SteppersProps = {
|
|
|
13
12
|
colors: 'default' | 'inverted';
|
|
14
13
|
size: InputProps['size'];
|
|
15
14
|
};
|
|
16
|
-
declare const Steppers: React.FC<SteppersProps>;
|
|
17
|
-
export { SteppersProps, Steppers };
|
|
15
|
+
export declare const Steppers: React.FC<SteppersProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Component';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { NumberInputProps } from '../components/number-input';
|
|
3
|
+
export declare type NumberInputDesktopProps = Omit<NumberInputProps, 'Input' | 'breakpoint' | 'view'>;
|
|
4
|
+
export declare const NumberInputDesktop: React.ForwardRefExoticComponent<NumberInputDesktopProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NumberInputDesktop, NumberInputDesktopProps } from './Component.desktop';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NumberInputResponsive as NumberInput, NumberInputResponsiveProps as NumberInputProps, } from './Component.responsive';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { NumberInputProps } from '../components/number-input';
|
|
3
|
+
export declare type NumberInputMobileProps = Omit<NumberInputProps, 'Input' | 'breakpoint' | 'view'>;
|
|
4
|
+
export declare const NumberInputMobile: React.ForwardRefExoticComponent<NumberInputMobileProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NumberInputMobile, NumberInputMobileProps } from './Component.mobile';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { getNumberInputTestIds } from '../utils';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { MaskitoOptions, MaskitoPlugin } from '@maskito/core';
|
|
2
|
+
export declare const MINUS_SIGN = "-";
|
|
3
|
+
export declare const SEPARATORS: string[];
|
|
4
|
+
export declare const MAX_SAFE_INTEGER: number;
|
|
5
|
+
export declare const MIN_SAFE_INTEGER: number;
|
|
6
|
+
export declare const MAX_DIGITS = 15;
|
|
7
|
+
export declare function parseNumber(value?: string | number | null): number;
|
|
8
|
+
/**
|
|
9
|
+
* Преобразовать число в строку с заменой экспоненты на десятичную дробь
|
|
10
|
+
*/
|
|
11
|
+
export declare function stringifyNumberWithoutExp(value: number): string;
|
|
12
|
+
export declare function createMaskOptions({ separator, fractionLength, min, max, }: {
|
|
13
|
+
separator: string;
|
|
14
|
+
fractionLength: number;
|
|
15
|
+
min: number;
|
|
16
|
+
max: number;
|
|
17
|
+
}): MaskitoOptions;
|
|
18
|
+
export declare function createMinMaxPlugin({ min, max }: {
|
|
19
|
+
min: number;
|
|
20
|
+
max: number;
|
|
21
|
+
}): MaskitoPlugin;
|
|
22
|
+
export declare function createNotEmptyPartsPlugin(separator: string): MaskitoPlugin;
|
|
23
|
+
export declare function getNumberInputTestIds(dataTestId: string): {
|
|
24
|
+
input: string;
|
|
25
|
+
inputWrapper: string;
|
|
26
|
+
inputWrapperInner: string;
|
|
27
|
+
leftAddons: string;
|
|
28
|
+
rightAddons: string;
|
|
29
|
+
error: string;
|
|
30
|
+
hint: string;
|
|
31
|
+
decrementButton: string;
|
|
32
|
+
incrementButton: string;
|
|
33
|
+
};
|
package/cssm/utils.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var core = require('@maskito/core');
|
|
6
|
-
var
|
|
6
|
+
var cssm = require('@alfalab/core-components-shared/cssm');
|
|
7
7
|
|
|
8
8
|
/* eslint-disable no-param-reassign */
|
|
9
9
|
var MINUS_SIGN = '-';
|
|
@@ -211,7 +211,7 @@ function createMinMaxPlugin(_a) {
|
|
|
211
211
|
return function (element, options) {
|
|
212
212
|
var listener = function () {
|
|
213
213
|
var parsedNumber = parseNumber(element.value);
|
|
214
|
-
var clampedNumber =
|
|
214
|
+
var clampedNumber = cssm.fnUtils.clamp(parsedNumber, min, max);
|
|
215
215
|
if (!Number.isNaN(parsedNumber) && parsedNumber !== clampedNumber) {
|
|
216
216
|
element.value = core.maskitoTransform(stringifyNumberWithoutExp(clampedNumber), options);
|
|
217
217
|
element.dispatchEvent(new Event('input', { bubbles: true }));
|
|
@@ -249,14 +249,14 @@ function createNotEmptyPartsPlugin(separator) {
|
|
|
249
249
|
function getNumberInputTestIds(dataTestId) {
|
|
250
250
|
return {
|
|
251
251
|
input: dataTestId,
|
|
252
|
-
inputWrapper:
|
|
253
|
-
inputWrapperInner:
|
|
254
|
-
leftAddons:
|
|
255
|
-
rightAddons:
|
|
256
|
-
error:
|
|
257
|
-
hint:
|
|
258
|
-
decrementButton:
|
|
259
|
-
incrementButton:
|
|
252
|
+
inputWrapper: cssm.getDataTestId(dataTestId, 'form-control'),
|
|
253
|
+
inputWrapperInner: cssm.getDataTestId(dataTestId, 'form-control-inner'),
|
|
254
|
+
leftAddons: cssm.getDataTestId(dataTestId, 'form-control-left-addons'),
|
|
255
|
+
rightAddons: cssm.getDataTestId(dataTestId, 'form-control-right-addons'),
|
|
256
|
+
error: cssm.getDataTestId(dataTestId, 'form-control-error-message'),
|
|
257
|
+
hint: cssm.getDataTestId(dataTestId, 'form-control-hint'),
|
|
258
|
+
decrementButton: cssm.getDataTestId(dataTestId, 'decrement-button'),
|
|
259
|
+
incrementButton: cssm.getDataTestId(dataTestId, 'increment-button'),
|
|
260
260
|
};
|
|
261
261
|
}
|
|
262
262
|
|
|
@@ -271,3 +271,4 @@ exports.createNotEmptyPartsPlugin = createNotEmptyPartsPlugin;
|
|
|
271
271
|
exports.getNumberInputTestIds = getNumberInputTestIds;
|
|
272
272
|
exports.parseNumber = parseNumber;
|
|
273
273
|
exports.stringifyNumberWithoutExp = stringifyNumberWithoutExp;
|
|
274
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sources":["../../src/utils.ts"],"sourcesContent":["/* eslint-disable no-param-reassign */\nimport {\n MaskitoOptions,\n MaskitoPlugin,\n MaskitoPostprocessor,\n MaskitoPreprocessor,\n maskitoTransform,\n} from '@maskito/core';\n\nimport { fnUtils, getDataTestId } from '@alfalab/core-components-shared';\n\nexport const MINUS_SIGN = '-';\nexport const SEPARATORS = [',', '.'];\nexport const MAX_SAFE_INTEGER = 2 ** 53 - 1;\nexport const MIN_SAFE_INTEGER = -MAX_SAFE_INTEGER;\nexport const MAX_DIGITS = 15; // с 16 уже упираемся в MAX_SAFE_INTEGER\n\nexport function parseNumber(value: string | number | null = '') {\n if (typeof value === 'number') return value;\n\n const pseudoSeparatorsRegExp = new RegExp(`[${SEPARATORS.join('')}]`, 'gi');\n\n return value\n ? parseFloat(\n value\n .replace(new RegExp(`[^${MINUS_SIGN}${SEPARATORS.join('')}0-9]`, 'gi'), '')\n .replace(pseudoSeparatorsRegExp, '.'),\n )\n : NaN;\n}\n\n/**\n * Преобразовать число в строку с заменой экспоненты на десятичную дробь\n */\nexport function stringifyNumberWithoutExp(value: number): string {\n const valueString = String(value);\n const [numberPart, expPart] = valueString.split('e-');\n\n let valueWithoutExp = valueString;\n\n if (expPart) {\n const [, fractionalPart] = numberPart.split('.');\n const decimalDigits = Number(expPart) + (fractionalPart?.length || 0);\n\n valueWithoutExp = value.toFixed(decimalDigits);\n }\n\n return valueWithoutExp;\n}\n\nconst getNumberRegExp = (min: number, fractionLength: number): RegExp => {\n let reStr = '[0-9]*';\n\n if (min < 0) {\n reStr = `(\\\\${MINUS_SIGN})?${reStr}`;\n }\n\n if (fractionLength !== 0) {\n reStr = `${reStr}[${SEPARATORS.map((s) => `\\\\${s}`).join('')}]?[0-9]{0,${\n fractionLength || MAX_DIGITS\n }}`;\n }\n\n return new RegExp(`^${reStr}$`);\n};\n\nexport function createMaskOptions({\n separator,\n fractionLength,\n min,\n max,\n}: {\n separator: string;\n fractionLength: number;\n min: number;\n max: number;\n}): MaskitoOptions {\n return {\n mask: getNumberRegExp(min, fractionLength),\n preprocessors: [\n createPseudoSeparatorPreprocessor(separator),\n createNotEmptyIntegerPartPreprocessor({ separator, fractionLength }),\n createZeroFractionLengthPreprocessor(fractionLength, separator),\n createRepeatedSeparatorPreprocessor(separator),\n ],\n postprocessors: [\n createLeadingZeroesValidationPostprocessor(separator),\n createMinMaxPostprocessor({ min, max, separator }),\n ],\n plugins: [createNotEmptyPartsPlugin(separator), createMinMaxPlugin({ min, max })],\n };\n}\n\n/**\n * Заполняет целочисленную часть при вводе separator.\n * @example Type , => 0,\n */\nfunction createNotEmptyIntegerPartPreprocessor({\n separator,\n fractionLength,\n}: {\n separator: string;\n fractionLength: number;\n}): MaskitoPreprocessor {\n const startWithDecimalSepRegExp = new RegExp(`^\\\\D*\\\\${separator}`);\n\n return ({ elementState, data }) => {\n const { value, selection } = elementState;\n const [from] = selection;\n\n if (\n fractionLength <= 0 ||\n value.includes(separator) ||\n !data.match(startWithDecimalSepRegExp)\n ) {\n return { elementState, data };\n }\n\n const digitsBeforeCursor = value.slice(0, from).match(/\\d+/);\n\n return {\n elementState,\n data: digitsBeforeCursor ? data : `0${data}`,\n };\n };\n}\n\n/**\n * Не позволяет вводить невалидный разделитель.\n */\nfunction createPseudoSeparatorPreprocessor(separator: string): MaskitoPreprocessor {\n const pseudoSeparatorsRegExp = new RegExp(`[${SEPARATORS.join('')}]`, 'gi');\n\n return ({ elementState, data }) => {\n const { value, selection } = elementState;\n\n return {\n elementState: {\n selection,\n value: value.replace(pseudoSeparatorsRegExp, separator),\n },\n data: data.replace(pseudoSeparatorsRegExp, separator),\n };\n };\n}\n\n/**\n * Помогает верно обрезать значения при вставке, если fractionLength===0\n * @example paste 123,123 -> 123\n */\nfunction createZeroFractionLengthPreprocessor(\n fractionLength: number,\n separator: string,\n): MaskitoPreprocessor {\n if (fractionLength > 0) {\n return (state) => state;\n }\n\n const decimalPartRegExp = new RegExp(`\\\\${separator}.*$`, 'g');\n\n return ({ elementState, data }) => {\n const { value, selection } = elementState;\n const [from, to] = selection;\n const newValue = value.replace(decimalPartRegExp, '');\n\n return {\n elementState: {\n selection: [Math.min(from, newValue.length), Math.min(to, newValue.length)],\n value: newValue,\n },\n data: data.replace(decimalPartRegExp, ''),\n };\n };\n}\n\n/**\n * Запрещает вводить второй сепаратор\n */\nfunction createRepeatedSeparatorPreprocessor(separator: string): MaskitoPreprocessor {\n return ({ elementState, data }) => {\n const { value, selection } = elementState;\n const [from, to] = selection;\n\n return {\n elementState,\n data:\n !value.includes(separator) || value.slice(from, to + 1).includes(separator)\n ? data\n : data.replace(new RegExp(`\\\\${separator}`), ''),\n };\n };\n}\n\n/**\n * Удаляет лишние нули в начале целой части.\n * @example 0,|00005 => Backspace => |5\n * @example -0,|00005 => Backspace => -|5\n * @example \"000000\" => 0|\n * @example 0| => Type \"5\" => 5|\n */\nfunction createLeadingZeroesValidationPostprocessor(separator: string): MaskitoPostprocessor {\n const trimLeadingZeroes = (value: string): string =>\n value\n .replace(new RegExp('^(\\\\D+)?0+(?=0)'), '$1')\n .replace(new RegExp('^(\\\\D+)?0+(?=[1-9])'), '$1');\n\n const countTrimmedZeroesBefore = (value: string, index: number): number => {\n const valueBefore = value.slice(0, index);\n const followedByZero = value.slice(index).startsWith('0');\n\n return (\n valueBefore.length - trimLeadingZeroes(valueBefore).length + (followedByZero ? 1 : 0)\n );\n };\n\n return ({ value, selection }) => {\n const [from, to] = selection;\n const hasSeparator = value.includes(separator);\n const [integerPart, decimalPart = ''] = value.split(separator);\n const zeroTrimmedIntegerPart = trimLeadingZeroes(integerPart);\n\n if (integerPart === zeroTrimmedIntegerPart) {\n return { value, selection };\n }\n\n const newFrom = from - countTrimmedZeroesBefore(value, from);\n const newTo = to - countTrimmedZeroesBefore(value, to);\n\n return {\n value: zeroTrimmedIntegerPart + (hasSeparator ? separator : '') + decimalPart,\n selection: [Math.max(newFrom, 0), Math.max(newTo, 0)],\n };\n };\n}\n\n/**\n * Валидирует значение с учетом min max значений.\n * Работает совместно с createMinMaxPlugin\n */\nfunction createMinMaxPostprocessor({\n min,\n max,\n separator,\n}: {\n min: number;\n max: number;\n separator: string;\n}): MaskitoPostprocessor {\n return ({ value, selection }) => {\n const parsedNumber = parseNumber(value);\n\n const limitedValue =\n /**\n * Здесь невозможно ограничить нижнюю границу, если пользователь вводит положительное число.\n * То же самое для верхней границы и отрицательного числа.\n * Если min=5, то без этого условия не получится ввести 40, похожая ситуация и с отрицательным max\n */\n parsedNumber > 0 ? Math.min(parsedNumber, max) : Math.max(parsedNumber, min);\n\n if (!Number.isNaN(parsedNumber) && limitedValue !== parsedNumber) {\n const newValue = `${limitedValue}`.replace('.', separator);\n\n return {\n value: newValue,\n selection: [newValue.length, newValue.length],\n };\n }\n\n return {\n value,\n selection,\n };\n };\n}\n\nexport function createMinMaxPlugin({ min, max }: { min: number; max: number }): MaskitoPlugin {\n return (element, options) => {\n const listener = () => {\n const parsedNumber = parseNumber(element.value);\n\n const clampedNumber = fnUtils.clamp(parsedNumber, min, max);\n\n if (!Number.isNaN(parsedNumber) && parsedNumber !== clampedNumber) {\n element.value = maskitoTransform(stringifyNumberWithoutExp(clampedNumber), options);\n element.dispatchEvent(new Event('input', { bubbles: true }));\n }\n };\n\n const evListenerOptions = { capture: true };\n\n element.addEventListener('blur', listener, evListenerOptions);\n\n return () => element.removeEventListener('blur', listener, evListenerOptions);\n };\n}\n\nexport function createNotEmptyPartsPlugin(separator: string): MaskitoPlugin {\n return (element) => {\n const listener = () => {\n const newValue = element.value\n // 0,9000000 -> 0,9\n .replace(new RegExp(`(\\\\${separator}\\\\d*?)(0+$)`), '$1')\n // ,2 => 0,2\n .replace(new RegExp(`^(\\\\D+)?\\\\${separator}`), `$10${separator}`)\n // 0, -> 0\n .replace(new RegExp(`\\\\${separator}$`), '')\n // -0 -> 0\n .replace(new RegExp(`^${MINUS_SIGN}0$`), '0')\n // - -> ''\n .replace(new RegExp(`^${MINUS_SIGN}$`), '');\n\n if (newValue !== element.value) {\n element.value = newValue;\n element.dispatchEvent(new Event('input', { bubbles: true }));\n }\n };\n\n const evListenerOptions = { capture: true };\n\n element.addEventListener('blur', listener, evListenerOptions);\n\n return () => element.removeEventListener('blur', listener, evListenerOptions);\n };\n}\n\nexport function getNumberInputTestIds(dataTestId: string) {\n return {\n input: dataTestId,\n inputWrapper: getDataTestId(dataTestId, 'form-control'),\n inputWrapperInner: getDataTestId(dataTestId, 'form-control-inner'),\n leftAddons: getDataTestId(dataTestId, 'form-control-left-addons'),\n rightAddons: getDataTestId(dataTestId, 'form-control-right-addons'),\n error: getDataTestId(dataTestId, 'form-control-error-message'),\n hint: getDataTestId(dataTestId, 'form-control-hint'),\n decrementButton: getDataTestId(dataTestId, 'decrement-button'),\n incrementButton: getDataTestId(dataTestId, 'increment-button'),\n };\n}\n"],"names":["fnUtils","maskitoTransform","getDataTestId"],"mappings":";;;;;;;AAAA;AAWO,IAAM,UAAU,GAAG;IACb,UAAU,GAAG,CAAC,GAAG,EAAE,GAAG;AACtB,IAAA,gBAAgB,GAAG,IAAA,CAAA,GAAA,CAAA,CAAC,EAAI,EAAE,CAAA,GAAG;AAC7B,IAAA,gBAAgB,GAAG,CAAC;AACpB,IAAA,UAAU,GAAG,GAAG;AAEvB,SAAU,WAAW,CAAC,KAAkC,EAAA;AAAlC,IAAA,IAAA,KAAA,KAAA,MAAA,EAAA,EAAA,KAAkC,GAAA,EAAA,CAAA;IAC1D,IAAI,OAAO,KAAK,KAAK,QAAQ;AAAE,QAAA,OAAO,KAAK;AAE3C,IAAA,IAAM,sBAAsB,GAAG,IAAI,MAAM,CAAC,WAAI,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC,EAAA,GAAA,CAAG,EAAE,IAAI,CAAC;AAE3E,IAAA,OAAO;UACD,UAAU,CACN;AACK,aAAA,OAAO,CAAC,IAAI,MAAM,CAAC,IAAK,CAAA,MAAA,CAAA,UAAU,SAAG,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC,EAAM,MAAA,CAAA,EAAE,IAAI,CAAC,EAAE,EAAE;AACzE,aAAA,OAAO,CAAC,sBAAsB,EAAE,GAAG,CAAC;UAE7C,GAAG;AACb;AAEA;;AAEG;AACG,SAAU,yBAAyB,CAAC,KAAa,EAAA;AACnD,IAAA,IAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC;AAC3B,IAAA,IAAA,EAAwB,GAAA,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,EAA9C,UAAU,GAAA,EAAA,CAAA,CAAA,CAAA,EAAE,OAAO,QAA2B;IAErD,IAAI,eAAe,GAAG,WAAW;AAEjC,IAAA,IAAI,OAAO,EAAE;QACH,IAAA,EAAA,GAAqB,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iB,EAAEA,kBAAa,CAAC,UAAU,EAAE,oBAAoB,CAAC;AAClE,QAAA,UAAU,EAAEA,kBAAa,CAAC,UAAU,EAAE,0BAA0B,CAAC;AACjE,QAAA,WAAW,EAAEA,kBAAa,CAAC,UAAU,EAAE,2BAA2B,CAAC;AACnE,QAAA,KAAK,EAAEA,kBAAa,CAAC,UAAU,EAAE,4BAA4B,CAAC;AAC9D,QAAA,IAAI,EAAEA,kBAAa,CAAC,UAAU,EAAE,mBAAmB,CAAC;AACpD,QAAA,eAAe,EAAEA,kBAAa,CAAC,UAAU,EAAE,kBAAkB,CAAC;AAC9D,QAAA,eAAe,EAAEA,kBAAa,CAAC,UAAU,EAAE,kBAAkB,CAAC;KACjE;AACL;;;;;;;;;;;;;;"}
|
|
@@ -5,12 +5,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var tslib = require('tslib');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var desktop = require('@alfalab/core-components-input/desktop');
|
|
8
|
-
var
|
|
8
|
+
var Component = require('../components/number-input/Component.js');
|
|
9
9
|
|
|
10
10
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
11
11
|
|
|
12
12
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
13
13
|
|
|
14
|
-
var NumberInputDesktop = React.forwardRef(function (props, ref) { return React__default.default.createElement(
|
|
14
|
+
var NumberInputDesktop = React.forwardRef(function (props, ref) { return React__default.default.createElement(Component.NumberInput, tslib.__assign({}, props, { Input: desktop.InputDesktop, ref: ref, view: 'desktop' })); });
|
|
15
15
|
|
|
16
16
|
exports.NumberInputDesktop = NumberInputDesktop;
|
|
17
|
+
//# sourceMappingURL=Component.desktop.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Component.desktop.js","sources":["../../src/desktop/Component.desktop.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { InputDesktop } from '@alfalab/core-components-input/desktop';\n\nimport { NumberInput, NumberInputProps } from '../components/number-input';\n\nexport type NumberInputDesktopProps = Omit<NumberInputProps, 'Input' | 'breakpoint' | 'view'>;\n\nexport const NumberInputDesktop = forwardRef<HTMLInputElement, NumberInputDesktopProps>(\n (props, ref) => <NumberInput {...props} Input={InputDesktop} ref={ref} view='desktop' />,\n);\n"],"names":["forwardRef","React","NumberInput","__assign","InputDesktop"],"mappings":";;;;;;;;;;;;;AAQO,IAAM,kBAAkB,GAAGA,gBAAU,CACxC,UAAC,KAAK,EAAE,GAAG,EAAA,EAAK,OAAAC,sBAAA,CAAA,aAAA,CAACC,qBAAW,EAAKC,cAAA,CAAA,EAAA,EAAA,KAAK,EAAE,EAAA,KAAK,EAAEC,oBAAY,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAC,SAAS,EAAA,CAAA,CAAG,CAAxE,EAAwE;;;;"}
|
package/desktop/index.js
CHANGED
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var Component_desktop = require('./Component.desktop.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.NumberInputDesktop =
|
|
9
|
+
exports.NumberInputDesktop = Component_desktop.NumberInputDesktop;
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|