Giter VIP home page Giter VIP logo

tremor-raw's Introduction



Tremor Logo



Copy & Paste React components to build modern web applications

Tremor Raw offers customizable, accessible React components to build dashboards and modern web applications. Built on top of Tailwind CSS and Radix UI.


Tremor Banner


Getting Started

See our Installation Guide to get started.

Socials

Community and Contribution

We are always looking for new ideas or other ways to improve Tremor Raw. If you have developed anything cool or found a bug, send us a pull request. Check out our Contributor License Agreement here.

License

Apache License 2.0

Copyright © 2024 Tremor. All rights reserved.

tremor-raw's People

Contributors

christopherkindl avatar leenrd avatar mbauchet avatar severinlandolt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

tremor-raw's Issues

[Bug]: Bar Chart code is actually Line Chart's

Tremor Raw Component Version

0.2.2

Link to minimal reproduction

N/A

Steps to reproduce

See the Bar Chart page.
CleanShot 190320

What is expected?

The code on the Bar Chart page shows Line Chart code.

What is actually happening?

The code on the Bar Chart page shows Bar Chart code.

What browsers are you seeing the problem on?

Chrome

Any additional comments?

Loving your work! Thank you Tremor team.

Tremor Raw ProgressBar code is showing ProgressCircle code

Tremor Raw Component Version

Newest Available

Link to minimal reproduction

https://raw.tremor.so/docs/visualizations/progress-bar

Steps to reproduce

Go to the link, and click on the code for ProgressBar.

What is expected?

Should show ProgressBar code, with exportable member ProgressBar.

What is actually happening?

Showing ProgressCircle code.

What browsers are you seeing the problem on?

Safari, Other

Any additional comments?

No response

[Feature]: Input password field should have option to not allow to text transformation

What problem does this feature solve?

When using the "password" type on Input, there is always a button to show a password as plain text. I have a business requirement that it should only allow that for one password field, but not for repeat-password for security reasons.

Although easy to fix with raw library i would love to see this as core

What does the proposed API look like?

//small pseudocode snipet on how to improve the Input field

