Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
177 commits
Select commit Hold shift + click to select a range
9c78c9d
deps were updated
sunsetninja Mar 30, 2020
daf5955
colors: grayMedium color was added
sunsetninja Mar 30, 2020
928b59c
FormSwitch: styles were changed
sunsetninja Mar 30, 2020
536f443
colors: duplicate brownGray color was removed
sunsetninja Mar 30, 2020
f354cf5
FormInputToggle: component was removed
sunsetninja Mar 30, 2020
36a1c6b
FormInput: styles were changed
sunsetninja Mar 30, 2020
a758745
icons: Check icon was replaced with custom icon
sunsetninja Mar 30, 2020
90dfc4b
FormCheckbox: styles were changed
sunsetninja Mar 30, 2020
94385d7
FormRangeSlider: styles were changed
sunsetninja Mar 30, 2020
522c4dd
FormCheckbox: icon height fix
sunsetninja Mar 30, 2020
ef9ca7f
FormCheckboxGroup: styles were changed
sunsetninja Mar 30, 2020
6da38c9
FormRangeSlider: withClear prop was removed
sunsetninja Mar 30, 2020
4fe10e3
FormMultiSelect: styles were changed
sunsetninja Mar 30, 2020
5e00907
FormMultiSelectTagsItemTitle: unused styles were removed
sunsetninja Mar 30, 2020
a192a5a
FormInput: placeholder was removed
sunsetninja Mar 30, 2020
7daaaa9
Merge branch 'develop' into feature/form-controls-update
sunsetninja Mar 31, 2020
f7fabd3
lint staged git add task removed
sunsetninja Mar 31, 2020
2a6419c
husky update
sunsetninja Mar 31, 2020
bb55fdc
tests now runs on precommit hook
sunsetninja Mar 31, 2020
5756d60
Button: green theme was added
sunsetninja Mar 31, 2020
29484f1
PageCard: styles were changed, title was removed
sunsetninja Mar 31, 2020
3b2b7a2
FormActions: component was removed
sunsetninja Mar 31, 2020
811082f
FormField: styles changed
sunsetninja Mar 31, 2020
3ce0a9a
InfiniteMultiSelect: component was added
sunsetninja Mar 31, 2020
e378086
InfiniteDropdown: component now uses useInfiniteMenu hook
sunsetninja Mar 31, 2020
b2c8437
Merge branch 'develop' into feature/form-controls-update
sunsetninja Mar 31, 2020
37bffc4
InfiniteMultiSelect: form/components import was fixed
sunsetninja Mar 31, 2020
7471465
PageCard: onBack, onDone handlers were added
sunsetninja Mar 31, 2020
b3769ad
PageCard: buttons render moved to top
sunsetninja Mar 31, 2020
9457a05
FormMultiSelect: component rewritten with hooks
sunsetninja Mar 31, 2020
74fc7d3
console.log was removed
sunsetninja Mar 31, 2020
f8a87de
useInfiniteMenu: hasNext logic was fixed
sunsetninja Mar 31, 2020
c10ff35
PageCard: buttons now sets as prop
sunsetninja Mar 31, 2020
ea2648b
useRedirectOnError hook added
sunsetninja Mar 31, 2020
9b98152
deps were updated
sunsetninja Apr 1, 2020
f790fa6
Object.hasOwnPropery calls replaced with hasProperty util
sunsetninja Apr 1, 2020
99aa314
FormMultiSelect: styles were chaged
sunsetninja Apr 1, 2020
dea14bc
useRedirectOnError now receives 2 params instead of obj
sunsetninja Apr 1, 2020
63d794e
icons: Pencil icon was added
sunsetninja Apr 1, 2020
d41a194
CopyItem: component was replaced with a new one
sunsetninja Apr 1, 2020
2dbac17
EntriesDateTimeFilter: component export added to entries barrel file
sunsetninja Apr 1, 2020
0f34cba
useListFetch: fetchOnInitial, onFetchParamsChange attrs were added
sunsetninja Apr 1, 2020
8110205
ListLayoutSearch: margin bottom was reduced
sunsetninja Apr 1, 2020
228bb75
react-datepicker was added to deps
sunsetninja Apr 2, 2020
490236b
@identixone/ui-kit imports were replaced with relative
sunsetninja Apr 2, 2020
31b4cea
icons: Search was replaced with a custom icon
sunsetninja Apr 2, 2020
571998a
Search: redesign
sunsetninja Apr 2, 2020
4c36e2c
ListLayout: margins were changed
sunsetninja Apr 2, 2020
ebb3d19
SearchFakeInputValue: left attr was fixed
sunsetninja Apr 2, 2020
7e37134
HeaderAppMenu: items now justify space between
sunsetninja Apr 2, 2020
03bbd4e
icons: InfoCircleColor was added
sunsetninja Apr 2, 2020
5e71a9f
Search: clear search button was added
sunsetninja Apr 2, 2020
5b7d713
useListFetch: issue with stale fetchList was fixed
sunsetninja Apr 3, 2020
8d23811
PageFiltersList: component was removed
sunsetninja Apr 3, 2020
14d8e27
ListLayout: components redesign
sunsetninja Apr 3, 2020
d64920d
InfinitePageList: component was added
sunsetninja Apr 3, 2020
842d8d8
ListLayoutItemTitle: as link now has width 100%
sunsetninja Apr 3, 2020
2dacbc9
ListLayoutListItemBadges: now renders badges in row
sunsetninja Apr 3, 2020
efd6cec
bundle build setup was removed
sunsetninja Apr 4, 2020
dfe7842
dirs reorganization
sunsetninja Apr 4, 2020
a5ef1c9
icons: size proptype was change to string,number
sunsetninja Apr 4, 2020
88909cc
PopupConfirm: onConfim prop type was fixed
sunsetninja Apr 4, 2020
c5222fd
PersonsGroupPerson: isPersonsAddingToGroup prop was fixed
sunsetninja Apr 4, 2020
9578f95
DeleteSureButton: color prop type was fixed
sunsetninja Apr 4, 2020
fc2a007
I18nProvider initial empty resources param was added
sunsetninja Apr 4, 2020
8d8b0a4
ListStickyHeader: component was added
sunsetninja Apr 4, 2020
a6438c7
missed deps were added to package.json
sunsetninja Apr 6, 2020
7a32397
some imports were fixed
sunsetninja Apr 6, 2020
d0f580f
IdFormat, IdCopy: code reuse was added
sunsetninja Apr 6, 2020
ad89061
Slider: components refactored
sunsetninja Apr 6, 2020
1d33120
EntryCardInfoItemValue: inner CopyItem styles now same as value
sunsetninja Apr 6, 2020
8ccb23e
useListFetch: fetchList immutability requirement comment was added
sunsetninja Apr 6, 2020
b46c3e5
multiple components prop types were fixed
sunsetninja Apr 7, 2020
f37a554
multiple components prop types were fixed
sunsetninja Apr 7, 2020
6ffdfa8
multiple misused default test id props were removed
sunsetninja Apr 7, 2020
dfe77b3
icons: Gear icon was added
sunsetninja Apr 7, 2020
f82ee57
Spinner: StyledSpinner export was added
sunsetninja Apr 7, 2020
54fdd67
FormInput: FormInput.Password, FormInput.Number components were added
sunsetninja Apr 7, 2020
40b87e1
SegmentedTabs: component was added
sunsetninja Apr 7, 2020
8f37508
HeaderTopMenu: margin right was changed
sunsetninja Apr 7, 2020
674c2ba
EntriesDateTimeFilter: missing currentDate prop added to relative picker
sunsetninja Apr 8, 2020
0e41a27
EntriesDateTimeFilter: date_from input now always render value from p…
sunsetninja Apr 8, 2020
3c98c7b
EntryCardInfoItem: value (to compare) prop was added
sunsetninja Apr 9, 2020
9e9011f
EntriesDateTimeFIlter: onReset, valuesToReset props were added
sunsetninja Apr 9, 2020
a9d6e29
EntriesDateTimeFilter: issue with wrong file replacement was fixed
sunsetninja Apr 9, 2020
8e50a4c
FormDropdownOption: left padding increased
sunsetninja Apr 9, 2020
3f66ab9
RouteSectionOverlay: now 120% width
sunsetninja Apr 9, 2020
26d2f5e
EntriesDateTimeFilter: css was updated
sunsetninja Apr 10, 2020
e8cb4ba
Button: forwardRef added
sunsetninja Apr 10, 2020
07ba4fb
ListItemPopup: styles updated
sunsetninja Apr 10, 2020
64d0e19
icons: QRcode icon was replaced with a custom one
sunsetninja Apr 10, 2020
04b7751
FormSwitch: sizes updated
sunsetninja Apr 10, 2020
938990b
DeleteSureButton: minWidth style was removed
sunsetninja Apr 10, 2020
76b2d86
ListItemPopup: inner styles were updated
sunsetninja Apr 10, 2020
beaf4f6
EntriesDateTimeFilter: css was updated to get selection rounded corners
sunsetninja Apr 10, 2020
acdc3fc
EntriesDateTimeFilter: issue with selecting today as sameday was fixed
sunsetninja Apr 10, 2020
767cb36
dayjs updated
sunsetninja Apr 13, 2020
dbec211
useSelectableList hook was added
sunsetninja Apr 13, 2020
7254393
Button: disabled styles updated
sunsetninja Apr 13, 2020
13e4972
ListLayout: Actions component changed
sunsetninja Apr 13, 2020
55e21d3
FormCheckboxGroup: SelectableList was replaced with useSelectableList
sunsetninja Apr 13, 2020
e8d1803
ListLayoutActions: select all issue was fixed
sunsetninja Apr 13, 2020
a56433d
SelectableList: component removed
sunsetninja Apr 13, 2020
2f7aded
FormDropdown: check icon now renders only if dropdown is multiple
sunsetninja Apr 13, 2020
02496c1
ListLayoutList: test-id attr added to checkbox
sunsetninja Apr 13, 2020
ec92867
UIBadge: line height increased
sunsetninja Apr 13, 2020
e1065a5
PageCard: component shadow now visible on siblings
sunsetninja Apr 13, 2020
9c9953b
ListLayout: sticky header fix
sunsetninja Apr 13, 2020
1bc7410
ListLayout: className prop was added
sunsetninja Apr 14, 2020
45b39f0
iconst: GearOutline added
sunsetninja Apr 14, 2020
f02d226
icons: Gear icon fill now is currentColor
sunsetninja Apr 14, 2020
2caa17c
ListLayout: sticky header refactoring
sunsetninja Apr 14, 2020
5a16e17
ListLayout: Provider component was added
sunsetninja Apr 14, 2020
4cc03c4
ListLayoutDetailed: inner component was added cuz StickyBox does not …
sunsetninja Apr 14, 2020
72029d4
ListLayoutDetailed: inner component was added
sunsetninja Apr 14, 2020
647b1a8
utils: cleaning code
sunsetninja Apr 15, 2020
11a6a61
Button: light theme changed
sunsetninja Apr 15, 2020
ec7d39e
colors: slate color hex values were replaced with color variable
sunsetninja Apr 15, 2020
d87f17f
FormUneditableInput: component added
sunsetninja Apr 15, 2020
f8ea81e
ListLayoutDetailed: styles changed
sunsetninja Apr 15, 2020
6020caa
PersonsGroupPersonDetail: actions prop was added
sunsetninja Apr 15, 2020
9b681e3
PersonCardDetailed: styles changed
sunsetninja Apr 15, 2020
2fe382d
CardSmall: styles changed
sunsetninja Apr 15, 2020
da4050b
PersonsGroupPerson: styles changed, title prop was removed
sunsetninja Apr 15, 2020
4b4d3b1
ListLayoutAction: checkbox margin was increased
sunsetninja Apr 16, 2020
48db685
ListLayoutDetailed: min height issue was fixed
sunsetninja Apr 16, 2020
36f321f
ListLayoutDetailed: inner Button height decreased
sunsetninja Apr 16, 2020
4c63e9d
PersonsGroupListPerson: inner Buttons now has medium size
sunsetninja Apr 16, 2020
2d454d3
PersonsGroups: list person margins were chaged
sunsetninja Apr 16, 2020
6860813
useSelectableList: hasOptions check was added to isAll... values
sunsetninja Apr 16, 2020
dc95f87
Title: h1 styles changed
sunsetninja Apr 16, 2020
5f299ba
icons: ArrowRight icon replaced with a custom one
sunsetninja Apr 16, 2020
43e628a
Breadcrumbs: component added
sunsetninja Apr 16, 2020
87a446b
DynamicList: component was removed
sunsetninja Apr 16, 2020
b2a8bfa
SegmentedTabs: tabbar margin changed
sunsetninja Apr 16, 2020
1957403
SegmentedTabs: styles changed
sunsetninja Apr 16, 2020
9691f76
SegmentedTabs: styled wrapper added
sunsetninja Apr 16, 2020
66fdda8
ListStickyHeader, PageCard: zIndex issue was fixed
sunsetninja Apr 17, 2020
b1c2a5e
EntryCard: reinit badge was added
sunsetninja Apr 17, 2020
5fba514
ListLayoutTop, PageCard: zIndex issue fix
sunsetninja Apr 17, 2020
c76d620
EntriesDateTimeFilter: top coords issue was fixed
sunsetninja Apr 17, 2020
cb9dd40
dependencies were updated
sunsetninja Apr 20, 2020
6914132
files formatted by prettier
sunsetninja Apr 20, 2020
bdf56db
Breadcrumbs: stories added
sunsetninja Apr 20, 2020
c4ab92a
DeleteSureButton: button now has constant width
sunsetninja Apr 20, 2020
aea8380
DeleteSure: component was removed
sunsetninja Apr 20, 2020
4174864
DeleteSureButton: width now depends on deleteText prop
sunsetninja Apr 20, 2020
3092046
CopyItem: onCopy prop added, stories added
sunsetninja Apr 20, 2020
8ee4658
react-i18next jest mock added
sunsetninja Apr 20, 2020
ac2e54d
DeleteSureButton: tests added
sunsetninja Apr 20, 2020
46bd61c
DatePicker: component was created based on EntriesDateTimeFilter
sunsetninja Apr 20, 2020
f8cb69d
DeleteSureButton: issue with hided pseudo button was fixed
sunsetninja Apr 20, 2020
123a71f
Button: component refactoring
sunsetninja Apr 21, 2020
179ffb8
Button: missed style prop was added
sunsetninja Apr 21, 2020
7912f51
Footer: exports switched to named
sunsetninja Apr 21, 2020
22e6135
stylelint integration added
sunsetninja Apr 21, 2020
4317a64
InfiniteMultiSelect: stories added
sunsetninja Apr 21, 2020
8dea282
DatePicker: utcOffset issue fix
sunsetninja Apr 21, 2020
4325572
FormDropdown: isFetching prop was added
sunsetninja Apr 22, 2020
8f3212a
InfiniteFormDropdown: disabled prop added
sunsetninja Apr 24, 2020
d11b67f
DeleteSureButton: width from styles override issue was fixed
sunsetninja Apr 24, 2020
df84d27
InfiniteScroll: scroll listener missed unsubscribe call added
sunsetninja Apr 24, 2020
d869d51
PersonCardDetailed: inner buttons are full width now
sunsetninja Apr 24, 2020
6841389
ListLayoutList: listRef now sets to list wrapper
sunsetninja Apr 24, 2020
0d4143f
InfinitePageList: component now receives pageRef as a prop
sunsetninja Apr 24, 2020
0b8b17b
ListLayoutList: Spinner condition was changed
sunsetninja Apr 24, 2020
38fe454
PersonCardDetailed: fetch person call api changed
sunsetninja Apr 27, 2020
1528501
PersonGroupPerson: delete person from list button was removed
sunsetninja Apr 27, 2020
679db6c
utils: processFormValues helper added
sunsetninja Apr 29, 2020
6376852
PersonCardDetailed: translations added
sunsetninja Apr 29, 2020
84ee18a
FormField: labelType prop was added
sunsetninja Apr 29, 2020
e24b179
DeleteSureButton: translations scope added
sunsetninja Apr 29, 2020
372c621
InfoCard: component added
sunsetninja Apr 29, 2020
4f562ec
utils: isNumeric added
sunsetninja Apr 30, 2020
bc606bc
Search: clear search now dispatch Event instance
sunsetninja May 7, 2020
49bcc7e
ButtonLink: default button theme now is "reset"
sunsetninja May 7, 2020
76400e1
FormLabel: flex direction now is "row" by default
sunsetninja May 7, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
39 changes: 12 additions & 27 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -1,37 +1,22 @@
const { NODE_ENV } = process.env;

