@luscii-healthtech/web-ui 42.13.0 → 42.13.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.
@@ -0,0 +1 @@
1
+ export declare function PrimitiveColors(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ interface SemanticColorGroupProps {
2
+ category: "background" | "border" | "text" | "icon";
3
+ group: string;
4
+ }
5
+ export declare function SemanticColorGroup({ category, group, }: SemanticColorGroupProps): import("react/jsx-runtime").JSX.Element | null;
6
+ interface CategorySectionProps {
7
+ category: "background" | "border" | "text" | "icon";
8
+ title: string;
9
+ }
10
+ export declare function CategorySection({ category, title }: CategorySectionProps): import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -13,7 +13,6 @@
13
13
  --ui-color-orange-400: #fb923c;
14
14
  --ui-color-amber-50: #fef8e3;
15
15
  --ui-color-amber-100: #fef3c7;
16
- --ui-color-amber-400: #fbbf24;
17
16
  --ui-color-amber-500: #f59e0b;
18
17
  --ui-color-amber-700: #b45309;
19
18
  --ui-color-amber-800: #92400e;
@@ -110,9 +109,33 @@
110
109
  --ui-spacing-l: 24px;
111
110
  --ui-spacing-xl: 32px;
112
111
  --ui-spacing-xxl: 32px;
113
- --ui-color-secondary-pink-dark: #9d174d;
112
+ --ui-primitive-color-grey-100: #ffffff;
113
+ --ui-primitive-color-grey-300: #f5f7fa;
114
+ --ui-primitive-color-grey-500: #cbd5e1;
115
+ --ui-primitive-color-grey-700: #7387a4;
116
+ --ui-primitive-color-grey-800: #3a4657;
117
+ --ui-primitive-color-grey-900: #162130;
118
+ --ui-primitive-color-brand-500: #1d4ed8;
119
+ --ui-primitive-color-brand-700: #1e40af;
120
+ --ui-primitive-color-brand-900: #112d9c;
121
+ --ui-primitive-color-pink-700: #c30074;
122
+ --ui-primitive-color-green-300: #4ade80;
123
+ --ui-primitive-color-green-500: #388e3c;
124
+ --ui-primitive-color-green-700: #1b5e20;
125
+ --ui-primitive-color-blue-100: #f1f5fc;
126
+ --ui-primitive-color-blue-300: #d7e3fb;
127
+ --ui-primitive-color-blue-500: #b3cafc;
128
+ --ui-primitive-color-orange-500: #ffb300;
129
+ --ui-primitive-color-orange-700: #f0761e;
130
+ --ui-primitive-color-orange-900: #8a3d00;
131
+ --ui-primitive-color-red-100: #fee2e2;
132
+ --ui-primitive-color-red-300: #ffa5a7;
133
+ --ui-primitive-color-red-500: #ff6266;
134
+ --ui-primitive-color-red-700: #b91c1c;
135
+ --ui-primitive-color-red-900: #8d1515;
114
136
  --ui-color-on-surface-variant: var(--ui-color-slate-500);
115
137
  --ui-color-background: var(--ui-color-slate-50);
138
+ --ui-color-background-info-secondary-default: var(--ui-primitive-color-blue-100);
116
139
  --ui-flyout-menu-content-max-height: 600px;
117
140
  }
