@itcase/ui-core 1.10.55 → 1.10.57

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.
@@ -29,6 +29,7 @@ var styleAttributes = [
29
29
  'columnGap',
30
30
  'columnWidth',
31
31
  'height',
32
+ 'inset',
32
33
  'justifyContent',
33
34
  'justifyItems',
34
35
  'justifySelf',
@@ -37,6 +37,9 @@ function useStyles(props) {
37
37
  const { deviceCurrentMainType, deviceCurrentType, deviceTypesList } = UIContext.useUserDeviceContext();
38
38
  const propsStyleAttributes = React.useMemo(() => {
39
39
  const styles = Object.entries(props).reduce((result, [propKey, propValue]) => {
40
+ if (propValue === false || propValue == null) {
41
+ return result;
42
+ }
40
43
  const styleAttributeKey = getTargetStyleAttributeKey(propKey, propValue);
41
44
  if (styleAttributeKey) {
42
45
  result[propKey] = propValue;
@@ -25,6 +25,7 @@ var styleAttributes = [
25
25
  'columnGap',
26
26
  'columnWidth',
27
27
  'height',
28
+ 'inset',
28
29
  'justifyContent',
29
30
  'justifyItems',
30
31
  'justifySelf',
@@ -35,6 +35,9 @@ function useStyles(props) {
35
35
  const { deviceCurrentMainType, deviceCurrentType, deviceTypesList } = useUserDeviceContext();
36
36
  const propsStyleAttributes = useMemo(() => {
37
37
  const styles = Object.entries(props).reduce((result, [propKey, propValue]) => {
38
+ if (propValue === false || propValue == null) {
39
+ return result;
40
+ }
38
41
  const styleAttributeKey = getTargetStyleAttributeKey(propKey, propValue);
39
42
  if (styleAttributeKey) {
40
43
  result[propKey] = propValue;
@@ -69,6 +69,10 @@ export interface StyleAttributes {
69
69
  gridTemplateColumns?: CSS.Property.GridTemplateColumns;
70
70
  gridTemplateRows?: CSS.Property.GridTemplateRows;
71
71
  height?: CSS.Property.Height | HeightProps;
72
+ /**
73
+ * Position shorthand: top/right/bottom/left
74
+ */
75
+ inset?: CSS.Property.Inset;
72
76
  justifyContent?: JustifyContentProps;
73
77
  justifyItems?: JustifyItemsProps;
74
78
  justifySelf?: JustifySelfProps;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/ui-core",
3
- "version": "1.10.55",
3
+ "version": "1.10.57",
4
4
  "description": "UI shared components",
5
5
  "keywords": [
6
6
  "Modal",
@@ -96,5 +96,5 @@
96
96
  "rollup-plugin-peer-deps-external": "^2.2.4",
97
97
  "rollup-preserve-directives": "^1.1.3"
98
98
  },
99
- "gitHead": "f259be2cb2accf34ddfa100863870c1124ea2efc"
99
+ "gitHead": "915d05f7b9579e649e0e113acf841710ec33cc18"
100
100
  }