const isDev = String(NODE_ENV) === "development";
const isProd = String(NODE_ENV) === "production";
const isTest = String(NODE_ENV) === "test";

module.exports = {
presets: ["@babel/preset-react"].concat(
!isDev
? [
[
"@babel/preset-env",
{
modules: isTest ? "commonjs" : false,
targets: {
browsers: [
"last 2 versions",
"safari >= 7",
"ie > 10",
"not op_mini all",
],
},
},
],
]
: []
),
presets: [
"@babel/preset-react",
[
"@babel/preset-env",
{
modules: isTest ? "commonjs" : false,
targets: {
node: "current",
},
},
],
],
plugins: [
"@babel/plugin-proposal-object-rest-spread",
["@babel/plugin-proposal-class-properties", { loose: false }],
"babel-plugin-syntax-dynamic-import",
"@babel/plugin-transform-runtime",
isDev ? "babel-plugin-styled-components" : false,
isProd ? "transform-react-remove-prop-types" : false,
isTest ? "babel-plugin-dynamic-import-node" : false,
].filter(Boolean),
};
8 changes: 1 addition & 7 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,14 @@ module.exports = {
modules: true,
},
},
plugins: ["react", "prettier", "react-hooks"],
plugins: ["react", "react-hooks"],
settings: {
"import/parser": "babel-eslint",
"import/resolve": {
moduleDirectory: ["node_modules"],
},
},
rules: {
"prettier/prettier": [
"error",
{
trailingComma: "es5",
},
],
"react/no-unused-prop-types": 2,
"no-console": "off",
"react/display-name": 0,
Expand Down
5 changes: 5 additions & 0 deletions .huskyrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"hooks": {
"pre-commit": "lint-staged && NODE_ENV=test jest --bail "
}
}
5 changes: 3 additions & 2 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"*.{js,jsx}": ["eslint", "prettier --write", "git add"],
"*.{json}": ["prettier --write", "git add"]
"*.{js,jsx}": ["eslint", "prettier --write", "stylelint --fix"],
"*.{css}": ["stylelint --fix"],
"*.{json}": ["prettier --write"]
}
2 changes: 1 addition & 1 deletion .storybook/Provider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const ProviderWrapper = ({ children }) => (
</I18nProvider>
);

