@dhis2/analytics 26.6.9 → 26.6.10

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.
Files changed (21) hide show
  1. package/build/cjs/__demo__/DimensionsPanel.stories.js +1 -0
  2. package/build/cjs/assets/DynamicDimensionIcon.js +12 -38
  3. package/build/cjs/components/DimensionsPanel/List/DimensionItem.js +49 -33
  4. package/build/cjs/components/DimensionsPanel/List/OptionsButton.js +7 -6
  5. package/build/cjs/components/DimensionsPanel/List/RecommendedIcon.js +1 -2
  6. package/build/cjs/components/DimensionsPanel/List/__tests__/__snapshots__/DimensionItem.spec.js.snap +239 -361
  7. package/build/cjs/components/DimensionsPanel/List/styles/DimensionItem.style.js +5 -67
  8. package/build/cjs/components/DimensionsPanel/List/styles/DimensionList.style.js +2 -2
  9. package/build/cjs/components/DimensionsPanel/List/styles/RecommendedIcon.style.js +4 -4
  10. package/build/cjs/components/DimensionsPanel/styles/DimensionsPanel.style.js +1 -1
  11. package/build/es/__demo__/DimensionsPanel.stories.js +1 -0
  12. package/build/es/assets/DynamicDimensionIcon.js +12 -38
  13. package/build/es/components/DimensionsPanel/List/DimensionItem.js +50 -34
  14. package/build/es/components/DimensionsPanel/List/OptionsButton.js +7 -6
  15. package/build/es/components/DimensionsPanel/List/RecommendedIcon.js +1 -2
  16. package/build/es/components/DimensionsPanel/List/__tests__/__snapshots__/DimensionItem.spec.js.snap +239 -361
  17. package/build/es/components/DimensionsPanel/List/styles/DimensionItem.style.js +4 -66
  18. package/build/es/components/DimensionsPanel/List/styles/DimensionList.style.js +2 -2
  19. package/build/es/components/DimensionsPanel/List/styles/RecommendedIcon.style.js +4 -4
  20. package/build/es/components/DimensionsPanel/styles/DimensionsPanel.style.js +1 -1
  21. package/package.json +2 -2
@@ -1,66 +1,4 @@
1
- import { colors, theme } from '@dhis2/ui';
2
- export const styles = {
3
- labelWrapper: {
4
- padding: '2px 5px 2px 0'
5
- },
6
- text: {
7
- color: colors.grey900,
8
- userSelect: 'none',
9
- wordBreak: 'break-word',
10
- fontSize: '14px'
11
- },
12
- textDeactivated: {
13
- cursor: 'auto',
14
- color: colors.grey500
15
- },
16
- item: {
17
- display: 'flex',
18
- minHeight: '24px',
19
- marginTop: 3,
20
- marginBottom: 3,
21
- alignItems: 'center',
22
- borderRadius: '2px'
23
- },
24
- clickable: {
25
- cursor: 'pointer'
26
- },
27
- selected: {
28
- backgroundColor: theme.secondary100,
29
- fontWeight: 500
30
- },
31
- fixedDimensionIcon: {
32
- paddingLeft: '6px',
33
- paddingBottom: '2px'
34
- },
35
- dynamicDimensionIcon: {
36
- paddingLeft: '9px',
37
- paddingRight: '9px'
38
- },
39
- iconWrapper: {
40
- display: 'flex',
41
- flexDirection: 'column',
42
- padding: '3px 8px 0 8px'
43
- },
44
- optionsWrapper: {
45
- position: 'relative',
46
- left: '5px',
47
- width: '20px',
48
- height: '20px'
49
- },
50
- optionsButton: {
51
- display: 'flex',
52
- alignItems: 'center',
53
- justifyContent: 'center',
54
- height: '20px',
55
- width: '20px',
56
- padding: 0,
57
- border: 'none',
58
- background: 'none',
59
- outline: 'none',
60
- cursor: 'pointer'
61
- },
62
- label: {
63
- display: 'flex',
64
- outline: 'none'
65
- }
66
- };
1
+ import { colors } from '@dhis2/ui';
2
+ const _defaultExport = [`.item.jsx-1684920521{color:${colors.grey900};background-color:transparent;fill:${colors.grey800};display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;outline:none;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:0 0 0 4px;margin:0;border-radius:2px;cursor:pointer;min-height:22px;border:1px solid transparent;}`, `.item.jsx-1684920521:not(.deactivated):not(.dragging):hover{background-color:${colors.grey100};border-color:${colors.grey400};}`, ".label.jsx-1684920521{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;}", ".labelWrapper.jsx-1684920521{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;}", ".labelText.jsx-1684920521{font-size:13px;line-height:15px;margin-top:1px;}", ".iconWrapper.jsx-1684920521{width:16px;height:16px;margin:2px 4px 0 0;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;}", ".item.deactivated.jsx-1684920521{opacity:0.5;cursor:not-allowed;}", `.item.selected.jsx-1684920521{background-color:${colors.teal100};border:1px solid ${colors.teal200};color:${colors.teal900};fill:${colors.teal800};font-weight:400;}`, ".item.selected.jsx-1684920521:not(.deactivated):hover{background:#cdeae8;border-color:#93c4bf;box-shadow:0 1px 2px 0 rgb(0 0 0 / 0.05);}", ".optionsWrapper.jsx-1684920521{width:20px;height:20px;}", `.lockWrapper.jsx-1684920521 svg.jsx-1684920521 path.jsx-1684920521{fill:${colors.grey800};}`, `.lockWrapper.jsx-1684920521{background:${colors.grey300};height:20px;padding:0 2px 0 3px;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;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}`, ".item.selected.jsx-1684920521 .lockWrapper.jsx-1684920521{background:#cbe7e5;}", `.item.selected.jsx-1684920521 .lockWrapper.jsx-1684920521 svg.jsx-1684920521 path.jsx-1684920521{fill:${colors.teal900};}`];
3
+ _defaultExport.__hash = "1684920521";
4
+ export default _defaultExport;
@@ -2,6 +2,6 @@ import { colors, spacers } from '@dhis2/ui';
2
2
  // Fix for vertical flex scrolling in Firefox/Safari:
