@remvst/design-system 1.2.0 → 1.3.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 ADDED
@@ -0,0 +1,7 @@
1
+ # @remvst/design-system
2
+
3
+ ## 1.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - f4821d3: Moves rxjs and react to peer dependencies
@@ -1,33 +1,26 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NarrowColumn = exports.AlignRight = exports.HorizontalCenter = exports.VerticalCenter = void 0;
4
- const component_with_class_name_1 = require("../component-with-class-name");
5
- require("./alignment.css");
6
- class VerticalCenter extends component_with_class_name_1.ComponentWithClassName {
1
+ import { ComponentWithClassName } from "../component-with-class-name";
2
+ import "./alignment.css";
3
+ export class VerticalCenter extends ComponentWithClassName {
7
4
  constructor() {
8
5
  super(...arguments);
9
6
  this.className = "vertical-center";
10
7
  }
11
8
  }
12
- exports.VerticalCenter = VerticalCenter;
13
- class HorizontalCenter extends component_with_class_name_1.ComponentWithClassName {
9
+ export class HorizontalCenter extends ComponentWithClassName {
14
10
  constructor() {
15
11
  super(...arguments);
16
12
  this.className = "horizontal-center";
17
13
  }
18
14
  }
19
- exports.HorizontalCenter = HorizontalCenter;
20
- class AlignRight extends component_with_class_name_1.ComponentWithClassName {
15
+ export class AlignRight extends ComponentWithClassName {
21
16
  constructor() {
22
17
  super(...arguments);
23
18
  this.className = "align-right";
24
19
  }
25
20
  }
26
- exports.AlignRight = AlignRight;
27
- class NarrowColumn extends component_with_class_name_1.ComponentWithClassName {
21
+ export class NarrowColumn extends ComponentWithClassName {
28
22
  constructor() {
29
23
  super(...arguments);
30
24
  this.className = "narrow-column";
31
25
  }
32
26
  }
33
- exports.NarrowColumn = NarrowColumn;
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AnimateInSequence = void 0;
4
- require("./animations.css");
5
- class AnimateInSequence {
1
+ import "./animations.css";
2
+ export class AnimateInSequence {
6
3
  constructor() {
7
4
  this.delay = 0;
8
5
  this.interval = 0.05;
@@ -20,4 +17,3 @@ class AnimateInSequence {
20
17
  };
21
18
  }
22
19
  }
23
- exports.AnimateInSequence = AnimateInSequence;
@@ -1,16 +1,10 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.BalancedRow = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- require("./balanced-row.css");
9
- class BalancedRow extends react_1.default.Component {
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import React from "react";
3
+ import "./balanced-row.css";
4
+ export class BalancedRow extends React.Component {
10
5
  render() {
11
- return (react_1.default.createElement("div", { className: "balanced-row", ...this.props }, react_1.default.Children.map(this.props.children, (child, i) => {
12
- return react_1.default.createElement("div", { key: `child-${i}` }, child);
13
- })));
6
+ return (_jsx("div", { className: "balanced-row", ...this.props, children: React.Children.map(this.props.children, (child, i) => {
7
+ return _jsx("div", { children: child }, `child-${i}`);
8
+ }) }));
14
9
  }
15
10
  }
16
- exports.BalancedRow = BalancedRow;
@@ -1,16 +1,10 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.BalancedStack = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- require("./balanced-stack.css");
9
- class BalancedStack extends react_1.default.Component {
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import React from "react";
3
+ import "./balanced-stack.css";
4
+ export class BalancedStack extends React.Component {
10
5
  render() {
11
- return (react_1.default.createElement("div", { className: "balanced-stack" }, react_1.default.Children.map(this.props.children, (child, i) => {
12
- return react_1.default.createElement("div", { key: `child-${i}` }, child);
13
- })));
6
+ return (_jsx("div", { className: "balanced-stack", children: React.Children.map(this.props.children, (child, i) => {
7
+ return _jsx("div", { children: child }, `child-${i}`);
8
+ }) }));
14
9
  }
15
10
  }
16
- exports.BalancedStack = BalancedStack;
@@ -1,19 +1,12 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.MainButton = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- const focusable_1 = require("../focusable");
9
- require("./buttons.css");
10
- class MainButton extends focusable_1.Focusable {
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Focusable } from "../focusable";
3
+ import "./buttons.css";
4
+ export class MainButton extends Focusable {
11
5
  constructor() {
12
6
  super(...arguments);
13
7
  this.className = "main-button";
14
8
  }
15
9
  renderChildren() {
16
- return react_1.default.createElement("span", null, super.renderChildren());
10
+ return _jsx("span", { children: super.renderChildren() });
17
11
  }
18
12
  }
19
- exports.MainButton = MainButton;
@@ -1,15 +1,9 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ComponentWithClassName = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- class ComponentWithClassName extends react_1.default.Component {
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import React from "react";
3
+ export class ComponentWithClassName extends React.Component {
9
4
  render() {
10
5
  const props = { ...this.props };
11
6
  props.className = this.className + " " + (this.props.className || "");
12
- return react_1.default.createElement("div", { ...props }, this.props.children);
7
+ return _jsx("div", { ...props, children: this.props.children });
13
8
  }
14
9
  }
15
- exports.ComponentWithClassName = ComponentWithClassName;
@@ -1,41 +1,28 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.DialogContent = exports.DialogTopBarRight = exports.DialogTopBarCenter = exports.DialogTopBarLeft = exports.DialogBottomBar = exports.DialogTopBar = exports.DialogLayout = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- require("./dialog-layout.css");
9
- function DialogLayout(props) {
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import "./dialog-layout.css";
3
+ export function DialogLayout(props) {
10
4
  const classes = ["dialog-layout"];
11
5
  if (props.isModal)
12
6
  classes.push("modal");
13
7
  if (props.isPacked)
14
8
  classes.push("packed");
15
- return react_1.default.createElement("div", { className: classes.join(" ") }, props.children);
9
+ return _jsx("div", { className: classes.join(" "), children: props.children });
16
10
  }
17
- exports.DialogLayout = DialogLayout;
18
- function DialogTopBar(props) {
19
- return react_1.default.createElement("div", { className: "dialog-layout-top-bar" }, props.children);
11
+ export function DialogTopBar(props) {
12
+ return _jsx("div", { className: "dialog-layout-top-bar", children: props.children });
20
13
  }
21
- exports.DialogTopBar = DialogTopBar;
22
- function DialogBottomBar(props) {
23
- return react_1.default.createElement("div", { className: "dialog-layout-bottom-bar" }, props.children);
14
+ export function DialogBottomBar(props) {
15
+ return _jsx("div", { className: "dialog-layout-bottom-bar", children: props.children });
24
16
  }
25
- exports.DialogBottomBar = DialogBottomBar;
26
- function DialogTopBarLeft(props) {
27
- return react_1.default.createElement("div", { className: "dialog-layout-top-bar-left" }, props.children);
17
+ export function DialogTopBarLeft(props) {
18
+ return _jsx("div", { className: "dialog-layout-top-bar-left", children: props.children });
28
19
  }
29
- exports.DialogTopBarLeft = DialogTopBarLeft;
30
- function DialogTopBarCenter(props) {
31
- return react_1.default.createElement("div", { className: "dialog-layout-top-bar-center" }, props.children);
20
+ export function DialogTopBarCenter(props) {
21
+ return _jsx("div", { className: "dialog-layout-top-bar-center", children: props.children });
32
22
  }
33
- exports.DialogTopBarCenter = DialogTopBarCenter;
34
- function DialogTopBarRight(props) {
35
- return react_1.default.createElement("div", { className: "dialog-layout-top-bar-right" }, props.children);
23
+ export function DialogTopBarRight(props) {
24
+ return _jsx("div", { className: "dialog-layout-top-bar-right", children: props.children });
36
25
  }
37
- exports.DialogTopBarRight = DialogTopBarRight;
38
- function DialogContent(props) {
39
- return react_1.default.createElement("div", { className: "dialog-layout-content" }, props.children);
26
+ export function DialogContent(props) {
27
+ return _jsx("div", { className: "dialog-layout-content", children: props.children });
40
28
  }
41
- exports.DialogContent = DialogContent;
package/lib/dim/dim.js CHANGED
@@ -1,12 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Dim = void 0;
4
- const component_with_class_name_1 = require("../component-with-class-name");
5
- require("./dim.css");
6
- class Dim extends component_with_class_name_1.ComponentWithClassName {
1
+ import { ComponentWithClassName } from "../component-with-class-name";
2
+ import "./dim.css";
3
+ export class Dim extends ComponentWithClassName {
7
4
  constructor() {
8
5
  super(...arguments);
9
6
  this.className = "dim";
10
7
  }
11
8
  }
12
- exports.Dim = Dim;
@@ -1,13 +1,8 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.TransitioningDim = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- const dim_1 = require("./dim");
9
- require("./transitioning-dim.css");
10
- class TransitioningDim extends react_1.default.Component {
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import React from "react";
3
+ import { Dim } from "./dim";
4
+ import "./transitioning-dim.css";
5
+ export class TransitioningDim extends React.Component {
11
6
  constructor(props) {
12
7
  super(props);
13
8
  this.state = {
@@ -26,7 +21,6 @@ class TransitioningDim extends react_1.default.Component {
26
21
  });
27
22
  }
28
23
  render() {
29
- return (react_1.default.createElement(dim_1.Dim, { onAnimationEnd: this.state.animateOutListener, className: this.state.closing ? "closing" : "opening" }, this.props.children));
24
+ return (_jsx(Dim, { onAnimationEnd: this.state.animateOutListener, className: this.state.closing ? "closing" : "opening", children: this.props.children }));
30
25
  }
31
26
  }
32
- exports.TransitioningDim = TransitioningDim;
@@ -1,16 +1,10 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.FlowList = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- require("./flow-list.css");
9
- class FlowList extends react_1.default.Component {
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import React from "react";
3
+ import "./flow-list.css";
4
+ export class FlowList extends React.Component {
10
5
  render() {
11
- return (react_1.default.createElement("div", { className: "flow-list", ...this.props }, react_1.default.Children.map(this.props.children, (child, i) => {
12
- return react_1.default.createElement("div", { key: `child-${i}` }, child);
13
- })));
6
+ return (_jsx("div", { className: "flow-list", ...this.props, children: React.Children.map(this.props.children, (child, i) => {
7
+ return _jsx("div", { children: child }, `child-${i}`);
8
+ }) }));
14
9
  }
15
10
  }
16
- exports.FlowList = FlowList;
package/lib/focusable.js CHANGED
@@ -1,11 +1,6 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Focusable = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- class Focusable extends react_1.default.Component {
1
+ import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
2
+ import React from "react";
3
+ export class Focusable extends React.Component {
9
4
  onMouseOver() {
10
5
  this.divElement?.focus();
11
6
  }
@@ -25,10 +20,9 @@ class Focusable extends react_1.default.Component {
25
20
  props.className = props.className || "";
26
21
  props.className += " " + this.className;
27
22
  props.className += " " + (this.props.disabled ? "disabled" : "");
28
- return (react_1.default.createElement("div", { ...props, onMouseOver: () => this.onMouseOver(), onKeyUp: (e) => this.keyUp(e), ref: (div) => (this.divElement = div) }, this.renderChildren()));
23
+ return (_jsx("div", { ...props, onMouseOver: () => this.onMouseOver(), onKeyUp: (e) => this.keyUp(e), ref: (div) => (this.divElement = div), children: this.renderChildren() }));
29
24
  }
30
25
  renderChildren() {
31
- return react_1.default.createElement(react_1.default.Fragment, null, this.props.children);
26
+ return _jsx(_Fragment, { children: this.props.children });
32
27
  }
33
28
  }
34
- exports.Focusable = Focusable;
@@ -1,12 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Frame = void 0;
4
- const focusable_1 = require("../focusable");
5
- require("./frame.css");
6
- class Frame extends focusable_1.Focusable {
1
+ import { Focusable } from "../focusable";
2
+ import "./frame.css";
3
+ export class Frame extends Focusable {
7
4
  constructor() {
8
5
  super(...arguments);
9
6
  this.className = "frame";
10
7
  }
11
8
  }
12
- exports.Frame = Frame;
@@ -1,18 +1,10 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Gauge = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- require("./gauge.css");
9
- class Gauge extends react_1.default.Component {
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import React from "react";
3
+ import "./gauge.css";
4
+ export class Gauge extends React.Component {
10
5
  render() {
11
- return (react_1.default.createElement("div", { className: "gauge", ...this.props },
12
- react_1.default.createElement("div", { style: {
6
+ return (_jsx("div", { className: "gauge", ...this.props, children: _jsx("div", { style: {
13
7
  width: `${Math.max(0, Math.min(100, this.props.value * 100))}%`,
14
- } },
15
- react_1.default.createElement("label", null, this.props.label))));
8
+ }, children: _jsx("label", { children: this.props.label }) }) }));
16
9
  }
17
10
  }
18
- exports.Gauge = Gauge;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Focusable } from "../focusable";
3
2
  import "./highlightable-row.css";
4
3
  interface Props extends React.HTMLAttributes<HTMLDivElement> {
@@ -1,9 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HighlightableRow = void 0;
4
- const focusable_1 = require("../focusable");
5
- require("./highlightable-row.css");
6
- class HighlightableRow extends focusable_1.Focusable {
1
+ import { Focusable } from "../focusable";
2
+ import "./highlightable-row.css";
3
+ export class HighlightableRow extends Focusable {
7
4
  saneProps() {
8
5
  const { highlighted, ...other } = this.props;
9
6
  return other;
@@ -12,4 +9,3 @@ class HighlightableRow extends focusable_1.Focusable {
12
9
  return ("highlightable-row" + (this.props.highlighted ? " highlighted" : ""));
13
10
  }
14
11
  }
15
- exports.HighlightableRow = HighlightableRow;
package/lib/index.js CHANGED
@@ -1,40 +1,24 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- require("./reset/reset.css");
18
- __exportStar(require("./alignment/alignment"), exports);
19
- __exportStar(require("./animations/animations"), exports);
20
- __exportStar(require("./balanced-row/balanced-row"), exports);
21
- __exportStar(require("./balanced-stack/balanced-stack"), exports);
22
- __exportStar(require("./buttons/buttons"), exports);
23
- __exportStar(require("./dialog-layout/dialog-layout"), exports);
24
- __exportStar(require("./dim/dim"), exports);
25
- __exportStar(require("./dim/transitioning-dim"), exports);
26
- __exportStar(require("./flow-list/flow-list"), exports);
27
- __exportStar(require("./focusable"), exports);
28
- __exportStar(require("./frame/frame"), exports);
29
- __exportStar(require("./gauge/gauge"), exports);
30
- __exportStar(require("./highlightable-row/highlightable-row"), exports);
31
- __exportStar(require("./key-value-layout/key-value-layout"), exports);
32
- __exportStar(require("./labels/labels"), exports);
33
- __exportStar(require("./screen-column-layout/screen-column-layout"), exports);
34
- __exportStar(require("./screen-stack-layout/screen-stack-layout"), exports);
35
- __exportStar(require("./scrollable-content/scrollable-content"), exports);
36
- __exportStar(require("./slider/slider"), exports);
37
- __exportStar(require("./spacing/spacing"), exports);
38
- __exportStar(require("./stack-list/stack-list"), exports);
39
- __exportStar(require("./tabs/tabs"), exports);
40
- __exportStar(require("./typography/typography"), exports);
1
+ import "./reset/reset.css";
2
+ export * from "./alignment/alignment";
3
+ export * from "./animations/animations";
4
+ export * from "./balanced-row/balanced-row";
5
+ export * from "./balanced-stack/balanced-stack";
6
+ export * from "./buttons/buttons";
7
+ export * from "./dialog-layout/dialog-layout";
8
+ export * from "./dim/dim";
9
+ export * from "./dim/transitioning-dim";
10
+ export * from "./flow-list/flow-list";
11
+ export * from "./focusable";
12
+ export * from "./frame/frame";
13
+ export * from "./gauge/gauge";
14
+ export * from "./highlightable-row/highlightable-row";
15
+ export * from "./key-value-layout/key-value-layout";
16
+ export * from "./labels/labels";
17
+ export * from "./screen-column-layout/screen-column-layout";
18
+ export * from "./screen-stack-layout/screen-stack-layout";
19
+ export * from "./scrollable-content/scrollable-content";
20
+ export * from "./slider/slider";
21
+ export * from "./spacing/spacing";
22
+ export * from "./stack-list/stack-list";
23
+ export * from "./tabs/tabs";
24
+ export * from "./typography/typography";
@@ -1,12 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.KeyValueLayout = void 0;
4
- const component_with_class_name_1 = require("../component-with-class-name");
5
- require("./key-value-layout.css");
6
- class KeyValueLayout extends component_with_class_name_1.ComponentWithClassName {
1
+ import { ComponentWithClassName } from "../component-with-class-name";
2
+ import "./key-value-layout.css";
3
+ export class KeyValueLayout extends ComponentWithClassName {
7
4
  constructor() {
8
5
  super(...arguments);
9
6
  this.className = "key-value-layout";
10
7
  }
11
8
  }
12
- exports.KeyValueLayout = KeyValueLayout;
@@ -1,54 +1,44 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TextBlock = exports.MainTitle = exports.TinyLabel = exports.SmallLabel = exports.MediumLabel = exports.LargeLabel = exports.GiantLabel = void 0;
4
- const component_with_class_name_1 = require("../component-with-class-name");
5
- require("./labels.css");
6
- class GiantLabel extends component_with_class_name_1.ComponentWithClassName {
1
+ import { ComponentWithClassName } from "../component-with-class-name";
2
+ import "./labels.css";
3
+ export class GiantLabel extends ComponentWithClassName {
7
4
  constructor() {
8
5
  super(...arguments);
9
6
  this.className = "label label-giant";
10
7
  }
11
8
  }
12
- exports.GiantLabel = GiantLabel;
13
- class LargeLabel extends component_with_class_name_1.ComponentWithClassName {
9
+ export class LargeLabel extends ComponentWithClassName {
14
10
  constructor() {
15
11
  super(...arguments);
16
12
  this.className = "label label-large";
17
13
  }
18
14
  }
19
- exports.LargeLabel = LargeLabel;
20
- class MediumLabel extends component_with_class_name_1.ComponentWithClassName {
15
+ export class MediumLabel extends ComponentWithClassName {
21
16
  constructor() {
22
17
  super(...arguments);
23
18
  this.className = "label label-medium";
24
19
  }
25
20
  }
26
- exports.MediumLabel = MediumLabel;
27
- class SmallLabel extends component_with_class_name_1.ComponentWithClassName {
21
+ export class SmallLabel extends ComponentWithClassName {
28
22
  constructor() {
29
23
  super(...arguments);
30
24
  this.className = "label label-small";
31
25
  }
32
26
  }
33
- exports.SmallLabel = SmallLabel;
34
- class TinyLabel extends component_with_class_name_1.ComponentWithClassName {
27
+ export class TinyLabel extends ComponentWithClassName {
35
28
  constructor() {
36
29
  super(...arguments);
37
30
  this.className = "label label-tiny";
38
31
  }
39
32
  }
40
- exports.TinyLabel = TinyLabel;
41
- class MainTitle extends component_with_class_name_1.ComponentWithClassName {
33
+ export class MainTitle extends ComponentWithClassName {
42
34
  constructor() {
43
35
  super(...arguments);
44
36
  this.className = "label main-title";
45
37
  }
46
38
  }
47
- exports.MainTitle = MainTitle;
48
- class TextBlock extends component_with_class_name_1.ComponentWithClassName {
39
+ export class TextBlock extends ComponentWithClassName {
49
40
  constructor() {
50
41
  super(...arguments);
51
42
  this.className = "text-block";
52
43
  }
53
44
  }
54
- exports.TextBlock = TextBlock;
@@ -1,47 +1,38 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ScreenColumnLayoutCentralContent = exports.ScreenColumnLayoutMainColumnContent = exports.ScreenColumnLayoutMainColumnFooter = exports.ScreenColumnLayoutMainColumnHeader = exports.ScreenColumnLayoutMainColumn = exports.ScreenColumnLayout = void 0;
4
- const component_with_class_name_1 = require("../component-with-class-name");
5
- require("./screen-column-layout.css");
6
- class ScreenColumnLayout extends component_with_class_name_1.ComponentWithClassName {
1
+ import { ComponentWithClassName } from "../component-with-class-name";
2
+ import "./screen-column-layout.css";
3
+ export class ScreenColumnLayout extends ComponentWithClassName {
7
4
  constructor() {
8
5
  super(...arguments);
9
6
  this.className = "screen-layout-column";
10
7
  }
11
8
  }
12
- exports.ScreenColumnLayout = ScreenColumnLayout;
13
- class ScreenColumnLayoutMainColumn extends component_with_class_name_1.ComponentWithClassName {
9
+ export class ScreenColumnLayoutMainColumn extends ComponentWithClassName {
14
10
  constructor() {
15
11
  super(...arguments);
16
12
  this.className = "screen-layout-column-main-column";
17
13
  }
18
14
  }
19
- exports.ScreenColumnLayoutMainColumn = ScreenColumnLayoutMainColumn;
20
- class ScreenColumnLayoutMainColumnHeader extends component_with_class_name_1.ComponentWithClassName {
15
+ export class ScreenColumnLayoutMainColumnHeader extends ComponentWithClassName {
21
16
  constructor() {
22
17
  super(...arguments);
23
18
  this.className = "screen-layout-column-main-column-header";
24
19
  }
25
20
  }
26
- exports.ScreenColumnLayoutMainColumnHeader = ScreenColumnLayoutMainColumnHeader;
27
- class ScreenColumnLayoutMainColumnFooter extends component_with_class_name_1.ComponentWithClassName {
21
+ export class ScreenColumnLayoutMainColumnFooter extends ComponentWithClassName {
28
22
  constructor() {
29
23
  super(...arguments);
30
24
  this.className = "screen-layout-column-main-column-footer";
31
25
  }
32
26
  }
33
- exports.ScreenColumnLayoutMainColumnFooter = ScreenColumnLayoutMainColumnFooter;
34
- class ScreenColumnLayoutMainColumnContent extends component_with_class_name_1.ComponentWithClassName {
27
+ export class ScreenColumnLayoutMainColumnContent extends ComponentWithClassName {
35
28
  constructor() {
36
29
  super(...arguments);
37
30
  this.className = "screen-layout-column-main-column-content";
38
31
  }
39
32
  }
40
- exports.ScreenColumnLayoutMainColumnContent = ScreenColumnLayoutMainColumnContent;
41
- class ScreenColumnLayoutCentralContent extends component_with_class_name_1.ComponentWithClassName {
33
+ export class ScreenColumnLayoutCentralContent extends ComponentWithClassName {
42
34
  constructor() {
43
35
  super(...arguments);
44
36
  this.className = "screen-layout-column-central-content";
45
37
  }
46
38
  }
47
- exports.ScreenColumnLayoutCentralContent = ScreenColumnLayoutCentralContent;
@@ -1,33 +1,26 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ScreenStackLayoutBottom = exports.ScreenStackLayoutContent = exports.ScreenStackLayoutTop = exports.ScreenStackLayout = void 0;
4
- const component_with_class_name_1 = require("../component-with-class-name");
5
- require("./screen-stack-layout.css");
6
- class ScreenStackLayout extends component_with_class_name_1.ComponentWithClassName {
1
+ import { ComponentWithClassName } from "../component-with-class-name";
2
+ import "./screen-stack-layout.css";
3
+ export class ScreenStackLayout extends ComponentWithClassName {
7
4
  constructor() {
8
5
  super(...arguments);
9
6
  this.className = "screen-stack-layout";
10
7
  }
11
8
  }
12
- exports.ScreenStackLayout = ScreenStackLayout;
13
- class ScreenStackLayoutTop extends component_with_class_name_1.ComponentWithClassName {
9
+ export class ScreenStackLayoutTop extends ComponentWithClassName {
14
10
  constructor() {
15
11
  super(...arguments);
16
12
  this.className = "screen-stack-layout-top";
17
13
  }
18
14
  }
19
- exports.ScreenStackLayoutTop = ScreenStackLayoutTop;
20
- class ScreenStackLayoutContent extends component_with_class_name_1.ComponentWithClassName {
15
+ export class ScreenStackLayoutContent extends ComponentWithClassName {
21
16
  constructor() {
22
17
  super(...arguments);
23
18
  this.className = "screen-stack-layout-content";
24
19
  }
25
20
  }
26
- exports.ScreenStackLayoutContent = ScreenStackLayoutContent;
27
- class ScreenStackLayoutBottom extends component_with_class_name_1.ComponentWithClassName {
21
+ export class ScreenStackLayoutBottom extends ComponentWithClassName {
28
22
  constructor() {
29
23
  super(...arguments);
30
24
  this.className = "screen-stack-layout-bottom";
31
25
  }
32
26
  }
33
- exports.ScreenStackLayoutBottom = ScreenStackLayoutBottom;
@@ -1,12 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ScrollableContent = void 0;
4
- const component_with_class_name_1 = require("../component-with-class-name");
5
- require("./scrollable-content.css");
6
- class ScrollableContent extends component_with_class_name_1.ComponentWithClassName {
1
+ import { ComponentWithClassName } from "../component-with-class-name";
2
+ import "./scrollable-content.css";
3
+ export class ScrollableContent extends ComponentWithClassName {
7
4
  constructor() {
8
5
  super(...arguments);
9
6
  this.className = "scrollable-content";
10
7
  }
11
8
  }
12
- exports.ScrollableContent = ScrollableContent;
@@ -1,19 +1,13 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.LabelledSlider = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- const labels_1 = require("../labels/labels");
9
- require("./slider.css");
10
- class Slider extends react_1.default.Component {
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import React from "react";
3
+ import { TinyLabel } from "../labels/labels";
4
+ import "./slider.css";
5
+ export default class Slider extends React.Component {
11
6
  render() {
12
- return react_1.default.createElement("input", { type: "range", ...this.props });
7
+ return _jsx("input", { type: "range", ...this.props });
13
8
  }
14
9
  }
15
- exports.default = Slider;
16
- class LabelledSlider extends react_1.default.Component {
10
+ export class LabelledSlider extends React.Component {
17
11
  constructor(props) {
18
12
  super(props);
19
13
  this.state = {
@@ -39,9 +33,6 @@ class LabelledSlider extends react_1.default.Component {
39
33
  }
40
34
  },
41
35
  };
42
- return (react_1.default.createElement("div", { className: "labelled-slider" },
43
- react_1.default.createElement(Slider, { ...sliderProps }),
44
- react_1.default.createElement(labels_1.TinyLabel, null, this.props.label ? this.props.label(this.state.value) : "")));
36
+ return (_jsxs("div", { className: "labelled-slider", children: [_jsx(Slider, { ...sliderProps }), _jsx(TinyLabel, { children: this.props.label ? this.props.label(this.state.value) : "" })] }));
45
37
  }
46
38
  }
47
- exports.LabelledSlider = LabelledSlider;
@@ -1,10 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Spacing = void 0;
4
- require("./spacing.css");
5
- class Spacing {
1
+ import "./spacing.css";
2
+ export class Spacing {
6
3
  }
7
- exports.Spacing = Spacing;
8
4
  Spacing.xxl = "var(--spacing-xxl)";
9
5
  Spacing.xl = "var(--spacing-xl)";
10
6
  Spacing.l = "var(--spacing-l)";
@@ -1,16 +1,10 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.StackList = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- require("./stack-list.css");
9
- class StackList extends react_1.default.Component {
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import React from "react";
3
+ import "./stack-list.css";
4
+ export class StackList extends React.Component {
10
5
  render() {
11
- return (react_1.default.createElement("div", { className: "stack-list", ...this.props }, react_1.default.Children.map(this.props.children, (child, i) => {
12
- return react_1.default.createElement("div", { key: `child-${i}` }, child);
13
- })));
6
+ return (_jsx("div", { className: "stack-list", ...this.props, children: React.Children.map(this.props.children, (child, i) => {
7
+ return _jsx("div", { children: child }, `child-${i}`);
8
+ }) }));
14
9
  }
15
10
  }
16
- exports.StackList = StackList;
package/lib/tabs/tabs.js CHANGED
@@ -1,19 +1,13 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Tab = exports.TabLayout = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- const focusable_1 = require("../focusable");
9
- require("./tabs.css");
10
- class TabLayout extends react_1.default.Component {
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import React from "react";
3
+ import { Focusable } from "../focusable";
4
+ import "./tabs.css";
5
+ export class TabLayout extends React.Component {
11
6
  render() {
12
- return (react_1.default.createElement("div", { className: "tab-layout", ...this.props }, this.props.children));
7
+ return (_jsx("div", { className: "tab-layout", ...this.props, children: this.props.children }));
13
8
  }
14
9
  }
15
- exports.TabLayout = TabLayout;
16
- class Tab extends focusable_1.Focusable {
10
+ export class Tab extends Focusable {
17
11
  get className() {
18
12
  let className = "tab";
19
13
  if (this.props.selected) {
@@ -22,4 +16,3 @@ class Tab extends focusable_1.Focusable {
22
16
  return className;
23
17
  }
24
18
  }
25
- exports.Tab = Tab;
@@ -1,10 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Typography = void 0;
4
- require("./typography.css");
5
- class Typography {
1
+ import "./typography.css";
2
+ export class Typography {
6
3
  }
7
- exports.Typography = Typography;
8
4
  Typography.xxl = "var(--font-size-xxl)";
9
5
  Typography.xl = "var(--font-size-xl)";
10
6
  Typography.l = "var(--font-size-l)";
package/package.json CHANGED
@@ -1,28 +1,25 @@
1
1
  {
2
- "name": "@remvst/design-system",
3
- "version": "1.2.0",
4
- "description": "",
5
- "main": "lib/index.js",
6
- "scripts": {
7
- "prettier:fix": "prettier . --write",
8
- "prettier:check": "prettier . --check",
9
- "copy-files": "copyfiles -u 1 src/**/*.css lib/",
10
- "build": "rm -rf lib && tsc && npm run copy-files",
11
- "prepublishOnly": "npm i && npm run build",
12
- "test": "npm run prettier:check && npm run build"
13
- },
14
- "keywords": [],
15
- "author": "Rémi Vansteelandt",
16
- "license": "",
17
- "dependencies": {
18
- "@types/react": "^18.2.45",
19
- "react": "^18.2.0",
20
- "typescript": "^5.2.2"
21
- },
22
- "devDependencies": {
23
- "copyfiles": "^2.4.1",
24
- "prettier": "3.1.1",
25
- "prettier-plugin-organize-imports": "^3.2.4",
26
- "rimraf": "^5.0.5"
27
- }
28
- }
2
+ "name": "@remvst/design-system",
3
+ "version": "1.3.0",
4
+ "description": "",
5
+ "main": "lib/index.js",
6
+ "keywords": [],
7
+ "author": "Rémi Vansteelandt",
8
+ "license": "",
9
+ "peerDependencies": {
10
+ "@types/react": "^18.2.45",
11
+ "react": "^18.2.0"
12
+ },
13
+ "devDependencies": {
14
+ "@types/react": "^18.2.45",
15
+ "copyfiles": "^2.4.1",
16
+ "react": "^18.2.0",
17
+ "rimraf": "^5.0.5",
18
+ "typescript": "^7.0.2"
19
+ },
20
+ "scripts": {
21
+ "copy-files": "copyfiles -u 1 src/**/*.css lib/",
22
+ "build": "rm -rf lib && tsc && npm run copy-files",
23
+ "test": "npm run build"
24
+ }
25
+ }
package/tsconfig.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
+ "extends": "../../tsconfig.base.json",
2
3
  "compilerOptions": {
3
4
  "target": "es2020",
4
- "module": "commonjs",
5
- "esModuleInterop": true,
6
- "allowJs": false,
5
+ "module": "ESNext",
6
+ "moduleResolution": "bundler",
7
7
  "outDir": "./lib",
8
- "declaration": true,
9
- "jsx": "react"
8
+ "jsx": "react-jsx",
9
+ "strict": false,
10
+ "rootDir": "./src"
10
11
  },
11
- "include": ["./src"],
12
- "exclude": ["node_modules"]
12
+ "include": ["./src"]
13
13
  }
@@ -1,22 +0,0 @@
1
- name: Check
2
- on:
3
- push:
4
- branches:
5
- - main
6
- workflow_dispatch:
7
- jobs:
8
- check:
9
- runs-on: ubuntu-latest
10
- concurrency:
11
- group: check-${{ github.ref }}
12
- cancel-in-progress: true
13
- steps:
14
- - uses: actions/setup-node@v3
15
- with:
16
- node-version: 18
17
- - name: Check out repository code
18
- uses: actions/checkout@v3
19
- - name: Install dependencies
20
- run: npm install
21
- - name: Test
22
- run: npm test
package/.prettierrc DELETED
@@ -1,4 +0,0 @@
1
- {
2
- "plugins": ["prettier-plugin-organize-imports"],
3
- "tabWidth": 4
4
- }