@nulogy/components 8.4.5 → 8.4.7
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/dist/main.js
CHANGED
|
@@ -27665,44 +27665,48 @@
|
|
|
27665
27665
|
|
|
27666
27666
|
Table.SortingHeader = SortingColumnHeader;
|
|
27667
27667
|
|
|
27668
|
+
var StatusIndicatorValues = {
|
|
27669
|
+
neutral: "neutral",
|
|
27670
|
+
dark: "dark",
|
|
27671
|
+
danger: "danger",
|
|
27672
|
+
informative: "informative",
|
|
27673
|
+
success: "success",
|
|
27674
|
+
warning: "warning",
|
|
27675
|
+
quiet: "quiet"
|
|
27676
|
+
};
|
|
27677
|
+
|
|
27668
27678
|
var StatusIndicatorColours = function StatusIndicatorColours(theme) {
|
|
27669
|
-
|
|
27670
|
-
|
|
27671
|
-
|
|
27672
|
-
|
|
27673
|
-
|
|
27674
|
-
|
|
27675
|
-
|
|
27676
|
-
|
|
27677
|
-
|
|
27678
|
-
|
|
27679
|
-
|
|
27680
|
-
|
|
27681
|
-
|
|
27682
|
-
|
|
27683
|
-
|
|
27684
|
-
|
|
27685
|
-
|
|
27686
|
-
|
|
27687
|
-
|
|
27688
|
-
|
|
27689
|
-
|
|
27690
|
-
|
|
27691
|
-
|
|
27692
|
-
|
|
27693
|
-
|
|
27694
|
-
|
|
27695
|
-
|
|
27696
|
-
|
|
27697
|
-
|
|
27698
|
-
|
|
27699
|
-
|
|
27700
|
-
warning: {
|
|
27701
|
-
borderColor: theme.colors.yellow,
|
|
27702
|
-
backgroundColor: theme.colors.yellow,
|
|
27703
|
-
color: theme.colors.darkGrey
|
|
27704
|
-
}
|
|
27705
|
-
};
|
|
27679
|
+
var _ref;
|
|
27680
|
+
|
|
27681
|
+
return _ref = {}, _ref[StatusIndicatorValues.neutral] = {
|
|
27682
|
+
borderColor: theme.colors.lightGrey,
|
|
27683
|
+
backgroundColor: theme.colors.lightGrey,
|
|
27684
|
+
color: theme.colors.darkGrey
|
|
27685
|
+
}, _ref[StatusIndicatorValues.dark] = {
|
|
27686
|
+
borderColor: theme.colors.blackBlue,
|
|
27687
|
+
backgroundColor: theme.colors.blackBlue,
|
|
27688
|
+
color: theme.colors.white
|
|
27689
|
+
}, _ref[StatusIndicatorValues.quiet] = {
|
|
27690
|
+
borderColor: theme.colors.white,
|
|
27691
|
+
backgroundColor: theme.colors.white,
|
|
27692
|
+
color: theme.colors.darkGrey
|
|
27693
|
+
}, _ref[StatusIndicatorValues.danger] = {
|
|
27694
|
+
borderColor: theme.colors.red,
|
|
27695
|
+
backgroundColor: theme.colors.red,
|
|
27696
|
+
color: theme.colors.white
|
|
27697
|
+
}, _ref[StatusIndicatorValues.informative] = {
|
|
27698
|
+
borderColor: theme.colors.blue,
|
|
27699
|
+
backgroundColor: theme.colors.blue,
|
|
27700
|
+
color: theme.colors.white
|
|
27701
|
+
}, _ref[StatusIndicatorValues.success] = {
|
|
27702
|
+
borderColor: theme.colors.green,
|
|
27703
|
+
backgroundColor: theme.colors.green,
|
|
27704
|
+
color: theme.colors.white
|
|
27705
|
+
}, _ref[StatusIndicatorValues.warning] = {
|
|
27706
|
+
borderColor: theme.colors.yellow,
|
|
27707
|
+
backgroundColor: theme.colors.yellow,
|
|
27708
|
+
color: theme.colors.darkGrey
|
|
27709
|
+
}, _ref;
|
|
27706
27710
|
};
|
|
27707
27711
|
|
|
27708
27712
|
var getStatusIndicatorColours = function getStatusIndicatorColours(type, theme) {
|
|
@@ -27712,9 +27716,9 @@
|
|
|
27712
27716
|
var StatusIndicator = styled__default['default'].p.withConfig({
|
|
27713
27717
|
displayName: "StatusIndicator",
|
|
27714
27718
|
componentId: "sc-17eyafq-0"
|
|
27715
|
-
})(space, typography, flexbox, function (
|
|
27716
|
-
var theme =
|
|
27717
|
-
type =
|
|
27719
|
+
})(space, typography, flexbox, function (_ref2) {
|
|
27720
|
+
var theme = _ref2.theme,
|
|
27721
|
+
type = _ref2.type;
|
|
27718
27722
|
return Object.assign({
|
|
27719
27723
|
display: "inline-block",
|
|
27720
27724
|
fontWeight: theme.fontWeights.bold,
|
|
@@ -27724,7 +27728,7 @@
|
|
|
27724
27728
|
}, getStatusIndicatorColours(type, theme));
|
|
27725
27729
|
});
|
|
27726
27730
|
StatusIndicator.defaultProps = {
|
|
27727
|
-
type:
|
|
27731
|
+
type: StatusIndicatorValues.neutral,
|
|
27728
27732
|
mt: "0",
|
|
27729
27733
|
mr: "0",
|
|
27730
27734
|
mb: "0",
|
|
@@ -44131,11 +44135,14 @@
|
|
|
44131
44135
|
|
|
44132
44136
|
return /*#__PURE__*/React__default['default'].createElement(ReactResizeDetector__default['default'], {
|
|
44133
44137
|
handleWidth: true
|
|
44134
|
-
},
|
|
44135
|
-
|
|
44136
|
-
|
|
44137
|
-
|
|
44138
|
-
|
|
44138
|
+
}, function (_ref) {
|
|
44139
|
+
var width = _ref.width;
|
|
44140
|
+
return /*#__PURE__*/React__default['default'].createElement(SelectNavBarBasedOnWidth, Object.assign({
|
|
44141
|
+
breakpointUpper: breakpoints[breakpointUpper] || breakpointUpper,
|
|
44142
|
+
width: width,
|
|
44143
|
+
environment: environment
|
|
44144
|
+
}, props));
|
|
44145
|
+
});
|
|
44139
44146
|
};
|
|
44140
44147
|
|
|
44141
44148
|
var NavBar = styled__default['default'](BaseNavBar).withConfig({
|
|
@@ -51394,6 +51401,7 @@
|
|
|
51394
51401
|
exports.SmallNavBar = SmallNavBar;
|
|
51395
51402
|
exports.SortingTable = SortingTable;
|
|
51396
51403
|
exports.StatusIndicator = StatusIndicator;
|
|
51404
|
+
exports.StatusIndicatorValues = StatusIndicatorValues;
|
|
51397
51405
|
exports.Summary = Summary;
|
|
51398
51406
|
exports.SummaryDivider = SummaryDivider;
|
|
51399
51407
|
exports.SummaryItem = SummaryItem;
|
package/dist/main.module.js
CHANGED
|
@@ -27639,44 +27639,48 @@ var Table = function Table(_a) {
|
|
|
27639
27639
|
|
|
27640
27640
|
Table.SortingHeader = SortingColumnHeader;
|
|
27641
27641
|
|
|
27642
|
+
var StatusIndicatorValues = {
|
|
27643
|
+
neutral: "neutral",
|
|
27644
|
+
dark: "dark",
|
|
27645
|
+
danger: "danger",
|
|
27646
|
+
informative: "informative",
|
|
27647
|
+
success: "success",
|
|
27648
|
+
warning: "warning",
|
|
27649
|
+
quiet: "quiet"
|
|
27650
|
+
};
|
|
27651
|
+
|
|
27642
27652
|
var StatusIndicatorColours = function StatusIndicatorColours(theme) {
|
|
27643
|
-
|
|
27644
|
-
|
|
27645
|
-
|
|
27646
|
-
|
|
27647
|
-
|
|
27648
|
-
|
|
27649
|
-
|
|
27650
|
-
|
|
27651
|
-
|
|
27652
|
-
|
|
27653
|
-
|
|
27654
|
-
|
|
27655
|
-
|
|
27656
|
-
|
|
27657
|
-
|
|
27658
|
-
|
|
27659
|
-
|
|
27660
|
-
|
|
27661
|
-
|
|
27662
|
-
|
|
27663
|
-
|
|
27664
|
-
|
|
27665
|
-
|
|
27666
|
-
|
|
27667
|
-
|
|
27668
|
-
|
|
27669
|
-
|
|
27670
|
-
|
|
27671
|
-
|
|
27672
|
-
|
|
27673
|
-
|
|
27674
|
-
warning: {
|
|
27675
|
-
borderColor: theme.colors.yellow,
|
|
27676
|
-
backgroundColor: theme.colors.yellow,
|
|
27677
|
-
color: theme.colors.darkGrey
|
|
27678
|
-
}
|
|
27679
|
-
};
|
|
27653
|
+
var _ref;
|
|
27654
|
+
|
|
27655
|
+
return _ref = {}, _ref[StatusIndicatorValues.neutral] = {
|
|
27656
|
+
borderColor: theme.colors.lightGrey,
|
|
27657
|
+
backgroundColor: theme.colors.lightGrey,
|
|
27658
|
+
color: theme.colors.darkGrey
|
|
27659
|
+
}, _ref[StatusIndicatorValues.dark] = {
|
|
27660
|
+
borderColor: theme.colors.blackBlue,
|
|
27661
|
+
backgroundColor: theme.colors.blackBlue,
|
|
27662
|
+
color: theme.colors.white
|
|
27663
|
+
}, _ref[StatusIndicatorValues.quiet] = {
|
|
27664
|
+
borderColor: theme.colors.white,
|
|
27665
|
+
backgroundColor: theme.colors.white,
|
|
27666
|
+
color: theme.colors.darkGrey
|
|
27667
|
+
}, _ref[StatusIndicatorValues.danger] = {
|
|
27668
|
+
borderColor: theme.colors.red,
|
|
27669
|
+
backgroundColor: theme.colors.red,
|
|
27670
|
+
color: theme.colors.white
|
|
27671
|
+
}, _ref[StatusIndicatorValues.informative] = {
|
|
27672
|
+
borderColor: theme.colors.blue,
|
|
27673
|
+
backgroundColor: theme.colors.blue,
|
|
27674
|
+
color: theme.colors.white
|
|
27675
|
+
}, _ref[StatusIndicatorValues.success] = {
|
|
27676
|
+
borderColor: theme.colors.green,
|
|
27677
|
+
backgroundColor: theme.colors.green,
|
|
27678
|
+
color: theme.colors.white
|
|
27679
|
+
}, _ref[StatusIndicatorValues.warning] = {
|
|
27680
|
+
borderColor: theme.colors.yellow,
|
|
27681
|
+
backgroundColor: theme.colors.yellow,
|
|
27682
|
+
color: theme.colors.darkGrey
|
|
27683
|
+
}, _ref;
|
|
27680
27684
|
};
|
|
27681
27685
|
|
|
27682
27686
|
var getStatusIndicatorColours = function getStatusIndicatorColours(type, theme) {
|
|
@@ -27686,9 +27690,9 @@ var getStatusIndicatorColours = function getStatusIndicatorColours(type, theme)
|
|
|
27686
27690
|
var StatusIndicator = styled.p.withConfig({
|
|
27687
27691
|
displayName: "StatusIndicator",
|
|
27688
27692
|
componentId: "sc-17eyafq-0"
|
|
27689
|
-
})(space, typography, flexbox, function (
|
|
27690
|
-
var theme =
|
|
27691
|
-
type =
|
|
27693
|
+
})(space, typography, flexbox, function (_ref2) {
|
|
27694
|
+
var theme = _ref2.theme,
|
|
27695
|
+
type = _ref2.type;
|
|
27692
27696
|
return Object.assign({
|
|
27693
27697
|
display: "inline-block",
|
|
27694
27698
|
fontWeight: theme.fontWeights.bold,
|
|
@@ -27698,7 +27702,7 @@ var StatusIndicator = styled.p.withConfig({
|
|
|
27698
27702
|
}, getStatusIndicatorColours(type, theme));
|
|
27699
27703
|
});
|
|
27700
27704
|
StatusIndicator.defaultProps = {
|
|
27701
|
-
type:
|
|
27705
|
+
type: StatusIndicatorValues.neutral,
|
|
27702
27706
|
mt: "0",
|
|
27703
27707
|
mr: "0",
|
|
27704
27708
|
mb: "0",
|
|
@@ -44105,11 +44109,14 @@ var BaseNavBar = function BaseNavBar(_a) {
|
|
|
44105
44109
|
|
|
44106
44110
|
return /*#__PURE__*/React__default.createElement(ReactResizeDetector, {
|
|
44107
44111
|
handleWidth: true
|
|
44108
|
-
},
|
|
44109
|
-
|
|
44110
|
-
|
|
44111
|
-
|
|
44112
|
-
|
|
44112
|
+
}, function (_ref) {
|
|
44113
|
+
var width = _ref.width;
|
|
44114
|
+
return /*#__PURE__*/React__default.createElement(SelectNavBarBasedOnWidth, Object.assign({
|
|
44115
|
+
breakpointUpper: breakpoints[breakpointUpper] || breakpointUpper,
|
|
44116
|
+
width: width,
|
|
44117
|
+
environment: environment
|
|
44118
|
+
}, props));
|
|
44119
|
+
});
|
|
44113
44120
|
};
|
|
44114
44121
|
|
|
44115
44122
|
var NavBar = styled(BaseNavBar).withConfig({
|
|
@@ -51292,4 +51299,4 @@ var SortingTable = function SortingTable(_a) {
|
|
|
51292
51299
|
}, props));
|
|
51293
51300
|
};
|
|
51294
51301
|
|
|
51295
|
-
export { ALL_NDS_LOCALES, Alert, AnimatedBox, ApplicationFrame, AsyncSelect, Box, BrandLogoContainer, NavBar as BrandedNavBar, Branding, Breadcrumbs, Button, ButtonGroup, Card, CardSet, Checkbox, CheckboxGroup, ControlIcon, DangerButton, DatePicker, DateRange, DesktopMenu, Divider, DropdownButton, DropdownItem, DropdownLink, DropdownMenu, DropdownText, EnvironmentBanner, Field, FieldLabel, Fieldset, Flex, Form, FormSection, Header, Heading1, Heading2, Heading3, Heading4, HelpText, Icon, IconicButton, InlineIcon, InlineValidation, Input$1 as Input, Link, List, ListItem, LoadingAnimation, MenuTrigger, Modal, NDSProvider, NavBar$1 as NavBar, NavBarBackground, Overlay, Page, Pagination, PrimaryButton, QuietButton, Radio, RadioGroup, RangeContainer, RequirementText, ReactSelect as Select, SelectClearIndicator, SelectContainer$1 as SelectContainer, SelectControl, SelectDropdownIndicator, SelectInput, SelectMenu, SelectMultiValue, SelectOption, Sidebar, SmallNavBar, SortingTable, StatusIndicator, Summary, SummaryDivider, SummaryItem, Switch, Switcher, Tab, Table, Tabs, Text, Textarea, TimePicker, TimeRange, Toast, ToggleComponent as Toggle, Tooltip, TruncatedText, addStyledProps, Theme as theme, useWindowDimensions };
|
|
51302
|
+
export { ALL_NDS_LOCALES, Alert, AnimatedBox, ApplicationFrame, AsyncSelect, Box, BrandLogoContainer, NavBar as BrandedNavBar, Branding, Breadcrumbs, Button, ButtonGroup, Card, CardSet, Checkbox, CheckboxGroup, ControlIcon, DangerButton, DatePicker, DateRange, DesktopMenu, Divider, DropdownButton, DropdownItem, DropdownLink, DropdownMenu, DropdownText, EnvironmentBanner, Field, FieldLabel, Fieldset, Flex, Form, FormSection, Header, Heading1, Heading2, Heading3, Heading4, HelpText, Icon, IconicButton, InlineIcon, InlineValidation, Input$1 as Input, Link, List, ListItem, LoadingAnimation, MenuTrigger, Modal, NDSProvider, NavBar$1 as NavBar, NavBarBackground, Overlay, Page, Pagination, PrimaryButton, QuietButton, Radio, RadioGroup, RangeContainer, RequirementText, ReactSelect as Select, SelectClearIndicator, SelectContainer$1 as SelectContainer, SelectControl, SelectDropdownIndicator, SelectInput, SelectMenu, SelectMultiValue, SelectOption, Sidebar, SmallNavBar, SortingTable, StatusIndicator, StatusIndicatorValues, Summary, SummaryDivider, SummaryItem, Switch, Switcher, Tab, Table, Tabs, Text, Textarea, TimePicker, TimeRange, Toast, ToggleComponent as Toggle, Tooltip, TruncatedText, addStyledProps, Theme as theme, useWindowDimensions };
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { SpaceProps, TypographyProps, FlexboxProps } from "styled-system";
|
|
3
|
-
declare
|
|
3
|
+
export declare const StatusIndicatorValues: {
|
|
4
|
+
readonly neutral: "neutral";
|
|
5
|
+
readonly dark: "dark";
|
|
6
|
+
readonly danger: "danger";
|
|
7
|
+
readonly informative: "informative";
|
|
8
|
+
readonly success: "success";
|
|
9
|
+
readonly warning: "warning";
|
|
10
|
+
readonly quiet: "quiet";
|
|
11
|
+
};
|
|
12
|
+
export declare type StatusIndicatorType = typeof StatusIndicatorValues[keyof typeof StatusIndicatorValues];
|
|
4
13
|
declare type StatusIndicatorProps = SpaceProps & TypographyProps & FlexboxProps & {
|
|
5
14
|
type?: StatusIndicatorType;
|
|
6
15
|
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { default as StatusIndicator } from "./StatusIndicator";
|
|
1
|
+
export { default as StatusIndicator, StatusIndicatorValues } from "./StatusIndicator";
|
|
2
|
+
export type { StatusIndicatorType } from "./StatusIndicator";
|
package/dist/src/index.d.ts
CHANGED
|
@@ -30,7 +30,8 @@ export { Tab, Tabs } from "./Tabs";
|
|
|
30
30
|
export { Switch, Switcher } from "./Switcher";
|
|
31
31
|
export { Table } from "./Table";
|
|
32
32
|
export type { TableProps, TableColumnType, TableRowType, TableCellInfoType } from "./Table";
|
|
33
|
-
export { StatusIndicator } from "./StatusIndicator";
|
|
33
|
+
export { StatusIndicator, StatusIndicatorValues } from "./StatusIndicator";
|
|
34
|
+
export type { StatusIndicatorType } from "./StatusIndicator";
|
|
34
35
|
export { Pagination } from "./Pagination";
|
|
35
36
|
export { DatePicker } from "./DatePicker";
|
|
36
37
|
export { DateRange } from "./DateRange";
|