118
141
  *, ::after, ::before, ::backdrop, ::file-selector-button {
@@ -530,9 +553,6 @@ button, input:where([type='button'], [type='reset'], [type='submit']), ::file-se
530
553
  .ui\:my-4 {
531
554
  margin-block: calc(var(--ui-spacing) * 4);
532
555
  }
533
- .ui\:my-6 {
534
- margin-block: calc(var(--ui-spacing) * 6);
535
- }
536
556
  .ui\:my-8 {
537
557
  margin-block: calc(var(--ui-spacing) * 8);
538
558
  }
@@ -1139,9 +1159,6 @@ button, input:where([type='button'], [type='reset'], [type='submit']), ::file-se
1139
1159
  .ui\:w-36 {
1140
1160
  width: 9rem;
1141
1161
  }
1142
- .ui\:w-40 {
1143
- width: 10rem;
1144
- }
1145
1162
  .ui\:w-46 {
1146
1163
  width: 11.5rem;
1147
1164
  }
@@ -2007,6 +2024,9 @@ button, input:where([type='button'], [type='reset'], [type='submit']), ::file-se
2007
2024
  .ui\:border-black {
2008
2025
  border-color: var(--ui-color-black);
2009
2026
  }
2027
+ .ui\:border-border-success-primary-default {
2028
+ border-color: var(--ui-primitive-color-green-700);
2029
+ }
2010
2030
  .ui\:border-color-border {
2011
2031
  border-color: #ccc;
2012
2032
  }
@@ -2103,15 +2123,23 @@ button, input:where([type='button'], [type='reset'], [type='submit']), ::file-se
2103
2123
  .ui\:bg-amber-50 {
2104
2124
  background-color: var(--ui-color-amber-50);
2105
2125
  }
2106
- .ui\:bg-amber-400 {
2107
- background-color: var(--ui-color-amber-400);
2108
- }
2109
2126
  .ui\:bg-amber-500 {
2110
2127
  background-color: var(--ui-color-amber-500);
2111
2128
  }
2112
2129
  .ui\:bg-background {
2113
2130
  background-color: var(--ui-color-slate-50);
2114
2131
  }
2132
+ .ui\:bg-background-brand-primary-default {
2133
+ background-color: var(--ui-primitive-color-brand-700);
2134
+ }
2135
+ .ui\:bg-background-brand-primary-hovered {
2136
+ background-color: var(--ui-primitive-color-brand-500);
2137
+ }
2138
+ .ui\:bg-background-success-secondary-default {
2139
+ background-color: var(
2140
+ --ui-primitive-color-green-300
2141
+ );
2142
+ }
2115
2143
  .ui\:bg-black {
2116
2144
  background-color: var(--ui-color-black);
2117
2145
  }
@@ -2124,9 +2152,6 @@ button, input:where([type='button'], [type='reset'], [type='submit']), ::file-se
2124
2152
  .ui\:bg-blue-400 {
2125
2153
  background-color: var(--ui-color-blue-400);
2126
2154
  }
2127
- .ui\:bg-blue-800 {
2128
- background-color: var(--ui-color-blue-800);
2129
- }
2130
2155
  .ui\:bg-color-divider {
2131
2156
  background-color: #eeeeee;
2132
2157
  }
@@ -2199,9 +2224,6 @@ button, input:where([type='button'], [type='reset'], [type='submit']), ::file-se
2199
2224
  .ui\:bg-red-500 {
2200
2225
  background-color: var(--ui-color-red-500);
2201
2226
  }
2202
- .ui\:bg-red-700 {
2203
- background-color: var(--ui-color-red-700);
2204
- }
2205
2227
  .ui\:bg-secondary {
2206
2228
  background-color: #F3F4F6;
2207
2229
  }
@@ -2226,9 +2248,6 @@ button, input:where([type='button'], [type='reset'], [type='submit']), ::file-se
2226
2248
  .ui\:bg-slate-400 {
2227
2249
  background-color: var(--ui-color-slate-400);
2228
2250
  }
2229
- .ui\:bg-slate-500 {
2230
- background-color: var(--ui-color-slate-500);
2231
- }
2232
2251
  .ui\:bg-slate-800 {
2233
2252
  background-color: var(--ui-color-slate-800);
2234
2253
  }
@@ -2877,7 +2896,16 @@ button, input:where([type='button'], [type='reset'], [type='submit']), ::file-se
2877
2896
  color: var(--ui-color-slate-800);
2878
2897
  }
2879
2898
  .ui\:text-text-body-active {
2880
- color: var(--ui-color-secondary-pink-dark);
2899
+ color: var(--ui-primitive-color-pink-700);
2900
+ }
2901
+ .ui\:text-text-brand-primary-default {
2902
+ color: var(--ui-primitive-color-brand-700);
2903
+ }
2904
+ .ui\:text-text-brand-secondary-default {
2905
+ color: var(--ui-primitive-color-brand-500);
2906
+ }
2907
+ .ui\:text-text-error-primary-default {
2908
+ color: var(--ui-primitive-color-red-900);
2881
2909
  }
