Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
cb5830c
Fix up existing TidCarouselV2 stories and components.
patcon Oct 12, 2024
20161bb
Added TidCarouselV2Static component and stories.
patcon Oct 12, 2024
8845d80
Added more stories to TidCarousel component.
patcon Oct 12, 2024
0b996f3
Added new stories for large numbers. Renamed to be more general. Ensu…
patcon Oct 12, 2024
ed6c59e
Convert TidCarouselV2Static to use basic theme-ui.
patcon Oct 14, 2024
ae13e3f
Set proper font-family in theme-ui.
patcon Oct 15, 2024
06b166b
Align proptypes for TidCarouselV2 and V2Static.
patcon Oct 15, 2024
3d546b3
Align TidCarouselV2 button height to V2Static.
patcon Oct 15, 2024
b4b255a
Allow switching between TidCarousel types in SelectionWidgetV2.
patcon Oct 15, 2024
8154c30
Was missing key from TidCarousel subcomponent.
patcon Oct 15, 2024
b0211aa
Test maxWidth on SelectionWidgetV2.
patcon Oct 15, 2024
9197aad
Shift number of rows in TidCarouselV2Static at breakpoint.
patcon Oct 15, 2024
4488330
Migrate some styling from style prop to theme-ui variants.
patcon Oct 15, 2024
106b336
Allow forwardRef on TidCarouselV2Static.
patcon Oct 15, 2024
1f5b1b8
Added theme-ui support to CurateV2 component, and made single-row at …
patcon Oct 15, 2024
30fd391
Aligned CurateV2Button styles and props.
patcon Oct 15, 2024
07b1a3b
Added MVP of accessible tabs for TidCarousel, with radix primitives.
patcon Oct 15, 2024
ae1f485
Added radix tabs to CurateV2 component.
patcon Oct 15, 2024
843f22e
Added flag for choosing accessible vs inaccessible TidCarouselV2Stati…
patcon Oct 15, 2024
d873129
Added isAccessible flag for CurateV2 stories.
patcon Oct 15, 2024
f5cf8ab
Use value for radix Tabs rather than defaultValue.
patcon Oct 16, 2024
c566367
Set up forwardRefs on all V2 components.
patcon Oct 16, 2024
0164211
Renamed TidCarouselV2 to TidCarouselV2Animated.
patcon Oct 16, 2024
da80e1f
Merge branch 'main' into implement-theme-ui
patcon Oct 16, 2024
e4c7ffd
Merge branch 'main' into implement-radix-tabs
patcon Oct 16, 2024
258f5c4
Renamed TidCarouselV2 to TidCarouselV2Animated.
patcon Oct 16, 2024
f732651
Added fractional percentage, instead of decimal.
patcon Oct 16, 2024
39ad05c
Aligned TidCarouselV2Static and Animated button props.
patcon Oct 16, 2024
8f4f869
More Aligning TidCarouselV2Animated with Static. Prep for theme-ui.
patcon Oct 16, 2024
85e5683
Using more styles from TidCarouselV2Static.
patcon Oct 16, 2024
d021613
Make TidCarouselV2 smoother when jumping to new row.
patcon Oct 16, 2024
43540bb
Merge branch 'implement-theme-ui' into implement-radix-tabs
patcon Oct 16, 2024
cf75781
Merge branch 'main' into implement-theme-ui
patcon Oct 16, 2024
16e8826
Merge branch 'implement-theme-ui' into implement-radix-tabs
patcon Oct 16, 2024
d62c266
Aligned button style for TidCarouselV2Animated and Static.
patcon Oct 16, 2024
9f4cd23
Get theme-ui working in TidCarouselV2Animated stories.
patcon Oct 16, 2024
d10c6fa
Added accessibility to TidCarouselV2Animated component.
patcon Oct 16, 2024
9ead84a
Small alignments in props of V2 components.
patcon Oct 16, 2024
670d547
Persist active state in button that's transitioning out.
patcon Oct 16, 2024
50938d6
Copied ExploreTid into our directory as ExploreTidV2.
patcon Oct 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .storybook/decorators.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,30 @@ export const withThemeUi = (Story) => (
</ThemeProvider>
)

const customParticipationTheme = Object.assign({}, compdemAdminTheme)
customParticipationTheme.fonts.body = "Arial"
customParticipationTheme.buttons.primary.border = 0
customParticipationTheme.buttons.primary.borderRadius = 4
customParticipationTheme.buttons.secondary = {
...customParticipationTheme.buttons.primary,
color: 'darkGray',
bg: 'lightGray',
fontFamily: 'body',
cursor: 'pointer'
}
customParticipationTheme["letterSpacings"] = {
button: 0.75,
}
customParticipationTheme.colors["polisBlue"] = "#03a9f4"
customParticipationTheme.colors["darkGray"] = "rgb(100,100,100)"
customParticipationTheme.colors["lightGray"] = "rgb(235,235,235)"

export const withParticipationThemeUi = (Story) => (
<ThemeProvider theme={customParticipationTheme}>
<Story />
</ThemeProvider>
)

export const withDelibThemeUi = (Story) => (
<ThemeProvider theme={haiDelibTheme}>
<Story />
Expand Down
284 changes: 284 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"storybook-branch-switcher": "^0.5.0"
},
"dependencies": {
"@radix-ui/react-tabs": "^1.1.1",
"@react-spring/web": "^9.7.4",
"color": "~4.2.3",
"d3-force": "~1.2.1",
Expand Down
2 changes: 1 addition & 1 deletion stories/2.OurComponents.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ As a helpful resource, here is a summary of existing components (each a **clicka

- <LinkTo kind="compdem/client-participation/CivicTechTO/CurateV2" story="Interactive">`CurateV2`</LinkTo>
(Replaces <LinkTo kind="compdem/client-participation/Curate" story="Interactive">`Curate`</LinkTo>)
- <LinkTo kind="compdem/client-participation/CivicTechTO/TidCarouselV2" story="Interactive">`TidCarouselV2`</LinkTo>
- <LinkTo kind="compdem/client-participation/CivicTechTO/TidCarouselV2Animated" story="Interactive">`TidCarouselV2Animated`</LinkTo>
and <LinkTo kind="compdem/client-participation/CivicTechTO/TidCarouselV2Static" story="Interactive">`TidCarouselV2Static`</LinkTo>
(Replaces <LinkTo kind="compdem/client-participation/TidCarousel" story="Interactive">`TidCarousel`</LinkTo>)
- <LinkTo kind="compdem/client-participation/CivicTechTO/SelectionWidgetV2" story="Interactive">`SelectionWidgetV2`</LinkTo>
Expand Down
Loading