@dhis2-ui/selector-bar 9.12.0-alpha.4 → 9.12.0
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.
|
@@ -40,7 +40,7 @@ const SelectorBar = _ref2 => {
|
|
|
40
40
|
className,
|
|
41
41
|
children,
|
|
42
42
|
onClearSelectionClick,
|
|
43
|
-
dataTest,
|
|
43
|
+
dataTest = 'dhis2-ui-selectorbar',
|
|
44
44
|
disableClearSelections,
|
|
45
45
|
additionalContent,
|
|
46
46
|
ariaLabel
|
|
@@ -113,9 +113,6 @@ const SelectorBar = _ref2 => {
|
|
|
113
113
|
}, [`.container.__jsx-style-dynamic-selector{background:${_uiConstants.colors.white};box-shadow:inset 0 -1px 0 0 ${_uiConstants.colors.grey400};padding-bottom:1px;}`, ".withRHSContents.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".controls.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;gap:1px;}", `.additional-contents.__jsx-style-dynamic-selector{${''} padding-inline-start:4px;}`])));
|
|
114
114
|
};
|
|
115
115
|
exports.SelectorBar = SelectorBar;
|
|
116
|
-
SelectorBar.defaultProps = {
|
|
117
|
-
dataTest: 'dhis2-ui-selectorbar'
|
|
118
|
-
};
|
|
119
116
|
SelectorBar.propTypes = {
|
|
120
117
|
children: _propTypes.default.any.isRequired,
|
|
121
118
|
additionalContent: _propTypes.default.any,
|
|
@@ -37,7 +37,7 @@ const SelectorBarItem = _ref => {
|
|
|
37
37
|
let {
|
|
38
38
|
children,
|
|
39
39
|
className,
|
|
40
|
-
dataTest,
|
|
40
|
+
dataTest = 'dhis2-ui-selectorbaritem',
|
|
41
41
|
disabled,
|
|
42
42
|
displayOnly,
|
|
43
43
|
label,
|
|
@@ -100,9 +100,6 @@ const SelectorBarItem = _ref => {
|
|
|
100
100
|
}, [`.selector-bar-item.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;background:none;height:40px;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;${''} padding-block:0;padding-inline-start:${_uiConstants.spacers.dp8};padding-inline-end:${_uiConstants.spacers.dp12};font-size:14px;line-height:16px;border:none;box-shadow:0px 0px 0px 1px ${_uiConstants.colors.grey400};}`, ".selector-bar-item.openable.__jsx-style-dynamic-selector{cursor:pointer;}", ".selector-bar-item.__jsx-style-dynamic-selector:disabled{cursor:not-allowed;}", `.label.__jsx-style-dynamic-selector{color:${_uiConstants.colors.grey600};}`, `.value.__jsx-style-dynamic-selector{padding-inline-start:${_uiConstants.spacers.dp8};}`, `.clear-icon.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-inline-start:${_uiConstants.spacers.dp4};padding:${_uiConstants.spacers.dp4};cursor:pointer;}`, `.clear-icon.__jsx-style-dynamic-selector svg.__jsx-style-dynamic-selector path.__jsx-style-dynamic-selector{fill:${_uiConstants.colors.grey500};}`, `.clear-icon.__jsx-style-dynamic-selector:hover svg.__jsx-style-dynamic-selector path.__jsx-style-dynamic-selector{fill:${_uiConstants.colors.grey700};}`, `.toggle-icon.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-inline-start:${_uiConstants.spacers.dp4};height:100%;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}`]));
|
|
101
101
|
};
|
|
102
102
|
exports.SelectorBarItem = SelectorBarItem;
|
|
103
|
-
SelectorBarItem.defaultProps = {
|
|
104
|
-
dataTest: 'dhis2-ui-selectorbaritem'
|
|
105
|
-
};
|
|
106
103
|
SelectorBarItem.propTypes = {
|
|
107
104
|
label: _propTypes.default.string.isRequired,
|
|
108
105
|
children: _propTypes.default.any,
|
|
@@ -31,7 +31,7 @@ export const SelectorBar = _ref2 => {
|
|
|
31
31
|
className,
|
|
32
32
|
children,
|
|
33
33
|
onClearSelectionClick,
|
|
34
|
-
dataTest,
|
|
34
|
+
dataTest = 'dhis2-ui-selectorbar',
|
|
35
35
|
disableClearSelections,
|
|
36
36
|
additionalContent,
|
|
37
37
|
ariaLabel
|
|
@@ -103,9 +103,6 @@ export const SelectorBar = _ref2 => {
|
|
|
103
103
|
dynamic: [colors.white, colors.grey400, '']
|
|
104
104
|
}, [`.container.__jsx-style-dynamic-selector{background:${colors.white};box-shadow:inset 0 -1px 0 0 ${colors.grey400};padding-bottom:1px;}`, ".withRHSContents.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".controls.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;gap:1px;}", `.additional-contents.__jsx-style-dynamic-selector{${''} padding-inline-start:4px;}`])));
|
|
105
105
|
};
|
|
106
|
-
SelectorBar.defaultProps = {
|
|
107
|
-
dataTest: 'dhis2-ui-selectorbar'
|
|
108
|
-
};
|
|
109
106
|
SelectorBar.propTypes = {
|
|
110
107
|
children: PropTypes.any.isRequired,
|
|
111
108
|
additionalContent: PropTypes.any,
|
|
@@ -28,7 +28,7 @@ export const SelectorBarItem = _ref => {
|
|
|
28
28
|
let {
|
|
29
29
|
children,
|
|
30
30
|
className,
|
|
31
|
-
dataTest,
|
|
31
|
+
dataTest = 'dhis2-ui-selectorbaritem',
|
|
32
32
|
disabled,
|
|
33
33
|
displayOnly,
|
|
34
34
|
label,
|
|
@@ -90,9 +90,6 @@ export const SelectorBarItem = _ref => {
|
|
|
90
90
|
dynamic: ['', spacers.dp8, spacers.dp12, colors.grey400, colors.grey600, spacers.dp8, spacers.dp4, spacers.dp4, colors.grey500, colors.grey700, spacers.dp4]
|
|
91
91
|
}, [`.selector-bar-item.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;background:none;height:40px;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;${''} padding-block:0;padding-inline-start:${spacers.dp8};padding-inline-end:${spacers.dp12};font-size:14px;line-height:16px;border:none;box-shadow:0px 0px 0px 1px ${colors.grey400};}`, ".selector-bar-item.openable.__jsx-style-dynamic-selector{cursor:pointer;}", ".selector-bar-item.__jsx-style-dynamic-selector:disabled{cursor:not-allowed;}", `.label.__jsx-style-dynamic-selector{color:${colors.grey600};}`, `.value.__jsx-style-dynamic-selector{padding-inline-start:${spacers.dp8};}`, `.clear-icon.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-inline-start:${spacers.dp4};padding:${spacers.dp4};cursor:pointer;}`, `.clear-icon.__jsx-style-dynamic-selector svg.__jsx-style-dynamic-selector path.__jsx-style-dynamic-selector{fill:${colors.grey500};}`, `.clear-icon.__jsx-style-dynamic-selector:hover svg.__jsx-style-dynamic-selector path.__jsx-style-dynamic-selector{fill:${colors.grey700};}`, `.toggle-icon.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-inline-start:${spacers.dp4};height:100%;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}`]));
|
|
92
92
|
};
|
|
93
|
-
SelectorBarItem.defaultProps = {
|
|
94
|
-
dataTest: 'dhis2-ui-selectorbaritem'
|
|
95
|
-
};
|
|
96
93
|
SelectorBarItem.propTypes = {
|
|
97
94
|
label: PropTypes.string.isRequired,
|
|
98
95
|
children: PropTypes.any,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhis2-ui/selector-bar",
|
|
3
|
-
"version": "9.12.0
|
|
3
|
+
"version": "9.12.0",
|
|
4
4
|
"description": "UI Select",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -33,21 +33,21 @@
|
|
|
33
33
|
"styled-jsx": "^4"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@dhis2-ui/button": "9.12.0
|
|
37
|
-
"@dhis2-ui/card": "9.12.0
|
|
38
|
-
"@dhis2-ui/popper": "9.12.0
|
|
39
|
-
"@dhis2-ui/layer": "9.12.0
|
|
40
|
-
"@dhis2/ui-constants": "9.12.0
|
|
41
|
-
"@dhis2/ui-icons": "9.12.0
|
|
36
|
+
"@dhis2-ui/button": "9.12.0",
|
|
37
|
+
"@dhis2-ui/card": "9.12.0",
|
|
38
|
+
"@dhis2-ui/popper": "9.12.0",
|
|
39
|
+
"@dhis2-ui/layer": "9.12.0",
|
|
40
|
+
"@dhis2/ui-constants": "9.12.0",
|
|
41
|
+
"@dhis2/ui-icons": "9.12.0",
|
|
42
42
|
"@testing-library/react": "^12.1.2",
|
|
43
43
|
"classnames": "^2.3.1",
|
|
44
44
|
"prop-types": "^15.7.2"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@dhis2-ui/css": "9.12.0
|
|
48
|
-
"@dhis2-ui/menu": "9.12.0
|
|
49
|
-
"@dhis2-ui/organisation-unit-tree": "9.12.0
|
|
50
|
-
"@dhis2-ui/select": "9.12.0
|
|
47
|
+
"@dhis2-ui/css": "9.12.0",
|
|
48
|
+
"@dhis2-ui/menu": "9.12.0",
|
|
49
|
+
"@dhis2-ui/organisation-unit-tree": "9.12.0",
|
|
50
|
+
"@dhis2-ui/select": "9.12.0",
|
|
51
51
|
"@dhis2/d2-i18n": "^1.1.0",
|
|
52
52
|
"@testing-library/jest-dom": "^5.16.1",
|
|
53
53
|
"react": "16.13",
|
package/types/index.d.ts
CHANGED