2882
2910
  .ui\:text-transparent {
2883
2911
  color: transparent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luscii-healthtech/web-ui",
3
- "version": "42.13.0",
3
+ "version": "42.13.1",
4
4
  "license": "MIT",
5
5
  "author": {
6
6
  "name": "Joris Janssen"
@@ -14,7 +14,7 @@
14
14
  ],
15
15
  "scripts": {
16
16
  "start": "yarn build --watch",
17
- "dev": "concurrently --names 'STORYBOOK,TAILWIND' -c 'auto' 'yarn storybook:lazy' 'yarn storybook:watch-tailwind --watch'",
17
+ "dev": "yarn generate:colors && concurrently --names 'STORYBOOK,TAILWIND' -c 'auto' 'yarn storybook:lazy' 'yarn storybook:watch-tailwind --watch'",
18
18
  "build": "yarn build:js && yarn build:css",
19
19
  "build:js": "yarn rollup --config rollup.config.mjs && yarn fix-alias-paths",
20
20
  "build:css": "yarn build-tailwind",
@@ -25,8 +25,8 @@
25
25
  "lint:fix": "eslint src stories --ext .jsx --ext .js --ext .ts --ext .tsx --fix",
26
26
  "lint:types": "yarn tsc --noEmit",
27
27
  "storybook:lazy": "STORYBOOK_LAZY_COMPILATION=true yarn storybook",
28
- "storybook": "storybook dev -p 6006",
29
- "build-storybook": "yarn storybook:build-tailwind && storybook build",
28
+ "storybook": "yarn generate:colors && storybook dev -p 6006",
29
+ "build-storybook": "yarn generate:colors && yarn storybook:build-tailwind && storybook build",
30
30
  "test-storybook": "test-storybook --coverage && yarn create-coverage-report",
31
31
  "//_": "Open the coverage report and click through the component names and files to reveal visually which lines aren't covered.",
32
32
  "open-coverage-report": "open coverage/storybook/lcov-report/index.html",
@@ -35,7 +35,7 @@
35
35
  "test-storybook:ci": "yarn test-storybook --maxWorkers=2",
36
36
  "chromatic": "chromatic --exit-zero-on-changes --only-changed",
37
37
  "build-tailwind": "NODE_ENV=production npx tailwindcss -i tailwind.css -o ./dist/web-ui-tailwind.css",
38
- "storybook:build-tailwind": "npx tailwindcss -i tailwind.css -o ./.storybook/storybook-tailwind.css",
38
+ "storybook:build-tailwind": "npx tailwindcss -i tailwind.storybook.css -o ./.storybook/storybook-tailwind.css",
39
39
  "storybook:watch-tailwind": "yarn storybook:build-tailwind -w",
40
40
  "copy-build": "cp -a ./dist/. ../cVitals-Web/node_modules/@luscii-healthtech/web-ui/dist",
41
41
  "test-copy-build": "yarn build && yarn copy-build",
@@ -45,7 +45,8 @@
45
45
  "icons:regular:verify": "node ./scripts/verify-regular-icons.mjs",
46
46
  "//__": "Special icons are icons that are not part of the regular icon set, meaning they either have a different size or cannot take any color.",
47
47
  "icons:special": "rimraf src/components/Icons/special-icons/*Icon.tsx && yarn svgr src/components/Icons/special-icons/source-files --no-prettier --config-file svgr.special-icons.config.js && prettier src/components/Icons/special-icons/*.{ts,tsx} --no-config --write",
48
- "icons": "yarn icons:special && yarn icons:regular"
48
+ "icons": "yarn icons:special && yarn icons:regular",
49
+ "generate:colors": "node ./scripts/generate-color-swatches.mjs"
49
50
  },
50
51
  "peerDependencies": {
51
52
  "@dnd-kit/core": "^6.3.1",