@remvst/design-system 1.3.0 → 2.0.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
@@ -1,5 +1,19 @@
1
1
  # @remvst/design-system
2
2
 
3
+ ## 2.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - f4ae4fa: Migrate to React 19. Update the workspace catalog to `react`/`react-dom` `^19.2.0`, `@types/react`/`@types/react-dom` `^19.2.0`, and `@vitejs/plugin-react` `^5.0.0`.
8
+
9
+ **Breaking:** the published `react` (and `react-dom`) peer dependency range is narrowed to `^19.2.0`, dropping support for React 18. Consumers must upgrade to React 19.
10
+
11
+ No source changes were required — the packages already used the modern `createRoot` API, the `react-jsx` runtime, and explicitly typed component children.
12
+
13
+ ### Patch Changes
14
+
15
+ - 11a4966: Replace the `ComponentWithClassName` base class with a `divWithClassName` factory that returns a forward-ref function component. Public JSX usage of the design-system components is unchanged.
16
+
3
17
  ## 1.3.0
4
18
 
5
19
  ### Minor Changes
@@ -1,14 +1,5 @@
1
- import { ComponentWithClassName } from "../component-with-class-name";
2
1
  import "./alignment.css";
3
- export declare class VerticalCenter extends ComponentWithClassName {
4
- protected readonly className = "vertical-center";
5
- }
6
- export declare class HorizontalCenter extends ComponentWithClassName {
7
- protected readonly className = "horizontal-center";
8
- }
9
- export declare class AlignRight extends ComponentWithClassName {
10
- protected readonly className = "align-right";
11
- }
12
- export declare class NarrowColumn extends ComponentWithClassName {
13
- protected readonly className = "narrow-column";
14
- }
2
+ export declare const VerticalCenter: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
3
+ export declare const HorizontalCenter: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
4
+ export declare const AlignRight: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
5
+ export declare const NarrowColumn: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,26 +1,6 @@
1
- import { ComponentWithClassName } from "../component-with-class-name";
1
+ import { divWithClassName } from "../component-with-class-name";
2
2
  import "./alignment.css";
3
- export class VerticalCenter extends ComponentWithClassName {
4
- constructor() {
5
- super(...arguments);
6
- this.className = "vertical-center";
7
- }
8
- }
9
- export class HorizontalCenter extends ComponentWithClassName {
10
- constructor() {
11
- super(...arguments);
12
- this.className = "horizontal-center";
13
- }
14
- }
15
- export class AlignRight extends ComponentWithClassName {
16
- constructor() {
17
- super(...arguments);
18
- this.className = "align-right";
19
- }
20
- }
21
- export class NarrowColumn extends ComponentWithClassName {
22
- constructor() {
23
- super(...arguments);
24
- this.className = "narrow-column";
25
- }
26
- }
3
+ export const VerticalCenter = divWithClassName("vertical-center");
4
+ export const HorizontalCenter = divWithClassName("horizontal-center");
5
+ export const AlignRight = divWithClassName("align-right");
6
+ export const NarrowColumn = divWithClassName("narrow-column");
@@ -1,5 +1,7 @@
1
1
  import React from "react";
