@remvst/design-system 0.0.0 → 1.0.1

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.
Files changed (77) hide show
  1. package/.github/workflows/check.yaml +19 -19
  2. package/.prettierrc +4 -0
  3. package/lib/alignment/alignment.css +13 -13
  4. package/lib/alignment/alignment.d.ts +1 -1
  5. package/lib/alignment/alignment.js +1 -1
  6. package/lib/animations/animations.css +90 -90
  7. package/lib/balanced-row/balanced-row.css +4 -4
  8. package/lib/balanced-stack/balanced-stack.css +5 -5
  9. package/lib/buttons/buttons.css +5 -5
  10. package/lib/buttons/buttons.d.ts +1 -1
  11. package/lib/buttons/buttons.js +1 -1
  12. package/lib/dim/dim.css +3 -3
  13. package/lib/flow-list/flow-list.css +5 -5
  14. package/lib/focusable.js +2 -2
  15. package/lib/frame/frame.css +1 -1
  16. package/lib/gauge/gauge.css +16 -16
  17. package/lib/highlightable-row/highlightable-row.css +3 -3
  18. package/lib/highlightable-row/highlightable-row.js +1 -1
  19. package/lib/index.d.ts +1 -1
  20. package/lib/index.js +1 -1
  21. package/lib/key-value-layout/key-value-layout.css +7 -7
  22. package/lib/labels/labels.css +13 -13
  23. package/lib/reset/reset.css +8 -8
  24. package/lib/screen-column-layout/screen-column-layout.css +77 -77
  25. package/lib/screen-stack-layout/screen-stack-layout.css +14 -14
  26. package/lib/scrollable-content/scrollable-content.css +3 -3
  27. package/lib/slider/slider.css +44 -44
  28. package/lib/spacing/spacing.css +7 -7
  29. package/lib/stack-list/stack-list.css +2 -2
  30. package/lib/tabs/tabs.css +10 -10
  31. package/lib/typography/typography.css +7 -7
  32. package/package.json +26 -25
  33. package/src/alignment/alignment.css +13 -13
  34. package/src/alignment/alignment.tsx +5 -5
  35. package/src/animations/animations.css +90 -90
  36. package/src/animations/animations.ts +14 -14
  37. package/src/balanced-row/balanced-row.css +4 -4
  38. package/src/balanced-row/balanced-row.tsx +10 -10
  39. package/src/balanced-stack/balanced-stack.css +5 -5
  40. package/src/balanced-stack/balanced-stack.tsx +10 -10
  41. package/src/buttons/buttons.css +5 -5
  42. package/src/buttons/buttons.tsx +2 -2
  43. package/src/component-with-class-name.tsx +8 -8
  44. package/src/dim/dim.css +3 -3
  45. package/src/dim/dim.tsx +1 -1
  46. package/src/flow-list/flow-list.css +5 -5
  47. package/src/flow-list/flow-list.tsx +10 -10
  48. package/src/focusable.tsx +35 -35
  49. package/src/frame/frame.css +1 -1
  50. package/src/frame/frame.tsx +1 -1
  51. package/src/gauge/gauge.css +16 -16
  52. package/src/gauge/gauge.tsx +19 -16
  53. package/src/highlightable-row/highlightable-row.css +3 -3
  54. package/src/highlightable-row/highlightable-row.tsx +10 -8
  55. package/src/index.ts +1 -1
  56. package/src/key-value-layout/key-value-layout.css +7 -7
  57. package/src/key-value-layout/key-value-layout.tsx +1 -1
  58. package/src/labels/labels.css +13 -13
  59. package/src/labels/labels.tsx +7 -7
  60. package/src/reset/reset.css +8 -8
  61. package/src/screen-column-layout/screen-column-layout.css +77 -77
  62. package/src/screen-column-layout/screen-column-layout.tsx +6 -6
  63. package/src/screen-stack-layout/screen-stack-layout.css +14 -14
  64. package/src/screen-stack-layout/screen-stack-layout.tsx +4 -4
  65. package/src/scrollable-content/scrollable-content.css +3 -3
  66. package/src/scrollable-content/scrollable-content.tsx +1 -1
  67. package/src/slider/slider.css +44 -44
  68. package/src/slider/slider.tsx +45 -45
  69. package/src/spacing/spacing.css +7 -7
  70. package/src/spacing/spacing.ts +7 -7
  71. package/src/stack-list/stack-list.css +2 -2
  72. package/src/stack-list/stack-list.tsx +10 -10
  73. package/src/tabs/tabs.css +10 -10
  74. package/src/tabs/tabs.tsx +15 -15
  75. package/src/typography/typography.css +7 -7
  76. package/src/typography/typography.ts +7 -7
  77. package/tsconfig.json +11 -11
