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/demo/src/pages/document/seeds/Text/ExampleSizes.js
demo/src/pages/document/seeds/Text/ExampleSizes.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 * Size * * For different scenes, hana provides three preset sizes defined by property `size`...
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/ExampleIcons.js
demo/src/pages/document/seeds/Text/ExampleIcons.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 16/12/30 */ import React from 'react'; import {Text, Icon} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * Icon * * Icon is a important part of this component to make it more nijigen-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/Text/ExampleStyles.js
demo/src/pages/document/seeds/Text/ExampleStyles.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 * Styles * * hana also provide properties to cover default style and css, check the definiti...
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/ExampleView.js
demo/src/pages/document/seeds/Text/ExampleView.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 17/1/2 */ import React from 'react'; import {Text} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * View * * hana provides property `view` to decides how the component will be shown, * it cou...
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/ExampleBase.js
demo/src/pages/document/seeds/Text/ExampleBase.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 16/12/29 */ import React, {Component} from 'react'; import {Text} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * Base * * This component could work in two mode which decided by `auto` proper...
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/ExampleStates.js
demo/src/pages/document/seeds/Text/ExampleStates.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 16/12/29 */ import React from 'react'; import {Text} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * State * * hana feels the real world is very complicated, there must be rich states to adap...
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/Animation/index.js
demo/src/pages/document/seeds/Animation/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/Animation/Animation'; import E...
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/Animation/ExampleBase.js
demo/src/pages/document/seeds/Animation/ExampleBase.js
import React, {Component} from 'react'; import {Animation, Button} from 'hana-ui'; /** * @en * Base * * `THE CUBE` can changed its position. * * @cn * 基础 * * 一个可以滑动的小方块。 */ export default class ExampleBase extends Component { state = { begin: true } render() { const cubeStyle = { width: ...
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/Menu/ExampleNested.js
demo/src/pages/document/seeds/Menu/ExampleNested.js
import React, {Component} from 'react'; import {Menu, SubMenu, MenuItem} from 'hana-ui'; /** * @en * Nested * * A nested menu, `SubMenu` can be nested in a `SubMenu` component. * * @cn * 嵌套 * * 一个嵌套的菜单,`SubMenu`之间可以相互嵌套。 */ export default class ExampleBase extends Component { render() { return ( ...
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/Menu/index.js
demo/src/pages/document/seeds/Menu/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 menuCode from '!raw-loader!hana-ui/seeds/Menu/Menu'; import subMenu...
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/Menu/ExampleTab.js
demo/src/pages/document/seeds/Menu/ExampleTab.js
import React, {Component} from 'react'; import {Menu, MenuItem} from 'hana-ui'; /** * @en * Tab-like * * Using prop `horizonal` to make a tab-like menu. * * @cn * 标签页 * * 使用属性`horizonal`来创建一个标签页菜单。 */ export default class ExampleBase extends Component { render() { return ( <div> <Menu au...
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/Menu/ExampleDisabled.js
demo/src/pages/document/seeds/Menu/ExampleDisabled.js
import React, {Component} from 'react'; import {Menu, SubMenu, MenuItem} from 'hana-ui'; /** * @en * Disabled * * A nested menu with several disabled items. * * @cn * 禁用 * * 一个有着部分被禁用元素的菜单。 */ export default class ExampleBase extends Component { render() { return ( <div> <Menu auto 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/Menu/ExampleBase.js
demo/src/pages/document/seeds/Menu/ExampleBase.js
import React, {Component} from 'react'; import {Menu, SubMenu, MenuItem} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * Base * * Just get value by props `onClick`. * * @cn * 基础 * * 使用`onClick`获取菜单的值。 */ export default class ExampleBase extends Component { state = { value: '' ...
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/Pagination/index.js
demo/src/pages/document/seeds/Pagination/index.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 2017/2/9 */ 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/Pagination/ExampleView.js
demo/src/pages/document/seeds/Pagination/ExampleView.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 2017/2/10 */ import React, {Component} from 'react'; import {Pagination} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * * @en * View * * Property `view` decides the type of component will be show...
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/Pagination/ExampleBase.js
demo/src/pages/document/seeds/Pagination/ExampleBase.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 2017/2/9 */ import React, {Component} from 'react'; import {Pagination} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * Base * * Use the pagination to enhance your list view. * * Like lots ...
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/Pagination/ExampleSize.js
demo/src/pages/document/seeds/Pagination/ExampleSize.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 2017/2/10 */ import React, {Component} from 'react'; import {Pagination} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * Size * * For different scenes, hana provides three preset sizes define...
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/Slider/index.js
demo/src/pages/document/seeds/Slider/index.js
import React, {Component} from 'react'; import ExampleContainer from 'demo/ExampleContainer'; import PropTypeDescription from 'demo/PropTypeDescription'; import MultiLangMarkdown from 'demo/MultiLangMarkdown'; import sidebarCode from '!raw-loader!hana-ui/seeds/Slider/Slider'; import ReadmeText from './README'; import...
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/Slider/ExampleBase.js
demo/src/pages/document/seeds/Slider/ExampleBase.js
import React, {Component} from 'react'; import {Slider} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * Base * * Use props `value` and `defaultValue` to control slider's value. * * Use `onChange` to handle the change event. * * @cn * 基础 * * 使用属性`value`和`defaultValue`来控制滑动条的值。 * *...
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/Progress/index.js
demo/src/pages/document/seeds/Progress/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/Progress/Progress'; 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/Progress/ExampleBase.js
demo/src/pages/document/seeds/Progress/ExampleBase.js
import React, {Component} from 'react'; import {Progress, Button} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * Base Example * * The progress has three different sizes. Using props `color` and `fontColor` to change the color. * @cn * 基础示例 * * 进度条有三种不同的尺寸,并且可以通过`color`和`fontColor`属性更...
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/Radio/index.js
demo/src/pages/document/seeds/Radio/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/Radio/Radio'; import groupCode...
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/Radio/ExampleCustom.js
demo/src/pages/document/seeds/Radio/ExampleCustom.js
import React, {Component} from 'react'; import {Radio, RadioGroup, Icon} from 'hana-ui'; /** * @en * Custom Icons * * The icon can be custom icon by using prop `checkedIcon` and `unCheckedIcon` * * The RadioGroup can also use prop `checkedIcon` and `unCheckedIcon` * * @cn * 自定义图标 * * 可以使用属性`checkedIcon`和`un...
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/Radio/ExampleGroup.js
demo/src/pages/document/seeds/Radio/ExampleGroup.js
import React, {Component} from 'react'; import {Radio, RadioGroup} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * Group * * Use `RadioGroup` to control multiple Radios. * * @cn * 单选框组 * * 使用`RadioGroup`来管理多个单选框组件,仅需在`RadioGroup`上使用`value`及`onChange`属性。 */ export default class 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/Radio/ExampleDisabled.js
demo/src/pages/document/seeds/Radio/ExampleDisabled.js
import React, {Component} from 'react'; import {Switch, Radio} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * Disabled Example * * Use prop `disabled` to disable the radio. * * @cn * 禁用示例 * * 使用属性`disabled`来禁用单选框。 */ export default class ExampleDisabled extends Component { state ...
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/Radio/ExampleBase.js
demo/src/pages/document/seeds/Radio/ExampleBase.js
import React, {Component} from 'react'; import {Radio} from 'hana-ui'; /** * @en * Base * * A base radio component. * * @cn * 基础 * * 基础的单选框组件。 */ export default class ExampleBase extends Component { state = { isChecked: false } render() { return ( <div> <Radio 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/Tooltip/ExampleStyle.js
demo/src/pages/document/seeds/Tooltip/ExampleStyle.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 17/1/5 */ import React from 'react'; import {Tooltip, Button} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * Style * * You can use the property 'style' and `containerStyle` to custom 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/Tooltip/index.js
demo/src/pages/document/seeds/Tooltip/index.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 17/1/4 */ 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/Tooltip/ExampleView.js
demo/src/pages/document/seeds/Tooltip/ExampleView.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 2017/3/6 */ import React from 'react'; import {Tooltip, Button} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * View * hana use `view` property to define the view type of popover. * * @cn *...
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/Tooltip/ExamplePosition.js
demo/src/pages/document/seeds/Tooltip/ExamplePosition.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 17/1/4 */ import React from 'react'; import {Tooltip, Button} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * Positions * * hana provides property `position` to decide where the Tooltip will ...
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/Tooltip/ExampleBase.js
demo/src/pages/document/seeds/Tooltip/ExampleBase.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 17/1/4 */ import React, {Component} from 'react'; import {Tooltip, Switch, Button} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * Base * * This component mainly works with state `show` and p...
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/Tooltip/ExampleTrigger.js
demo/src/pages/document/seeds/Tooltip/ExampleTrigger.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 17/1/4 */ import React from 'react'; import {Tooltip, Text, Button} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * Triggers * * Tooltip could be controlled by many triggers, * you can use 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/Button/index.js
demo/src/pages/document/seeds/Button/index.js
import React, {Component} from 'react'; import ExampleContainer from 'demo/ExampleContainer'; import PropTypeDescription from 'demo/PropTypeDescription'; import MultiLangMarkdown from 'demo/MultiLangMarkdown'; import buttonCode from '!raw-loader!hana-ui/seeds/Button/Button'; import buttonGroupCode from '!raw-loader!ha...
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/Button/ExampleIcon.js
demo/src/pages/document/seeds/Button/ExampleIcon.js
import React, {Component} from 'react'; import {Button} from 'hana-ui'; /** * @en * Group * * Button could has an icon at the front. * * @cn * 成组 * * 可以在按钮的开头放一个图标。 */ export default class ExampleIcon extends Component { render() { const baseStyle = {marginRight: 10}; 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/Button/ExampleGroup.js
demo/src/pages/document/seeds/Button/ExampleGroup.js
import React, {Component} from 'react'; import {ButtonGroup, Button} from 'hana-ui'; /** * @en * Group * * Multiple buttons could be added to a group. * * @cn * 成组 * * 多个按钮可以归于一组。 */ export default class ExampleGroup extends Component { render() { return ( <ButtonGroup> <Button> ...
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/Button/ExampleBase.js
demo/src/pages/document/seeds/Button/ExampleBase.js
import React, {Component} from 'react'; import {Button} from 'hana-ui'; /** * @en * Base * * Base usage. * * @cn * 基础 * * 基础用法。 */ export default class ExampleBase extends Component { render() { const baseStyle = {marginRight: 10}; return ( <div> <Button style={baseStyle} size={'larg...
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/Button/ExampleLabel.js
demo/src/pages/document/seeds/Button/ExampleLabel.js
import React, {Component} from 'react'; import {Button} from 'hana-ui'; /** * @en * Label * * Button component can set a label to show data after button. * * @cn * 标记 * * 也可以将一些Label放在标记后面。 * */ export default class ExampleLabel extends Component { render() { return ( <div> <Button ...
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/Checkbox/index.js
demo/src/pages/document/seeds/Checkbox/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 checkboxCode from '!raw-loader!hana-ui/seeds/Checkbox/Checkbox'; im...
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/Checkbox/ExampleCustom.js
demo/src/pages/document/seeds/Checkbox/ExampleCustom.js
import React, {Component} from 'react'; import {Checkbox, CheckboxGroup, Icon} from 'hana-ui'; /** * @en * Custom Icons * * Using prop `checkedIcon` and `unCheckedIcon` to have custom icons. * * The CheckboxGroup can also use prop `checkedIcon` and `unCheckedIcon`. * * @cn * 自定义图标 * * 可以使用`checkedIcon`和`unC...
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/Checkbox/ExampleGroup.js
demo/src/pages/document/seeds/Checkbox/ExampleGroup.js
import React, {Component} from 'react'; import {Checkbox, CheckboxGroup} from 'hana-ui'; /** * @en * Checkbox Group * * Using `CheckboxGroup` to control multiple Checkboxes. * * @cn * 复选框组 * * 使用`CheckboxGroup`来控制多个复选框 */ export default class ExampleGroup extends Component { state = { val: ['1', '3'] ...
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/Checkbox/ExampleAuto.js
demo/src/pages/document/seeds/Checkbox/ExampleAuto.js
import React, {Component} from 'react'; import {Checkbox} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * Auto * * Using prop `auto` to let it controlled by itself. * * @cn * 自控模式 * * 使用`auto`属性使其自行控制选中状态。 */ export default class ExampleAuto extends Component { state = { check...
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/Checkbox/ExampleDisabled.js
demo/src/pages/document/seeds/Checkbox/ExampleDisabled.js
import React, {Component} from 'react'; import {Switch, Checkbox} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * Disabled * * Checkbox can be disabled by prop `disabled`. * * @cn * 禁用状态 * * 使用`disabled`属性来禁用复选框。 */ export default class ExampleDisabled extends Component { state = ...
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/Checkbox/ExampleBase.js
demo/src/pages/document/seeds/Checkbox/ExampleBase.js
import React, {Component} from 'react'; import {Checkbox} from 'hana-ui'; /** * @en * Base * * Base example of the checkbox component. Using `checked` to control the statement. * When the state changed, it will trigger `onChange` event. * * @cn * 基础 * * 基本的选择框,使用`checked`属性控制是否被选中;当选中状态改变时,会触发`onChange`事件。 ...
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/Postcard/ExampleClothesline.js
demo/src/pages/document/seeds/Postcard/ExampleClothesline.js
import React, {Component} from 'react'; import {Postcard, PostcardGroup, Image} from 'hana-ui'; /** * 3 different size of Icon. */ const styles = { width: 200 }; export default class ExampleBase extends Component { render() { return ( <div> <p style={{margin: '15px 0'}}>group</p> <Post...
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/Postcard/index.js
demo/src/pages/document/seeds/Postcard/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/Postcard/Postcard'; import gro...
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/Postcard/ExampleGroup.js
demo/src/pages/document/seeds/Postcard/ExampleGroup.js
import React, {Component} from 'react'; import {Postcard, PostcardGroup, Image} from 'hana-ui'; const styles = { width: 200 }; /** * @en * Group * * PostcardGroup with severa postcards. * * @cn * 明信片组 * * 明信片组,包含一组明信片。 */ export default class ExampleBase extends Component { render() { return ( ...
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/Postcard/ExampleBase.js
demo/src/pages/document/seeds/Postcard/ExampleBase.js
import React, {Component} from 'react'; import {Postcard, Image} from 'hana-ui'; const styles = { width: 400 // height: 250 }; /** * @en * Base * * A default postcard example. * * @cn * 基础 * * 一个基本的明信片组件。 */ export default class ExampleBase 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/Divider/index.js
demo/src/pages/document/seeds/Divider/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/Divider/ExampleBase.js
demo/src/pages/document/seeds/Divider/ExampleBase.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 17/1/3 */ import React from 'react'; import {Divider, Text} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * Base * * Use `className` and `style` to cover the defaults. * * @cn * 基础 * * 使...
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/Image/index.js
demo/src/pages/document/seeds/Image/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/Image/Image'; import codeGroup...
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/Image/ExampleGroup.js
demo/src/pages/document/seeds/Image/ExampleGroup.js
import React, {Component} from 'react'; import {Image, ImageGroup} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; const exampleSrc = 'https://t4.kn3.net/taringa/5/C/0/6/C/9/DogeDogOficial/59C.jpg'; /** * @en * Group * * Using `ImageGroup` to manage a group of pictures. * * @cn * 图片组 * * 使用`Imag...
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/Image/ExampleBase.js
demo/src/pages/document/seeds/Image/ExampleBase.js
import React, {Component} from 'react'; import {Image, Card} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; const exampleSrc = 'https://t4.kn3.net/taringa/5/C/0/6/C/9/DogeDogOficial/59C.jpg'; /** * @en * Base * * Images with different size and shape. * * @cn * 基础 * * 不同尺寸、形状的图片。 */ export def...
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/Sidebar/index.js
demo/src/pages/document/seeds/Sidebar/index.js
import React, {Component} from 'react'; import ExampleContainer from 'demo/ExampleContainer'; import PropTypeDescription from 'demo/PropTypeDescription'; import MultiLangMarkdown from 'demo/MultiLangMarkdown'; import sidebarCode from '!raw-loader!hana-ui/seeds/Sidebar/Sidebar'; import ReadmeText from './README'; 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/seeds/Sidebar/ExampleBase.js
demo/src/pages/document/seeds/Sidebar/ExampleBase.js
import React, {Component} from 'react'; import {Button, Sidebar, Menu, SubMenu, MenuItem} from 'hana-ui'; /** * @en * Base example * * Control sidebar show or hide * * @cn * 基础用例 * * 控制侧边栏显示状态 */ export default class ExampleBase extends Component { state = { open: false, openRight: false } 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/flowers/AudioPlayer/index.js
demo/src/pages/document/flowers/AudioPlayer/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/flowers/AudioPlayer/AudioPlayer'; im...
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/flowers/AudioPlayer/ExampleBase.js
demo/src/pages/document/flowers/AudioPlayer/ExampleBase.js
import React, {Component} from 'react'; import {AudioPlayer} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; const songList = [ { src: 'http://oekm6wrcq.bkt.clouddn.com/時間列車.mp3', poster: 'http://oekm6wrcq.bkt.clouddn.com/時間列車.jpg', title: '時間列車', artist: 'supercell' }, { src: '...
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/flowers/VideoPlayer/index.js
demo/src/pages/document/flowers/VideoPlayer/index.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 2017/3/15 */ 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/flowers/VideoPlayer/ExampleBase.js
demo/src/pages/document/flowers/VideoPlayer/ExampleBase.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 2017/3/15 */ import React, {Component} from 'react'; import {VideoPlayer} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * Base * * Base example with tow predefined view type and mode. * * @...
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/flowers/ADVEngine/index.js
demo/src/pages/document/flowers/ADVEngine/index.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 2017/3/15 */ 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/flowers/ADVEngine/ExampleBase.js
demo/src/pages/document/flowers/ADVEngine/ExampleBase.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 2017/3/15 */ import React, {Component} from 'react'; import {ADVEngine} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * Base * * Base example with tow predefined view type and mode. * * @cn...
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/burgeon/Carousel/index.js
demo/src/pages/document/burgeon/Carousel/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/burgeon/Carousel/Carousel'; import E...
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/burgeon/Carousel/ExampleBase.js
demo/src/pages/document/burgeon/Carousel/ExampleBase.js
import React, {Component} from 'react'; import {Carousel} from 'hana-ui'; /** * @en * Base * * A base `Carousel` example. * * @cn * 基础 * * 一个基本的旋转木马组件。 */ export default class ExampleBase extends Component { state = { // index: 0 } render() { const width = 600; const height = 300; cons...
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/burgeon/Card/index.js
demo/src/pages/document/burgeon/Card/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/burgeon/Card/Card'; 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/burgeon/Card/ExampleBase.js
demo/src/pages/document/burgeon/Card/ExampleBase.js
import React, {Component} from 'react'; import {Card, Text} from 'hana-ui'; /** * @en * Base * * A base card example. * * @cn * 基础 * * 一个基本的`Card`。 */ export default class ExampleBase extends Component { render() { return ( <div style={{background: '#fff', padding: 20}}> <Card title="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/burgeon/Card/ExampleExpand.js
demo/src/pages/document/burgeon/Card/ExampleExpand.js
import React, {Component} from 'react'; import {Card, Image, Button} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * expand * * Create an expand card by using prop `expand`. * Use prop `expandIcon` to have a custom button. * Use prop `open` to control the card's open state. * * @cn *...
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/burgeon/Form/ExampleComplex.js
demo/src/pages/document/burgeon/Form/ExampleComplex.js
import React, {Component} from 'react'; import { Form, FormItem, FormGroup, Select, Option, Text, Checkbox, CheckboxGroup, Radio, RadioGroup, Button } from 'hana-ui'; /** * @en * Complex * A complex form used `Form` component, having nested items and info. * * @cn * 较复杂的例子 * * 一个较复杂的表单示例,带有嵌套、提示。 */...
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/burgeon/Form/index.js
demo/src/pages/document/burgeon/Form/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/burgeon/Form/Form'; import groupCode...
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/burgeon/Form/ExampleCustom.js
demo/src/pages/document/burgeon/Form/ExampleCustom.js
import React, {Component} from 'react'; import { Form, FormItem, FormGroup, Select, Option, Text, Checkbox, CheckboxGroup, Radio, RadioGroup, Button } from 'hana-ui'; /** * @en * Custom * * Use `labelStyle`, `itemLabelStyle`, `elementStyle` to control the `Form`'s style. * * @cn * 自定义 * * 自定义表单,使用`l...
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/burgeon/Form/ExampleBase.js
demo/src/pages/document/burgeon/Form/ExampleBase.js
import React, {Component} from 'react'; import {Form, FormItem, Select, Option, Text, Checkbox, CheckboxGroup, Radio, RadioGroup, Button, TextArea } from 'hana-ui'; /** * @en * Base * A simple form used `Form` component. * * @cn * 基础 * * 一个简单的表单示例。 */ export default class ExampleBase extends Component {...
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/burgeon/Form/ExampleLabelPosition.js
demo/src/pages/document/burgeon/Form/ExampleLabelPosition.js
import React, {Component} from 'react'; import { Form, FormItem, FormGroup, Select, Option, Text, Checkbox, CheckboxGroup, Radio, RadioGroup, Button } from 'hana-ui'; /** * @en * Label Position * * Hana provides two label position styles, use `labelPosition` to control the label's position. * * @cn * ...
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/burgeon/IconButton/index.js
demo/src/pages/document/burgeon/IconButton/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/burgeon/IconButton/IconButton'; 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/burgeon/IconButton/ExampleBase.js
demo/src/pages/document/burgeon/IconButton/ExampleBase.js
import React, {Component} from 'react'; import {IconButton} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * Base * * An icon-button with tooltip. * * @cn * 基础 * * 图标按钮,带有tooltip功能。 */ export default class ExampleBase extends Component { state = { clicked: false } 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/burgeon/Upload/index.js
demo/src/pages/document/burgeon/Upload/index.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 2017/3/6 */ 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/burgeon/Upload/ExampleMethods.js
demo/src/pages/document/burgeon/Upload/ExampleMethods.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 2017/3/9 */ import React, {Component} from 'react'; import {Upload, Checkbox, Text} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * Methods * * hana provides some methods to make file upload ...
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/burgeon/Upload/ExampleCustom.js
demo/src/pages/document/burgeon/Upload/ExampleCustom.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 2017/3/10 */ import React, {Component} from 'react'; import {UploadBase, Button} from 'hana-ui'; import cx from 'classnames'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * Customizations * * hana knows the...
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/burgeon/Upload/ExampleBase.js
demo/src/pages/document/burgeon/Upload/ExampleBase.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 2017/3/6 */ import React, {Component} from 'react'; import {Upload, Checkbox} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * Base * * Base example with tow predefined view type and mode. * ...
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/burgeon/DateTimePicker/index.js
demo/src/pages/document/burgeon/DateTimePicker/index.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 2017/2/6 */ 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/burgeon/DateTimePicker/ExampleBase.js
demo/src/pages/document/burgeon/DateTimePicker/ExampleBase.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 2017/2/6 */ import React, {Component} from 'react'; import {DateTimePicker} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; /** * @en * Base * * All properties' usage are as same as the DatePicker and Ti...
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/topbar/index.js
demo/src/pages/topbar/index.js
/** * Copyright(c) dtysky<dtysky@outlook.com> * Created: 26 Nov 2017 * Description: */ import React from 'react'; import PropTypes from 'prop-types'; import {Link, withRouter} from 'react-router-dom'; import cx from 'classnames'; import {Select, Option, Icon} from 'hana-ui'; import config from '../../config'; 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/guide/index.js
demo/src/pages/guide/index.js
import React from 'react'; import cx from 'classnames'; import MultiLangMarkdown from 'demo/MultiLangMarkdown'; import cn from './cn.md'; import en from './en.md'; import './base.scss'; const Guide = () => ( <MultiLangMarkdown className={cx('demo-guide', 'demo-with-fade-head-tail')} text={` @cn ${cn} @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/overview/index.js
demo/src/pages/overview/index.js
/** * Copyright(c) dtysky<dtysky@outlook.com> * Created: 25 Nov 2017 * Description: */ import React from 'react'; import PropTypes from 'prop-types'; import {Link} from 'react-router-dom'; import {CSSTransition} from 'react-transition-group'; import cx from 'classnames'; import config from '../../config'; import M...
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/components/FireFlies.js
demo/src/components/FireFlies.js
/** * Copyright(c) dtysky<dtysky@outlook.com> * Created: 10 Feb 2018 * Description: */ import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; function randomInt(start, end) { let num; if (window.crypto) { num = window.crypto.getRandomValues(new Uint8Array([1]))[0] / 255...
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/components/PropTypeDescription.js
demo/src/components/PropTypeDescription.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 16/12/29 */ import React, {Component} from 'react'; import PropTypes from 'prop-types'; import {parse} from 'react-docgen'; import recast from 'recast'; import {parse as parseDoctrine} from 'doctrine'; import cx from 'clas...
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/components/MarkdownElement.js
demo/src/components/MarkdownElement.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 16/12/29 */ import React, {Component} from 'react'; import PropTypes from 'prop-types'; import marked from 'marked'; import cx from 'classnames'; import highlightjs from 'highlight.js/lib/highlight'; import javascript 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/components/MultiLangMarkdown.js
demo/src/components/MultiLangMarkdown.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 MarkdownElement from './MarkdownElement'; import {langRegexLines, langRegexLine, langManager, parseText} from '../languages'; ...
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/components/Home.js
demo/src/components/Home.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'; class HomePage extends Component { static contextTypes = { router: PropTypes.object.isRequired }; render() { return ( ...
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/components/ExampleBlock.js
demo/src/components/ExampleBlock.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 2017/3/2 */ import React, {Component} from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import {langManager} from '../languages'; export default class ExampleBlock extends Component { static...
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/components/MultiLang.js
demo/src/components/MultiLang.js
/** * Copyright(c) dtysky<dtysky@outlook.com> * Created: 3 Dec 2017 * Description: */ import * as React from 'react'; import PropTypes from 'prop-types'; import {langManager} from '../languages'; const MultiLang = (props) => { const desc = props[langManager.lang]; return ( <div className={props.clas...
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/components/ScrollToTop.js
demo/src/components/ScrollToTop.js
import {Component} from 'react'; import {withRouter} from 'react-router-dom'; import PropTypes from 'prop-types'; class ScrollToTop extends Component { componentDidUpdate(prevProps) { if (this.props.location !== prevProps.location) { window.scrollTo(0, 0); } } render() { return this.props.chil...
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/components/ExampleContainer/CodeView.js
demo/src/components/ExampleContainer/CodeView.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 16/12/29 */ import React, {Component} from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import MarkdownElement from '../MarkdownElement'; import CodeViewTitle from './CodeViewTitle'; const 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/components/ExampleContainer/index.js
demo/src/components/ExampleContainer/index.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 16/12/29 */ import React, {Component} from 'react'; import PropTypes from 'prop-types'; import {parse} from 'react-docgen'; import CodeView from './CodeView'; import cx from 'classnames'; import {langRegexLines, langRegex...
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/components/ExampleContainer/CodeViewTitle.js
demo/src/components/ExampleContainer/CodeViewTitle.js
/** * Author: ひまわり(dtysky<dtysky@outlook.com>) * Github: https://github.com/dtysky * Created: 16/12/29 */ import React, {Component} from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import {Icon} from 'hana-ui'; export default class CodeViewTitle extends Component { static propTypes...
javascript
MIT
0cd7f345ff43074fd674291b2a65d12ccddd163f
2026-01-05T03:41:19.084369Z
false
thredup/rollbar-sourcemap-webpack-plugin
https://github.com/thredup/rollbar-sourcemap-webpack-plugin/blob/0c15d3eb902da482bb04142e5abc7e6a66595107/.eslintrc.js
.eslintrc.js
module.exports = { extends: ['airbnb-base', 'plugin:prettier/recommended'], parser: 'babel-eslint', plugins: ['prettier'], env: { jest: true, node: true }, parserOptions: { ecmaFeatures: { restParams: true, experimentalObjectRestSpread: true } }, ignorePatterns: ['node_module...
javascript
MIT
0c15d3eb902da482bb04142e5abc7e6a66595107
2026-01-05T03:41:22.653401Z
false
thredup/rollbar-sourcemap-webpack-plugin
https://github.com/thredup/rollbar-sourcemap-webpack-plugin/blob/0c15d3eb902da482bb04142e5abc7e6a66595107/jest.config.js
jest.config.js
module.exports = { clearMocks: true, coverageDirectory: 'coverage', testEnvironment: 'node', };
javascript
MIT
0c15d3eb902da482bb04142e5abc7e6a66595107
2026-01-05T03:41:22.653401Z
false
thredup/rollbar-sourcemap-webpack-plugin
https://github.com/thredup/rollbar-sourcemap-webpack-plugin/blob/0c15d3eb902da482bb04142e5abc7e6a66595107/src/constants.js
src/constants.js
export const PLUGIN_NAME = 'RollbarSourceMapPlugin'; export const ROLLBAR_ENDPOINT = 'https://api.rollbar.com/api/1/sourcemap'; export const ROLLBAR_REQ_FIELDS = ['accessToken', 'version', 'publicPath'];
javascript
MIT
0c15d3eb902da482bb04142e5abc7e6a66595107
2026-01-05T03:41:22.653401Z
false
thredup/rollbar-sourcemap-webpack-plugin
https://github.com/thredup/rollbar-sourcemap-webpack-plugin/blob/0c15d3eb902da482bb04142e5abc7e6a66595107/src/RollbarSourceMapPlugin.js
src/RollbarSourceMapPlugin.js
import { promises as fs } from 'fs'; import { join } from 'path'; import fetch from 'node-fetch'; import FormData from 'form-data'; import isString from 'lodash.isstring'; import VError from 'verror'; import { handleError, validateOptions } from './helpers'; import { PLUGIN_NAME, ROLLBAR_ENDPOINT } from './constants'; ...
javascript
MIT
0c15d3eb902da482bb04142e5abc7e6a66595107
2026-01-05T03:41:22.653401Z
false
thredup/rollbar-sourcemap-webpack-plugin
https://github.com/thredup/rollbar-sourcemap-webpack-plugin/blob/0c15d3eb902da482bb04142e5abc7e6a66595107/src/helpers.js
src/helpers.js
import VError from 'verror'; import isFunction from 'lodash.isfunction'; import isString from 'lodash.isstring'; import { PLUGIN_NAME, ROLLBAR_REQ_FIELDS } from './constants'; // Take a single Error or array of Errors and return an array of errors that // have message prefixed. export function handleError(err, prefix ...
javascript
MIT
0c15d3eb902da482bb04142e5abc7e6a66595107
2026-01-05T03:41:22.653401Z
false
thredup/rollbar-sourcemap-webpack-plugin
https://github.com/thredup/rollbar-sourcemap-webpack-plugin/blob/0c15d3eb902da482bb04142e5abc7e6a66595107/test/RollbarSourceMapPlugin.test.js
test/RollbarSourceMapPlugin.test.js
import { promises as fs } from 'fs'; import nock from 'nock'; import RollbarSourceMapPlugin from '../src/RollbarSourceMapPlugin'; import { PLUGIN_NAME, ROLLBAR_ENDPOINT } from '../src/constants'; describe('RollbarSourceMapPlugin', () => { let compiler; let defaultOptions; let plugin; beforeEach(() => { co...
javascript
MIT
0c15d3eb902da482bb04142e5abc7e6a66595107
2026-01-05T03:41:22.653401Z
false
thredup/rollbar-sourcemap-webpack-plugin
https://github.com/thredup/rollbar-sourcemap-webpack-plugin/blob/0c15d3eb902da482bb04142e5abc7e6a66595107/test/helpers.test.js
test/helpers.test.js
import { ROLLBAR_REQ_FIELDS } from '../src/constants'; import * as helpers from '../src/helpers'; describe('helpers', () => { describe('handleError', () => { it('returns an array of length 1 given a single error', () => { const result = helpers.handleError(new Error('required field missing')); expect...
javascript
MIT
0c15d3eb902da482bb04142e5abc7e6a66595107
2026-01-05T03:41:22.653401Z
false
thredup/rollbar-sourcemap-webpack-plugin
https://github.com/thredup/rollbar-sourcemap-webpack-plugin/blob/0c15d3eb902da482bb04142e5abc7e6a66595107/examples/next-js/next.config.js
examples/next-js/next.config.js
require('dotenv').config(); const RollbarSourcemapPlugin = require('rollbar-sourcemap-webpack-plugin'); const withSourceMaps = require('@zeit/next-source-maps')({ devtool: 'nosources-source-map' }); // replace `<ROLLBAR_ACCESS_TOKEN>` with your Rollbar access token const ROLLBAR_ACCESS_TOKEN = process.env.ROLLBAR_S...
javascript
MIT
0c15d3eb902da482bb04142e5abc7e6a66595107
2026-01-05T03:41:22.653401Z
false