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 43 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
595aeda
feat(utils/sui-tokens): first attempt
andresin87 Nov 29, 2024
3de49d4
feat(utils/sui-tokens): lint
andresin87 Dec 3, 2024
d4a3c69
feat(utils/sui-tokens): new beta
andresin87 Dec 3, 2024
a99581a
feat(utils/sui-tokens): module
andresin87 Dec 3, 2024
56696ea
feat(utils/sui-tokens): again
andresin87 Dec 4, 2024
c57fbd8
feat(utils/sui-tokens): minor schema sructure
andresin87 Dec 11, 2024
4de4f8c
feat(utils/sui-tokens): different output formats
andresin87 Dec 16, 2024
9afb491
feat(utils/sui-theme): add sui-tokens package
andresin87 Dec 16, 2024
fb2c215
feat(utils/sui-tokens): last beta bump
andresin87 Dec 16, 2024
c8c713b
fix(utils/sui-tokens): map correct color primitives
andresin87 Dec 17, 2024
0358f32
feat(utils/sui-tokens): bump
andresin87 Dec 17, 2024
9f0fce1
Merge remote-tracking branch 'origin/master' into tokens
andresin87 Dec 17, 2024
e0cf0c5
fix(utils/sui-tokens): minor template changes
andresin87 Dec 17, 2024
7eb675c
fix(utils/sui-tokens): templace spacing
andresin87 Dec 17, 2024
2939755
feat(utils/sui-tokens): bump
andresin87 Dec 17, 2024
3614a6c
feat(utils/sui-theme): minor changes
andresin87 Dec 17, 2024
eefec6a
fix(utils/sui-tokens): bad structure composition
andresin87 Dec 17, 2024
c351cbc
feat(utils/sui-tokens): bump
andresin87 Dec 17, 2024
d432230
feat(utils/sui-tokens): new way to template tokens
andresin87 Dec 18, 2024
92df388
feat(utils/sui-tokens): bump
andresin87 Dec 18, 2024
169c833
feat(utils/sui-tokens): add defualt key to tokens
andresin87 Dec 18, 2024
0004577
fix(utils/sui-tokens): minor changes
andresin87 Dec 18, 2024
9ca9a39
feat(components/atom/helpText): styling fixes
andresin87 Dec 18, 2024
8dbde16
fix(components/atom/validationText): styling fixes
andresin87 Dec 18, 2024
a8f877e
chore(Root): themes imports
andresin87 Dec 18, 2024
aa29925
feat(utils/sui-tokens): solve minor improvemnts
andresin87 Dec 19, 2024
6232e6e
fix(utils/sui-theme): opacity native functionality
andresin87 Dec 19, 2024
e5f5c02
feat(utils/sui-tokens): set poper dependencies
andresin87 Dec 20, 2024
7a3a64e
fix(utils/sui-tokens): change dependencies
andresin87 Dec 20, 2024
e30f7bf
fix(utils/sui-tokens): export types able to be imported by external p…
andresin87 Dec 20, 2024
71e7ee6
fix(utils/sui-tokens): mode schema available
andresin87 Dec 23, 2024
bc99028
chore(Root): modify themes+
andresin87 Dec 23, 2024
765d540
feat(utils/sui-theme): use native mix
andresin87 Dec 23, 2024
a218c61
fix(utils/sui-tokens): bump
andresin87 Dec 23, 2024
bf442fb
feat(utils/sui-tokens): config file structure
andresin87 Jan 2, 2025
1bbadb3
fix(Root): remove unnecesary tokens scss files
andresin87 Jan 2, 2025
359bd3f
chore(utils/sui-theme): remove unnecesary file included
andresin87 Jan 2, 2025
6a25471
fix(utils/sui-tokens): ts errors fixed
andresin87 Jan 2, 2025
cd09cce
chore(utils/sui-theme): rmeove unnecesary changes
andresin87 Jan 2, 2025
b513555
chore(Root): lint
andresin87 Jan 3, 2025
35dd3c2
feat(utils/sui-tokens): add primitives export flag
andresin87 Jan 3, 2025
cd90806
chore(Root): revert some changes
andresin87 Jan 3, 2025
467dd86
chore(utils/sui-tokens): prepare the package for launch
andresin87 Jan 3, 2025
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
1 change: 0 additions & 1 deletion components/atom/helpText/src/index.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@import '~@s-ui/theme/lib/settings';
@import '~@s-ui/theme/lib/index';

@import './styles/settings.scss';
Expand Down
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
1 change: 0 additions & 1 deletion components/atom/validationText/src/index.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@import '~@s-ui/theme/lib/settings';
@import '~@s-ui/theme/lib/index';

@import './styles/settings.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 @@ -4,13 +4,13 @@ import PropTypes from 'prop-types'

import AtomInput, {inputTypes} from '@s-ui/react-atom-input'
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 {CLASS_SEARCH_CONTAINER} 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