Skip to content

Commit

Permalink
changes on properties (#225)
Browse files Browse the repository at this point in the history
* changes on properties

* yarn version check

* yarn build
  • Loading branch information
gaudyb committed Nov 8, 2023
1 parent 7b07ee2 commit 3a0efd0
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .yarn/versions/fa22cc94.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
releases:
"@essex/components": minor

declined:
- essex-toolkit-stories

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions packages/components/docs/report/components.api.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions packages/components/docs/report/components.api.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion packages/components/src/TimeBrush/TimeBrush.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ const DEFAULT_WIDTH = 800
const DEFAULT_HEIGHT = 24
const DEFAULT_BAR_WIDTH = 4
const BAR_GAP = 1
const DEFAULT_FOOTER_WIDTH = 18

export const TimeBrush: React.FC<TimeBrushProps> = memo(function TimeBrush({
width = DEFAULT_WIDTH,
height = DEFAULT_HEIGHT,
footerWidth = DEFAULT_FOOTER_WIDTH,
dateRange,
markedDate,
elements,
Expand Down Expand Up @@ -61,7 +63,7 @@ export const TimeBrush: React.FC<TimeBrushProps> = memo(function TimeBrush({
dateRange={dateRange}
brushRange={selectionRange}
width={width}
height={18}
height={footerWidth}
barWidth={barWidth}
onBrushEnd={handleBrushEnd}
roundToDay={true}
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/TimeBrush/TimeBrush.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export interface TimeBrushProps {
dateRange: [Date, Date]
width?: number
height?: number
footerWidth?: number
selectionRange?: [Date, Date]
markedDate?: Date
from?: string
Expand Down

0 comments on commit 3a0efd0

Please sign in to comment.