@spaced-out/ui-design-system 0.0.18-beta.0 → 0.0.18-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.cspell/custom-words.txt +2 -0
- package/.github/CODEOWNERS +37 -0
- package/.github/workflows/publish_to_npm.yml +9 -0
- package/.github/workflows/pull_request_semantics_checker.yml +19 -0
- package/CHANGELOG.md +23 -0
- package/cspell.json +3 -1
- package/lib/components/ButtonDropdown/ButtonDropdown.js +8 -2
- package/lib/components/ButtonDropdown/ButtonDropdown.js.flow +6 -1
- package/lib/components/ButtonDropdown/ButtonDropdown.module.css +3 -1
- package/lib/components/SideMenuLink/SideMenuLink.module.css +0 -1
- package/package.json +1 -1
package/.cspell/custom-words.txt
CHANGED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Github Workflows
|
|
2
|
+
|
|
3
|
+
/.github @superrover
|
|
4
|
+
|
|
5
|
+
# Storybook Global Settings
|
|
6
|
+
|
|
7
|
+
/.storybook @superrover
|
|
8
|
+
|
|
9
|
+
# IDE Global Settings
|
|
10
|
+
|
|
11
|
+
/.vscode @superrover @Anant-Raj
|
|
12
|
+
|
|
13
|
+
# People who want to watch all code changes
|
|
14
|
+
|
|
15
|
+
- @superrover
|
|
16
|
+
|
|
17
|
+
# Design Tokens
|
|
18
|
+
|
|
19
|
+
/design-tokens @superrover @Anant-Raj
|
|
20
|
+
|
|
21
|
+
# Flow
|
|
22
|
+
|
|
23
|
+
/flow @superrover @Anant-Raj
|
|
24
|
+
/flow-typed @superrover @Anant-Raj
|
|
25
|
+
|
|
26
|
+
# Global Util scripts
|
|
27
|
+
|
|
28
|
+
/scripts @superrover
|
|
29
|
+
|
|
30
|
+
# Genesis Team
|
|
31
|
+
|
|
32
|
+
/src @superrover @Anant-Raj
|
|
33
|
+
|
|
34
|
+
# however, these specific sensitive parts of the app do require signoff from any ui engineer
|
|
35
|
+
|
|
36
|
+
/package.json @superrover @Anant-Raj
|
|
37
|
+
/yarn.lock @superrover @Anant-Raj
|
|
@@ -21,6 +21,15 @@ jobs:
|
|
|
21
21
|
release:
|
|
22
22
|
runs-on: ubuntu-latest
|
|
23
23
|
steps:
|
|
24
|
+
- name: Check Permissions
|
|
25
|
+
id: check-permissions
|
|
26
|
+
env:
|
|
27
|
+
ALLOWED_USERS: superrover
|
|
28
|
+
if: ${{ !contains(env.ALLOWED_USERS, github.actor) }}
|
|
29
|
+
run: |
|
|
30
|
+
echo "You don't have correct permissions to do this release"
|
|
31
|
+
exit 1
|
|
32
|
+
|
|
24
33
|
# Checkout project repository
|
|
25
34
|
# Added fetch-depth to fetch complete history of repo. TODO(Nishant): Customize?
|
|
26
35
|
# TODO(Nishant): update with a org bot token instead of personal token
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Author: Nishant Gaurav
|
|
2
|
+
# workflow to check for PR names wrt conventional commits, uses a third party action
|
|
3
|
+
name: 'Lint PR'
|
|
4
|
+
|
|
5
|
+
on:
|
|
6
|
+
pull_request_target:
|
|
7
|
+
types:
|
|
8
|
+
- opened
|
|
9
|
+
- edited
|
|
10
|
+
- synchronize
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
main:
|
|
14
|
+
name: Validate PR title
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
steps:
|
|
17
|
+
- uses: amannn/action-semantic-pull-request@v5
|
|
18
|
+
env:
|
|
19
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.0.18-beta.2](https://github.com/spaced-out/ui-design-system/compare/v0.0.18-beta.1...v0.0.18-beta.2) (2023-02-06)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* added code owners ([d343555](https://github.com/spaced-out/ui-design-system/commit/d3435551f0ab3833b650af2e7aaa16312ca7ce48))
|
|
11
|
+
* workflow to check PR title ([954bbf4](https://github.com/spaced-out/ui-design-system/commit/954bbf4cf37fae7e2db8fda19222e2c1ad157820))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* acl on release script ([7af348c](https://github.com/spaced-out/ui-design-system/commit/7af348c8597f34b4a1c9e5ae96640ec8ed393128))
|
|
17
|
+
* convertional commits for PR ([777b44b](https://github.com/spaced-out/ui-design-system/commit/777b44b89d1d654590f8ddea1e5e443432bb7444))
|
|
18
|
+
* convertional commits for PR ([237825f](https://github.com/spaced-out/ui-design-system/commit/237825fd5fdcfd087413f12d11475baad2a4a5b1))
|
|
19
|
+
* support for acl on release script ([4475295](https://github.com/spaced-out/ui-design-system/commit/4475295d7b6eea870749f1291c5d9acc9fe155cc))
|
|
20
|
+
|
|
21
|
+
### [0.0.18-beta.1](https://github.com/spaced-out/ui-design-system/compare/v0.0.18-beta.0...v0.0.18-beta.1) (2023-02-02)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* buttondropdown doc and fluid fix ([#54](https://github.com/spaced-out/ui-design-system/issues/54)) ([b18aaeb](https://github.com/spaced-out/ui-design-system/commit/b18aaeb64dcc33d420d932960a8270af5b803105))
|
|
27
|
+
|
|
5
28
|
### [0.0.18-beta.0](https://github.com/spaced-out/ui-design-system/compare/v0.0.17...v0.0.18-beta.0) (2023-02-01)
|
|
6
29
|
|
|
7
30
|
### [0.0.17](https://github.com/spaced-out/ui-design-system/compare/v0.0.16...v0.0.17) (2023-02-01)
|
package/cspell.json
CHANGED
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
".storybook/public",
|
|
11
11
|
".all-contributorsrc",
|
|
12
12
|
"README.md",
|
|
13
|
-
"src/stories/INTRODUCTION.stories.mdx"
|
|
13
|
+
"src/stories/INTRODUCTION.stories.mdx",
|
|
14
|
+
".github/CODEOWNERS",
|
|
15
|
+
".github/workflows/pull_request_semantics_checker.yml"
|
|
14
16
|
],
|
|
15
17
|
// Enable your dictionary by adding it to the list of `dictionaries`
|
|
16
18
|
"dictionaries": ["custom-words"],
|
|
@@ -39,6 +39,7 @@ const ButtonDropdown = _ref => {
|
|
|
39
39
|
children,
|
|
40
40
|
iconRightName,
|
|
41
41
|
iconRightType,
|
|
42
|
+
isFluid,
|
|
42
43
|
...restButtonProps
|
|
43
44
|
} = _ref;
|
|
44
45
|
const menuBtnRef = React.useRef();
|
|
@@ -68,7 +69,9 @@ const ButtonDropdown = _ref => {
|
|
|
68
69
|
} = _ref2;
|
|
69
70
|
return /*#__PURE__*/React.createElement("div", {
|
|
70
71
|
"data-testid": "ButtonDropdown",
|
|
71
|
-
className: (0, _classify.classify)(_ButtonDropdownModule.default.buttonDropdownContainer,
|
|
72
|
+
className: (0, _classify.classify)(_ButtonDropdownModule.default.buttonDropdownContainer, {
|
|
73
|
+
[_ButtonDropdownModule.default.isFluid]: isFluid === true
|
|
74
|
+
}, classNames?.dropdownContainer),
|
|
72
75
|
ref: menuBtnRef
|
|
73
76
|
}, /*#__PURE__*/React.createElement(_Button.Button, _extends({}, restButtonProps, {
|
|
74
77
|
iconRightName: children ? isOpen ? 'caret-up' : 'caret-down' : iconRightName ? iconRightName : isOpen ? 'caret-up' : 'caret-down',
|
|
@@ -80,6 +83,7 @@ const ButtonDropdown = _ref => {
|
|
|
80
83
|
e.stopPropagation();
|
|
81
84
|
onOpen();
|
|
82
85
|
},
|
|
86
|
+
isFluid: isFluid,
|
|
83
87
|
classNames: {
|
|
84
88
|
wrapper: classNames?.buttonWrapper
|
|
85
89
|
}
|
|
@@ -91,7 +95,9 @@ const ButtonDropdown = _ref => {
|
|
|
91
95
|
position: strategy,
|
|
92
96
|
top: y ?? _space.spaceNone,
|
|
93
97
|
left: x ?? _space.spaceNone,
|
|
94
|
-
|
|
98
|
+
...(isFluid && {
|
|
99
|
+
width: _size.sizeFluid
|
|
100
|
+
})
|
|
95
101
|
}
|
|
96
102
|
}, /*#__PURE__*/React.createElement(_Menu.Menu, _extends({}, menu, {
|
|
97
103
|
onSelect: option => {
|
|
@@ -64,6 +64,7 @@ export const ButtonDropdown = ({
|
|
|
64
64
|
children,
|
|
65
65
|
iconRightName,
|
|
66
66
|
iconRightType,
|
|
67
|
+
isFluid,
|
|
67
68
|
...restButtonProps
|
|
68
69
|
}: ButtonDropdownProps): React.Node => {
|
|
69
70
|
const menuBtnRef = React.useRef();
|
|
@@ -85,6 +86,9 @@ export const ButtonDropdown = ({
|
|
|
85
86
|
data-testid="ButtonDropdown"
|
|
86
87
|
className={classify(
|
|
87
88
|
css.buttonDropdownContainer,
|
|
89
|
+
{
|
|
90
|
+
[css.isFluid]: isFluid === true,
|
|
91
|
+
},
|
|
88
92
|
classNames?.dropdownContainer,
|
|
89
93
|
)}
|
|
90
94
|
ref={menuBtnRef}
|
|
@@ -110,6 +114,7 @@ export const ButtonDropdown = ({
|
|
|
110
114
|
e.stopPropagation();
|
|
111
115
|
onOpen();
|
|
112
116
|
}}
|
|
117
|
+
isFluid={isFluid}
|
|
113
118
|
classNames={{wrapper: classNames?.buttonWrapper}}
|
|
114
119
|
>
|
|
115
120
|
{children}
|
|
@@ -123,7 +128,7 @@ export const ButtonDropdown = ({
|
|
|
123
128
|
position: strategy,
|
|
124
129
|
top: y ?? spaceNone,
|
|
125
130
|
left: x ?? spaceNone,
|
|
126
|
-
width: sizeFluid,
|
|
131
|
+
...(isFluid && {width: sizeFluid}),
|
|
127
132
|
}}
|
|
128
133
|
>
|
|
129
134
|
<Menu
|