@talixo-ds/options-input 1.0.0 → 1.0.2

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.
Files changed (43) hide show
  1. package/dist/components/min-max-value-label.d.ts +3 -2
  2. package/dist/components/min-max-value-label.js +2 -2
  3. package/dist/components/min-max-value-label.js.map +1 -1
  4. package/dist/components/options-input-content-item.d.ts +2 -2
  5. package/dist/components/options-input-content-item.js +10 -10
  6. package/dist/components/options-input-content-item.js.map +1 -1
  7. package/dist/components/options-input-dropdown-item.d.ts +4 -3
  8. package/dist/components/options-input-dropdown-item.js +31 -31
  9. package/dist/components/options-input-dropdown-item.js.map +1 -1
  10. package/dist/options-input.d.ts +9 -9
  11. package/dist/options-input.js +44 -47
  12. package/dist/options-input.js.map +1 -1
  13. package/dist/utils.d.ts +1 -0
  14. package/dist/utils.js +2 -0
  15. package/dist/utils.js.map +1 -0
  16. package/package.json +15 -19
  17. package/src/__tests__/options-input.spec.tsx +147 -0
  18. package/src/__tests__/utils.spec.ts +12 -0
  19. package/src/components/__tests__/min-max-value-label.spec.tsx +19 -19
  20. package/src/components/__tests__/options-input-content-item.spec.tsx +52 -60
  21. package/src/components/__tests__/options-input-dropdown-item.spec.tsx +74 -85
  22. package/src/components/min-max-value-label.tsx +10 -15
  23. package/src/components/options-input-content-item.tsx +47 -54
  24. package/src/components/options-input-dropdown-item.tsx +133 -138
  25. package/src/options-input.tsx +247 -251
  26. package/src/utils.ts +1 -0
  27. package/tsconfig.build.json +8 -0
  28. package/__tests__/__snapshots__/options-input.spec.tsx.snap +0 -119
  29. package/__tests__/options-input.spec.tsx +0 -242
  30. package/dist/components/__tests__/min-max-value-label.spec.d.ts +0 -1
  31. package/dist/components/__tests__/min-max-value-label.spec.js +0 -21
  32. package/dist/components/__tests__/min-max-value-label.spec.js.map +0 -1
  33. package/dist/components/__tests__/options-input-content-item.spec.d.ts +0 -1
  34. package/dist/components/__tests__/options-input-content-item.spec.js +0 -49
  35. package/dist/components/__tests__/options-input-content-item.spec.js.map +0 -1
  36. package/dist/components/__tests__/options-input-dropdown-item.spec.d.ts +0 -1
  37. package/dist/components/__tests__/options-input-dropdown-item.spec.js +0 -67
  38. package/dist/components/__tests__/options-input-dropdown-item.spec.js.map +0 -1
  39. package/jest.config.js +0 -9
  40. package/src/components/__tests__/__snapshots__/min-max-value-label.spec.tsx.snap +0 -17
  41. package/src/components/__tests__/__snapshots__/options-input-content-item.spec.tsx.snap +0 -138
  42. package/src/components/__tests__/__snapshots__/options-input-dropdown-item.spec.tsx.snap +0 -134
  43. package/tsconfig.json +0 -8
@@ -1,134 +0,0 @@
1
- // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
-
3
- exports[`OptionsInputDropdownItem > should match snapshot 1`] = `
4
- <React.Fragment>
5
- <ForwardRef(Divider)
6
- sx={
7
- {
8
- "color": [Function],
9
- }
10
- }
11
- />
12
- <ForwardRef(ListItem)
13
- className="options-input__dropdown-item options-input__dropdown-item--empty"
14
- sx={
15
- {
16
- "display": "flex",
17
- "justifyContent": "space-between",
18
- }
19
- }
20
- >
21
- <ForwardRef(Box)
22
- alignItems="center"
23
- display="flex"
24
- >
25
- <div
26
- color="black"
27
- fontSize="small"
28
- />
29
- <ForwardRef(TextField)
30
- InputProps={
31
- {
32
- "disableUnderline": true,
33
- }
34
- }
35
- className="options-input__dropdown-item-input"
36
- inputProps={
37
- {
38
- "data-testid": "dropdown-item-input",
39
- "inputMode": "numeric",
40
- "pattern": "-?[0-9]*",
41
- "style": {
42
- "textAlign": "center",
43
- },
44
- }
45
- }
46
- onBlur={[MockFunction spy]}
47
- onChange={[Function]}
48
- value={0}
49
- variant="standard"
50
- />
51
- <ForwardRef(Box)
52
- display="flex"
53
- flexDirection="column"
54
- justifyContent="center"
55
- minWidth="5rem"
56
- paddingLeft={1}
57
- paddingRight={2}
58
- >
59
- <ForwardRef(Typography)
60
- color="black"
61
- fontSize={13}
62
- fontWeight={600}
63
- sx={
64
- {
65
- "my": 0,
66
- }
67
- }
68
- variant="caption"
69
- >
70
- luggage-id
71
- </ForwardRef(Typography)>
72
- <ForwardRef(Box)
73
- data-testid="option-details-container"
74
- height="1rem"
75
- onMouseEnter={[Function]}
76
- onMouseLeave={[Function]}
77
- position="relative"
78
- >
79
- <ForwardRef(Typography)
80
- color="gray"
81
- data-testid="option-details"
82
- sx={
83
- {
84
- "my": 0,
85
- "position": "fixed",
86
- "zIndex": 10000,
87
- }
88
- }
89
- variant="caption"
90
- >
91
- This is your lu...
92
- </ForwardRef(Typography)>
93
- </ForwardRef(Box)>
94
- </ForwardRef(Box)>
95
- </ForwardRef(Box)>
96
- <ForwardRef(ButtonGroup)
97
- className="options-input__dropdown-item-buttons"
98
- size="small"
99
- variant="outlined"
100
- >
101
- <ForwardRef(Button)
102
- className="options-input__dropdown-item-button"
103
- color="primary"
104
- disabled={false}
105
- onClick={[Function]}
106
- role="button"
107
- >
108
- <Memo
109
- sx={
110
- {
111
- "color": "primary",
112
- }
113
- }
114
- />
115
- </ForwardRef(Button)>
116
- <ForwardRef(Button)
117
- className="options-input__dropdown-item-button"
118
- color="primary"
119
- disabled={false}
120
- onClick={[Function]}
121
- role="button"
122
- >
123
- <Memo
124
- sx={
125
- {
126
- "color": "primary",
127
- }
128
- }
129
- />
130
- </ForwardRef(Button)>
131
- </ForwardRef(ButtonGroup)>
132
- </ForwardRef(ListItem)>
133
- </React.Fragment>
134
- `;
package/tsconfig.json DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.json",
3
- "compilerOptions": {
4
- "outDir": "dist",
5
- "rootDir": "src"
6
- },
7
- "include": ["src"]
8
- }