diginet-core-ui 1.3.94-beta.1 → 1.3.94-beta.2

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.
@@ -182,19 +182,19 @@ ButtonMore.propTypes = {
182
182
  popoverProp: PropTypes.object,
183
183
  /** Style inline of component. */
184
184
  style: PropTypes.object,
185
- /**
186
- * ref methods (ref.current.instance.*method*)
187
- *
188
- * * option(): Gets all UI component properties
189
- * * Returns value - object
190
- * * option(optionName): Gets the value of a single property
191
- * * @param {optionName} - string
192
- * * Returns value - any
193
- * * option(optionName, optionValue): Updates the value of a single property
194
- * * @param {optionName} - string
195
- * * @param {optionValue} - any
196
- * * option(options): Updates the values of several properties
197
- * * @param {options} - object
185
+ /**
186
+ * ref methods (ref.current.instance.*method*)
187
+ *
188
+ * * option(): Gets all UI component properties
189
+ * * Returns value - object
190
+ * * option(optionName): Gets the value of a single property
191
+ * * @param {optionName} - string
192
+ * * Returns value - any
193
+ * * option(optionName, optionValue): Updates the value of a single property
194
+ * * @param {optionName} - string
195
+ * * @param {optionValue} - any
196
+ * * option(options): Updates the values of several properties
197
+ * * @param {options} - object
198
198
  */
199
199
  ref: ref
200
200
  };
@@ -6,24 +6,8 @@ import { getGlobal } from "../../global";
6
6
  import PropTypes from 'prop-types';
7
7
  import { forwardRef, Fragment, memo, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
8
8
  import { render } from 'react-dom';
9
- import { bgColor, borderRadius, boxBorder, cursorNotAllowed, cursorPointer, displayBlock, displayInlineBlock, flexRow, itemsCenter, mgb, mgl, mgr, parseHeight, parseMinHeight, parseWidth, pd, pdl, positionRelative, textLeft } from "../../styles/general";
10
- import { useTheme } from "../../theme";
9
+ import { bgColor, borderRadius, boxBorder, cursorNotAllowed, cursorPointer, displayBlock, displayFlex, displayInlineBlock, flexRow, itemsCenter, mgb, mgl, mgr, parseHeight, parseMinHeight, parseWidth, pd, pdl, positionRelative, textColor, textLeft } from "../../styles/general";
11
10
  import { classNames, mapParent, randomString, refType as ref, removeUnicode } from "../../utils";
12
- const {
13
- colors: {
14
- system: {
15
- disabled: systemDisabled
16
- },
17
- fill: {
18
- focus: fillFocus,
19
- hover: fillHover,
20
- pressed: fillPressed
21
- },
22
- text: {
23
- main: textMain
24
- }
25
- }
26
- } = useTheme();
27
11
  const separatorPattern = /\{\w+\}/g;
28
12
  const currentValue = {},
29
13
  itemsRenderAsync = {};
@@ -157,7 +141,7 @@ const TreeView = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
157
141
  if (input.classList.contains('determinate')) {
158
142
  determinateCheckbox(input, false);
159
143
  }
160
- currentValue[unique][input.value] = false;
144
+ // currentValue[unique][input.value] = false;
161
145
  }
162
146
  }
163
147
  }
@@ -803,9 +787,10 @@ const TreeViewRootCSS = css`
803
787
  ${pd(0)};
804
788
  ${borderRadius(0)};
805
789
  &.focus {
806
- ${bgColor(fillFocus)};
790
+ ${bgColor('fill/focus')};
807
791
  }
808
792
  .Accordion-Icon-Root {
793
+ ${displayFlex};
809
794
  ${flexRow};
810
795
  ${mgr([1])};
811
796
  }
@@ -815,6 +800,7 @@ const TreeViewRootCSS = css`
815
800
  ${borderRadius(0)};
816
801
  }
817
802
  .Accordion-Icon-Root {
803
+ ${displayFlex};
818
804
  ${flexRow};
819
805
  transition: opacity 0.2s ease-out;
820
806
  opacity: 1;
@@ -848,23 +834,23 @@ const TreeViewRootCSS = css`
848
834
  ${parseWidth('100%')};
849
835
  ${parseMinHeight(40)};
850
836
  ${textLeft};
851
- color: ${textMain};
837
+ ${textColor('text/main')};
852
838
  &.non-child {
853
839
  ${cursorPointer};
854
840
  transition: background-color 300ms ease;
855
841
  &.disabled {
856
842
  ${cursorNotAllowed};
857
- color: ${systemDisabled};
843
+ ${textColor('system/disabled')};
858
844
  }
859
845
  &:not(.disabled) {
860
846
  &:hover {
861
- ${bgColor(fillHover)};
847
+ ${bgColor('fill/hover')};
862
848
  }
863
849
  &:focus {
864
- ${bgColor(fillFocus)};
850
+ ${bgColor('fill/focus')};
865
851
  }
866
852
  &:active {
867
- ${bgColor(fillPressed)};
853
+ ${bgColor('fill/pressed')};
868
854
  }
869
855
  }
870
856
  &.DGN-Hidden {
@@ -872,7 +858,7 @@ const TreeViewRootCSS = css`
872
858
  }
873
859
  }
874
860
  &.focus {
875
- ${bgColor(fillFocus)};
861
+ ${bgColor('fill/focus')};
876
862
  }
877
863
  &.TreeView-Item-active .DGN-UI-Typography {
878
864
  font-weight: bold;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "diginet-core-ui",
3
- "version": "1.3.94-beta.1",
3
+ "version": "1.3.94-beta.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "license": "UNLICENSED",