@adactive/arc-clock
Adsum Clock Component
Last updated a year ago by clientadactive .
UNLISENCED · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @adactive/arc-clock 
SYNC missed versions from official npm registry.

Clock component

The clock component is, in reality, a wrapper function, which wraps the component, which you supply and provides all the props you need to create your own look and feel for the clock :)

image

Live examples here

Getting started

    npm i --save @adactive/arc-clock

OR

    yarn add @adactive/arc-clock
    import AdsumClock from "@adactive/arc-clock"
     ...
    // Your own stateless UI component for the clock
    // You will be provided with props, which are described below
    const ClockUi = (props) => (
        <div role="presentation" className="adsum-clock-wrapper">
            <div className="adsum-clock">
                <div className="day-date">{props.dateStr}</div>
                <div className="time">{props.timeStr}</div>
            </div>
        </div>
    );


    // The actual wrapping of your component with AdsumClock wrapper
    const Clock = AdsumClock(ClockUi);

    // Usage of the wrapped component
    <Clock lang="en" timeFormat="12hrs" />

Props

static defaultProps = {
    lang: 'en',
    timeFormat: '24hrs',
};

type AdsumClockPropsType = {
    lang: LangType,
    timeFormat: TimeFormatType
};

Additional props, which will be passed to the provided ClockUi component:


{
    +year: string,
    +month: string,
    +day: string,
    +hours: string,
    +minutes: string,
    +dateStr: string,
    +timeStr: string
};

type LangType = 'en' | 'zh' | 'fr';
type TimeFormatType = '24hrs' | '12hrs';
type AdsumClockPropsType = {
    lang: LangType,
    timeFormat: TimeFormatType
};

Copy component inside your project src folder

Less only

`npx @adactive/arc-clock copy --less-only`

Full copy

`npx @adactive/arc-clock copy`

Current Tags

  • 2.5.3                                ...           latest (a year ago)

