@synerise/ds-input-number 2.0.12 → 2.1.1

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/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.1.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-input-number@2.1.0...@synerise/ds-input-number@2.1.1) (2026-11-03)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-input-number
9
+
10
+
11
+
12
+
13
+
14
+ # [2.1.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-input-number@2.0.12...@synerise/ds-input-number@2.1.0) (2026-10-29)
15
+
16
+
17
+ ### Features
18
+
19
+ * integrate Token Studio design tokens across the design system ([aabb447](https://github.com/Synerise/synerise-design/commit/aabb447edfb2d0c85e3de1f07e809ef84083453b))
20
+
21
+
22
+
23
+
24
+
6
25
  ## [2.0.12](https://github.com/Synerise/synerise-design/compare/@synerise/ds-input-number@2.0.11...@synerise/ds-input-number@2.0.12) (2026-10-28)
7
26
 
8
27
  **Note:** Version bump only for package @synerise/ds-input-number
package/CLAUDE.md CHANGED
@@ -98,8 +98,9 @@ import InputNumber from '@synerise/ds-input-number';
98
98
  All styling lives in `InputNumber.styles.tsx` as DS-native styled-components driven by transient
99
99
  `$`-props and `:focus-within` (no antd LESS, no `.ant-*`/`.ds-*` styling selectors). The
100
100
  `ant-input-number-*` and `ds-input-number-*` class names are kept on the elements as hooks only
101
- (ui-tests / interim external CSS). Theme tokens used: `grey-700` (text), `grey-300` (idle border),
102
- `blue-600` (focus border), `red-600`/`red-050` (error), `grey-500` (placeholder), `grey-050` (addon).
101
+ (ui-tests / interim external CSS). Tokens used: the shared `--ds-form-field-*` set — `text-value`,
102
+ `border-default` (idle), `border-hover`, `border-focus` / `bg-focus`, `border-validated` / `bg-validated`
103
+ (error), `text-placeholder`, `affix-*` (addon), `bg-disabled` / `text-disabled` — plus `--ds-opacity-disabled`.
103
104
 
104
105
  > **Deep import**: `InputNumber.styles.tsx` imports `autoresizeConfObjToCss` from
105
106
  > `@synerise/ds-input/dist/Input.styles` — a fragile internal path (pre-existing; flagged as an
@@ -1,23 +1,23 @@
1
1
  import styled, { css } from "styled-components";
2
2
  import { autoresizeConfObjToCss } from "@synerise/ds-input";
3
3
  import { ANGLE_DOWN_SVG, ANGLE_UP_SVG } from "./constants/inputNumber.constants.js";
4
- const handlerGlyph = /* @__PURE__ */ css(["position:relative;flex:1 1 50%;min-height:0;cursor:pointer;user-select:none;&::before{content:'';position:absolute;inset:0;background-color:", ";mask-repeat:no-repeat;mask-position:center;mask-size:16px 16px;-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:16px 16px;}& > svg,& > i{display:none;}"], (props) => props.theme.palette["grey-600"]);
4
+ const handlerGlyph = /* @__PURE__ */ css(["position:relative;flex:1 1 50%;min-height:0;cursor:pointer;user-select:none;&::before{content:'';position:absolute;inset:0;background-color:var(--ds-form-icon-color-default);mask-repeat:no-repeat;mask-position:center;mask-size:16px 16px;-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:16px 16px;}& > svg,& > i{display:none;}"]);
5
5
  const HandlerUp = /* @__PURE__ */ styled.span.withConfig({
6
6
  displayName: "InputNumberstyles__HandlerUp",
7
7
  componentId: "sc-abrul0-0"
8
- })(["", " &::before{mask-image:url('", "');-webkit-mask-image:url('", "');}", ""], handlerGlyph, ANGLE_UP_SVG, ANGLE_UP_SVG, (props) => props.$disabled && css(["cursor:not-allowed;opacity:0.4;"]));
8
+ })(["", " &::before{mask-image:url('", "');-webkit-mask-image:url('", "');}", ""], handlerGlyph, ANGLE_UP_SVG, ANGLE_UP_SVG, (props) => props.$disabled && css(["cursor:not-allowed;opacity:var(--ds-opacity-disabled);"]));
9
9
  const HandlerDown = /* @__PURE__ */ styled.span.withConfig({
10
10
  displayName: "InputNumberstyles__HandlerDown",
11
11
  componentId: "sc-abrul0-1"
12
- })(["", " &::before{mask-image:url('", "');-webkit-mask-image:url('", "');}border-top:1px solid ", ";", ""], handlerGlyph, ANGLE_DOWN_SVG, ANGLE_DOWN_SVG, (props) => props.theme.palette["grey-300"], (props) => props.$disabled && css(["cursor:not-allowed;opacity:0.4;"]));
12
+ })(["", " &::before{mask-image:url('", "');-webkit-mask-image:url('", "');}border-top:1px solid var(--ds-form-field-border-default);", ""], handlerGlyph, ANGLE_DOWN_SVG, ANGLE_DOWN_SVG, (props) => props.$disabled && css(["cursor:not-allowed;opacity:var(--ds-opacity-disabled);"]));
13
13
  const HandlerWrap = /* @__PURE__ */ styled.div.withConfig({
14
14
  displayName: "InputNumberstyles__HandlerWrap",
15
15
  componentId: "sc-abrul0-2"
16
- })(["position:absolute;z-index:3;top:1px;right:1px;width:22px;height:30px;display:flex;flex-direction:column;border-left:1px solid ", ";opacity:0;transition:opacity 0.24s linear 0.1s;"], (props) => props.theme.palette["grey-300"]);
16
+ })(["position:absolute;z-index:3;top:1px;right:1px;width:22px;height:30px;display:flex;flex-direction:column;border-left:1px solid var(--ds-form-field-border-default);opacity:0;transition:opacity 0.24s linear 0.1s;"]);
17
17
  const InputField = /* @__PURE__ */ styled.input.withConfig({
18
18
  displayName: "InputNumberstyles__InputField",
19
19
  componentId: "sc-abrul0-3"
20
- })(["box-sizing:border-box;display:block;width:100%;height:100%;text-align:left;&&{height:100%;padding:", ";line-height:1;}color:inherit;font-family:inherit;font-size:13px;font-variant-numeric:tabular-nums;background:transparent;border:0;outline:0;transition:unset;&::placeholder{color:", ";}&:focus{box-shadow:unset;}"], (props) => props.$autoResize ? "0" : "7px 11px", (props) => props.theme.palette["grey-500"]);
20
+ })(["box-sizing:border-box;display:block;width:100%;height:100%;text-align:left;&&{height:100%;padding:", ";line-height:1;}color:inherit;font-family:inherit;font-size:13px;font-variant-numeric:tabular-nums;background:transparent;border:0;outline:0;transition:unset;&::placeholder{color:var(--ds-form-field-text-placeholder);}&:focus{box-shadow:unset;}"], (props) => props.$autoResize ? "0" : "7px 11px");
21
21
  const InputFieldWrap = /* @__PURE__ */ styled.div.withConfig({
22
22
  displayName: "InputNumberstyles__InputFieldWrap",
23
23
  componentId: "sc-abrul0-4"
@@ -25,7 +25,7 @@ const InputFieldWrap = /* @__PURE__ */ styled.div.withConfig({
25
25
  const Addon = /* @__PURE__ */ styled.div.withConfig({
26
26
  displayName: "InputNumberstyles__Addon",
27
27
  componentId: "sc-abrul0-5"
28
- })(["display:flex;align-items:center;padding:0 12px;background-color:", ";border:1px solid ", ";&:first-child{border-radius:3px 0 0 3px;border-right-width:0;}&:last-child{border-radius:0 3px 3px 0;border-left-width:0;}"], (props) => props.theme.palette["grey-050"], (props) => props.theme.palette["grey-300"]);
28
+ })(["display:flex;align-items:center;padding:0 12px;color:var(--ds-form-field-affix-text);background-color:var(--ds-form-field-affix-bg);border:1px solid var(--ds-form-field-affix-border);&:first-child{border-radius:3px 0 0 3px;border-right-width:0;}&:last-child{border-radius:0 3px 3px 0;border-left-width:0;}"]);
29
29
  const Group = /* @__PURE__ */ styled.div.withConfig({
30
30
  displayName: "InputNumberstyles__Group",
31
31
  componentId: "sc-abrul0-6"
@@ -37,7 +37,7 @@ const GroupWrapper = /* @__PURE__ */ styled.div.withConfig({
37
37
  const InputNumberRoot = /* @__PURE__ */ styled.div.withConfig({
38
38
  displayName: "InputNumberstyles__InputNumberRoot",
39
39
  componentId: "sc-abrul0-8"
40
- })(["position:relative;box-sizing:border-box;width:100%;height:", ";line-height:1.38;color:", ";background:", ";border:0;border-radius:", ";box-shadow:", ";&:focus-within{box-shadow:", ";background:", ";}", " &:hover ", ",&:focus-within ", "{opacity:1;}&:focus-within ", "{width:21px;height:28px;top:2px;right:2px;}", " ", " ", ""], (props) => props.$size === "large" ? "48px" : "32px", (props) => props.theme.palette["grey-700"], (props) => props.$error ? props.theme.palette["red-050"] : props.theme.palette.white, (props) => `${props.$hasPrefix ? "0" : "3px"} ${props.$hasSuffix ? "0" : "3px"} ${props.$hasSuffix ? "0" : "3px"} ${props.$hasPrefix ? "0" : "3px"}`, (props) => props.$error ? `inset 0px 0px 0px 2px ${props.theme.palette["red-600"]}` : `inset 0px 0px 0px 1px ${props.theme.palette["grey-300"]}`, (props) => props.$error ? `inset 0px 0px 0px 2px ${props.theme.palette["red-600"]}` : `inset 0px 0px 0px 2px ${props.theme.palette["blue-600"]}`, (props) => props.$error ? props.theme.palette["red-050"] : props.theme.palette["blue-050"], (props) => !props.$error && !props.$disabled && css(["&:hover:not(:focus-within){box-shadow:inset 0px 0px 0px 1px ", ";}"], props.theme.palette["grey-400"]), HandlerWrap, HandlerWrap, HandlerWrap, (props) => props.$error && css(["", "{width:21px;height:28px;top:2px;right:2px;}"], HandlerWrap), (props) => props.$size === "large" && css(["", "{width:24px;height:44px;}&:focus-within ", "{height:44px;}"], HandlerWrap, HandlerWrap), (props) => props.$disabled && css(["cursor:not-allowed;background:", ";", "{cursor:not-allowed;color:", ";}"], props.theme.palette["grey-050"], InputField, props.theme.palette["grey-400"]));
40
+ })(["position:relative;box-sizing:border-box;width:100%;height:", ";line-height:1.38;color:var(--ds-form-field-text-value);background:", ";border:0;border-radius:", ";box-shadow:", ";&:focus-within{box-shadow:", ";background:", ";}", " &:hover ", ",&:focus-within ", "{opacity:1;}&:focus-within ", "{width:21px;height:28px;top:2px;right:2px;}", " ", " ", ""], (props) => props.$size === "large" ? "48px" : "32px", (props) => props.$error ? "var(--ds-form-field-bg-validated)" : "var(--ds-form-field-bg-default)", (props) => `${props.$hasPrefix ? "0" : "3px"} ${props.$hasSuffix ? "0" : "3px"} ${props.$hasSuffix ? "0" : "3px"} ${props.$hasPrefix ? "0" : "3px"}`, (props) => props.$error ? "inset 0px 0px 0px 2px var(--ds-form-field-border-validated)" : "inset 0px 0px 0px 1px var(--ds-form-field-border-default)", (props) => props.$error ? "inset 0px 0px 0px 2px var(--ds-form-field-border-validated)" : "inset 0px 0px 0px 2px var(--ds-form-field-border-focus)", (props) => props.$error ? "var(--ds-form-field-bg-validated)" : "var(--ds-form-field-bg-focus)", (props) => !props.$error && !props.$disabled && css(["&:hover:not(:focus-within){box-shadow:inset 0px 0px 0px 1px var(--ds-form-field-border-hover);}"]), HandlerWrap, HandlerWrap, HandlerWrap, (props) => props.$error && css(["", "{width:21px;height:28px;top:2px;right:2px;}"], HandlerWrap), (props) => props.$size === "large" && css(["", "{width:24px;height:44px;}&:focus-within ", "{height:44px;}"], HandlerWrap, HandlerWrap), (props) => props.$disabled && css(["cursor:not-allowed;background:var(--ds-form-field-bg-disabled);", "{cursor:not-allowed;color:var(--ds-form-field-text-disabled);}"], InputField));
41
41
  const InputNumberWrapper = /* @__PURE__ */ styled.div.withConfig({
42
42
  displayName: "InputNumberstyles__InputNumberWrapper",
43
43
  componentId: "sc-abrul0-9"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-input-number",
3
- "version": "2.0.12",
3
+ "version": "2.1.1",
4
4
  "description": "Input-Number UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -39,9 +39,9 @@
39
39
  "sideEffects": false,
40
40
  "types": "dist/index.d.ts",
41
41
  "dependencies": {
42
- "@synerise/ds-form-field": "^2.0.11",
43
- "@synerise/ds-input": "^2.0.12",
44
- "@synerise/ds-utils": "^2.2.2"
42
+ "@synerise/ds-form-field": "^2.1.1",
43
+ "@synerise/ds-input": "^2.1.1",
44
+ "@synerise/ds-utils": "^2.3.1"
45
45
  },
46
46
  "devDependencies": {
47
47
  "vitest": "4"
@@ -51,5 +51,5 @@
51
51
  "react": ">=16.9.0 <= 18.3.1",
52
52
  "styled-components": "^5.3.3"
53
53
  },
54
- "gitHead": "c356039703d8826bbbdb6dadcb18bb008fea8bc5"
54
+ "gitHead": "2d2a540b35fddf8855da45f0dec2f4612c6d87b6"
55
55
  }