@tempoxyz/ds 0.3.9 → 0.3.10

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tempoxyz/ds",
3
3
  "type": "module",
4
- "version": "0.3.9",
4
+ "version": "0.3.10",
5
5
  "license": "MIT",
6
6
  "files": [
7
7
  "DESIGN.md",
@@ -9,7 +9,7 @@ const InvalidContext = createContext(false)
9
9
  /**
10
10
  * One-time passcode entry with a slot per character. Slots render by default from `length`.
11
11
  * Setting `invalid` fills the slots red and nudges them sideways. Setting `success` fills them
12
- * green and pops them in sequence.
12
+ * green.
13
13
  *
14
14
  * Base UI renders a `role="group"` of text inputs that accepts digits by default. Pasting a code
15
15
  * into a slot fills it and the slots after it. The first slot carries
@@ -124,14 +124,6 @@ const nudge = keyframes(
124
124
  { id: 'tds/web/otp-field/nudge' },
125
125
  )
126
126
 
127
- const pop = keyframes(
128
- {
129
- '0%, 100%': { transform: 'scale(1) !custom' },
130
- '45%': { transform: 'scale(1.12) !custom' },
131
- },
132
- { id: 'tds/web/otp-field/pop' },
133
- )
134
-
135
127
  namespace styles {
136
128
  export const input = style(
137
129
  {
@@ -158,21 +150,7 @@ namespace styles {
158
150
  '&:focus-visible': { backgroundColor: 'background.elevated', outlineColor: 'border.focus' },
159
151
  // Invalid and success fills follow focus, so a focused slot keeps its state fill.
160
152
  '&[data-invalid], [data-invalid] &': { backgroundColor: 'container.negative' },
161
- '[data-success] &': {
162
- animation: `${pop} 320ms ${vars.ease.overshoot} both !custom`,
163
- backgroundColor: 'container.positive',
164
- },
165
- // Delays follow the `animation` shorthand above, which would otherwise reset them.
166
- '[data-success] &:nth-child(2)': { animationDelay: '40ms !custom' },
167
- '[data-success] &:nth-child(3)': { animationDelay: '80ms !custom' },
168
- '[data-success] &:nth-child(4)': { animationDelay: '120ms !custom' },
169
- '[data-success] &:nth-child(5)': { animationDelay: '160ms !custom' },
170
- '[data-success] &:nth-child(6)': { animationDelay: '200ms !custom' },
171
- '[data-success] &:nth-child(7)': { animationDelay: '240ms !custom' },
172
- '[data-success] &:nth-child(8)': { animationDelay: '280ms !custom' },
173
- },
174
- '@media (prefers-reduced-motion: reduce)': {
175
- selectors: { '[data-success] &': { animation: 'none !custom' } },
153
+ '[data-success] &': { backgroundColor: 'container.positive' },
176
154
  },
177
155
  },
178
156
  { id: 'tds/web/otp-field/input' },