2
- export declare abstract class ComponentWithClassName<Props extends React.HTMLAttributes<HTMLDivElement> = React.HTMLAttributes<HTMLDivElement>> extends React.Component<Props> {
3
- protected abstract readonly className: string;
4
- render(): React.JSX.Element;
5
- }
2
+ /**
3
+ * Creates a `<div>` component with a fixed base class name. Any `className`
4
+ * passed by the consumer is appended, and all other div props (including
5
+ * `ref`) are forwarded.
6
+ */
7
+ export declare function divWithClassName<Props extends React.HTMLAttributes<HTMLDivElement> = React.HTMLAttributes<HTMLDivElement>>(baseClassName: string): React.ForwardRefExoticComponent<React.PropsWithoutRef<Props> & React.RefAttributes<HTMLDivElement>>;
@@ -1,9 +1,12 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import React from "react";
3
- export class ComponentWithClassName extends React.Component {
4
- render() {
5
- const props = { ...this.props };
6
- props.className = this.className + " " + (this.props.className || "");
7
- return _jsx("div", { ...props, children: this.props.children });
8
- }
3
+ /**
4
+ * Creates a `<div>` component with a fixed base class name. Any `className`
5
+ * passed by the consumer is appended, and all other div props (including
6
+ * `ref`) are forwarded.
7
+ */
8
+ export function divWithClassName(baseClassName) {
9
+ const Component = React.forwardRef(({ className, children, ...rest }, ref) => (_jsx("div", { ref: ref, className: className ? `${baseClassName} ${className}` : baseClassName, ...rest, children: children })));
10
+ Component.displayName = baseClassName;
11
+ return Component;
9
12
  }
package/lib/dim/dim.d.ts CHANGED
@@ -1,5 +1,2 @@
1
- import { ComponentWithClassName } from "../component-with-class-name";
2
1
  import "./dim.css";
3
- export declare class Dim extends ComponentWithClassName {
4
- protected className: string;
5
- }
2
+ export declare const Dim: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
package/lib/dim/dim.js CHANGED
@@ -1,8 +1,3 @@
1
- import { ComponentWithClassName } from "../component-with-class-name";
1
+ import { divWithClassName } from "../component-with-class-name";
2
2
  import "./dim.css";
3
- export class Dim extends ComponentWithClassName {
4
- constructor() {
5
- super(...arguments);
6
- this.className = "dim";
7
- }
8
- }
3
+ export const Dim = divWithClassName("dim");
@@ -1,5 +1,2 @@
1
- import { ComponentWithClassName } from "../component-with-class-name";
2
1
  import "./key-value-layout.css";
3
- export declare class KeyValueLayout extends ComponentWithClassName {
4
- protected readonly className = "key-value-layout";
5
- }
2
+ export declare const KeyValueLayout: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,8 +1,3 @@
1
- import { ComponentWithClassName } from "../component-with-class-name";
1
+ import { divWithClassName } from "../component-with-class-name";
2
2
  import "./key-value-layout.css";
3
- export class KeyValueLayout extends ComponentWithClassName {
4
- constructor() {
5
- super(...arguments);
6
- this.className = "key-value-layout";
7
- }
8
- }
3
+ export const KeyValueLayout = divWithClassName("key-value-layout");
@@ -1,23 +1,8 @@
1
- import { ComponentWithClassName } from "../component-with-class-name";
2
1
  import "./labels.css";
3
- export declare class GiantLabel extends ComponentWithClassName {
4
- readonly className = "label label-giant";
5
- }
6
- export declare class LargeLabel extends ComponentWithClassName {
7
- readonly className = "label label-large";
8
- }
9
- export declare class MediumLabel extends ComponentWithClassName {
10
- readonly className = "label label-medium";
11
- }
12
- export declare class SmallLabel extends ComponentWithClassName {
13
- readonly className = "label label-small";
14
- }
15
- export declare class TinyLabel extends ComponentWithClassName {
16
- readonly className = "label label-tiny";
17
- }
18
- export declare class MainTitle extends ComponentWithClassName {
19
- readonly className = "label main-title";
20
- }
21
- export declare class TextBlock extends ComponentWithClassName {
22
- readonly className = "text-block";
23
- }
2
+ export declare const GiantLabel: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
3
+ export declare const LargeLabel: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
4
+ export declare const MediumLabel: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
5
+ export declare const SmallLabel: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
6
+ export declare const TinyLabel: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
7
+ export declare const MainTitle: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
8
+ export declare const TextBlock: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,44 +1,9 @@
1
- import { ComponentWithClassName } from "../component-with-class-name";
1
+ import { divWithClassName } from "../component-with-class-name";
2
2
  import "./labels.css";
3
- export class GiantLabel extends ComponentWithClassName {
4
- constructor() {
5
- super(...arguments);
6
- this.className = "label label-giant";
7
- }
8
- }
9
- export class LargeLabel extends ComponentWithClassName {
10
- constructor() {
11
- super(...arguments);
12
- this.className = "label label-large";
13
- }
14
- }
15
- export class MediumLabel extends ComponentWithClassName {
16
- constructor() {
17
- super(...arguments);
18
- this.className = "label label-medium";
19
- }
20
- }
21
- export class SmallLabel extends ComponentWithClassName {
22
- constructor() {
23
- super(...arguments);
24
- this.className = "label label-small";
25
- }
26
- }
27
- export class TinyLabel extends ComponentWithClassName {
28
- constructor() {
29
- super(...arguments);
30
- this.className = "label label-tiny";
31
- }
32
- }
33
- export class MainTitle extends ComponentWithClassName {
34
- constructor() {
35
- super(...arguments);
36
- this.className = "label main-title";
37
- }
38
- }
39
- export class TextBlock extends ComponentWithClassName {
40
- constructor() {
41
- super(...arguments);
42
- this.className = "text-block";
43
- }
44
- }
3
+ export const GiantLabel = divWithClassName("label label-giant");
4
+ export const LargeLabel = divWithClassName("label label-large");
5
+ export const MediumLabel = divWithClassName("label label-medium");
6
+ export const SmallLabel = divWithClassName("label label-small");
7
+ export const TinyLabel = divWithClassName("label label-tiny");
8
+ export const MainTitle = divWithClassName("label main-title");
9
+ export const TextBlock = divWithClassName("text-block");
@@ -1,20 +1,7 @@
1
- import { ComponentWithClassName } from "../component-with-class-name";
2
1
  import "./screen-column-layout.css";
3
- export declare class ScreenColumnLayout extends ComponentWithClassName {
4
- protected readonly className = "screen-layout-column";
5
- }
6
- export declare class ScreenColumnLayoutMainColumn extends ComponentWithClassName {
7
- protected readonly className = "screen-layout-column-main-column";
8
- }
9
- export declare class ScreenColumnLayoutMainColumnHeader extends ComponentWithClassName {
10
- protected readonly className = "screen-layout-column-main-column-header";
11
- }
12
- export declare class ScreenColumnLayoutMainColumnFooter extends ComponentWithClassName {
13
- protected readonly className = "screen-layout-column-main-column-footer";
14
- }
15
- export declare class ScreenColumnLayoutMainColumnContent extends ComponentWithClassName {
16
- protected readonly className = "screen-layout-column-main-column-content";
17
- }
18
- export declare class ScreenColumnLayoutCentralContent extends ComponentWithClassName {
19
- protected readonly className = "screen-layout-column-central-content";
20
- }
2
+ export declare const ScreenColumnLayout: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
3
+ export declare const ScreenColumnLayoutMainColumn: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
4
+ export declare const ScreenColumnLayoutMainColumnHeader: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
5
+ export declare const ScreenColumnLayoutMainColumnFooter: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
6
+ export declare const ScreenColumnLayoutMainColumnContent: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
7
+ export declare const ScreenColumnLayoutCentralContent: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,38 +1,8 @@
1
- import { ComponentWithClassName } from "../component-with-class-name";
1
+ import { divWithClassName } from "../component-with-class-name";
2
2
  import "./screen-column-layout.css";
3
- export class ScreenColumnLayout extends ComponentWithClassName {
4
- constructor() {
5
- super(...arguments);
6
- this.className = "screen-layout-column";
7
- }
8
- }
9
- export class ScreenColumnLayoutMainColumn extends ComponentWithClassName {
10
- constructor() {
11
- super(...arguments);
12
- this.className = "screen-layout-column-main-column";
13
- }
14
- }
15
- export class ScreenColumnLayoutMainColumnHeader extends ComponentWithClassName {
16
- constructor() {
17
- super(...arguments);
18
- this.className = "screen-layout-column-main-column-header";
19
- }
20
- }
21
- export class ScreenColumnLayoutMainColumnFooter extends ComponentWithClassName {
22
- constructor() {
23
- super(...arguments);
24
- this.className = "screen-layout-column-main-column-footer";
25
- }
26
- }
27
- export class ScreenColumnLayoutMainColumnContent extends ComponentWithClassName {
28
- constructor() {
29
- super(...arguments);
30
- this.className = "screen-layout-column-main-column-content";
31
- }
32
- }
33
- export class ScreenColumnLayoutCentralContent extends ComponentWithClassName {
34
- constructor() {
35
- super(...arguments);
36
- this.className = "screen-layout-column-central-content";
37
- }
38
- }
3
+ export const ScreenColumnLayout = divWithClassName("screen-layout-column");
4
+ export const ScreenColumnLayoutMainColumn = divWithClassName("screen-layout-column-main-column");
5
+ export const ScreenColumnLayoutMainColumnHeader = divWithClassName("screen-layout-column-main-column-header");
6
+ export const ScreenColumnLayoutMainColumnFooter = divWithClassName("screen-layout-column-main-column-footer");
7
+ export const ScreenColumnLayoutMainColumnContent = divWithClassName("screen-layout-column-main-column-content");
8
+ export const ScreenColumnLayoutCentralContent = divWithClassName("screen-layout-column-central-content");
@@ -1,14 +1,5 @@
1
- import { ComponentWithClassName } from "../component-with-class-name";
2
1
  import "./screen-stack-layout.css";
3
- export declare class ScreenStackLayout extends ComponentWithClassName {
4
- protected readonly className = "screen-stack-layout";
5
- }
6
- export declare class ScreenStackLayoutTop extends ComponentWithClassName {
7
- protected readonly className = "screen-stack-layout-top";
8
- }
9
- export declare class ScreenStackLayoutContent extends ComponentWithClassName {
10
- protected readonly className = "screen-stack-layout-content";
11
- }
12
- export declare class ScreenStackLayoutBottom extends ComponentWithClassName {
13
- protected readonly className = "screen-stack-layout-bottom";
14
- }
2
+ export declare const ScreenStackLayout: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
3
+ export declare const ScreenStackLayoutTop: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
4
+ export declare const ScreenStackLayoutContent: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
5
+ export declare const ScreenStackLayoutBottom: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,26 +1,6 @@
1
- import { ComponentWithClassName } from "../component-with-class-name";
1
+ import { divWithClassName } from "../component-with-class-name";
2
2
  import "./screen-stack-layout.css";
3
- export class ScreenStackLayout extends ComponentWithClassName {
4
- constructor() {
5
- super(...arguments);
6
- this.className = "screen-stack-layout";
7
- }
8
- }
9
- export class ScreenStackLayoutTop extends ComponentWithClassName {
10
- constructor() {
11
- super(...arguments);
12
- this.className = "screen-stack-layout-top";
13
- }
14
- }
15
- export class ScreenStackLayoutContent extends ComponentWithClassName {
16
- constructor() {
17
- super(...arguments);
18
- this.className = "screen-stack-layout-content";
19
- }
20
- }
21
- export class ScreenStackLayoutBottom extends ComponentWithClassName {
22
- constructor() {
23
- super(...arguments);
24
- this.className = "screen-stack-layout-bottom";
25
- }
26
- }
3
+ export const ScreenStackLayout = divWithClassName("screen-stack-layout");
4
+ export const ScreenStackLayoutTop = divWithClassName("screen-stack-layout-top");
5
+ export const ScreenStackLayoutContent = divWithClassName("screen-stack-layout-content");
6
+ export const ScreenStackLayoutBottom = divWithClassName("screen-stack-layout-bottom");
@@ -1,5 +1,2 @@
1
- import { ComponentWithClassName } from "../component-with-class-name";
2
1
  import "./scrollable-content.css";
3
- export declare class ScrollableContent extends ComponentWithClassName {
4
- protected readonly className = "scrollable-content";
5
- }
2
+ export declare const ScrollableContent: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,8 +1,3 @@
1
- import { ComponentWithClassName } from "../component-with-class-name";
1
+ import { divWithClassName } from "../component-with-class-name";
2
2
  import "./scrollable-content.css";
3
- export class ScrollableContent extends ComponentWithClassName {
4
- constructor() {
5
- super(...arguments);
6
- this.className = "scrollable-content";
7
- }
8
- }
3
+ export const ScrollableContent = divWithClassName("scrollable-content");
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@remvst/design-system",
3
- "version": "1.3.0",
3
+ "version": "2.0.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "keywords": [],
7
7
  "author": "Rémi Vansteelandt",
8
8
  "license": "",
9
9
  "peerDependencies": {
10
- "@types/react": "^18.2.45",
11
- "react": "^18.2.0"
10
+ "@types/react": "^19.2.0",
11
+ "react": "^19.2.0"
12
12
  },
13
13
  "devDependencies": {
14
- "@types/react": "^18.2.45",
14
+ "@types/react": "^19.2.0",
15
15
  "copyfiles": "^2.4.1",
16
- "react": "^18.2.0",
16
+ "react": "^19.2.0",
17
17
  "rimraf": "^5.0.5",
18
18
  "typescript": "^7.0.2"
19
19
  },
@@ -1,18 +1,7 @@
1
- import { ComponentWithClassName } from "../component-with-class-name";
1
+ import { divWithClassName } from "../component-with-class-name";
2
2
  import "./alignment.css";
3
3
 
4
- export class VerticalCenter extends ComponentWithClassName {
5
- protected readonly className = "vertical-center";
6
- }
7
-
8
- export class HorizontalCenter extends ComponentWithClassName {
9
- protected readonly className = "horizontal-center";
10
- }
11
-
12
- export class AlignRight extends ComponentWithClassName {
13
- protected readonly className = "align-right";
14
- }
15
-
16
- export class NarrowColumn extends ComponentWithClassName {
17
- protected readonly className = "narrow-column";
18
- }
4
+ export const VerticalCenter = divWithClassName("vertical-center");
5
+ export const HorizontalCenter = divWithClassName("horizontal-center");
6
+ export const AlignRight = divWithClassName("align-right");
7
+ export const NarrowColumn = divWithClassName("narrow-column");
@@ -1,15 +1,27 @@
1
1
  import React from "react";
2
2
 
3
- export abstract class ComponentWithClassName<
3
+ /**
4
+ * Creates a `<div>` component with a fixed base class name. Any `className`
5
+ * passed by the consumer is appended, and all other div props (including
6
+ * `ref`) are forwarded.
7
+ */
8
+ export function divWithClassName<
4
9
  Props extends
5
10
  React.HTMLAttributes<HTMLDivElement> = React.HTMLAttributes<HTMLDivElement>,
6
- > extends React.Component<Props> {
7
- protected abstract readonly className: string;
8
-
9
- render() {
10
- const props = { ...this.props } as any;
11
- props.className = this.className + " " + (this.props.className || "");
12
-
13
- return <div {...props}>{this.props.children}</div>;
14
- }
11
+ >(baseClassName: string) {
12
+ const Component = React.forwardRef<HTMLDivElement, Props>(
13
+ ({ className, children, ...rest }, ref) => (
14
+ <div
15
+ ref={ref}
16
+ className={
17
+ className ? `${baseClassName} ${className}` : baseClassName
18
+ }
19
+ {...rest}
20
+ >
21
+ {children}
22
+ </div>
23
+ ),
24
+ );
25
+ Component.displayName = baseClassName;
26
+ return Component;
15
27
  }
package/src/dim/dim.tsx CHANGED
@@ -1,6 +1,4 @@
1
- import { ComponentWithClassName } from "../component-with-class-name";
1
+ import { divWithClassName } from "../component-with-class-name";
2
2
  import "./dim.css";
3
3
 
4
- export class Dim extends ComponentWithClassName {
5
- protected className = "dim";
6
- }
4
+ export const Dim = divWithClassName("dim");
@@ -1,6 +1,4 @@
1
- import { ComponentWithClassName } from "../component-with-class-name";
1
+ import { divWithClassName } from "../component-with-class-name";
2
2
  import "./key-value-layout.css";
3
3
 
4
- export class KeyValueLayout extends ComponentWithClassName {
5
- protected readonly className = "key-value-layout";
6
- }
4
+ export const KeyValueLayout = divWithClassName("key-value-layout");
@@ -1,30 +1,10 @@
1
- import { ComponentWithClassName } from "../component-with-class-name";
1
+ import { divWithClassName } from "../component-with-class-name";
2
2
  import "./labels.css";
3
3
 
4
- export class GiantLabel extends ComponentWithClassName {
5
- readonly className = "label label-giant";
6
- }
7
-
8
- export class LargeLabel extends ComponentWithClassName {
9
- readonly className = "label label-large";
10
- }
11
-
12
- export class MediumLabel extends ComponentWithClassName {
13
- readonly className = "label label-medium";
14
- }
15
-
16
- export class SmallLabel extends ComponentWithClassName {
17
- readonly className = "label label-small";
18
- }
19
-
20
- export class TinyLabel extends ComponentWithClassName {
21
- readonly className = "label label-tiny";
22
- }
23
-
24
- export class MainTitle extends ComponentWithClassName {
25
- readonly className = "label main-title";
26
- }
27
-
28
- export class TextBlock extends ComponentWithClassName {
29
- readonly className = "text-block";
30
- }
4
+ export const GiantLabel = divWithClassName("label label-giant");
5
+ export const LargeLabel = divWithClassName("label label-large");
6
+ export const MediumLabel = divWithClassName("label label-medium");
7
+ export const SmallLabel = divWithClassName("label label-small");
8
+ export const TinyLabel = divWithClassName("label label-tiny");
9
+ export const MainTitle = divWithClassName("label main-title");
10
+ export const TextBlock = divWithClassName("text-block");
@@ -1,26 +1,19 @@
1
- import { ComponentWithClassName } from "../component-with-class-name";
1
+ import { divWithClassName } from "../component-with-class-name";
2
2
  import "./screen-column-layout.css";
3
3
 
4
- export class ScreenColumnLayout extends ComponentWithClassName {
5
- protected readonly className = "screen-layout-column";
6
- }
7
-
8
- export class ScreenColumnLayoutMainColumn extends ComponentWithClassName {
9
- protected readonly className = "screen-layout-column-main-column";
10
- }
11
-
12
- export class ScreenColumnLayoutMainColumnHeader extends ComponentWithClassName {
13
- protected readonly className = "screen-layout-column-main-column-header";
14
- }
15
-
16
- export class ScreenColumnLayoutMainColumnFooter extends ComponentWithClassName {
17
- protected readonly className = "screen-layout-column-main-column-footer";
18
- }
19
-
20
- export class ScreenColumnLayoutMainColumnContent extends ComponentWithClassName {
21
- protected readonly className = "screen-layout-column-main-column-content";
22
- }
23
-
24
- export class ScreenColumnLayoutCentralContent extends ComponentWithClassName {
25
- protected readonly className = "screen-layout-column-central-content";
26
- }
4
+ export const ScreenColumnLayout = divWithClassName("screen-layout-column");
5
+ export const ScreenColumnLayoutMainColumn = divWithClassName(
6
+ "screen-layout-column-main-column",
7
+ );
8
+ export const ScreenColumnLayoutMainColumnHeader = divWithClassName(
9
+ "screen-layout-column-main-column-header",
10
+ );
11
+ export const ScreenColumnLayoutMainColumnFooter = divWithClassName(
12
+ "screen-layout-column-main-column-footer",
13
+ );
14
+ export const ScreenColumnLayoutMainColumnContent = divWithClassName(
15
+ "screen-layout-column-main-column-content",
16
+ );
17
+ export const ScreenColumnLayoutCentralContent = divWithClassName(
18
+ "screen-layout-column-central-content",
19
+ );
@@ -1,18 +1,11 @@
1
- import { ComponentWithClassName } from "../component-with-class-name";
1
+ import { divWithClassName } from "../component-with-class-name";
2
2
  import "./screen-stack-layout.css";
3
3
 
4
- export class ScreenStackLayout extends ComponentWithClassName {
5
- protected readonly className = "screen-stack-layout";
6
- }
7
-
8
- export class ScreenStackLayoutTop extends ComponentWithClassName {
9
- protected readonly className = "screen-stack-layout-top";
10
- }
11
-
12
- export class ScreenStackLayoutContent extends ComponentWithClassName {
13
- protected readonly className = "screen-stack-layout-content";
14
- }
15
-
16
- export class ScreenStackLayoutBottom extends ComponentWithClassName {
17
- protected readonly className = "screen-stack-layout-bottom";
18
- }
4
+ export const ScreenStackLayout = divWithClassName("screen-stack-layout");
5
+ export const ScreenStackLayoutTop = divWithClassName("screen-stack-layout-top");
6
+ export const ScreenStackLayoutContent = divWithClassName(
7
+ "screen-stack-layout-content",
8
+ );
9
+ export const ScreenStackLayoutBottom = divWithClassName(
10
+ "screen-stack-layout-bottom",
11
+ );
@@ -1,6 +1,4 @@
1
- import { ComponentWithClassName } from "../component-with-class-name";
1
+ import { divWithClassName } from "../component-with-class-name";
2
2
  import "./scrollable-content.css";
3
3
 
4
- export class ScrollableContent extends ComponentWithClassName {
5
- protected readonly className = "scrollable-content";
6
- }
4
+ export const ScrollableContent = divWithClassName("scrollable-content");