1.5.47 • Published 9 months ago

tase-shared-components v1.5.47

Weekly downloads
-
License
-
Repository
-
Last release
9 months ago

Sharedlibs

About

Sharedlibs is a library of web-components built with Stencil.js and Tailwind CSS

Also used:

  • RxJS for api requests and state manipulation
  • Swiper for news popup and search modal
  • Floating UI for menus and dropdowns

For develepment use command npm start and port http://localhost:4200/

For production use npm build and npm publish (You need npm authorization for the last one)

The version set manualy in package.json and tase-global.ts

Stencil.js use two types of components:

  • Web Components
@Component({
  tag: 'todo-list',
  // additional options
})
export class TodoList {
  // implementation omitted
}

those can be:

    • shadow: true Preferred method. More or less predictable. Creates shadow dom for web-components. Works with Tailwind.
    • shadow: false Don't work with Tailwind, only with css
  • Functional Components
const Hello = (props) => <h1>Hello, {props.name}!</h1>;

Don't have state, don't work well with Tailwind, are buggy. Use only for the simplest things

Contains

  • Header + Search button
    <tase-header white-offset="100" fixed fetch-url="https://taseapi-wa-qa.azurewebsites.net/api/Cms?Route=header" transparent="true">
      <tase-search most-active-url="https://taseapi-wa-qa.azurewebsites.net/api/MarketTrends/most-active" search-url="https://taseapi-wa-qa.azurewebsites.net/api/Search"></tase-search>
    </tase-header>
  • Footer
    <tase-footer fetch-url="https://taseapi-wa-qa.azurewebsites.net/api/Cms?Route=footer"> </tase-footer>
  • Cookies policy
    <tase-cookies-policy fetch-url="https://taseapi-wa-qa.azurewebsites.net/api/Cms?Route=%2Ffloating"> </tase-cookies-policy>
  • Accessibility button (For high contrast mode)
    <tase-accessibility></tase-accessibility>
  • Scroll to Top button
    <tase-scroll-top></tase-scroll-top>
  • Skip to main content menu
    <tase-skip-to-main-content-menu element="#main1"> </tase-skip-to-main-content-menu>
  • Side menu for share button and customer service
    <tase-share-and-customer-service fetch-url="https://taseapi-wa-qa.azurewebsites.net/api/Cms?Route=%2Ffloating"> </tase-share-and-customer-service>
  • Focus trap, copy of this focus-trap but with more features
    • getFocus event
    • loseFocus event - It is very handy to close the drop-down menus on loss of focus
    • focusFirst attribute - it is very handy for modal windows to set the focus on the first element
    <tase-focus-trap></tase-focus-trap>

Specs

Adboe XD

  • home page header
  • home page menu - 1 & 2
  • Search popup
  • table page menu
  • stock lobby
  • mobile view
    • page header
    • page side nav
    • popup mobile

Figma

  • side menu for mobile
  • footer desktop and mobile UI
  • header UI for desktop and mobile, regular and white
  • header UI for tablet
  • header UI 4 states:
    • Desktop 1920px
    • Header 1200px
    • Tablet 768px
    • Mobile 414px

Adobe XD

  • Header UI
    • menu, popup animtaions and open state
  • Search open state
  • Side menu UI
  • Search modal UI, desktop and mobile
  • Footer UI, desktop and mobile

Figma

  • Icons
  • header UI desktop and mobile
  • sticky header (white one)
  • footer desktop, tablet and mobile
  • Side menu
  • Menu Popups
  • A lot of random elements

Adobe XD

  • Icons

Adobe XD

  • Search menu
  • "Install our app" header

Adobe XD

  • News Popup

Adobe XD

  • News Popup Mobile

Adobe XD

  • cookies policy
1.5.47

9 months ago

1.5.43

12 months ago

1.5.42

1 year ago

1.5.45

10 months ago

1.5.44

11 months ago

1.5.46

10 months ago

1.5.41

1 year ago

1.5.40

1 year ago

1.5.39

1 year ago

1.5.38

1 year ago

1.5.37

1 year ago

1.5.36

1 year ago

1.5.35

1 year ago

1.5.34

1 year ago

1.5.32

1 year ago

1.5.33

1 year ago

1.5.30

1 year ago

1.5.31

1 year ago

1.5.29

1 year ago

1.5.28

1 year ago

1.5.27

1 year ago

1.5.25

1 year ago

1.5.26

1 year ago

1.5.24

1 year ago

1.5.23

1 year ago

1.5.22

1 year ago

1.5.21

1 year ago

1.5.20

1 year ago

1.5.19

2 years ago

1.5.18

2 years ago

1.5.17

2 years ago

1.5.16

2 years ago

1.5.15

2 years ago

1.5.5

2 years ago

1.5.4

2 years ago

1.5.3

2 years ago

1.5.2

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.5.9

2 years ago

1.5.8

2 years ago

1.5.7

2 years ago

1.5.6

2 years ago

1.5.10

2 years ago

1.5.12

2 years ago

1.5.11

2 years ago

1.5.14

2 years ago

1.5.13

2 years ago

1.4.8

2 years ago

1.4.6

2 years ago

1.4.5

2 years ago

1.4.4

2 years ago

1.4.3

2 years ago

1.4.7

2 years ago

1.2.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.4.0

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

0.0.169

2 years ago

0.0.168

2 years ago

0.0.167

2 years ago

0.0.166

2 years ago

0.0.165

2 years ago

1.1.0

2 years ago

0.0.175

2 years ago

0.0.174

2 years ago

0.0.173

2 years ago

0.0.172

2 years ago

0.0.179

2 years ago

1.3.2

2 years ago

0.0.178

2 years ago

1.3.1

2 years ago

0.0.177

2 years ago

1.3.0

2 years ago

0.0.176

2 years ago

0.0.171

2 years ago

0.0.170

2 years ago

0.0.183

2 years ago

0.0.182

2 years ago

0.0.181

2 years ago

0.0.180

2 years ago

0.0.8

2 years ago

0.0.163

2 years ago

0.0.162

2 years ago

0.0.161

2 years ago

0.0.160

2 years ago

0.0.159

2 years ago

0.0.158

2 years ago

0.0.157

2 years ago

0.0.156

2 years ago

0.0.155

2 years ago

0.0.151

2 years ago

0.0.150

2 years ago

0.0.149

2 years ago

0.0.148

2 years ago

0.0.147

2 years ago

0.0.146

2 years ago

0.0.144

2 years ago

0.0.142

2 years ago

0.0.141

2 years ago

0.0.140

2 years ago

0.0.139

2 years ago

0.0.138

2 years ago

0.0.137

2 years ago

0.0.136

2 years ago

0.0.135

2 years ago

0.0.131

2 years ago

0.0.130

2 years ago

0.0.129

2 years ago

0.0.128

2 years ago

0.0.127

2 years ago

0.0.126

2 years ago

0.0.120

2 years ago

0.0.117

2 years ago

0.0.116

2 years ago

0.0.115

2 years ago

0.0.114

2 years ago

0.0.113

2 years ago

0.0.112

2 years ago

0.0.111

2 years ago

0.0.110

2 years ago

0.0.109

2 years ago

0.0.104

2 years ago

0.0.101

2 years ago