forked from uber/baseweb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(map-marker): support two lines in map marker (uber#5207)
* feat(map-marker): support two lines in map marker * feat(map-marker): wrap up two line changes for map marker * test(vrt): update visual snapshots for 81f4ede [skip ci] (uber#5226) Co-authored-by: UberOpenSourceBot <[email protected]> Co-authored-by: UberOpenSourceBot <[email protected]> Co-authored-by: UberOpenSourceBot <[email protected]>
- Loading branch information
1 parent
8537953
commit d81ad7d
Showing
45 changed files
with
404 additions
and
559 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
documentation-site/examples/floating-marker/secondary-label-color.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// @flow | ||
import * as React from 'react'; | ||
import { | ||
FloatingMarker, | ||
FLOATING_MARKER_SIZES, | ||
} from 'baseui/map-marker'; | ||
|
||
export default function Example() { | ||
return ( | ||
<FloatingMarker | ||
size={FLOATING_MARKER_SIZES.medium} | ||
label="Pickup" | ||
secondaryLabel="Mission Bay 3" | ||
overrides={{ | ||
Label: { | ||
style: ({$theme}) => ({ | ||
color: $theme.colors.contentTertiary, | ||
}), | ||
}, | ||
}} | ||
/> | ||
); | ||
} |
22 changes: 22 additions & 0 deletions
22
documentation-site/examples/floating-marker/secondary-label-color.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import * as React from 'react'; | ||
import { | ||
FloatingMarker, | ||
FLOATING_MARKER_SIZES, | ||
} from 'baseui/map-marker'; | ||
|
||
export default function Example() { | ||
return ( | ||
<FloatingMarker | ||
size={FLOATING_MARKER_SIZES.medium} | ||
label="Pickup" | ||
secondaryLabel="Mission Bay 3" | ||
overrides={{ | ||
Label: { | ||
style: ({$theme}) => ({ | ||
color: $theme.colors.contentTertiary, | ||
}), | ||
}, | ||
}} | ||
/> | ||
); | ||
} |
16 changes: 16 additions & 0 deletions
16
documentation-site/examples/floating-marker/secondary-label.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// @flow | ||
import * as React from 'react'; | ||
import { | ||
FloatingMarker, | ||
FLOATING_MARKER_SIZES, | ||
} from 'baseui/map-marker'; | ||
|
||
export default function Example() { | ||
return ( | ||
<FloatingMarker | ||
size={FLOATING_MARKER_SIZES.large} | ||
label="Uber HQ" | ||
secondaryLabel="Mission Bay 3" | ||
/> | ||
); | ||
} |
15 changes: 15 additions & 0 deletions
15
documentation-site/examples/floating-marker/secondary-label.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import * as React from 'react'; | ||
import { | ||
FloatingMarker, | ||
FLOATING_MARKER_SIZES, | ||
} from 'baseui/map-marker'; | ||
|
||
export default function Example() { | ||
return ( | ||
<FloatingMarker | ||
size={FLOATING_MARKER_SIZES.large} | ||
label="Uber HQ" | ||
secondaryLabel="Mission Bay 3" | ||
/> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.