Skip to content

Commit

Permalink
Merge pull request #288 from CivicDataLab/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
PixeledCode authored Dec 19, 2023
2 parents a0fd833 + 6e137f2 commit 7bc8861
Show file tree
Hide file tree
Showing 17 changed files with 734 additions and 969 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ export const DistrictSelector = () => {
fillOpacity={1}
mouseover={handleMouseOver}
mouseout={handleMouseOut}
defaultLayer="light_nolabels"
/>
)}
<div
Expand Down
3 changes: 2 additions & 1 deletion packages/opub-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "opub-ui",
"description": "OPub UI Library",
"version": "0.0.95",
"version": "0.0.96",
"private": false,
"license": "MIT",
"author": "CivicDataLab <tech@civicdatalab.in>",
Expand Down Expand Up @@ -115,6 +115,7 @@
"eslint-config-custom": "*",
"happy-dom": "^8.2.2",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.32",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-test-renderer": "^18.2.0",
Expand Down
4 changes: 3 additions & 1 deletion packages/opub-ui/src/components/Popover/Popover.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use client';

import { cn } from '../../utils';
import styles from './Popover.module.scss';
import * as Radix from '@radix-ui/react-popover';
import React from 'react';
Expand Down Expand Up @@ -38,6 +39,7 @@ const Content = React.forwardRef(
children,
isPortal = true,
isArrow = false,
className,
...props
}: PopoverContentProps,
forwardedRef: React.Ref<HTMLDivElement>
Expand All @@ -47,7 +49,7 @@ const Content = React.forwardRef(
return (
<PortalDom className={styles.Portal}>
<Radix.Content
className={styles.Content}
className={cn(styles.Content, className)}
sideOffset={5}
{...props}
ref={forwardedRef}
Expand Down
18 changes: 9 additions & 9 deletions packages/opub-viz/.storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
// import '@storybook/addon-actions';
// import '@storybook/addon-console';
import { themes } from '@storybook/theming';
import 'leaflet/dist/leaflet.css';
import '../assets/styles.css';
import { Tooltip } from 'opub-ui';
import React from 'react';
import '../assets/styles.css';

export const parameters = {
parameters: {
docs: {
theme: themes.light,
},
docs: {
theme: themes.light,
},
};

const preview = {
parameters,
decorators: [
(Story) => {
return <Story />;
return (
<Tooltip.Provider>
<Story />
</Tooltip.Provider>
);
},
],
};
Expand Down
3 changes: 2 additions & 1 deletion packages/opub-viz/assets/styles.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* @import './tokens.css'; */
@import 'leaflet/dist/leaflet.css';
@import url('opub-ui/dist/assets/styles.css');
@import '../styles/base.css';

.leaflet-container {
Expand Down
Loading

1 comment on commit 7bc8861

@vercel
Copy link

@vercel vercel bot commented on 7bc8861 Dec 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

opub-www – ./apps/www

opub-www.vercel.app
opub-www-git-main-civicdatalab.vercel.app
opub-www-civicdatalab.vercel.app

Please sign in to comment.