@digital-ai/dot-components 2.11.2 → 2.11.3

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/CHANGE_LOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.11.3](https://www.npmjs.com/package/@digital-ai/dot-components) (07/24/2023)
4
+
5
+ [Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/2.11.2...2.11.3)
6
+
7
+ **Fixed bugs:**
8
+
9
+ - S-94066: Update avatar colors [\#1565](https://github.com/digital-ai/dot-components/pull/1565) ([CWSites](https://github.com/CWSites))
10
+
3
11
  ## [2.11.2](https://www.npmjs.com/package/@digital-ai/dot-components) (07/18/2023)
4
12
 
5
13
  [Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/2.11.1...2.11.2)
@@ -39,7 +47,6 @@
39
47
  - S-84554: Update typography to latest Figma [\#1551](https://github.com/digital-ai/dot-components/pull/1551) ([CWSites](https://github.com/CWSites))
40
48
  - S-91993: Address a11y issues raised by Storybook [\#1549](https://github.com/digital-ai/dot-components/pull/1549) ([CWSites](https://github.com/CWSites))
41
49
  - D-25843: update dot-icons to be greater than 1.0.11 [\#1543](https://github.com/digital-ai/dot-components/pull/1543) ([CWSites](https://github.com/CWSites))
42
- - `master` \> `develop` [\#1532](https://github.com/digital-ai/dot-components/pull/1532) ([angel-git](https://github.com/angel-git))
43
50
 
44
51
  ## [1.21.12](https://www.npmjs.com/package/@digital-ai/dot-components) (07/14/2023)
45
52
 
@@ -63,6 +70,7 @@
63
70
  - S-91990: LinearProgress add aria-label [\#1537](https://github.com/digital-ai/dot-components/pull/1537) ([CWSites](https://github.com/CWSites))
64
71
  - S-91989: remove default aria-label, add link label to missing link [\#1536](https://github.com/digital-ai/dot-components/pull/1536) ([CWSites](https://github.com/CWSites))
65
72
  - S-91989: update link to have aria-label [\#1534](https://github.com/digital-ai/dot-components/pull/1534) ([CWSites](https://github.com/CWSites))
73
+ - `master` \> `develop` [\#1532](https://github.com/digital-ai/dot-components/pull/1532) ([angel-git](https://github.com/angel-git))
66
74
 
67
75
  ## [2.10.1](https://www.npmjs.com/package/@digital-ai/dot-components) (06/29/2023)
68
76
 
@@ -944,6 +952,7 @@
944
952
 
945
953
  - D-19722: `Table`: Fix Storybook issues by refactoring Table's story. [\#974](https://github.com/digital-ai/dot-components/pull/974) ([dmiletic85](https://github.com/dmiletic85))
946
954
  - D-19713: Do not show alert banner close button if onClose not provided [\#973](https://github.com/digital-ai/dot-components/pull/973) ([selsemore](https://github.com/selsemore))
955
+ - D-19474: DotDrawer fixes [\#939](https://github.com/digital-ai/dot-components/pull/939) ([selsemore](https://github.com/selsemore))
947
956
 
948
957
  **Misc:**
949
958
 
@@ -988,7 +997,6 @@
988
997
  **Fixed bugs:**
989
998
 
990
999
  - D-19520: `AppToolbar`: Unnecessary scrollbar on the menu [\#941](https://github.com/digital-ai/dot-components/pull/941) ([dmiletic85](https://github.com/dmiletic85))
991
- - D-19474: DotDrawer fixes [\#939](https://github.com/digital-ai/dot-components/pull/939) ([selsemore](https://github.com/selsemore))
992
1000
 
993
1001
  **Misc:**
994
1002
 
@@ -1083,7 +1091,6 @@
1083
1091
  **Fixed bugs:**
1084
1092
 
1085
1093
  - D-19294: Fix broken expand/collapse for uncontrolled accordion [\#866](https://github.com/digital-ai/dot-components/pull/866) ([selsemore](https://github.com/selsemore))
1086
- - \#841 Fix DotDynamicForm initial form state for controls with initialValue false [\#842](https://github.com/digital-ai/dot-components/pull/842) ([selsemore](https://github.com/selsemore))
1087
1094
 
1088
1095
  **Misc:**
1089
1096
 
@@ -1129,8 +1136,8 @@
1129
1136
 
1130
1137
  **Fixed bugs:**
1131
1138
 
1139
+ - \#841 Fix DotDynamicForm initial form state for controls with initialValue false [\#842](https://github.com/digital-ai/dot-components/pull/842) ([selsemore](https://github.com/selsemore))
1132
1140
  - D-19189: Extended sidenav drawer should collapse when another drawer option is clicked [\#830](https://github.com/digital-ai/dot-components/pull/830) ([dmiletic85](https://github.com/dmiletic85))
1133
- - D-19148: Input elements not displaying correctly when `border-box` is used in consumer components [\#812](https://github.com/digital-ai/dot-components/pull/812) ([dmiletic85](https://github.com/dmiletic85))
1134
1141
 
1135
1142
  **Misc:**
1136
1143
 
@@ -1166,6 +1173,7 @@
1166
1173
 
1167
1174
  - \#795 Address AlertBanner style issues [\#815](https://github.com/digital-ai/dot-components/pull/815) ([angel-git](https://github.com/angel-git))
1168
1175
  - D-19138: Remove margin-bottom from breadcrumbs [\#813](https://github.com/digital-ai/dot-components/pull/813) ([angel-git](https://github.com/angel-git))
1176
+ - D-19148: Input elements not displaying correctly when `border-box` is used in consumer components [\#812](https://github.com/digital-ai/dot-components/pull/812) ([dmiletic85](https://github.com/dmiletic85))
1169
1177
  - \[D-18631\]\[D-18632\]\[D-18802\]:Focus state of avatar button and sidebar list item and inaccurate count of nav item [\#804](https://github.com/digital-ai/dot-components/pull/804) ([monapatel91](https://github.com/monapatel91))
1170
1178
 
1171
1179
  **Misc:**
@@ -1356,6 +1364,10 @@
1356
1364
 
1357
1365
  [Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/1.0.9...1.0.10)
1358
1366
 
1367
+ **Features:**
1368
+
1369
+ - S-78487: Add agility colors for Accordion, Pill and Tabs [\#661](https://github.com/digital-ai/dot-components/pull/661) ([angel-git](https://github.com/angel-git))
1370
+
1359
1371
  **Fixed bugs:**
1360
1372
 
1361
1373
  - D-18424: include breadcrumb wrapper with breadcrumb component [\#675](https://github.com/digital-ai/dot-components/pull/675) ([CWSites](https://github.com/CWSites))
@@ -1369,10 +1381,6 @@
1369
1381
 
1370
1382
  [Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/1.0.8...1.0.9)
1371
1383
 
1372
- **Features:**
1373
-
1374
- - S-78487: Add agility colors for Accordion, Pill and Tabs [\#661](https://github.com/digital-ai/dot-components/pull/661) ([angel-git](https://github.com/angel-git))
1375
-
1376
1384
  **Fixed bugs:**
1377
1385
 
1378
1386
  - D-18730: action toolbar support [\#671](https://github.com/digital-ai/dot-components/pull/671) ([CWSites](https://github.com/CWSites))
package/index.esm.js CHANGED
@@ -639,6 +639,10 @@ const avatarColors = {
639
639
  color: n700,
640
640
  backgroundColor: n100
641
641
  },
642
+ inherit: {
643
+ color: 'inherit',
644
+ backgroundColor: null
645
+ },
642
646
  green: {
643
647
  color: n0,
644
648
  backgroundColor: g500
@@ -672,8 +676,12 @@ const avatarColors = {
672
676
  backgroundColor: n200
673
677
  },
674
678
  transparent: {
675
- color: n0,
679
+ color: n700,
676
680
  backgroundColor: 'transparent'
681
+ },
682
+ white: {
683
+ color: n700,
684
+ backgroundColor: n0
677
685
  }
678
686
  };
679
687
  const darkTheme = createTheme({
@@ -1627,7 +1635,7 @@ const StyledAvatar = styled(Avatar).withConfig({
1627
1635
  }, theme.palette.layer.n0, theme.palette.layer.n900, ({
1628
1636
  color
1629
1637
  }) => {
1630
- return color === 'default' ? theme.palette.layer.n700 : color && theme.palette.avatarColors[color] ? theme.palette.avatarColors[color].color : theme.palette.avatarColors['default'].color;
1638
+ return color ? theme.palette.avatarColors[color].color : theme.palette.avatarColors['default'].color;
1631
1639
  }, theme.spacing(avatarSpacing.small), theme.spacing(avatarSpacing.small), theme.spacing(avatarSpacing.medium), theme.spacing(avatarSpacing.medium), theme.spacing(avatarSpacing.large), theme.spacing(avatarSpacing.large)));
1632
1640
 
1633
1641
  const AvatarContent = ({
@@ -1649,7 +1657,6 @@ const AvatarContent = ({
1649
1657
  }
1650
1658
  };
1651
1659
  const parsedText = () => {
1652
- if (!isString$1(text)) return;
1653
1660
  const textArray = text.split(' ');
1654
1661
  if (textArray.length > 1) {
1655
1662
  const firstInitial = textArray[0].slice(0, 1);
@@ -1699,6 +1706,7 @@ const DotAvatar = ({
1699
1706
  }) => {
1700
1707
  const rootClasses = useStylesWithRootClass(rootClassName$10, className);
1701
1708
  const getAvatarColor = () => {
1709
+ if ((style === null || style === void 0 ? void 0 : style.color) !== undefined) return 'inherit';
1702
1710
  if (color) return color;
1703
1711
  if (_text && _text !== alt) return getAvatarColorForInputText(_text);
1704
1712
  return 'default';
@@ -7952,7 +7960,8 @@ const DotStepper = ({
7952
7960
  }
7953
7961
  return isHorizontal ? jsx(DotAvatar, {
7954
7962
  alt: iconId,
7955
- iconId: stepIcon
7963
+ iconId: stepIcon,
7964
+ type: "icon"
7956
7965
  }, void 0) : jsx(DotIcon, {
7957
7966
  iconId: stepIcon
7958
7967
  }, void 0);
package/index.umd.js CHANGED
@@ -776,6 +776,10 @@
776
776
  color: n700,
777
777
  backgroundColor: n100
778
778
  },
779
+ inherit: {
780
+ color: 'inherit',
781
+ backgroundColor: null
782
+ },
779
783
  green: {
780
784
  color: n0,
781
785
  backgroundColor: g500
@@ -809,8 +813,12 @@
809
813
  backgroundColor: n200
810
814
  },
811
815
  transparent: {
812
- color: n0,
816
+ color: n700,
813
817
  backgroundColor: 'transparent'
818
+ },
819
+ white: {
820
+ color: n700,
821
+ backgroundColor: n0
814
822
  }
815
823
  };
816
824
  var darkTheme = styles.createTheme({
@@ -1841,7 +1849,7 @@
1841
1849
  return color && theme.palette.avatarColors[color] ? theme.palette.avatarColors[color].backgroundColor : theme.palette.avatarColors['default'].backgroundColor;
1842
1850
  }, theme.palette.layer.n0, theme.palette.layer.n900, function (_a) {
1843
1851
  var color = _a.color;
1844
- return color === 'default' ? theme.palette.layer.n700 : color && theme.palette.avatarColors[color] ? theme.palette.avatarColors[color].color : theme.palette.avatarColors['default'].color;
1852
+ return color ? theme.palette.avatarColors[color].color : theme.palette.avatarColors['default'].color;
1845
1853
  }, theme.spacing(avatarSpacing.small), theme.spacing(avatarSpacing.small), theme.spacing(avatarSpacing.medium), theme.spacing(avatarSpacing.medium), theme.spacing(avatarSpacing.large), theme.spacing(avatarSpacing.large));
1846
1854
  });
1847
1855
  var templateObject_1$15, templateObject_2$11;
@@ -1864,7 +1872,6 @@
1864
1872
  }
1865
1873
  };
1866
1874
  var parsedText = function parsedText() {
1867
- if (!isString$1(text)) return;
1868
1875
  var textArray = text.split(' ');
1869
1876
  if (textArray.length > 1) {
1870
1877
  var firstInitial = textArray[0].slice(0, 1);
@@ -1924,6 +1931,7 @@
1924
1931
  style = _a.style;
1925
1932
  var rootClasses = useStylesWithRootClass(rootClassName$10, className);
1926
1933
  var getAvatarColor = function getAvatarColor() {
1934
+ if ((style === null || style === void 0 ? void 0 : style.color) !== undefined) return 'inherit';
1927
1935
  if (color) return color;
1928
1936
  if (text && text !== alt) return getAvatarColorForInputText(text);
1929
1937
  return 'default';
@@ -8657,7 +8665,8 @@
8657
8665
  }
8658
8666
  return isHorizontal ? jsxRuntime.jsx(DotAvatar, {
8659
8667
  alt: iconId,
8660
- iconId: stepIcon
8668
+ iconId: stepIcon,
8669
+ type: "icon"
8661
8670
  }, void 0) : jsxRuntime.jsx(DotIcon, {
8662
8671
  iconId: stepIcon
8663
8672
  }, void 0);
@@ -3,7 +3,7 @@ import { CommonProps } from '../CommonProps';
3
3
  export declare type AvatarSize = 'small' | 'medium' | 'large';
4
4
  export declare type AvatarType = 'image' | 'text' | 'icon';
5
5
  export declare type AvatarVariant = 'circular' | 'square';
6
- export declare type AvatarColor = 'default' | 'green' | 'blue' | 'orange' | 'purple' | 'yellow' | 'red' | 'darkGrey' | 'lightGrey' | 'transparent';
6
+ export declare type AvatarColor = 'default' | 'inherit' | 'green' | 'blue' | 'orange' | 'purple' | 'yellow' | 'red' | 'darkGrey' | 'lightGrey' | 'transparent' | 'white';
7
7
  export interface AvatarProps extends CommonProps {
8
8
  /** Text displayed on hover */
9
9
  alt: string;
@@ -4,5 +4,6 @@ declare const _default: ComponentMeta<({ alt, ariaLabel, ariaRole, className, co
4
4
  export default _default;
5
5
  export declare const Default: any;
6
6
  export declare const AvatarButton: any;
7
+ export declare const WithCustomColor: any;
7
8
  export declare const WithNumber: any;
8
9
  export declare const WithTooltip: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital-ai/dot-components",
3
- "version": "2.11.2",
3
+ "version": "2.11.3",
4
4
  "private": false,
5
5
  "license": "SEE LICENSE IN <LICENSE.md>",
6
6
  "contributors": [