@@ -1,126 +1,126 @@
1
1
  .screen-layout-column {
2
- display: flex;
3
- flex-direction: row;
4
- height: 100%;
2
+ display: flex;
3
+ flex-direction: row;
4
+ height: 100%;
5
5
  }
6
6
 
7
7
  .screen-layout-column > * {
8
- height: 100%;
8
+ height: 100%;
9
9
  }
10
10
 
11
11
  .screen-layout-column > .screen-layout-column-main-column {
12
- flex: 0 0 45%;
13
- background-color: rgba(0, 0, 0, 0.7);
14
- display: flex;
15
- flex-direction: column;
12
+ flex: 0 0 45%;
13
+ background-color: rgba(0, 0, 0, 0.7);
14
+ display: flex;
15
+ flex-direction: column;
16
16
  }
17
17
 
18
18
  .screen-layout-column
19
- > .screen-layout-column-main-column
20
- > .screen-layout-column-main-column-header {
21
- flex-basis: 40%;
22
- flex-shrink: 0;
23
- display: flex;
24
- flex-direction: column;
25
- justify-content: center;
26
- padding-left: 5%;
27
- padding-right: 5%;
28
- text-align: center;
19
+ > .screen-layout-column-main-column
20
+ > .screen-layout-column-main-column-header {
21
+ flex-basis: 40%;
22
+ flex-shrink: 0;
23
+ display: flex;
24
+ flex-direction: column;
25
+ justify-content: center;
26
+ padding-left: 5%;
27
+ padding-right: 5%;
28
+ text-align: center;
29
29
  }
30
30
 
31
31
  .screen-layout-column
32
- > .screen-layout-column-main-column
33
- > .screen-layout-column-main-column-footer {
34
- flex-basis: 100px;
35
- display: flex;
36
- flex-direction: column;
37
- justify-content: center;
32
+ > .screen-layout-column-main-column
33
+ > .screen-layout-column-main-column-footer {
34
+ flex-basis: 100px;
35
+ display: flex;
36
+ flex-direction: column;
37
+ justify-content: center;
38
38
  }
39
39
 
40
40
  .screen-layout-column
41
- > .screen-layout-column-main-column
42
- > .screen-layout-column-main-column-content {
43
- flex: 1 0 0;
44
- overflow: hidden auto;
41
+ > .screen-layout-column-main-column
42
+ > .screen-layout-column-main-column-content {
43
+ flex: 1 0 0;
44
+ overflow: hidden auto;
45
45
  }
46
46
 
47
47
  .screen-layout-column > .screen-layout-column-central-content {
48
- flex: 1 1 auto;
49
- display: flex;
50
- flex-direction: column;
51
- padding: 10%;
48
+ flex: 1 1 auto;
49
+ display: flex;
50
+ flex-direction: column;
51
+ padding: 10%;
52
52
  }
53
53
 
54
54
  .mobile .screen-layout-column > .screen-central-content {
55
- display: none;
55
+ display: none;
56
56
  }
57
57
 
58
58
  .mobile .screen-layout-column > .screen-layout-column-main-column {
59
- flex-basis: 100%;
60
- background: transparent;
61
- justify-content: start;
62
- padding-left: 10px;
63
- padding-right: 10px;
64
- margin-left: auto;
65
- margin-right: auto;
59
+ flex-basis: 100%;
60
+ background: transparent;
61
+ justify-content: start;
62
+ padding-left: 10px;
63
+ padding-right: 10px;
64
+ margin-left: auto;
65
+ margin-right: auto;
66
66
  }
67
67
 
68
68
  .mobile
69
- .screen-layout-column
70
- > .screen-layout-column-main-column
71
- > .screen-layout-column-main-column-header {
72
- flex-basis: 30%;
73
- flex-shrink: 1;
74
- justify-content: end;
75
- padding-left: 20px;
76
- padding-right: 20px;
77
- position: relative;
78
- z-index: 1;
69
+ .screen-layout-column
70
+ > .screen-layout-column-main-column
71
+ > .screen-layout-column-main-column-header {
72
+ flex-basis: 30%;
73
+ flex-shrink: 1;
74
+ justify-content: end;
75
+ padding-left: 20px;
76
+ padding-right: 20px;
77
+ position: relative;
78
+ z-index: 1;
79
79
  }
80
80
 
81
81
  .mobile
82
- .screen-layout-column
83
- > .screen-layout-column-main-column
84
- > .screen-layout-column-main-column-content {
85
- flex: 0 1 auto;
82
+ .screen-layout-column
83
+ > .screen-layout-column-main-column
84
+ > .screen-layout-column-main-column-content {
85
+ flex: 0 1 auto;
86
86
  }
87
87
 
88
88
  .mobile
89
- .screen-layout-column
90
- > .screen-layout-column-main-column
91
- > .screen-layout-column-main-column-footer {
92
- padding-top: 50px;
93
- justify-content: end;
94
- flex-basis: auto;
89
+ .screen-layout-column
90
+ > .screen-layout-column-main-column
91
+ > .screen-layout-column-main-column-footer {
92
+ padding-top: 50px;
93
+ justify-content: end;
94
+ flex-basis: auto;
95
95
  }
96
96
 
97
97
  .mobile .screen-layout-column .screen-layout-column-main-column-content,
98
98
  .mobile .screen-layout-column .screen-layout-column-main-column-footer {
99
- background-color: rgba(0, 0, 0, 0.7);
100
- padding: 5px;
99
+ background-color: rgba(0, 0, 0, 0.7);
100
+ padding: 5px;
101
101
  }
102
102
 
103
103
  .mobile
104
- .screen-layout-column
105
- > .screen-layout-column-main-column
106
- > .screen-layout-column-main-column-header
107
- .main-title {
108
- color: black;
109
- text-shadow: none;
110
- background: white;
111
- margin: 0px;
104
+ .screen-layout-column
105
+ > .screen-layout-column-main-column
106
+ > .screen-layout-column-main-column-header
107
+ .main-title {
108
+ color: black;
109
+ text-shadow: none;
110
+ background: white;
111
+ margin: 0px;
112
112
 
113
- position: relative;
114
- top: 20px;
113
+ position: relative;
114
+ top: 20px;
115
115
  }
116
116
 
117
117
  .mobile .screen-layout-column .screen-layout-column-main-column-content {
118
- padding-top: 30px;
118
+ padding-top: 30px;
119
119
  }
120
120
 
121
121
  .mobile
122
- .main-menu
123
- .screen-layout-column
124
- .screen-layout-column-main-column-content {
125
- padding: 5px;
122
+ .main-menu
123
+ .screen-layout-column
124
+ .screen-layout-column-main-column-content {
125
+ padding: 5px;
126
126
  }
@@ -1,26 +1,26 @@
1
1
  .screen-stack-layout {
2
- display: flex;
3
- flex-direction: column;
4
- margin: auto;
5
- height: 100%;
2
+ display: flex;
3
+ flex-direction: column;
4
+ margin: auto;
5
+ height: 100%;
6
6
  }
7
7
 
8
8
  .screen-stack-layout-top,
9
9
  .screen-stack-layout-bottom {
10
- flex: 0 0 100px;
11
- display: flex;
12
- justify-content: center;
13
- flex-direction: column;
10
+ flex: 0 0 100px;
11
+ display: flex;
12
+ justify-content: center;
13
+ flex-direction: column;
14
14
  }
15
15
 
16
16
  .screen-stack-layout-content {
17
- flex: 1 1 auto;
18
- display: flex;
19
- flex-direction: column;
20
- overflow: hidden;
17
+ flex: 1 1 auto;
18
+ display: flex;
19
+ flex-direction: column;
20
+ overflow: hidden;
21
21
  }
22
22
 
23
23
  .screen-stack-layout-content > * {
24
- flex: 1 1 auto;
25
- max-height: 100%;
24
+ flex: 1 1 auto;
25
+ max-height: 100%;
26
26
  }
@@ -1,5 +1,5 @@
1
1
  .scrollable-content {
2
- overflow-x: hidden;
3
- overflow-y: scroll;
4
- max-height: 100%;
2
+ overflow-x: hidden;
3
+ overflow-y: scroll;
4
+ max-height: 100%;
5
5
  }
@@ -1,85 +1,85 @@
1
1
  input[type="range"] {
2
- background: transparent;
3
- cursor: pointer;
4
- appearance: none;
2
+ background: transparent;
3
+ cursor: pointer;
4
+ appearance: none;
5
5
  }
6
6
 
7
7
  input[type="range"]::-webkit-slider-thumb {
8
- -webkit-appearance: none;
8
+ -webkit-appearance: none;
9
9
  }
10
10
 
11
11
  input[type="range"]:focus {
12
- outline: none; /* Removes the blue border. You should probably do some kind of focus styling for accessibility reasons though. */
12
+ outline: none; /* Removes the blue border. You should probably do some kind of focus styling for accessibility reasons though. */
13
13
  }
14
14
 
15
15
  input[type="range"]::-webkit-slider-thumb {
16
- -webkit-appearance: none;
17
- border: none;
18
- background: #000;
19
- margin-top: -10px; /* You need to specify a margin in Chrome, but in Firefox and IE it is automatic */
20
- width: 20px;
21
- height: 20px;
16
+ -webkit-appearance: none;
17
+ border: none;
18
+ background: #000;
19
+ margin-top: -10px; /* You need to specify a margin in Chrome, but in Firefox and IE it is automatic */
20
+ width: 20px;
21
+ height: 20px;
22
22
  }
23
23
 
24
24
  input[type="range"]::-moz-range-thumb {
25
- border: none;
26
- box-shadow: 0px 2px #000;
27
- height: 15px;
28
- width: 15px;
29
- background: #fff;
30
- border-radius: 0px;
25
+ border: none;
26
+ box-shadow: 0px 2px #000;
27
+ height: 15px;
28
+ width: 15px;
29
+ background: #fff;
30
+ border-radius: 0px;
31
31
  }
32
32
 
33
33
  input[type="range"]::-webkit-slider-runnable-track {
34
- width: 100%;
35
- height: 0px;
36
- background-color: #fff;
34
+ width: 100%;
35
+ height: 0px;
36
+ background-color: #fff;
37
37
  }
38
38
 
39
39
  input[type="range"]::-moz-range-track {
40
- width: 100%;
41
- height: 2px;
42
- background-color: #fff;
43
- box-shadow: 0px 2px #000;
40
+ width: 100%;
41
+ height: 2px;
42
+ background-color: #fff;
43
+ box-shadow: 0px 2px #000;
44
44
  }
45
45
 
46
46
  .labelled-slider {
47
- background-color: white;
48
- padding: 1px;
49
- position: relative;
47
+ background-color: white;
48
+ padding: 1px;
49
+ position: relative;
50
50
  }
51
51
 
52
52
  .labelled-slider > *:nth-child(1) {
53
- width: 100%;
54
- height: 100%;
55
- display: block;
53
+ width: 100%;
54
+ height: 100%;
55
+ display: block;
56
56
  }
57
57
 
58
58
  .labelled-slider > *:nth-child(2) {
59
- min-width: 50px;
60
- text-align: right;
61
- position: absolute;
62
- right: 0;
63
- top: 100%;
64
- margin: 0;
59
+ min-width: 50px;
60
+ text-align: right;
61
+ position: absolute;
62
+ right: 0;
63
+ top: 100%;
64
+ margin: 0;
65
65
  }
66
66
 
67
67
  .labelled-slider input[type="range"] {
68
- height: 20px;
68
+ height: 20px;
69
69
  }
70
70
 
71
71
  .labelled-slider input[type="range"]::-moz-range-thumb {
72
- width: 0px;
73
- box-shadow: none;
72
+ width: 0px;
73
+ box-shadow: none;
74
74
  }
75
75
 
76
76
  .labelled-slider input[type="range"]::-moz-range-progress {
77
- background: black;
78
- height: 100%;
79
- width: 100%;
77
+ background: black;
78
+ height: 100%;
79
+ width: 100%;
80
80
  }
81
81
 
82
82
  .labelled-slider input[type="range"]::-moz-range-track {
83
- background-color: transparent;
84
- box-shadow: none;
83
+ background-color: transparent;
84
+ box-shadow: none;
85
85
  }
@@ -1,9 +1,9 @@
1
1
  :root {
2
- --spacing-xxl: 32px;
3
- --spacing-xl: 24px;
4
- --spacing-l: 20px;
5
- --spacing-m: 16px;
6
- --spacing-s: 12px;
7
- --spacing-xs: 8px;
8
- --spacing-xxs: 4px;
2
+ --spacing-xxl: 32px;
3
+ --spacing-xl: 24px;
4
+ --spacing-l: 20px;
5
+ --spacing-m: 16px;
6
+ --spacing-s: 12px;
7
+ --spacing-xs: 8px;
8
+ --spacing-xxs: 4px;
9
9
  }
@@ -1,4 +1,4 @@
1
1
  .stack-list {
2
- display: flex;
3
- flex-direction: column;
2
+ display: flex;
3
+ flex-direction: column;
4
4
  }
package/lib/tabs/tabs.css CHANGED
@@ -1,24 +1,24 @@
1
1
  .tab-layout {
2
- flex: 0 1 auto;
3
- display: flex;
4
- flex-direction: row;
2
+ flex: 0 1 auto;
3
+ display: flex;
4
+ flex-direction: row;
5
5
  }
6
6
 
7
7
  .tab-layout > * {
8
- flex: 1 0 0px;
8
+ flex: 1 0 0px;
9
9
  }
10
10
 
11
11
  .tab {
12
- border-bottom: 2px solid transparent;
13
- cursor: pointer;
14
- padding: 5px;
15
- font-size: 15px;
12
+ border-bottom: 2px solid transparent;
13
+ cursor: pointer;
14
+ padding: 5px;
15
+ font-size: 15px;
16
16
  }
17
17
 
18
18
  .tab:focus {
19
- background-color: rgba(255, 255, 255, 0.2);
19
+ background-color: rgba(255, 255, 255, 0.2);
20
20
  }
21
21
 
22
22
  .tab.selected {
23
- border-bottom-color: white;
23
+ border-bottom-color: white;
24
24
  }
@@ -1,9 +1,9 @@
1
1
  :root {
2
- --font-size-xxl: 32px;
3
- --font-size-xl: 24px;
4
- --font-size-l: 20px;
5
- --font-size-m: 16px;
6
- --font-size-s: 12px;
7
- --font-size-xs: 8px;
8
- --font-size-xxs: 4px;
2
+ --font-size-xxl: 32px;
3
+ --font-size-xl: 24px;
4
+ --font-size-l: 20px;
5
+ --font-size-m: 16px;
6
+ --font-size-s: 12px;
7
+ --font-size-xs: 8px;
8
+ --font-size-xxs: 4px;
9
9
  }
package/package.json CHANGED
@@ -1,27 +1,28 @@
1
1
  {
2
- "name": "@remvst/design-system",
3
- "version": "0.0.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
- "rimraf": "^5.0.5"
26
- }
2
+ "name": "@remvst/design-system",
3
+ "version": "1.0.1",
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
+ }
27
28
  }
@@ -1,24 +1,24 @@
1
1
  .vertical-center {
2
- display: flex;
3
- flex-direction: column;
4
- justify-content: center;
5
- height: 100%;
2
+ display: flex;
3
+ flex-direction: column;
4
+ justify-content: center;
5
+ height: 100%;
6
6
  }
7
7
 
8
8
  .horizontal-center {
9
- margin: auto;
9
+ margin: auto;
10
10
  }
11
11
 
12
12
  .align-right {
13
- display: flex;
14
- flex-direction: row;
15
- justify-content: end;
13
+ display: flex;
14
+ flex-direction: row;
15
+ justify-content: end;
16
16
  }
17
17
 
18
18
  .narrow-column {
19
- width: 100%;
20
- max-width: 50%;
21
- max-height: 100%;
22
- margin-left: auto;
23
- margin-right: auto;
19
+ width: 100%;
20
+ max-width: 50%;
21
+ max-height: 100%;
22
+ margin-left: auto;
23
+ margin-right: auto;
24
24
  }
@@ -1,18 +1,18 @@
1
- import "./alignment.css";
2
1
  import { ComponentWithClassName } from "../component-with-class-name";
2
+ import "./alignment.css";
3
3
 
4
4
  export class VerticalCenter extends ComponentWithClassName {
5
- protected readonly className = "vertical-center";
5
+ protected readonly className = "vertical-center";
6
6
  }
7
7
 
8
8
  export class HorizontalCenter extends ComponentWithClassName {
9
- protected readonly className = "horizontal-center";
9
+ protected readonly className = "horizontal-center";
10
10
  }
11
11
 
12
12
  export class AlignRight extends ComponentWithClassName {
13
- protected readonly className = "align-right";
13
+ protected readonly className = "align-right";
14
14
  }
15
15
 
16
16
  export class NarrowColumn extends ComponentWithClassName {
17
- protected readonly className = "narrow-column";
17
+ protected readonly className = "narrow-column";
18
18
  }