@spaced-out/ui-design-system 0.0.17 → 0.0.18-beta.0

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,8 @@
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.0.18-beta.0](https://github.com/spaced-out/ui-design-system/compare/v0.0.17...v0.0.18-beta.0) (2023-02-01)
6
+
5
7
  ### [0.0.17](https://github.com/spaced-out/ui-design-system/compare/v0.0.16...v0.0.17) (2023-02-01)
6
8
 
7
9
  ### [0.0.16](https://github.com/spaced-out/ui-design-system/compare/v0.0.16-beta.1...v0.0.16) (2023-01-26)
@@ -1,5 +1,5 @@
1
1
  @value (colorBackgroundTertiary) from '../../styles/variables/_color.css';
2
- @value (spaceNone, spaceXXSmall, spaceXSmall, spaceSmall, spaceMedium, spaceLarge) from '../../styles/variables/_space.css';
2
+ @value (spaceNone, spaceXSmall, spaceSmall, spaceMedium, spaceLarge) from '../../styles/variables/_space.css';
3
3
 
4
4
  @value (sizeFluid, size60) from '../../styles/variables/_size.css';
5
5
 
@@ -10,7 +10,7 @@
10
10
  flex-direction: row;
11
11
  justify-content: space-between;
12
12
  box-sizing: border-box;
13
- padding: spaceSmall spaceLarge spaceNone spaceLarge;
13
+ padding: spaceSmall spaceLarge spaceXSmall spaceLarge;
14
14
  width: sizeFluid;
15
15
  min-height: size60;
16
16
  gap: spaceMedium;
@@ -21,7 +21,6 @@
21
21
  display: flex;
22
22
  flex-direction: column;
23
23
  gap: spaceXSmall;
24
- margin-bottom: calc(spaceXXSmall * -0.75);
25
24
  }
26
25
 
27
26
  .pageTitle {
@@ -36,5 +35,4 @@
36
35
  display: flex;
37
36
  flex-direction: column;
38
37
  justify-content: flex-end;
39
- margin: spaceNone spaceNone spaceSmall spaceNone;
40
38
  }
@@ -5,11 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.tabSizeOptions = exports.Tab = exports.TAB_SIZE = void 0;
7
7
  var React = _interopRequireWildcard(require("react"));
