@spaced-out/ui-design-system 0.1.91 → 0.1.92

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/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.1.92](https://github.com/spaced-out/ui-design-system/compare/v0.1.91...v0.1.92) (2024-04-28)
6
+
7
+
8
+ ### Features
9
+
10
+ * removing fixed grid styles, handling in css ([#197](https://github.com/spaced-out/ui-design-system/issues/197)) ([7a3bb7d](https://github.com/spaced-out/ui-design-system/commit/7a3bb7d6f2e4032c986bc3b7ad4f8f4a3a72318c))
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * passthrough isFuild ([#194](https://github.com/spaced-out/ui-design-system/issues/194)) ([e5a238b](https://github.com/spaced-out/ui-design-system/commit/e5a238bd5b3d6dbf26b80c2f950590aedadf95cd))
16
+
5
17
  ### [0.1.91](https://github.com/spaced-out/ui-design-system/compare/v0.1.90...v0.1.91) (2024-04-24)
6
18
 
7
19
 
@@ -24,6 +24,7 @@ const SimpleDropdownBase = (props, ref) => {
24
24
  onMenuClose,
25
25
  resolveLabel,
26
26
  resolveSecondaryLabel,
27
+ isMenuFluid = true,
27
28
  ...inputProps
28
29
  } = props;
29
30
  const [dropdownInputText, setDropdownInputText] = React.useState('');
@@ -66,7 +67,8 @@ const SimpleDropdownBase = (props, ref) => {
66
67
  allowSearch,
67
68
  resolveLabel,
68
69
  resolveSecondaryLabel,
69
- size
70
+ size,
71
+ isFluid: isMenuFluid
70
72
  }
71
73
  }));
72
74
  };
@@ -33,6 +33,7 @@ export type SimpleDropdownProps = {
33
33
  optionsVariant?: MenuOptionsVariant,
34
34
  allowSearch?: boolean,
35
35
  selectedKeys?: Array<string>,
36
+ isMenuFluid?: boolean,
36
37
 
37
38
  // events
38
39
  onChange?: (option: MenuOption, ?SyntheticEvent<HTMLElement>) => mixed,
@@ -59,6 +60,7 @@ const SimpleDropdownBase = (props: SimpleDropdownProps, ref) => {
59
60
  onMenuClose,
60
61
  resolveLabel,
61
62
  resolveSecondaryLabel,
63
+ isMenuFluid = true,
62
64
  ...inputProps
63
65
  } = props;
64
66
 
@@ -121,6 +123,7 @@ const SimpleDropdownBase = (props: SimpleDropdownProps, ref) => {
121
123
  resolveLabel,
122
124
  resolveSecondaryLabel,
123
125
  size,
126
+ isFluid: isMenuFluid,
124
127
  }}
125
128
  />
126
129
  );
@@ -68,7 +68,8 @@ const Row = _ref => {
68
68
  "data-testid": "Grid",
69
69
  className: (0, _classify.classify)(_GridModule.default.gridRow, className),
70
70
  style: {
71
- gridTemplateColumns: `repeat(${gridRepeatCount}, ${repeatTracks})`
71
+ '--grid-repeat-count': gridRepeatCount,
72
+ '--repeat-tracks': repeatTracks
72
73
  }
73
74
  }, childrenWithProps);
74
75
  };
@@ -83,8 +84,8 @@ const Col = _ref2 => {
83
84
  return /*#__PURE__*/React.createElement("div", {
84
85
  className: (0, _classify.classify)(_GridModule.default.gridColumn, className),
85
86
  style: {
86
- gridColumnStart,
87
- gridColumnEnd
87
+ '--grid-column-start': gridColumnStart,
88
+ '--grid-column-end': gridColumnEnd
88
89
  }
89
90
  }, children);
90
91
  };
@@ -74,7 +74,8 @@ export const Row = ({
74
74
  data-testid="Grid"
75
75
  className={classify(css.gridRow, className)}
76
76
  style={{
77
- gridTemplateColumns: `repeat(${gridRepeatCount}, ${repeatTracks})`,
77
+ '--grid-repeat-count': gridRepeatCount,
78
+ '--repeat-tracks': repeatTracks,
78
79
  }}
79
80
  >
80
81
  {childrenWithProps}
@@ -99,7 +100,10 @@ export const Col = ({
99
100
  }: ColProps): React.Node => (
100
101
  <div
101
102
  className={classify(css.gridColumn, className)}
102
- style={{gridColumnStart, gridColumnEnd}}
103
+ style={{
104
+ '--grid-column-start': gridColumnStart,
105
+ '--grid-column-end': gridColumnEnd,
106
+ }}
103
107
  >
104
108
  {children}
105
109
  </div>
@@ -10,7 +10,10 @@
10
10
  ) from '../../styles/variables/_size.css';
11
11
 
12
12
  .gridRow {
13
+ --grid-repeat-count: 12;
14
+ --repeat-tracks: 1fr;
13
15
  display: grid !important;
16
+ grid-template-columns: repeat(var(--grid-repeat-count), var(--repeat-tracks));
14
17
  width: sizeFluid;
15
18
  height: sizeFluid;
16
19
  gap: spaceMedium;
@@ -24,6 +27,9 @@
24
27
  }
25
28
 
26
29
  .gridColumn {
30
+ --grid-column-start: auto;
31
+ --grid-column-end: span 1;
27
32
  display: flex;
28
33
  align-items: center;
34
+ grid-column: var(--grid-column-start) / var(--grid-column-end);
29
35
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spaced-out/ui-design-system",
3
- "version": "0.1.91",
3
+ "version": "0.1.92",
4
4
  "main": "index.js",
5
5
  "description": "Sense UI components library",
6
6
  "author": {