Commit 7b57fe4
authored
[LG-5504] feat(input-box): add
* feat(input-box): enhance InputBox and InputSegment components with new features and documentation.
* feat(input-box): add '@leafygreen-ui/a11y' as a dependency in pnpm-lock.yaml
* fix(input-box): fix lint errors
* feat(input-box): set default size for InputBox in stories and refactor InputSegment styles for improved class handling
* feat(input-box): implement InputBoxContext and InputBoxProvider with associated types and tests
* remove segement files
* feat(input-box): implement InputSegment component with styles, tests, and stories
* feat(input-box): add @leafygreen-ui/a11y dependency and update InputSegment component references
* refactor(input-box): update createExplicitSegmentValidator tests to use object parameter format for improved clarity and consistency
* test(input-box): refactor InputBoxContext tests for improved readability by destructuring context values
* refactor(input-box): update InputBoxContext types to extend SharedInputBoxTypes and remove deprecated InputSegment types
* fix(input-box): correct comment formatting in testutils.mocks.ts for clarity
* feat(input-box): add InputSegment component for modular input handling
* feat(input-box): add placeholder for InputSegment types
* refactor(input-box): move InputSegmentChangeEventHandler import to shared types for better organization
* refactor(input-box): rename min and max props to minSegmentValue and maxSegmentValue for consistency
* refactor(input-box): simplify placeholder logic in InputSegment stories using defaultPlaceholderMock
* refactor(input-box): update InputSegment styles to use dynamic theme styles and improve organization
* feat(input-box): extend InputSegmentProps to include hours, minutes, and seconds segments
* refactor(input-box): rename onChange and onBlur props in InputSegment to improve clarity
* refactor(input-box): rename shouldSkipValidation prop to shouldValidate for clarity and consistency
* refactor(input-box): reorganize imports in testutils for better clarity and structure
* refactor(input-box): remove deprecated InputSegment types and update imports in InputBoxContext
* refactor(input-box): update InputSegmentChangeEventHandler import to use type alias from shared.types
* refactor(input-box): enhance InputSegment types and documentation, adding isInputSegment utility and improving component descriptions
* refactor(input-box): streamline InputSegment exports by removing unused types
* test(input-box): add accessibility test for InputSegment to ensure no violations when tooltip is closed
* refactor(input-box): update InputSegment to remove size prop and enhance type definitions for better clarity
* refactor(input-box): enhance InputSegment types by adding onChange and onBlur event handlers with detailed documentation
* refactor(input-box): update InputSegment types to extend from 'div' and include additional props for improved functionality
* refactor(input-box): simplify SharedInputBoxTypes by removing redundant properties and enhancing type clarity
* refactor(input-box): remove InputBoxContext and related tests to streamline input box functionality
* refactor(input-box): simplify InputSegment types by removing Value generic and updating related components for improved clarity
* refactor(input-box): update InputSegment and InputBox types to include value prop and streamline segment handling
* refactor(input-box): update InputSegment types to include value prop and remove unused segmentRefs and segments properties for improved clarity
* refactor(input-box): remove unused Size import from InputBox.spec.tsx for cleaner code
* refactor(input-box): enhance InputBox and InputSegment documentation, update props for clarity, and streamline type exports
* testing
* refactor(input-box): remove unused dependencies and update InputSegment types for consistency
* update lock file
* testing
* testing build
* testing build
* test(input-segment): add test for resetting value with complete zeros and update InputSegment story with segmentEnum
* refactor(input-box): update separator literal styles to use new token-based approach
* fix(input-segment): add missing line to check for number input handling
* refactor(input-segment): update comments and variable name for clarity in digit input handling
* refactor(input-box): update comment to reflect correct component responsible for increment/decrement logic
* refactor(input-segment): utilize isSingleDigit utility for digit input handling
* refactor(input-box): enhance documentation for InputBox component to clarify functionality and usage
* refactor(input-box): integrate size prop into InputBox and InputSegment components for enhanced customization
* refactor(input-box): migrate Size import to shared.types for consistent usage across components
* refactor(input-box): enhance InputBox and InputSegment tests with segmentRefs integration for improved focus handling
* feat(input-box): add comprehensive mocks for date and time segments in testutils for enhanced testing capabilities
* feat(input-box): integrate lodash for utility functions and enhance InputBox stories with date and time segment examples
* refactor(input-box): remove unused props from InputBox stories and testutils for cleaner code
* fix(input-box): ensure segments prop is required and handle error logging in InputBox component
* refactor(input-box): rename isSingleDigit to isSingleDigitKey and update README
* refactor(input-box): update README and InputSegment to use charsCount instead of charsPerSegment
* refactor(input-box): update useSegmentRefs to accept segmentRefs and improve test cases for segment handlingInputBox (#3285)1 parent 4059f91 commit 7b57fe4
File tree
24 files changed
+2070
-135
lines changed- packages/input-box
- src
- InputBox
- InputSegment
- hooks
- useSegmentRefs
- testutils
- utils
- isSingleDigitKey
24 files changed
+2070
-135
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
0 commit comments