Skip to content

Commit 4059f91

Browse files
authored
[LG-5504] feat(input-box): add InputSegment (#3293)
* 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): 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 types to include value prop and remove unused segmentRefs and segments properties for improved clarity * testing * refactor(input-box): remove unused dependencies and update InputSegment types for consistency * update lock file * testing * testing build * testing build * refactor(input-box): rename charsPerSegment to charsCount for consistency across InputSegment components
1 parent ce2db91 commit 4059f91

File tree

17 files changed

+1930
-78
lines changed

17 files changed

+1930
-78
lines changed

packages/input-box/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@
2828
"access": "public"
2929
},
3030
"dependencies": {
31+
"@leafygreen-ui/a11y": "workspace:^",
3132
"@leafygreen-ui/emotion": "workspace:^",
3233
"@leafygreen-ui/lib": "workspace:^",
3334
"@leafygreen-ui/hooks": "workspace:^",
3435
"@leafygreen-ui/date-utils": "workspace:^",
35-
"@leafygreen-ui/palette": "workspace:^",
3636
"@leafygreen-ui/tokens": "workspace:^",
3737
"@leafygreen-ui/typography": "workspace:^"
3838
},

0 commit comments

Comments
 (0)