@dhis2-ui/select 9.11.3 → 9.12.0-alpha.1
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/build/cjs/single-select/single-select.prod.stories.js +2 -1
- package/build/cjs/single-select-field/single-select-field.prod.stories.js +7 -1
- package/build/es/single-select/single-select.prod.stories.js +2 -1
- package/build/es/single-select-field/single-select-field.prod.stories.js +6 -0
- package/package.json +15 -15
|
@@ -294,7 +294,8 @@ WithOptionsASelectionAndDisabled.args = {
|
|
|
294
294
|
WithOptionsASelectionAndDisabled.storyName = 'With options, a selection and disabled';
|
|
295
295
|
const WithPrefix = exports.WithPrefix = WithOptionsTemplate.bind({});
|
|
296
296
|
WithPrefix.args = {
|
|
297
|
-
prefix: 'Prefix text'
|
|
297
|
+
prefix: 'Prefix text',
|
|
298
|
+
selected: '1'
|
|
298
299
|
};
|
|
299
300
|
const WithPrefixAndSelection = exports.WithPrefixAndSelection = WithOptionsTemplate.bind({});
|
|
300
301
|
WithPrefixAndSelection.args = {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default = exports.WithHelpText = exports.StatusWarning = exports.StatusValid = exports.StatusError = exports.Required = exports.InputWidth = exports.DefaultLoadingText = exports.DefaultFilterPlaceholderAndNoMatchText = exports.DefaultEmpty = exports.DefaultClearText = exports.Default = void 0;
|
|
6
|
+
exports.default = exports.WithHelpText = exports.StatusWarning = exports.StatusValid = exports.StatusError = exports.StatusDisabled = exports.Required = exports.InputWidth = exports.DefaultLoadingText = exports.DefaultFilterPlaceholderAndNoMatchText = exports.DefaultEmpty = exports.DefaultClearText = exports.Default = void 0;
|
|
7
7
|
var _uiConstants = require("@dhis2/ui-constants");
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _index = require("../index.js");
|
|
@@ -129,6 +129,12 @@ StatusError.args = {
|
|
|
129
129
|
...WithHelpText.args
|
|
130
130
|
};
|
|
131
131
|
StatusError.storyName = 'Status: Error';
|
|
132
|
+
const StatusDisabled = exports.StatusDisabled = Template.bind({});
|
|
133
|
+
StatusDisabled.args = {
|
|
134
|
+
disabled: true,
|
|
135
|
+
...WithHelpText.args
|
|
136
|
+
};
|
|
137
|
+
StatusDisabled.storyName = 'Status: Disabled';
|
|
132
138
|
const Required = exports.Required = Template.bind({});
|
|
133
139
|
Required.args = {
|
|
134
140
|
required: true
|
|
@@ -280,7 +280,8 @@ WithOptionsASelectionAndDisabled.args = {
|
|
|
280
280
|
WithOptionsASelectionAndDisabled.storyName = 'With options, a selection and disabled';
|
|
281
281
|
export const WithPrefix = WithOptionsTemplate.bind({});
|
|
282
282
|
WithPrefix.args = {
|
|
283
|
-
prefix: 'Prefix text'
|
|
283
|
+
prefix: 'Prefix text',
|
|
284
|
+
selected: '1'
|
|
284
285
|
};
|
|
285
286
|
export const WithPrefixAndSelection = WithOptionsTemplate.bind({});
|
|
286
287
|
WithPrefixAndSelection.args = {
|
|
@@ -122,6 +122,12 @@ StatusError.args = {
|
|
|
122
122
|
...WithHelpText.args
|
|
123
123
|
};
|
|
124
124
|
StatusError.storyName = 'Status: Error';
|
|
125
|
+
export const StatusDisabled = Template.bind({});
|
|
126
|
+
StatusDisabled.args = {
|
|
127
|
+
disabled: true,
|
|
128
|
+
...WithHelpText.args
|
|
129
|
+
};
|
|
130
|
+
StatusDisabled.storyName = 'Status: Disabled';
|
|
125
131
|
export const Required = Template.bind({});
|
|
126
132
|
Required.args = {
|
|
127
133
|
required: true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhis2-ui/select",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.12.0-alpha.1",
|
|
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/box": "9.
|
|
37
|
-
"@dhis2-ui/button": "9.
|
|
38
|
-
"@dhis2-ui/card": "9.
|
|
39
|
-
"@dhis2-ui/checkbox": "9.
|
|
40
|
-
"@dhis2-ui/chip": "9.
|
|
41
|
-
"@dhis2-ui/field": "9.
|
|
42
|
-
"@dhis2-ui/input": "9.
|
|
43
|
-
"@dhis2-ui/layer": "9.
|
|
44
|
-
"@dhis2-ui/loader": "9.
|
|
45
|
-
"@dhis2-ui/popper": "9.
|
|
46
|
-
"@dhis2-ui/status-icon": "9.
|
|
47
|
-
"@dhis2-ui/tooltip": "9.
|
|
36
|
+
"@dhis2-ui/box": "9.12.0-alpha.1",
|
|
37
|
+
"@dhis2-ui/button": "9.12.0-alpha.1",
|
|
38
|
+
"@dhis2-ui/card": "9.12.0-alpha.1",
|
|
39
|
+
"@dhis2-ui/checkbox": "9.12.0-alpha.1",
|
|
40
|
+
"@dhis2-ui/chip": "9.12.0-alpha.1",
|
|
41
|
+
"@dhis2-ui/field": "9.12.0-alpha.1",
|
|
42
|
+
"@dhis2-ui/input": "9.12.0-alpha.1",
|
|
43
|
+
"@dhis2-ui/layer": "9.12.0-alpha.1",
|
|
44
|
+
"@dhis2-ui/loader": "9.12.0-alpha.1",
|
|
45
|
+
"@dhis2-ui/popper": "9.12.0-alpha.1",
|
|
46
|
+
"@dhis2-ui/status-icon": "9.12.0-alpha.1",
|
|
47
|
+
"@dhis2-ui/tooltip": "9.12.0-alpha.1",
|
|
48
48
|
"@dhis2/prop-types": "^3.1.2",
|
|
49
|
-
"@dhis2/ui-constants": "9.
|
|
50
|
-
"@dhis2/ui-icons": "9.
|
|
49
|
+
"@dhis2/ui-constants": "9.12.0-alpha.1",
|
|
50
|
+
"@dhis2/ui-icons": "9.12.0-alpha.1",
|
|
51
51
|
"classnames": "^2.3.1",
|
|
52
52
|
"prop-types": "^15.7.2"
|
|
53
53
|
},
|