3
3
  // Wrap the list in a div with position:relative (and flex:1 instead of on the list)
4
4
  // On the list, set position:absolute, width:100%, height:100%
5
- const _defaultExport = [".container.jsx-2067921157{position:relative;-webkit-flex:1 1 0%;-ms-flex:1 1 0%;flex:1 1 0%;min-height:30vh;}", ".wrapper.jsx-2067921157{position:absolute;width:100%;height:100%;overflow:auto;margin-top:0;padding:0;}", ".list.jsx-2067921157{margin:0;padding:0;}", `.header.jsx-2067921157{text-transform:uppercase;font-size:11px;color:${colors.grey700};margin:5px 0;-webkit-letter-spacing:0.3px;-moz-letter-spacing:0.3px;-ms-letter-spacing:0.3px;letter-spacing:0.3px;}`, `.section.jsx-2067921157:not(:last-child){margin-bottom:${spacers.dp24};}`];
6
- _defaultExport.__hash = "2067921157";
5
+ const _defaultExport = [".container.jsx-1758681086{position:relative;-webkit-flex:1 1 0%;-ms-flex:1 1 0%;flex:1 1 0%;min-height:30vh;}", `.wrapper.jsx-1758681086{position:absolute;width:100%;height:100%;overflow:auto;margin-top:0;padding:0 ${spacers.dp8} 0 0;}`, ".list.jsx-1758681086{margin:0;padding:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:4px;}", `.header.jsx-1758681086{text-transform:uppercase;font-size:11px;color:${colors.grey600};margin:0 0 ${spacers.dp8} 0;-webkit-letter-spacing:0.3px;-moz-letter-spacing:0.3px;-ms-letter-spacing:0.3px;letter-spacing:0.3px;font-weight:400;}`, `.section.jsx-1758681086:not(:last-child){margin-bottom:${spacers.dp24};}`];
6
+ _defaultExport.__hash = "1758681086";
7
7
  export default _defaultExport;
@@ -1,11 +1,11 @@
1
1
  import { theme } from '@dhis2/ui';
2
2
  export const styles = {
3
3
  recommendedIcon: {
4
- backgroundColor: theme.secondary300,
5
- height: '8px',
6
- width: '8px',
4
+ backgroundColor: theme.secondary400,
5
+ height: '6px',
6
+ width: '6px',
7
7
  borderRadius: '4px',
8
- marginLeft: '5px',
8
+ marginLeft: '6px',
9
9
  display: 'inline-block',
10
10
  cursor: 'pointer'
11
11
  }
@@ -4,7 +4,7 @@ export const styles = {
4
4
  height: '100%',
5
5
  display: 'flex',
6
6
  flexDirection: 'column',
7
- backgroundColor: colors.grey050,
7
+ backgroundColor: colors.white,
8
8
  padding: '8px',
9
9
  overflow: 'hidden'
10
10
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2/analytics",
3
- "version": "26.6.9",
3
+ "version": "26.6.10",
4
4
  "main": "./build/cjs/index.js",
5
5
  "module": "./build/es/index.js",
6
6
  "exports": {
@@ -35,7 +35,7 @@
35
35
  "@dhis2/cli-app-scripts": "^9.0.1",
36
36
  "@dhis2/cli-style": "^10.4.1",
37
37
  "@dhis2/d2-i18n": "^1.1.0",
38
- "@dhis2/ui": "^9.2.0",
38
+ "@dhis2/ui": "^9.4.4",
39
39
  "@sambego/storybook-state": "^2.0.1",
40
40
  "@storybook/addons": "^6.5.16",
41
41
  "@storybook/preset-create-react-app": "^3.1.7",