{(isPassword && allowPasswordVisibility) && (
          <div
            className={cx(
              "absolute bottom-0 right-0 flex h-full items-center justify-center px-3",
            )}
          >
            <button
              aria-label="Change password visibility"

[Bug]: TabsNavigation components doens't match his examples

Tremor Raw Component Version

0.0.0

Link to minimal reproduction

https://raw.tremor.so/docs/ui/tab-navigation

Steps to reproduce

Just copy and paste the code on the project and try to import him.

What is expected?

the component is expected to work as in the example

What is actually happening?

On the examples, its possible to see this code:
image

But, when copy and paste the component for the project, the code is that:
image

And the href prop don't exist on the code.

What browsers are you seeing the problem on?

Chrome, Other

Any additional comments?

No response

[Feature]: Add Carousel Component

What problem does this feature solve?

I have been exploring the library and found it incredibly useful for building modern UIs with ready-made React components. However, I noticed that a carousel component is currently missing from the library, which I believe could be a valuable addition.
I would like to propose the addition of a carousel component to the library. This component could include the following features:

  • Display multiple items/images in a sliding manner.
  • Navigation controls (next/prev buttons).
  • Auto-scroll functionality with configurable interval.
  • Customizable transition effects.
  • Responsive design to adapt to various screen sizes.

I am willing to contribute to this feature by developing the carousel component. Before proceeding, I wanted to get feedback from the maintainers and ensure that this aligns with the project's goals and standards.

What does the proposed API look like?

No response

[Bug]: DropdownMenuItem asChild do not work because of invalid wrapping

Tremor Raw Component Version

// Tremor Raw Dropdown Menu [v0.0.0]

Link to minimal reproduction

code below

Steps to reproduce

Write a simple menu

<DropdownMenu>
    <DropdownMenuItem asChild>
       // anything here will result in an exception
    </DropdownMenuItem>
</DropdownMenu>

Error: React.Children.only expected to receive a single React element child.

What is expected?

Working component

What is actually happening?

Wrap whole body of DropdownMenuPrimitives.Item in <></>

<DropdownMenuPrimitives.Item
    ref={forwardedRef}
    className={cx(
      // base
      "group/DropdownMenuItem relative flex cursor-pointer select-none items-center rounded py-1.5 pl-2 pr-1 outline-none transition-colors data-[state=checked]:font-semibold sm:text-sm",
      // text color
      "text-gray-900 dark:text-gray-50",
      // disabled
      "data-[disabled]:pointer-events-none data-[disabled]:text-gray-400 data-[disabled]:hover:bg-none dark:data-[disabled]:text-gray-600",
      // focus
      "focus-visible:bg-gray-100 focus-visible:dark:bg-gray-900",
      // hover
      "hover:bg-gray-100 hover:dark:bg-gray-900",
      className,
    )}
    {...props}
  >
    <> <--------- new
      {children}
      {hint && (
        <span
          className={cx("ml-auto pl-2 text-sm text-gray-400 dark:text-gray-600")}
        >
          {hint}
        </span>
      )}
      {shortcut && (
        <span
          className={cx("ml-auto pl-2 text-sm text-gray-400 dark:text-gray-600")}
        >
          {shortcut}
        </span>
      )}
    </> <--------- new
  </DropdownMenuPrimitives.Item>

What browsers are you seeing the problem on?

No response

Any additional comments?

Honestly, I expected that asChild would use the whole component as input while retaining style, but it just ignores the parent style. But this might be my misunderstanding on how this works.
I wanted to put next.js <Link> inside the <DropdownMenuItem> while retaining style, but this proved more difficult than expected

[Bug]: Tracker component hover issue

Tremor Raw Component Version

must be v0.1.1

Link to minimal reproduction

https://raw.tremor.so/docs/visualizations/tracker

Steps to reproduce

step 1: go to https://raw.tremor.so/docs/visualizations/tracker
step 2: on the small bar in the preview section move your mouse from left to right or right to left as fast as possible
step 3: you might notice the UI issue on the small bar

PFA
image

What is expected?

The hover on the bar should show the proper value

What is actually happening?

It is showing some issues with the UI you can refer to the screenshot attached

What browsers are you seeing the problem on?

Chrome

Any additional comments?

No response

[Bug]: AreaChart

Tremor Raw Component Version

Tremor Raw AreaChart [v0.2.3]

Link to minimal reproduction

not-necessary.com

Steps to reproduce

try to build the component, it throws a lint error because of the use of useEffect inside the tooltip callback, that is around line 762
image

What is expected?

that it builds fine

What is actually happening?

it doesnt build as explained in the steps to reproduce

What browsers are you seeing the problem on?

Other

Any additional comments?

No response

[Bug]: Missing Active Dot on Hover

Tremor Raw Component Version

Tremor Raw AreaChart [v0.3.0]

Link to minimal reproduction

n/a

Steps to reproduce

Followed the steps to add Tremor Raw into my Next.js project and added the default area chart component.

What is expected?

When hovering on the chart the active dot should show.

What is actually happening?

Screenshot 2024-07-16 at 3 16 19 PM

On hover there is no active dot. When you inspect the browser it shows the fill as transparent.

What browsers are you seeing the problem on?

No response

Any additional comments?

No response

[Bug]: Progress Circle importing cx from ./utils

Tremor Raw Component Version

Tremor Raw ProgressCircle [v0.0.0]

Link to minimal reproduction

https://raw.tremor.so/docs/visualizations/progress-circle

Steps to reproduce

Notice the cx import is from ./utils which causes a cannot find module error.

What is expected?

The import of cx should be import { cx } from "@/lib/utils"

What is actually happening?

The import is import { cx } from "./utils"

What browsers are you seeing the problem on?

Microsoft Edge

Any additional comments?

No response

[Bug]: useOnWindowResize causes Maximum update depth exceeded error

Tremor Raw Component Version

0.0.0

Link to minimal reproduction

N/A

Steps to reproduce

The useOnWindowResize hook is using the state value it is setting as part of the dependency array of the useEffect.

This is causing the effect to run on every resize tick causing a maximum update depth exceeded error.

What is expected?

Maximum update depth exceeded not happening on resizes.

What is actually happening?

Maximum update depth exceeded error on resizing the window.

What browsers are you seeing the problem on?

Other

Any additional comments?

Browsing though the documentation for Line Chart - Tremor Raw.

[Bug]: Checkbox moves layout on update

Tremor Raw Component Version

// Tremor Raw Checkbox [v0.0.0]

Link to minimal reproduction

<Checkbox/>

Steps to reproduce

  1. Click on checkbox
  2. Notice that it's layout shifts

What is expected?

Clicking on checkbox should not shift layout

What is actually happening?

Checkbox shifts layout

What browsers are you seeing the problem on?

Chrome, Firefox

Any additional comments?

Fix:
Remove enabled:data-[state=checked]:border-transparent and enabled:data-[state=indeterminate]:border-transparent
Modify CheckboxPrimitives.Indicator by adding asChild

[Bug]: Input container className

Tremor Raw Component Version

v.0.0.0

Link to minimal reproduction

None

Steps to reproduce

Adding margin top for exemple to <Input /> breaks the icon alignement
image

What is expected?

expecting the icon to be centered

What is actually happening?

Applying the styles to the Input is causing this behaviour the className should be applied to the top parent element of the <Input /> which is the <div className="relative">

What browsers are you seeing the problem on?

No response

Any additional comments?

No response

[Bug]: Install Dependencies (Optional) doesn't include @radix-ui/react-dropdown-menu

Tremor Raw Component Version

Installation

Link to minimal reproduction

https://raw.tremor.so/docs/getting-started/installation/next#install-dependencies

Steps to reproduce

On the (Optional) Installation steps on
https://raw.tremor.so/docs/getting-started/installation/next#install-dependencies
https://raw.tremor.so/docs/getting-started/installation/vite#install-dependencies
https://raw.tremor.so/docs/getting-started/installation/remix#install-dependencies

The npm install command does not include @radix-ui/react-dropdown-menu

What is expected?

The command should include @radix-ui/react-dropdown-menu

What is actually happening?

This causes issues when creating the Dropdown Menu component as import * as DropdownMenuPrimitives from "@radix-ui/react-dropdown-menu"; is not available

What browsers are you seeing the problem on?

Microsoft Edge

Any additional comments?

No response

[Bug]: Input.tsx missing `transition`

Tremor Raw Component Version

Input v0.0.0

Link to minimal reproduction

https://raw.tremor.so/docs/inputs/input

Steps to reproduce

Click on input

What is expected?

Transistion animation for focus state

What is actually happening?

No transition

What browsers are you seeing the problem on?

Chrome, Safari, Vivaldi

Any additional comments?

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.