Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(utils/sui-tokens): first attempt #2787

Draft
wants to merge 20 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/atom/tag/demo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import ArticleActionable from './articles/ArticleActionable.js'
import ArticleDesign from './articles/ArticleDesign.js'
import ArticleIcons from './articles/ArticleIcons.js'
import ArticleIsFitted from './articles/ArticleIsFitted.js'
import ArticleResponsive from './articles/ArticleResponsive.js'
import ArticleSize from './articles/ArticleSize.js'
import ArticleTypes from './articles/ArticleTypes.js'
import ArticleResponsive from './articles/ArticleResponsive.js'
import {CLASS_SECTION, closeIcon, icon} from './settings.js'

import './index.scss'
Expand Down
3 changes: 1 addition & 2 deletions components/molecule/photoUploader/src/ThumbCard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import PropTypes from 'prop-types'

import AtomIcon, {ATOM_ICON_SIZES} from '@s-ui/react-atom-icon'

import {DEFAULT_VIEW_TYPE, VIEW_TYPE} from './../config.js'
import {
ACTION_THUMB_CARD_CLASS_NAME,
BUTTON_THUMB_CARD_CLASS_NAME,
Expand All @@ -12,8 +13,6 @@ import {
THUMB_CARD_CLASS_NAME
} from './config.js'

import {DEFAULT_VIEW_TYPE, VIEW_TYPE} from './../config.js'

const ThumbCard = ({
iconSize = ATOM_ICON_SIZES.small,
callbackDeleteItem,
Expand Down
4 changes: 2 additions & 2 deletions components/molecule/photoUploader/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ import {
DEFAULT_MAX_IMAGE_HEIGHT,
DEFAULT_MAX_IMAGE_WIDTH,
DEFAULT_NOTIFICATION_ERROR,
DEFAULT_VIEW_TYPE,
DRAG_STATE_STATUS_REJECTED,
DROPZONE_CLASS_NAME,
REJECT_FILES_REASONS,
ROTATION_DIRECTION,
VIEW_TYPE,
DEFAULT_VIEW_TYPE
VIEW_TYPE
} from './config.js'
import {filterValidFiles, loadInitialPhotos, prepareFiles} from './fileTools.js'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import MoleculeDropdownList from '@s-ui/react-molecule-dropdown-list'
import {CLASS_SEARCH_CONTAINER} from './config.js'

import {
useDropdown,
SELECT_DROPDOWN_LIST_SIZES as dropdownListSizes,
SELECT_INPUT_SIZES as inputSizes,
SELECT_DROPDOWN_LIST_SIZES as dropdownListSizes
useDropdown
} from '../config.js'
import MoleculeInputSelect from './MoleculeInputSelect.js'
import Search from './Search.js'
Expand Down
6 changes: 3 additions & 3 deletions components/molecule/select/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ import {
ENABLED_KEYS,
getClassName,
getOptionData,
SELECT_STATES,
SELECTION_KEYS,
SELECT_DROPDOWN_LIST_SIZES,
SELECT_INPUT_SIZES,
SELECT_DROPDOWN_LIST_SIZES
SELECT_STATES,
SELECTION_KEYS
} from './config.js'

const useFunctionalRef = () => useReducer((_s, node) => node, null)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import PropTypes from 'prop-types'

import AtomButton, {atomButtonDesigns, atomButtonShapes, atomButtonSizes} from '@s-ui/react-atom-button'

import {BASE_CLASS} from '../config.js'

const NO_OP = () => {}
Expand Down
2 changes: 1 addition & 1 deletion components/molecule/selectPopover/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import PropTypes from 'prop-types'

import usePortal from '@s-ui/react-hook-use-portal'

import SelectIcon from './components/SelectIcon.js'
import {BASE_CLASS, getPlacement, OVERLAY_TYPES, PLACEMENTS, SHAPES, SIZES} from './config.js'
import RenderActions from './RenderActions.js'
import SelectIcon from './components/SelectIcon.js'

function usePrevious(value) {
const ref = useRef()
Expand Down
4 changes: 2 additions & 2 deletions components/molecule/selectPopover/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ import ReactDOM from 'react-dom'

import chai, {expect} from 'chai'
import chaiDOM from 'chai-dom'
import sinon from 'sinon'

import {fireEvent} from '@testing-library/react'

import sinon from 'sinon'
import IconClose from '../../../atom/popover/demo/Icons/IconClose.js'
import json from '../package.json'
import {PLACEMENTS} from '../src/config.js'
import * as pkg from '../src/index.js'
import IconClose from '../../../atom/popover/demo/Icons/IconClose.js'

chai.use(chaiDOM)

Expand Down
2 changes: 1 addition & 1 deletion components/molecule/stepper/src/Step/DefaultStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import PropTypes from 'prop-types'

import {naturalNumber} from '../prop-types.js'
import {ALIGNMENT, DESIGN} from '../settings.js'
import {BASE_CLASS_STEP_LABEL, BASE_CLASS_STEP_ICON, getIcon, getLabel} from './settings.js'
import {BASE_CLASS_STEP_ICON, BASE_CLASS_STEP_LABEL, getIcon, getLabel} from './settings.js'

const DefaultStep = ({
alignment,
Expand Down
Loading
Loading