139 Versions

  • 2.5.3                                ...           a year ago
  • 2.5.1                                ...           a year ago
  • 2.5.0                                ...           a year ago
  • 2.4.0                                ...           a year ago
  • 2.3.0                                ...           a year ago
  • 2.2.0                                ...           a year ago
  • 2.2.0-rc.4                                ...           a year ago
  • 2.2.0-rc.3                                ...           a year ago
  • 2.2.0-rc.2                                ...           a year ago
  • 2.2.0-rc.1                                ...           a year ago
  • 2.2.0-rc.0                                ...           a year ago
  • 2.2.0-alpha.1                                ...           a year ago
  • 2.2.0-alpha.0                                ...           a year ago
  • 2.1.0                                ...           a year ago
  • 2.1.0-rc.1                                ...           a year ago
  • 2.1.0-rc.0                                ...           a year ago
  • 2.1.0-alpha.1                                ...           a year ago
  • 2.1.0-alpha.0                                ...           a year ago
  • 2.0.0                                ...           2 years ago
  • 2.0.0-rc.0                                ...           2 years ago
  • 2.0.0-alpha.6                                ...           2 years ago
  • 2.0.0-alpha.5                                ...           2 years ago
  • 2.0.0-alpha.4                                ...           2 years ago
  • 2.0.0-alpha.3                                ...           2 years ago
  • 2.0.0-alpha.2                                ...           2 years ago
  • 2.0.0-alpha.1                                ...           2 years ago
  • 2.0.0-alpha.0                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.1.0-rc2                                ...           2 years ago
  • 1.1.0-alpha.0                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
  • 0.0.2-y.44.59                                ...           2 years ago
  • 0.0.2-y.44.58                                ...           2 years ago
  • 0.0.2-y.44.57                                ...           2 years ago
  • 0.0.2-y.44.56                                ...           2 years ago
  • 0.0.2-y.44.55                                ...           2 years ago
  • 0.0.2-y.44.54                                ...           2 years ago
  • 0.0.2-y.44.53                                ...           2 years ago
  • 0.0.2-y.44.52                                ...           2 years ago
  • 0.0.2-y.44.51                                ...           2 years ago
  • 0.0.2-y.44.50                                ...           2 years ago
  • 0.0.2-y.44.49                                ...           2 years ago
  • 0.0.2-y.44.48                                ...           2 years ago
  • 0.0.2-y.44.47                                ...           2 years ago
  • 0.0.2-y.44.46                                ...           2 years ago
  • 0.0.2-y.44.45                                ...           2 years ago
  • 0.0.2-y.44.44                                ...           2 years ago
  • 0.0.2-y.44.43                                ...           2 years ago
  • 0.0.2-y.44.42                                ...           2 years ago
  • 0.0.2-y.44.41                                ...           2 years ago
  • 0.0.2-y.44.40                                ...           2 years ago
  • 0.0.2-y.44.39                                ...           2 years ago
  • 0.0.2-y.44.37                                ...           2 years ago
  • 0.0.2-y.44.36                                ...           2 years ago
  • 0.0.2-y.44.35                                ...           2 years ago
  • 0.0.2-y.44.34                                ...           2 years ago
  • 0.0.2-y.44.33                                ...           2 years ago
  • 0.0.2-y.44.32                                ...           2 years ago
  • 0.0.2-y.44.31                                ...           2 years ago
  • 0.0.2-y.44.30                                ...           2 years ago
  • 0.0.2-y.44.29                                ...           2 years ago
  • 0.0.2-y.44.28                                ...           2 years ago
  • 0.0.2-y.44.27                                ...           2 years ago
  • 0.0.2-y.44.26                                ...           2 years ago
  • 0.0.2-y.44.25                                ...           2 years ago
  • 0.0.2-y.44.24                                ...           2 years ago
  • 0.0.2-y.44.23                                ...           2 years ago
  • 0.0.2-y.44.22                                ...           2 years ago
  • 0.0.2-y.44.21                                ...           2 years ago
  • 0.0.2-y.44.20                                ...           2 years ago
  • 0.0.2-y.44.19                                ...           2 years ago
  • 0.0.2-y.44.18                                ...           2 years ago
  • 0.0.2-y.44.17                                ...           2 years ago
  • 0.0.2-y.44.16                                ...           2 years ago
  • 0.0.2-y.44.15                                ...           2 years ago
  • 0.0.2-y.44.14                                ...           2 years ago
  • 0.0.2-y.44.13                                ...           2 years ago
  • 0.0.2-y.44.12                                ...           2 years ago
  • 0.0.2-y.44.11                                ...           2 years ago
  • 0.0.2-y.44.10                                ...           2 years ago
  • 0.0.2-y.44.9                                ...           2 years ago
  • 0.0.2-y.44.8                                ...           2 years ago
  • 0.0.2-y.44.7                                ...           2 years ago
  • 0.0.2-y.44.6                                ...           2 years ago
  • 0.0.2-y.44.5                                ...           2 years ago
  • 0.0.2-y.44.4                                ...           2 years ago
  • 0.0.2-y.44.3                                ...           2 years ago
  • 0.0.2-y.44.2                                ...           2 years ago
  • 0.0.2-y.44.1                                ...           2 years ago
  • 0.0.2-y.44.0                                ...           2 years ago
  • 0.0.2-y.43.12                                ...           2 years ago
  • 0.0.2-y.43.11                                ...           2 years ago
  • 0.0.2-y.43.10                                ...           2 years ago
  • 0.0.2-y.43.9                                ...           2 years ago
  • 0.0.2-y.43.8                                ...           2 years ago
  • 0.0.2-y.43.7                                ...           2 years ago
  • 0.0.2-y.43.6                                ...           2 years ago
  • 0.0.2-y.43.5                                ...           2 years ago
  • 0.0.2-y.43.4                                ...           2 years ago
  • 0.0.2-y.43.3                                ...           2 years ago
  • 0.0.2-y.43.2                                ...           2 years ago
  • 0.0.2-y.43.1                                ...           2 years ago
  • 0.0.2-y.43.0                                ...           2 years ago
  • 0.0.2-y.42.0                                ...           2 years ago
  • 0.0.2-y.41.0                                ...           2 years ago
  • 0.0.2-y.40.0                                ...           2 years ago
  • 0.0.2-y.39.0                                ...           2 years ago
  • 0.0.1-y.38                                ...           2 years ago
  • 0.0.1-y.37                                ...           2 years ago
  • 0.0.1-y.36                                ...           2 years ago
  • 0.0.1-y.35                                ...           2 years ago
  • 0.0.1-y.34                                ...           2 years ago
  • 0.0.1-y.33                                ...           2 years ago
  • 0.0.1-y.32                                ...           2 years ago
  • 0.0.1-y.31                                ...           2 years ago
  • 0.0.1-y.30                                ...           2 years ago
  • 0.0.1-y.29                                ...           2 years ago
  • 0.0.1-y.28                                ...           2 years ago
  • 0.0.1-y.27                                ...           2 years ago
  • 0.0.1-y.26                                ...           2 years ago
  • 1.0.0-0                                ...           2 years ago
  • 0.0.1-y.25                                ...           2 years ago
  • 0.0.1-y.24                                ...           2 years ago
  • 0.0.1-y.23                                ...           2 years ago
  • 0.0.1-y.22                                ...           2 years ago
  • 0.0.1-y.21                                ...           2 years ago
  • 0.0.1-y.20                                ...           2 years ago
  • 0.0.1-y.19                                ...           2 years ago
  • 0.0.1-y.18                                ...           2 years ago
  • 0.0.1-y.17                                ...           2 years ago
  • 0.0.1-y.16                                ...           2 years ago
  • 0.0.1-y.15                                ...           2 years ago
  • 0.0.1-y.14                                ...           2 years ago
  • 0.0.1-y.13                                ...           2 years ago
  • 0.0.1-y.12                                ...           2 years ago
  • 0.0.1-y.11                                ...           2 years ago
  • 0.0.1-y.10                                ...           2 years ago
  • 0.0.1-y.9                                ...           2 years ago
  • 0.0.1-y.8                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 278
Last Day 0
Last Week 0
Last Month 139
Dependencies (2)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |