Giter VIP home page Giter VIP logo

components's People

Contributors

amje avatar artemipanchuk avatar arucard89 avatar arudenkoofficial avatar chervyakovru avatar dfilatov avatar eyoue avatar feverqwe avatar flunt1k avatar goshander avatar gravity-ui-bot avatar iapolya avatar jhoncool avatar kalachevdev avatar kirilldyachkovskiy avatar korvin89 avatar kyzyl-ool avatar lakate avatar marginy605 avatar maxim725 avatar mournfulcoroner avatar nasgulnexus avatar nikita-jpg avatar nikitacg avatar ogonkov avatar pavel-klimov avatar raubzeug avatar ruminat avatar valeras avatar zamkovskaya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

components's Issues

Improve(FilePreview)

There are a lot of complex features that can be taken out as separate components or libraries, I just wrote everything I would like to see

  1. Add several sizes, I also want to use them in a system that simulates file storage on the web. In particular, you want to have a super small size or maybe a direction property to place it in the table
  2. Add folders
  3. I want to have two modes - dynamic and static.
    In the first one, as you have, a file is accepted and your component automatically determines which icon to display, which data, etc. This is not the case now. At the same time, it is desirable that the developer has the opportunity to give either a link or the file itself.
    In the second one, I do not want to write as any, I want to specify the characteristics of the file in order to display them, for example, taken from the database initially, why I should implement the web api File interface is not entirely clear.
    Now you have implemented something in between
  4. It is also worth considering the 'selected' state, if we are emulating a file system, we want to have this feature
  5. It would also be very nice to see adapters, or write your own solutions to implement quick viewing of photos, videos at least, the rest as needed

Change tab rendering behaviour โ€” fully render tab title, without ellipsis

1). We want to change default behaviour, to render tab titles without any ellipsis.

Now it works like this:
image

We want to change it to display tab title completely. And if some tab does not fit into container โ€” move it to select.

2). We want to add a property for this component, that will configure how many tabs will be rendered without moving them to select.

[AdaptiveTabs]: enhance wrapTo prop

TODO in the next major.

  1. Let's change wrapTo interface. I suggest this one
    (node, {tab: TabItem | undefined; tabIndex: number | undefined}: RenderOptions) => React.ReactNode

  2. Also let's add return tab when render switcher as standalone select. For more select it looks like useless because when user select something in more it will be rendered directly to the left of the selector.

[PasswordInput] Override browser styles for input

Browsers provide default styles to generate a password in the new-password type input. If the user agrees, the browser add yellow background to the input. Safari hides part of the generated password at the same time

Suggestion

  1. Remove the yellow background at all.
  2. By default, leave the standard behavior in the browser - suggestions to generate a password
  3. If we display the Generate password button, we disable the browser offer to generate a password

Current behavior

image
image
image

Suggested behavior

image
image
image

Note

need to check in all major browsers and OS
An example of an input with the proposed behavior: https://github.com/signup
source: https://github.com/gravity-ui/components/tree/main/src/components/PasswordInput

Refactoring AdaptiveTabs

The component should start using Tabs component from gravity-ui/uikit instead of own Tabs.
DATAUI-1524

AdaptiveTabs. Behavior with `wrapTo` property

When passing wrapTo like:
(item, node) => <Wrapper><Icon />{node}<Icon2 /></Wrapper>

I'm expecting this:
433611CD-99A6-4F30-910D-1FECF7CD8F4F_4_5005_c

But getting this:
F4E13190-2AA7-44AA-87FD-DCC3DA826014_4_5005_c

Problems:

  1. Blue line is only under the node, not under the tab container
  2. Part of wrapped node is in hidden area because of node itself has no text overflow property.

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.