@nulogy/components 8.4.6 → 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
- return {
27670
- neutral: {
27671
- borderColor: theme.colors.lightGrey,
27672
- backgroundColor: theme.colors.lightGrey,
27673
- color: theme.colors.darkGrey
27674
- },
27675
- dark: {
27676
- borderColor: theme.colors.blackBlue,
27677
- backgroundColor: theme.colors.blackBlue,
27678
- color: theme.colors.white
27679
- },
27680
- quiet: {
27681
- borderColor: theme.colors.white,
27682
- backgroundColor: theme.colors.white,
27683
- color: theme.colors.darkGrey
27684
- },
27685
- danger: {
27686
- borderColor: theme.colors.red,
27687
- backgroundColor: theme.colors.red,
27688
- color: theme.colors.white
27689
- },
27690
- informative: {
27691
- borderColor: theme.colors.blue,
27692
- backgroundColor: theme.colors.blue,
27693
- color: theme.colors.white
27694
- },
27695
- success: {
27696
- borderColor: theme.colors.green,
27697
- backgroundColor: theme.colors.green,
27698
- color: theme.colors.white
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 (_ref) {
27716
- var theme = _ref.theme,
27717
- type = _ref.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: "neutral",
27731
+ type: StatusIndicatorValues.neutral,
27728
27732
  mt: "0",
27729
27733
  mr: "0",
27730
27734
  mb: "0",
@@ -51397,6 +51401,7 @@
51397
51401
  exports.SmallNavBar = SmallNavBar;
51398
51402
  exports.SortingTable = SortingTable;
51399
51403
  exports.StatusIndicator = StatusIndicator;
51404
+ exports.StatusIndicatorValues = StatusIndicatorValues;
51400
51405
  exports.Summary = Summary;
51401
51406
  exports.SummaryDivider = SummaryDivider;
51402
51407
  exports.SummaryItem = SummaryItem;
@@ -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
- return {
27644
- neutral: {
27645
- borderColor: theme.colors.lightGrey,
27646
- backgroundColor: theme.colors.lightGrey,
27647
- color: theme.colors.darkGrey
27648
- },
27649
- dark: {
27650
- borderColor: theme.colors.blackBlue,
27651
- backgroundColor: theme.colors.blackBlue,
27652
- color: theme.colors.white
27653
- },
27654
- quiet: {
27655
- borderColor: theme.colors.white,
27656
- backgroundColor: theme.colors.white,
27657
- color: theme.colors.darkGrey
27658
- },
27659
- danger: {
27660
- borderColor: theme.colors.red,
27661
- backgroundColor: theme.colors.red,
27662
- color: theme.colors.white
27663
- },
27664
- informative: {
27665
- borderColor: theme.colors.blue,
27666
- backgroundColor: theme.colors.blue,
27667
- color: theme.colors.white
27668
- },
27669
- success: {
27670
- borderColor: theme.colors.green,
27671
- backgroundColor: theme.colors.green,
27672
- color: theme.colors.white
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 (_ref) {
27690
- var theme = _ref.theme,
27691
- type = _ref.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: "neutral",
27705
+ type: StatusIndicatorValues.neutral,
27702
27706
  mt: "0",
27703
27707
  mr: "0",
27704
27708
  mb: "0",
@@ -51295,4 +51299,4 @@ var SortingTable = function SortingTable(_a) {
51295
51299
  }, props));
51296
51300
  };
51297
51301
 
51298
- 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 type StatusIndicatorType = "neutral" | "dark" | "danger" | "informative" | "success" | "warning" | "quiet";
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";
@@ -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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nulogy/components",
3
- "version": "8.4.6",
3
+ "version": "8.4.7",
4
4
  "description": "Component library for the Nulogy Design System - http://nulogy.design",
5
5
  "private": false,
6
6
  "publishConfig": {