8
- var _typography = require("../../types/typography");
9
- var _classify = require("../../utils/classify");
10
- var _Button = require("../Button");
11
- var _Icon = require("../Icon");
12
- var _Text = require("../Text");
8
+ var _typography = require("../../../types/typography");
9
+ var _classify = require("../../../utils/classify");
10
+ var _Button = require("../../Button");
11
+ var _Icon = require("../../Icon");
12
+ var _Text = require("../../Text");
13
13
  var _TabModule = _interopRequireDefault(require("./Tab.module.css"));
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
15
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -72,7 +72,7 @@ const Tab = _ref => {
72
72
  }, iconName ? /*#__PURE__*/React.createElement(_Icon.Icon, {
73
73
  name: iconName,
74
74
  type: iconType,
75
- size: 'medium',
75
+ size: size,
76
76
  className: (0, _classify.classify)(_TabModule.default.icon, {
77
77
  [_TabModule.default.disabled]: disabled === true
78
78
  })
@@ -2,12 +2,12 @@
2
2
 
3
3
  import * as React from 'react';
4
4
 
5
- import {TEXT_COLORS} from '../../types/typography';
6
- import {classify} from '../../utils/classify';
7
- import {UnstyledButton} from '../Button';
8
- import type {IconType} from '../Icon';
9
- import {Icon} from '../Icon';
10
- import {ButtonTextMedium, ButtonTextSmall} from '../Text';
5
+ import {TEXT_COLORS} from '../../../types/typography';
6
+ import {classify} from '../../../utils/classify';
7
+ import {UnstyledButton} from '../../Button';
8
+ import type {IconType} from '../../Icon';
9
+ import {Icon} from '../../Icon';
10
+ import {ButtonTextMedium, ButtonTextSmall} from '../../Text';
11
11
 
12
12
  import css from './Tab.module.css';
13
13
 
@@ -94,7 +94,7 @@ export const Tab = ({
94
94
  <Icon
95
95
  name={iconName}
96
96
  type={iconType}
97
- size={'medium'}
97
+ size={size}
98
98
  className={classify(css.icon, {
99
99
  [css.disabled]: disabled === true,
100
100
  })}
@@ -1,10 +1,10 @@
1
- @value (colorFillPrimary, colorTextSecondary, colorFillNone, colorFocusPrimary, colorTextPrimary, colorTextDisabled) from '../../styles/variables/_color.css';
1
+ @value (colorFillPrimary, colorTextSecondary, colorFillNone, colorFocusPrimary, colorTextPrimary, colorTextDisabled) from '../../../styles/variables/_color.css';
2
2
 
3
- @value (spaceXXSmall) from '../../styles/variables/_space.css';
3
+ @value (spaceXXSmall) from '../../../styles/variables/_space.css';
4
4
 
5
- @value (sizeFluid, size42, size38) from '../../styles/variables/_size.css';
5
+ @value (sizeFluid, size42, size38) from '../../../styles/variables/_size.css';
6
6
 
7
- @value (borderWidthTertiary) from '../../styles/variables/_border.css';
7
+ @value (borderWidthTertiary) from '../../../styles/variables/_border.css';
8
8
 
9
9
  .button {
10
10
  border: borderWidthTertiary solid colorFillNone;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _Tab = require("./Tab");
7
+ Object.keys(_Tab).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _Tab[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _Tab[key];
14
+ }
15
+ });
16
+ });
@@ -0,0 +1,3 @@
1
+ // @flow strict
2
+
3
+ export * from './Tab';
@@ -6,10 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.TabDropdown = void 0;
7
7
  var React = _interopRequireWildcard(require("react"));
8
8
  var _reactDom = require("@floating-ui/react-dom");
9
- var _space = require("../../styles/variables/_space");
10
- var _classify = require("../../utils/classify");
11
- var _clickAway = require("../../utils/click-away");
12
- var _Menu = require("../Menu");
9
+ var _space = require("../../../styles/variables/_space");
10
+ var _classify = require("../../../utils/classify");
11
+ var _clickAway = require("../../../utils/click-away");
12
+ var _Menu = require("../../Menu");
13
13
  var _Tab = require("../Tab");
14
14
  var _TabDropdownModule = _interopRequireDefault(require("./TabDropdown.module.css"));
15
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -14,12 +14,12 @@ import {
14
14
  useFloating,
15
15
  } from '@floating-ui/react-dom';
16
16
 
17
- import {spaceNone, spaceXXSmall} from '../../styles/variables/_space';
18
- import {classify} from '../../utils/classify';
19
- import {ClickAway} from '../../utils/click-away';
20
- import type {AnchorType} from '../ButtonDropdown';
21
- import type {MenuOption, MenuProps} from '../Menu';
22
- import {Menu} from '../Menu';
17
+ import {spaceNone, spaceXXSmall} from '../../../styles/variables/_space';
18
+ import {classify} from '../../../utils/classify';
19
+ import {ClickAway} from '../../../utils/click-away';
20
+ import type {AnchorType} from '../../ButtonDropdown';
21
+ import type {MenuOption, MenuProps} from '../../Menu';
22
+ import {Menu} from '../../Menu';
23
23
  import type {TabProps} from '../Tab';
24
24
  import {Tab} from '../Tab';
25
25
 
@@ -1,5 +1,5 @@
1
- @value ( size36) from '../../styles/variables/_size.css';
2
- @value ( spaceFluid ) from '../../styles/variables/_space.css';
1
+ @value ( size36) from '../../../styles/variables/_size.css';
2
+ @value ( spaceFluid ) from '../../../styles/variables/_space.css';
3
3
 
4
4
  .tabDropdownContainer {
5
5
  display: flex;
@@ -5,9 +5,9 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.TabList = void 0;
7
7
  var React = _interopRequireWildcard(require("react"));
8
- var _size = require("../../styles/variables/_size");
9
- var _space = require("../../styles/variables/_space");
10
- var _classify = require("../../utils/classify");
8
+ var _size = require("../../../styles/variables/_size");
9
+ var _space = require("../../../styles/variables/_space");
10
+ var _classify = require("../../../utils/classify");
11
11
  var _TabDropdown = require("./TabDropdown.js");
12
12
  var _TabListModule = _interopRequireDefault(require("./TabList.module.css"));
13
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -92,7 +92,7 @@ const TabList = _ref => {
92
92
  onOptionSelect: menuOnSelect,
93
93
  props: {
94
94
  tab: {
95
- label: '...',
95
+ iconName: 'ellipsis',
96
96
  tabId: 'tab-dropdown',
97
97
  selectedTab: {
98
98
  tabId: isMenuOptionSelected ? 'tab-dropdown' : ''
@@ -2,9 +2,9 @@
2
2
 
3
3
  import * as React from 'react';
4
4
 
5
- import {size36, size100} from '../../styles/variables/_size';
6
- import {spaceMedium} from '../../styles/variables/_space';
7
- import {classify} from '../../utils/classify';
5
+ import {size36, size100} from '../../../styles/variables/_size';
6
+ import {spaceMedium} from '../../../styles/variables/_space';
7
+ import {classify} from '../../../utils/classify';
8
8
 
9
9
  import {TabDropdown} from './TabDropdown.js';
10
10
 
@@ -13,7 +13,7 @@ import css from './TabList.module.css';
13
13
 
14
14
  type ClassNames = $ReadOnly<{wrapper?: string}>;
15
15
 
16
- export type TabsProps = {
16
+ export type TabListProps = {
17
17
  classNames?: ClassNames,
18
18
  onSelect?: ({tabId?: string, label?: string}) => mixed,
19
19
  children?: React.Node,
@@ -29,7 +29,7 @@ export const TabList = ({
29
29
  onSelect,
30
30
  selectedTab,
31
31
  menuWidth,
32
- }: TabsProps): React.Node => {
32
+ }: TabListProps): React.Node => {
33
33
  const ref = React.useRef(null);
34
34
 
35
35
  const [containerWidth, setContainerWidth] = React.useState(0);
@@ -101,7 +101,7 @@ export const TabList = ({
101
101
  onOptionSelect={menuOnSelect}
102
102
  props={{
103
103
  tab: {
104
- label: '...',
104
+ iconName: 'ellipsis',
105
105
  tabId: 'tab-dropdown',
106
106
  selectedTab: {tabId: isMenuOptionSelected ? 'tab-dropdown' : ''},
107
107
  },
@@ -1,6 +1,6 @@
1
- @value (spaceMedium) from '../../styles/variables/_space.css';
1
+ @value (spaceMedium) from '../../../styles/variables/_space.css';
2
2
 
3
- @value ( size38, size42, sizeFluid) from '../../styles/variables/_size.css';
3
+ @value ( size38, size42, sizeFluid) from '../../../styles/variables/_size.css';
4
4
 
5
5
  .tabsContainer {
6
6
  display: flex;
@@ -1,4 +1,3 @@
1
1
  // @flow strict
2
2
 
3
- export type {TabsProps} from './TabList';
4
3
  export * from './TabList';
@@ -3,27 +3,20 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- var _exportNames = {
7
- Tab: true,
8
- tabSizeOptions: true
9
- };
10
- Object.defineProperty(exports, "Tab", {
11
- enumerable: true,
12
- get: function () {
13
- return _Tab.Tab;
14
- }
15
- });
16
- Object.defineProperty(exports, "tabSizeOptions", {
17
- enumerable: true,
18
- get: function () {
19
- return _Tab.tabSizeOptions;
20
- }
6
+ var _Tab = require("./Tab");
7
+ Object.keys(_Tab).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _Tab[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _Tab[key];
14
+ }
15
+ });
21
16
  });
22
- var _Tab = require("../Tab");
23
- var _TabList = require("../TabList");
17
+ var _TabList = require("./TabList");
24
18
  Object.keys(_TabList).forEach(function (key) {
25
19
  if (key === "default" || key === "__esModule") return;
26
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
27
20
  if (key in exports && exports[key] === _TabList[key]) return;
28
21
  Object.defineProperty(exports, key, {
29
22
  enumerable: true,
@@ -1,6 +1,4 @@
1
1
  // @flow strict
2
2
 
3
- export type {TabProps} from '../Tab';
4
- export {Tab, tabSizeOptions} from '../Tab';
5
- export type {TabsProps} from '../TabList';
6
- export * from '../TabList';
3
+ export * from './Tab';
4
+ export * from './TabList';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spaced-out/ui-design-system",
3
- "version": "0.0.17",
3
+ "version": "0.0.18-beta.0",
4
4
  "main": "index.js",
5
5
  "description": "Sense UI components library",
6
6
  "author": {
@@ -1,18 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "Tab", {
7
- enumerable: true,
8
- get: function () {
9
- return _Tab.Tab;
10
- }
11
- });
12
- Object.defineProperty(exports, "tabSizeOptions", {
13
- enumerable: true,
14
- get: function () {
15
- return _Tab.tabSizeOptions;
16
- }
17
- });
18
- var _Tab = require("./Tab");
@@ -1,4 +0,0 @@
1
- // @flow strict
2
-
3
- export type {TabProps} from './Tab';
4
- export {Tab, tabSizeOptions} from './Tab';