repo
stringlengths
5
106
file_url
stringlengths
78
301
file_path
stringlengths
4
211
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:56:49
2026-01-05 02:23:25
truncated
bool
2 classes
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/utils/index.js
src/utils/index.js
export {default as getRestProps} from './getRestProps'; export {default as childrenToArray} from './childrenToArray'; export { MissingPropertyError, PropertyTypeError, MissingKeyError, NoKeyError } from './exceptions'; export { arrayWithNStrings, arrayWith7Strings, arrayWith12Strings, dateOrStringOrNull } from './t...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/utils/getRestProps.js
src/utils/getRestProps.js
import forIn from 'lodash/forIn'; /** * get rest props by compare component's propTypes and props * @param {class} component react-component * @param {object} props * @return {object} rest props object */ export default function getRestProps(component, props) { const result = {}; forIn(props, (value, key) ...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/utils/childrenToArray.js
src/utils/childrenToArray.js
import isArray from 'lodash/isArray'; import flattenDeep from 'lodash/flattenDeep'; import remove from 'lodash/remove'; export default function childrenToArray(children) { if (!children) return []; if (!isArray(children)) return [children]; return remove(flattenDeep(children), null); }
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/utils/timeFormat.js
src/utils/timeFormat.js
// seconds to time export const smartFormatTime = time => { let s = ~~(time % 60); let m = time / 60; let h = 0; if (m >= 60) { h = h / 60; m = m % 60; } h = ~~h; m = ~~m; m = m < 10 ? `0${m}` : `${m}`; s = s < 10 ? `0${s}` : `${s}`; if (h) { return `${h}:${m}:${s}`; } return `${m...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/utils/exceptions.js
src/utils/exceptions.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 17/1/16 */ class BaseError extends Error { constructor(name = 'BaseError', message) { super(); this.name = name; this.stack = (new Error()).stack; this.message = message; } } export class MissingProper...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/utils/getScrollbarWidth.js
src/utils/getScrollbarWidth.js
// reference: https://stackoverflow.com/questions/13382516/getting-scroll-bar-width-using-javascript function getScrollbarWidth() { const outer = document.createElement('div'); outer.style.visibility = 'hidden'; outer.style.width = '100px'; outer.style.msOverflowStyle = 'scrollbar'; // needed for WinJS apps ...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/utils/random.js
src/utils/random.js
export const random = () => { if (window.crypto) { const arr = window.crypto.getRandomValues(new Uint16Array(1)); return arr[0] / 65535; } return Math.random(); };
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/burgeon/Carousel/index.js
src/burgeon/Carousel/index.js
import Carousel from './Carousel'; import './carousel.scss'; export default Carousel;
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/burgeon/Carousel/CarouselItem.js
src/burgeon/Carousel/CarouselItem.js
import React, {Component} from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import {getRestProps} from '../../utils'; export default class Carousel extends Component { static propTypes = { style: PropTypes.object, currentIndex: PropTypes.number, children: PropTypes.node, ...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/burgeon/Carousel/Carousel.js
src/burgeon/Carousel/Carousel.js
import React, {Component} from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import Animation from '../../seeds/Animation'; import CarouselItem from './CarouselItem'; import {childrenToArray, getRestProps} from '../../utils'; export default class Carousel extends Component { static propT...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/burgeon/Card/index.js
src/burgeon/Card/index.js
import Card from './Card'; import './card.scss'; export default Card;
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/burgeon/Card/Card.js
src/burgeon/Card/Card.js
import React, {Component} from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import Icon from '../../seeds/Icon'; import getRestProps from '../../utils/getRestProps'; export default class Card extends Component { static propTypes = { /** * @en * the card's children * ...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/burgeon/Form/FormGroup.js
src/burgeon/Form/FormGroup.js
import React, {Component} from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import BaseElement from './BaseElement'; export default class FormGroup extends Component { static propTypes = { /** * @en * the formGroup's children * * @cn * 子节点 */ childre...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/burgeon/Form/index.js
src/burgeon/Form/index.js
import Form from './Form'; import FormItem from './FormItem'; import FormGroup from './FormGroup'; import './form.scss'; export { Form, FormItem, FormGroup };
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/burgeon/Form/FormItem.js
src/burgeon/Form/FormItem.js
import React, {Component} from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import BaseElement from './BaseElement'; export default class FormItem extends Component { static propTypes = { /** * @en * the formitem's children * * @cn * 子节点 */ children:...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/burgeon/Form/Form.js
src/burgeon/Form/Form.js
import React, {Component} from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import {getRestProps} from '../../utils'; // TODO validation export default class Form extends Component { static propTypes = { /** * @en * the form's children * * @cn * 表单的子元素 ...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/burgeon/Form/BaseElement.js
src/burgeon/Form/BaseElement.js
import React, {Component} from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; export default class BaseElement extends Component { static propTypes = { /** * @en * the formGroup's children * * @cn * the formGroup's children */ children: PropTypes.node,...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/burgeon/IconButton/index.js
src/burgeon/IconButton/index.js
import IconButton from './IconButton'; export default IconButton;
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/burgeon/IconButton/IconButton.js
src/burgeon/IconButton/IconButton.js
import React, {Component} from 'react'; import PropTypes from 'prop-types'; import {Icon, Tooltip} from '../../index'; import getRestProps from '../../utils/getRestProps'; export default class IconButton extends Component { static propTypes = { /** * @en * the icon type * * @cn * 图标类型 ...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/burgeon/Upload/Base.js
src/burgeon/Upload/Base.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 2017/3/6 */ import React, {Component} from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import {parseFileObj, nop, upload} from './utils'; export default class Base extends Component { stat...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/burgeon/Upload/index.js
src/burgeon/Upload/index.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 2017/3/6 */ import './upload.scss'; export {default} from './Upload'; export {default as UploadBase} from './Base';
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/burgeon/Upload/UploadBox.js
src/burgeon/Upload/UploadBox.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 2017/3/8 */ import React from 'react'; import {TransitionGroup, CSSTransition} from 'react-transition-group'; import cx from 'classnames'; import Base from './Base'; import {parseFileObj} from './utils'; export default c...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/burgeon/Upload/UploadBase.js
src/burgeon/Upload/UploadBase.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 2017/3/7 */ import React from 'react'; import cx from 'classnames'; import Base from './Base'; import {TransitionGroup, CSSTransition} from 'react-transition-group'; import {Button} from '../../seeds/Button'; export defau...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/burgeon/Upload/Upload.js
src/burgeon/Upload/Upload.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 2017/3/6 */ import React, {Component} from 'react'; import PropTypes from 'prop-types'; import UploadBase from './UploadBase'; import UploadBox from './UploadBox'; import {nop} from './utils'; export default class Upload...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/burgeon/Upload/utils.js
src/burgeon/Upload/utils.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 2017/3/6 */ export const nop = () => {}; export const parseFileObj = (file, index) => ( { lastModified: file.lastModified, lastModifiedDate: file.lastModifiedDate, name: file.filename || file.name, size...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/burgeon/DateTimePicker/index.js
src/burgeon/DateTimePicker/index.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 2017/2/6 */ import './date-time-picker.scss'; export {default} from './DateTimePicker';
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/burgeon/DateTimePicker/utils.js
src/burgeon/DateTimePicker/utils.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 2017/2/6 */ export { arrayWith7Strings, arrayWith12Strings, dateOrStringOrNull } from '../../utils'; export const nop = () => {}; export const dateToString = date => { const day = date.getDate(); const month = date...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/burgeon/DateTimePicker/DateTimePicker.js
src/burgeon/DateTimePicker/DateTimePicker.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 2017/2/6 */ import React, {Component} from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import DatePicker from '../../seeds/DatePicker'; import TimePicker from '../../seeds/TimePicker'; import ...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/language/jp.js
src/language/jp.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 17/1/20 */ export default { weekdayNames: [ '日曜日', '月曜日', '火曜日', '水曜日', '木曜日', '金曜日', '土曜日' ], weekdayShortNames: [ '日', '月', '火', '水', '木', '金', '土' ], mon...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/language/index.js
src/language/index.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 17/1/16 */ import en from './en'; import cn from './cn'; import jp from './jp'; export default {en, cn, jp};
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/language/cn.js
src/language/cn.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 17/1/16 */ export default { weekdayNames: [ '星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六' ], weekdayShortNames: [ '日', '一', '二', '三', '四', '五', '六' ], mon...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/src/language/en.js
src/language/en.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 17/1/16 */ export default { weekdayNames: [ 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'ThursDay', 'Friday', 'Saturday' ], weekdayShortNames: [ 'SUN', 'MON', 'TUE', 'WED',...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/index.js
demo/src/index.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 16/12/28 */ import React from 'react'; import ReactDOM from 'react-dom'; import {AppContainer} from 'react-hot-loader'; import Router from './routes'; const render = () => { ReactDOM.render( <AppContainer> <R...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/languages.js
demo/src/languages.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 2017/3/1 */ export const languages = [ { value: 'cn', label: '简体中文', tableHeader: ` ### 属性说明 | 属性名 | 类型 | 默认值 | 说明 | |:-----|:-----|:-----|:-----| `, tableFooter: '未在文档中说明的属性将会被自动加到根元素或form元素上。' }, {...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/config.js
demo/src/config.js
/** * Copyright(c) dtysky<dtysky@outlook.com> * Created: 24 Feb 2018 * Description: */ // export default { // logo: '/demo/static/images/logo.png', // icon: '/demo/static/images/hana-icon.jpg', // overview: { // intro: '/demo/static/images/clover.png', // origin: '/demo/static/images/violets.png', // ...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/App.js
demo/src/App.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 16/12/28 */ import React, {Component} from 'react'; import PropTypes from 'prop-types'; import {Route, Switch, Redirect} from 'react-router-dom'; import cx from 'classnames'; import 'hana-ui/styles/base.scss'; import {lan...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/genMeta.js
demo/src/genMeta.js
/** * Copyright(c) dtysky<dtysky@outlook.com> * Created: 21 Feb 2018 * Description: */ import {parseText} from './languages'; import componentsConfig from './pages/document/config'; const parseLang = (text) => { const tmp = /## (.+)\n([\s\S]*)/g.exec(text); return { title: `${tmp[1]} - hana-ui`, descri...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/routes.js
demo/src/routes.js
import React from 'react'; import {BrowserRouter} from 'react-router-dom'; import ScrollToTop from './components/ScrollToTop' import App from './App'; const Router = () => ( <BrowserRouter> <ScrollToTop> <App /> </ScrollToTop> </BrowserRouter> ); export default Router;
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/hana-song/index.js
demo/src/pages/hana-song/index.js
import React from 'react'; import cx from 'classnames'; import MarkdownElement from 'demo/MarkdownElement'; import song from './hana-song.md'; import './base.scss'; const HanaSong = () => ( <MarkdownElement className={cx('demo-song', 'demo-with-fade-head-tail')} text={song} /> ); export default HanaSon...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/contribution/index.js
demo/src/pages/contribution/index.js
/** * Copyright(c) dtysky<dtysky@outlook.com> * Created: 25 Nov 2017 * Description: */ import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import config from '../../config'; import MultiLangMarkdown from 'demo/MultiLangMarkdown'; import {Link} from 'hana-ui'; import './base....
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/footer/index.js
demo/src/pages/footer/index.js
/** * Copyright(c) dtysky<dtysky@outlook.com> * Created: 30 Nov 2017 * Description: */ import React from 'react'; import cx from 'classnames'; import {withRouter} from 'react-router-dom'; import config from '../../config'; import MultiLang from 'demo/MultiLang'; import {Link} from 'hana-ui'; import './base.scss'; ...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/index.js
demo/src/pages/document/index.js
/** * Copyright(c) dtysky<dtysky@outlook.com> * Created: 25 Nov 2017 * Description: */ import * as React from 'react'; import PropTypes from 'prop-types'; import {Switch, Route, Redirect} from 'react-router-dom'; import cx from 'classnames'; import components from './config'; import SideBar from './SideBar'; impo...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/SideBar.js
demo/src/pages/document/SideBar.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 16/12/28 */ import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import {Link, withRouter} from 'react-router-dom'; import {Menu, SubMenu, MenuItem} from 'hana-ui'; import components...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/config.js
demo/src/pages/document/config.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 2017/2/28 */ import sortBy from 'lodash/sortBy'; import Text from './seeds/Text'; import Switch from './seeds/Switch'; import Checkbox from './seeds/Checkbox'; import Icon from './seeds/Icon'; import Radio from './seeds/R...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/Popover/index.js
demo/src/pages/document/seeds/Popover/index.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 2017/2/20 */ import React, {Component} from 'react'; import ExampleContainer from 'demo/ExampleContainer'; import PropTypeDescription from 'demo/PropTypeDescription'; import MultiLangMarkdown from 'demo/MultiLangMarkdown';...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/Popover/ExampleBase.js
demo/src/pages/document/seeds/Popover/ExampleBase.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 2017/2/20 */ import React, {Component} from 'react'; import {Popover, Button} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * Base * * This component is based on `Tooltip`, * but it provides...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/Modal/ExampleActions.js
demo/src/pages/document/seeds/Modal/ExampleActions.js
import React, {Component} from 'react'; import {Button, Modal} from 'hana-ui'; const actionStyle = { marginRight: 5 }; /** * @en * Custom button * * &nbsp; * * @cn * 自定义回调按钮 * * &nbsp; */ export default class ExampleActions extends Component { state = { show: false } toggleModal(key) { thi...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/Modal/index.js
demo/src/pages/document/seeds/Modal/index.js
import React, {Component} from 'react'; import ExampleContainer from 'demo/ExampleContainer'; import PropTypeDescription from 'demo/PropTypeDescription'; import MultiLangMarkdown from 'demo/MultiLangMarkdown'; import modalCode from '!raw-loader!hana-ui/seeds/Modal/Modal'; import ReadmeText from './README'; import Exa...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/Modal/ExampleWithCloseButton.js
demo/src/pages/document/seeds/Modal/ExampleWithCloseButton.js
import React, {Component} from 'react'; import {Button, Modal, Icon} from 'hana-ui'; /** * @en * Custom close * * Set showClose props to true will show the * default close button,but also can use your custom close button * * @cn * 自定义关闭按钮 * * &nbsp; */ export default class ExampleWithCloseButton extends Com...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/Modal/ExampleBase.js
demo/src/pages/document/seeds/Modal/ExampleBase.js
import React, {Component} from 'react'; import {Button, Modal} from 'hana-ui'; /** * @en * Base Example * * &nbsp; * * @cn * 基础示例 * * &nbsp; */ export default class ExampleBase extends Component { state = { show: false, showConfirmModal: false, showCancelModal: false } toggleModal(key) { ...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/Switch/index.js
demo/src/pages/document/seeds/Switch/index.js
import React, {Component} from 'react'; import ExampleContainer from 'demo/ExampleContainer'; import PropTypeDescription from 'demo/PropTypeDescription'; import MultiLangMarkdown from 'demo/MultiLangMarkdown'; import Readme from './README'; import code from '!raw-loader!hana-ui/seeds/Switch/Switch'; import ExampleBase...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/Switch/ExampleAuto.js
demo/src/pages/document/seeds/Switch/ExampleAuto.js
import React, {Component} from 'react'; import {Switch} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * auto * * Switch module controlled by itself, using prop `auto` * * @cn * 自控模式 * * 开关可以添加属性`auto`来自行控制状态。 */ export default class ExampleAuto extends Component { state = { c...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/Switch/ExampleDisabled.js
demo/src/pages/document/seeds/Switch/ExampleDisabled.js
import React, {Component} from 'react'; import {Switch, Checkbox} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * Disabled * * Use prop `disabled` to disable the `Switch`. * * @cn * 禁用 * * 使用属性`disabled`来禁用开关。 */ export default class ExampleBase extends Component { state = { d...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/Switch/ExampleBase.js
demo/src/pages/document/seeds/Switch/ExampleBase.js
import React, {Component} from 'react'; import {Switch} from 'hana-ui'; /** * @en * Base * * Switch module controlled by prop `checked` * * @cn * 基础 * * 使用属性`checked`控制开关状态。 */ export default class ExampleBase extends Component { state = { isChecked: true } render() { return ( <Switch ...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/Link/index.js
demo/src/pages/document/seeds/Link/index.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 17/1/3 */ import React, {Component} from 'react'; import ExampleContainer from 'demo/ExampleContainer'; import PropTypeDescription from 'demo/PropTypeDescription'; import MultiLangMarkdown from 'demo/MultiLangMarkdown'; i...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/Link/ExampleBase.js
demo/src/pages/document/seeds/Link/ExampleBase.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 17/1/3 */ import React from 'react'; import {Link} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * Base * * Use `icon` to choose your favorite icon, `size` to define size, `className` and `st...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/Title/index.js
demo/src/pages/document/seeds/Title/index.js
import React, {Component} from 'react'; import ExampleContainer from 'demo/ExampleContainer'; import PropTypeDescription from 'demo/PropTypeDescription'; import MultiLangMarkdown from 'demo/MultiLangMarkdown'; import titleCode from '!raw-loader!hana-ui/seeds/Title'; import ReadmeText from './README'; import ExampleBa...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/Title/ExampleIcon.js
demo/src/pages/document/seeds/Title/ExampleIcon.js
import React, {Component} from 'react'; import {Title, Icon} from 'hana-ui'; /** * @en * icon title * * &nbsp; * * @cn * 带图标标题 * * &nbsp; */ export default class ExampleIcon extends Component { render() { return ( <div> <Title icon={<Icon type={'menu'} color={'#199ed8'} />} ...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/Title/ExampleSubtitle.js
demo/src/pages/document/seeds/Title/ExampleSubtitle.js
import React, {Component} from 'react'; import {Title} from 'hana-ui'; /** * @en * sub-title * * &nbsp; * * @cn * 子标题 * * &nbsp; */ export default class ExampleSubtitle extends Component { render() { return ( <div> <Title subTitle={'Sbu-title under title'}>(ง •̀_•́)</Title> </div> ...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/Title/ExampleBase.js
demo/src/pages/document/seeds/Title/ExampleBase.js
import React, {Component} from 'react'; import {Title} from 'hana-ui'; /** * @en * Base Example * * &nbsp; * * @cn * 基础用例 * * &nbsp; */ export default class ExampleBase extends Component { render() { return ( <div> <Title>(ง •̀_•́)</Title> <br /> <Title style={{...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/Notification/index.js
demo/src/pages/document/seeds/Notification/index.js
import React, {Component} from 'react'; import ExampleContainer from 'demo/ExampleContainer'; import PropTypeDescription from 'demo/PropTypeDescription'; import MultiLangMarkdown from 'demo/MultiLangMarkdown'; import notificationsCode from '!raw-loader!hana-ui/seeds/Notification/Notifications'; import notificationCode...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/Notification/ExampleBase.js
demo/src/pages/document/seeds/Notification/ExampleBase.js
import React, {Component} from 'react'; import {Button, Notifications} from 'hana-ui'; const style = { margin: '5px 5px 5px 0' }; /** * @en * Base Example * * Normal notification will auto hide after 2.5s * * @cn * 基础示例 * * 默认显示时长为2.5秒.可传入`type` 来控制提示类型 */ export default class ExampleBase extends Compone...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/Table/ExampleColumnWidth.js
demo/src/pages/document/seeds/Table/ExampleColumnWidth.js
import React, {Component} from 'react'; import {Table} from 'hana-ui'; function getRandomString () { return Math.random().toString(36); } /** * @en * Base Example * * Example of how to custom column's width for each * * We can use `columnWidth` props to set width of each column. * * If pass <b>'auto'</b> a...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/Table/ExampleSelectRow.js
demo/src/pages/document/seeds/Table/ExampleSelectRow.js
import React, {Component} from 'react'; import {Table, Button} from 'hana-ui'; import xor from 'lodash/xor'; function getRandomString() { return Math.random().toString(36); } /** * @en * Custom row operation * * Pass an Array to property selectedRow and handle it's changes by onRowClick property * * Set `sele...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/Table/index.js
demo/src/pages/document/seeds/Table/index.js
import React, {Component} from 'react'; import ExampleContainer from 'demo/ExampleContainer'; import PropTypeDescription from 'demo/PropTypeDescription'; import MultiLangMarkdown from 'demo/MultiLangMarkdown'; import tableCode from '!raw-loader!hana-ui/seeds/Table/Table'; import ReadmeText from './README'; import Exa...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/Table/ExampleSelectHover.js
demo/src/pages/document/seeds/Table/ExampleSelectHover.js
import React, {Component} from 'react'; import {Table, Button} from 'hana-ui'; /** * Set `selectable` & `hoverable` props to true can make table support seleted & hover effect for each row * * `selectedRow` accept a function which will return seleted row's list, each list item include * element & its index */ exp...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/Table/ExampleBase.js
demo/src/pages/document/seeds/Table/ExampleBase.js
import React, {Component} from 'react'; import {Table, Button} from 'hana-ui'; function getRandomString () { return Math.random().toString(36); } /** * @en * Base Example * * &nbsp; * * @cn * 基础用例 * * &nbsp; */ export default class ExampleBase extends Component { state = { data: [ {one: 11, t...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/Tag/index.js
demo/src/pages/document/seeds/Tag/index.js
import React, {Component} from 'react'; import ExampleContainer from 'demo/ExampleContainer'; import PropTypeDescription from 'demo/PropTypeDescription'; import MultiLangMarkdown from 'demo/MultiLangMarkdown'; import Readme from './README'; import code from '!raw-loader!hana-ui/seeds/Tag/Tag'; import ExampleBase from ...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/Tag/ExampleBase.js
demo/src/pages/document/seeds/Tag/ExampleBase.js
import React, {Component} from 'react'; import {Tag} from 'hana-ui'; /** * @en * Base * * Using prop `hasClose` to show the close button * Using prop `onClose` to control * * @cn * 基础 * * 使用`hasClose`属性显示关闭按钮,`onClose`属性来控制点击事件。 */ export default class ExampleBase extends Component { state = { label:...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/Tag/ExampleSize.js
demo/src/pages/document/seeds/Tag/ExampleSize.js
import React, {Component} from 'react'; import {Tag} from 'hana-ui'; /** * @en * Size * * Using prop `size` to modify the tag's size * * @cn * 尺寸 * * 使用`size`来改变标签的尺寸。 */ export default class ExampleBase extends Component { state = { label: '' } render() { return ( <div> <Tag si...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/Tag/ExampleColorful.js
demo/src/pages/document/seeds/Tag/ExampleColorful.js
import React, {Component} from 'react'; import {Tag} from 'hana-ui'; /** * @en * Colorful * * Using prop `color` to change the tag's color * * @cn * 溢彩 * * 使用`color`来改变标签的颜色。 */ export default class ExampleBase extends Component { render() { return ( <div> <Tag color="#6cd4a4">#6cd4a4</T...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/Select/index.js
demo/src/pages/document/seeds/Select/index.js
import React, {Component} from 'react'; import ExampleContainer from 'demo/ExampleContainer'; import PropTypeDescription from 'demo/PropTypeDescription'; import MultiLangMarkdown from 'demo/MultiLangMarkdown'; import Readme from './README'; import code from '!raw-loader!hana-ui/seeds/Select/Select'; import optionCode ...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/Select/ExampleCustom.js
demo/src/pages/document/seeds/Select/ExampleCustom.js
import React, {Component} from 'react'; import {Select, Option} from 'hana-ui'; const optionList = [ {label: 'Haru', value: '1'}, {label: 'Natsu', value: '2'}, {label: 'Aki', value: '3'}, {label: 'Fuyu', value: '4'} ]; /** * @en * Custom * * Use `selectionStyle` and `optionStyle` to control styles. * * ...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/Select/ExampleMaxHeight.js
demo/src/pages/document/seeds/Select/ExampleMaxHeight.js
import React, {Component} from 'react'; import {Select, Option} from 'hana-ui'; /** * @en * Max-height * options can set max-height by using prop `maxHeight`. * * @cn * 最大高度 * 选项列表可以使用属性`maxHeight`设置最大高度。 */ export default class ExampleMaxHeight extends Component { render() { return ( <div> ...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/Select/ExampleBase.js
demo/src/pages/document/seeds/Select/ExampleBase.js
import React, {Component} from 'react'; import {Select, Option} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * Base * Base select module * * @cn * 基础 * 通用的选择组件 */ export default class ExampleBase extends Component { state = { value: '1', label: '', index: '' } rend...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/Select/ExampleMulti.js
demo/src/pages/document/seeds/Select/ExampleMulti.js
import React, {Component} from 'react'; import {Select, Option} from 'hana-ui'; /** * @en * Multiple * Select can be multiple by using prop `multiple`. * * @cn * 多选 * 使用属性`multiple`获得一个多选选择器。 * */ export default class ExampleBase extends Component { state = { value: ['1', '2', '3', '4'] } render() ...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/TimePicker/ExampleLang.js
demo/src/pages/document/seeds/TimePicker/ExampleLang.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 2017/3/3 */ import React from 'react'; import {TimePicker} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * Multi-Languages * * Hana provides property `lang` to support many languages, * 'en'...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/TimePicker/ExampleNames.js
demo/src/pages/document/seeds/TimePicker/ExampleNames.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 2017/3/3 */ import React from 'react'; import {TimePicker} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * Names * * This world is colorful, so sometimes you may want to use your favorite nam...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/TimePicker/index.js
demo/src/pages/document/seeds/TimePicker/index.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 17/1/23 */ import React, {Component} from 'react'; import ExampleContainer from 'demo/ExampleContainer'; import PropTypeDescription from 'demo/PropTypeDescription'; import MultiLangMarkdown from 'demo/MultiLangMarkdown'; ...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/TimePicker/ExampleView.js
demo/src/pages/document/seeds/TimePicker/ExampleView.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 2017/3/3 */ import React from 'react'; import {TimePicker, Button} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** *@en * View types. * * Set the component will be placed on page. * * Three view mo...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/TimePicker/ExampleBase.js
demo/src/pages/document/seeds/TimePicker/ExampleBase.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 17/1/23 */ import React, {Component} from 'react'; import {TimePicker, Button} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * Base * * You can set the time with `time` property, * if she is...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/TextArea/index.js
demo/src/pages/document/seeds/TextArea/index.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 2017/2/7 */ import React, {Component} from 'react'; import ExampleContainer from 'demo/ExampleContainer'; import PropTypeDescription from 'demo/PropTypeDescription'; import MultiLangMarkdown from 'demo/MultiLangMarkdown'; ...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/TextArea/ExampleSizes.js
demo/src/pages/document/seeds/TextArea/ExampleSizes.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 2017/2/8 */ import React from 'react'; import {TextArea} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * Size * * For different scenes, hana provides three preset sizes defined by property `s...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/TextArea/ExampleIcons.js
demo/src/pages/document/seeds/TextArea/ExampleIcons.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 2017/2/8 */ import React from 'react'; import {TextArea, Icon} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * Icon * * Icon is a important part of this component to make it more nijigen-styl...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/TextArea/ExampleStyles.js
demo/src/pages/document/seeds/TextArea/ExampleStyles.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 2017/2/8 */ import React from 'react'; import {TextArea} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * Styles * * hana also provide properties to cover default style and css, check the definitions...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/TextArea/ExampleBase.js
demo/src/pages/document/seeds/TextArea/ExampleBase.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 2017/2/7 */ import React, {Component} from 'react'; import {TextArea} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * Base * * This component could work in two mode which decided by `auto` pr...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/TextArea/ExampleStates.js
demo/src/pages/document/seeds/TextArea/ExampleStates.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 2017/2/8 */ import React from 'react'; import {TextArea} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * State * * hana feels the real world is very complicated, there must be rich states to ...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/Loading/index.js
demo/src/pages/document/seeds/Loading/index.js
import React, {Component} from 'react'; import ExampleContainer from 'demo/ExampleContainer'; import PropTypeDescription from 'demo/PropTypeDescription'; import MultiLangMarkdown from 'demo/MultiLangMarkdown'; import ReadmeText from './README'; import code from '!raw-loader!hana-ui/seeds/Loading/Loading'; import Examp...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/Loading/ExampleBase.js
demo/src/pages/document/seeds/Loading/ExampleBase.js
import React, {Component} from 'react'; import {Loading, Button} from 'hana-ui'; /** * @en * Base * * hana provide three mode to show the loading. * Press button to show `Loading`, it will hide in 5 seconds. * * @cn * 基础 * * hana 提供了三种模式去显示加载器。 * 点击按钮显示loading,5秒后停止loading。 */ export default class Exam...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/Icon/index.js
demo/src/pages/document/seeds/Icon/index.js
import React, {Component} from 'react'; import ExampleContainer from 'demo/ExampleContainer'; import PropTypeDescription from 'demo/PropTypeDescription'; import MultiLangMarkdown from 'demo/MultiLangMarkdown'; import ReadmeText from './README'; import code from '!raw-loader!hana-ui/seeds/Icon/Icon'; import ExampleBase...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/Icon/getIcons.js
demo/src/pages/document/seeds/Icon/getIcons.js
import code from '!raw-loader!hana-ui/styles/mixin/icon.scss'; function getIcons() { const str = code.match(/\$icons[\s\S]+\);/g)[0]; const arr = str.split('\n'); const result = arr.map(item => { const s = item.trim(); const match = s.match(/"\\e[\s\S]+?"/); if (match) { const unicode = match[...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/Icon/ExampleBase.js
demo/src/pages/document/seeds/Icon/ExampleBase.js
import React, {Component} from 'react'; import {Icon} from 'hana-ui'; import randomColor from 'randomcolor'; import ExampleBlock from 'demo/ExampleBlock'; import getIcons from './getIcons'; const result = getIcons(); const itemStyle = { display: 'inline-block', textAlign: 'center', width: 200, fontSize: 14, ...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/DatePicker/ExampleLang.js
demo/src/pages/document/seeds/DatePicker/ExampleLang.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 17/1/20 */ import React from 'react'; import {DatePicker} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * Multi-Languages * * Hana provides property `lang` to support many languages, * 'en',...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/DatePicker/ExampleNames.js
demo/src/pages/document/seeds/DatePicker/ExampleNames.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 17/1/20 */ import React from 'react'; import {DatePicker} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * Names * * This world is colorful, so sometimes you may want to use your favorite name...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/DatePicker/index.js
demo/src/pages/document/seeds/DatePicker/index.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 17/1/16 */ import React, {Component} from 'react'; import ExampleContainer from 'demo/ExampleContainer'; import PropTypeDescription from 'demo/PropTypeDescription'; import MultiLangMarkdown from 'demo/MultiLangMarkdown'; ...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/DatePicker/ExampleRange.js
demo/src/pages/document/seeds/DatePicker/ExampleRange.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 17/1/20 */ import React from 'react'; import {DatePicker} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * Date range. * * Property `yearStart` and `yearEnd` are used for setting range for sel...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/DatePicker/ExampleView.js
demo/src/pages/document/seeds/DatePicker/ExampleView.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 17/1/20 */ import React from 'react'; import {DatePicker, Button} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** *@en * View types. * * Set the component will be placed on page. * * Three view mod...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/DatePicker/ExampleBase.js
demo/src/pages/document/seeds/DatePicker/ExampleBase.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 17/1/16 */ import React, {Component} from 'react'; import {DatePicker, Button} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * Base * * You can set the date with `date` property, * if she is...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/Text/ExampleTypes.js
demo/src/pages/document/seeds/Text/ExampleTypes.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 16/12/30 */ import React from 'react'; import {Text} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * Text type * * `type` property is a constraint on the input value, it is useful when you ne...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
hana-group/hana-ui
https://github.com/hana-group/hana-ui/blob/0cd7f345ff43074fd674291b2a65d12ccddd163f/demo/src/pages/document/seeds/Text/index.js
demo/src/pages/document/seeds/Text/index.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 16/12/28 */ import React, {Component} from 'react'; import ExampleContainer from 'demo/ExampleContainer'; import PropTypeDescription from 'demo/PropTypeDescription'; import MultiLangMarkdown from 'demo/MultiLangMarkdown'; ...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false