export const withProvider = story => (
export const withProvider = (story) => (
<ProviderWrapper>{story()}</ProviderWrapper>
);

Expand Down
2 changes: 1 addition & 1 deletion .storybook/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import StoryRouter from "storybook-react-router";

function loadStories() {
const req = require.context("../src", true, /\.stories\.js$/);
req.keys().forEach(filename => req(filename));
req.keys().forEach((filename) => req(filename));
}

addDecorator(withKnobs);
Expand Down
10 changes: 10 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": [
"stylelint-config-recommended"
],
"rules": {
"no-descending-specificity": null,
"property-no-unknown": null,
"no-empty-source": null
}
}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

An Identixone UI design language and React implementation.

> **Note**: Identixone UI kit is build on ES6 modules, so your app have to support it as well

## 📦 Install

```bash
Expand Down
4 changes: 2 additions & 2 deletions convention.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ import { SomeIcon } from "icons";
import { brandColor } from "colors";
import { brandImage } from "images";
import { isEqual } from "lodash-es";
import { resources } from "./AwesomeComponent.resources.js"
import { resources } from "./AwesomeComponent.resources.js";

/** деструктуризация пропсов
* в API компонента обязательно должен быть `data-testid` и `className` пропсы
Expand All @@ -94,7 +94,7 @@ function AwesomeComponent({
// подключение переводов для компонента ns - `AwesomeComponent`
i18n.addResourceBundle("en", "AwesomeComponent", resources.en);
i18n.addResourceBundle("ru", "AwesomeComponent", resources.ru);

// использование hooks
const [some, setSome] = useState(false);
const prevSome = usePrevious(some);
Expand Down
Loading