@uxf/ui 11.34.1 → 11.36.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.
Files changed (65) hide show
  1. package/_tokens/generated/figma-colors.js +118 -0
  2. package/bin/generate-css-tokens.js +116 -0
  3. package/button/README.md +1 -1
  4. package/button/button.d.ts +2 -1
  5. package/button/button.stories.js +1 -1
  6. package/button-list/button-list.js +3 -2
  7. package/chip/chip.d.ts +2 -0
  8. package/chip/chip.js +3 -2
  9. package/components.d.ts +5 -0
  10. package/components.js +5 -0
  11. package/css/badge.css +1 -1
  12. package/css/button.css +50 -48
  13. package/css/colors-dark.css +118 -0
  14. package/css/colors-light.css +118 -0
  15. package/css/colors-primitives.css +312 -0
  16. package/css/figma-colors.css +540 -0
  17. package/css/icon-button.css +9 -0
  18. package/css/modal-header.css +4 -4
  19. package/css/pagination.css +2 -2
  20. package/css/radio-group.css +1 -1
  21. package/css/text-link.css +1 -1
  22. package/css/toggle.css +1 -1
  23. package/dropdown/dropdown.d.ts +2 -0
  24. package/dropdown/dropdown.js +3 -2
  25. package/dropzone/README.md +99 -1
  26. package/dropzone/dropzone-input.d.ts +4 -2
  27. package/dropzone/dropzone-input.js +5 -16
  28. package/dropzone/dropzone-list.d.ts +5 -2
  29. package/dropzone/dropzone-list.js +8 -7
  30. package/dropzone/dropzone.stories.d.ts +1 -2
  31. package/dropzone/dropzone.stories.js +29 -37
  32. package/dropzone/handle-rejected-files.d.ts +2 -0
  33. package/dropzone/handle-rejected-files.js +17 -0
  34. package/dropzone/index.d.ts +2 -1
  35. package/figma-colors.js +118 -0
  36. package/icon-button/README.md +9 -0
  37. package/icon-button/icon-button.d.ts +9 -0
  38. package/icon-button/icon-button.js +15 -0
  39. package/icon-button/icon-button.spec.d.ts +1 -0
  40. package/icon-button/icon-button.spec.js +9 -0
  41. package/icon-button/icon-button.stories.d.ts +2 -0
  42. package/icon-button/icon-button.stories.js +58 -0
  43. package/icon-button/index.d.ts +2 -0
  44. package/icon-button/index.js +5 -0
  45. package/list-item/list-item.d.ts +2 -0
  46. package/list-item/list-item.js +3 -2
  47. package/modal-header/README.md +1 -0
  48. package/package.json +44 -38
  49. package/readmes.d.ts +1 -0
  50. package/readmes.js +58 -56
  51. package/scripts/generate-tw-tokens.js +1 -0
  52. package/text-link/text-link.d.ts +2 -0
  53. package/text-link/text-link.js +3 -2
  54. package/toggle/toggle.stories.js +7 -7
  55. package/tokens/figma-colors.js +118 -0
  56. package/tw-tokens/tw-colors.d.ts +115 -0
  57. package/tw-tokens/tw-colors.js +115 -0
  58. package/tw-tokens/tw-containers.js +1 -7
  59. package/tw-tokens/tw-screens.js +1 -7
  60. package/utils/storybook-config.d.ts +5 -0
  61. package/utils/storybook-config.js +5 -0
  62. package/utils/tailwind-config.js +7 -0
  63. package/css/colors.css +0 -99
  64. /package/{button → utils}/next-link.d.ts +0 -0
  65. /package/{button → utils}/next-link.js +0 -0
@@ -355,4 +355,119 @@ exports.twColors = {
355
355
  DEFAULT: "#ef4444",
356
356
  },
357
357
  test: "#ff00ff",
358
+ primary_surface_default: "var(--uxf-color-brand-surface-default)",
359
+ primary_surface_default_hover: "var(--uxf-color-brand-surface-default-hover)",
360
+ base_border_border: "var(--uxf-color-base-border-border)",
361
+ base_border_input: "var(--uxf-color-base-border-input)",
362
+ base_border_inverted_border: "var(--uxf-color-base-border-inverted-border)",
363
+ base_border_inverted_input: "var(--uxf-color-base-border-inverted-input)",
364
+ base_icon_disabled: "var(--uxf-color-base-icon-disabled)",
365
+ base_icon_high_emphasis: "var(--uxf-color-base-icon-high-emphasis)",
366
+ base_icon_low_emphasis: "var(--uxf-color-base-icon-low-emphasis)",
367
+ base_icon_medium_emphasis: "var(--uxf-color-base-icon-medium-emphasis)",
368
+ base_icon_inverted_low_emphasis: "var(--uxf-color-base-icon-inverted-low-emphasis)",
369
+ base_icon_inverted_disabled: "var(--uxf-color-base-icon-inverted-disabled)",
370
+ base_icon_inverted_high_emphasis: "var(--uxf-color-base-icon-inverted-high-emphasis)",
371
+ base_shadow_shadow_md: "var(--uxf-color-base-shadow-shadow-md)",
372
+ base_shadow_shadow_sm: "var(--uxf-color-base-shadow-shadow-sm)",
373
+ base_surface_background: "var(--uxf-color-base-surface-background)",
374
+ base_surface_disabled: "var(--uxf-color-base-surface-disabled)",
375
+ base_surface_input: "var(--uxf-color-base-surface-input)",
376
+ base_surface_input_disabled: "var(--uxf-color-base-surface-input-disabled)",
377
+ base_surface_input_hover: "var(--uxf-color-base-surface-input-hover)",
378
+ base_surface_main: "var(--uxf-color-base-surface-main)",
379
+ base_surface_main_hover: "var(--uxf-color-base-surface-main-hover)",
380
+ base_surface_popup: "var(--uxf-color-base-surface-popup)",
381
+ base_surface_tooltip: "var(--uxf-color-base-surface-tooltip)",
382
+ base_surface_inverted_default: "var(--uxf-color-base-surface-inverted-default)",
383
+ base_surface_inverted_default_hover: "var(--uxf-color-base-surface-inverted-default-hover)",
384
+ base_surface_inverted_disabled: "var(--uxf-color-base-surface-inverted-disabled)",
385
+ base_surface_inverted_main: "var(--uxf-color-base-surface-inverted-main)",
386
+ base_surface_inverted_main_hover: "var(--uxf-color-base-surface-inverted-main-hover)",
387
+ base_text_disabled: "var(--uxf-color-base-text-disabled)",
388
+ base_text_high_emphasis: "var(--uxf-color-base-text-high-emphasis)",
389
+ base_text_link: "var(--uxf-color-base-text-link)",
390
+ base_text_link_pressed: "var(--uxf-color-base-text-link-pressed)",
391
+ base_text_low_emphasis: "var(--uxf-color-base-text-low-emphasis)",
392
+ base_text_inverted_disabled: "var(--uxf-color-base-text-inverted-disabled)",
393
+ base_text_inverted_high_emphasis: "var(--uxf-color-base-text-inverted-high-emphasis)",
394
+ base_text_inverted_link: "var(--uxf-color-base-text-inverted-link)",
395
+ base_text_inverted_low_emphasis: "var(--uxf-color-base-text-inverted-low-emphasis)",
396
+ brand_border: "var(--uxf-color-brand-border)",
397
+ brand_icon: "var(--uxf-color-brand-icon)",
398
+ brand_icon_on_muted: "var(--uxf-color-brand-icon-on-muted)",
399
+ brand_text: "var(--uxf-color-brand-text)",
400
+ brand_text_on_muted: "var(--uxf-color-brand-text-on-muted)",
401
+ brand_surface_bolder: "var(--uxf-color-brand-surface-bolder)",
402
+ brand_surface_bolder_hover: "var(--uxf-color-brand-surface-bolder-hover)",
403
+ brand_surface_default: "var(--uxf-color-brand-surface-default)",
404
+ brand_surface_default_hover: "var(--uxf-color-brand-surface-default-hover)",
405
+ brand_surface_muted: "var(--uxf-color-brand-surface-muted)",
406
+ brand_surface_muted_hover: "var(--uxf-color-brand-surface-muted-hover)",
407
+ brand_surface_subtle: "var(--uxf-color-brand-surface-subtle)",
408
+ brand_surface_subtle_hover: "var(--uxf-color-brand-surface-subtle-hover)",
409
+ info_border: "var(--uxf-color-info-border)",
410
+ info_icon: "var(--uxf-color-info-icon)",
411
+ info_icon_on_muted: "var(--uxf-color-info-icon-on-muted)",
412
+ info_text: "var(--uxf-color-info-text)",
413
+ info_text_on_muted: "var(--uxf-color-info-text-on-muted)",
414
+ info_surface_default: "var(--uxf-color-info-surface-default)",
415
+ info_surface_default_hover: "var(--uxf-color-info-surface-default-hover)",
416
+ info_surface_muted: "var(--uxf-color-info-surface-muted)",
417
+ info_surface_muted_hover: "var(--uxf-color-info-surface-muted-hover)",
418
+ info_surface_subtle: "var(--uxf-color-info-surface-subtle)",
419
+ info_surface_subtle_hover: "var(--uxf-color-info-surface-subtle-hover)",
420
+ inverted_border: "var(--uxf-color-inverted-border)",
421
+ inverted_icon: "var(--uxf-color-inverted-icon)",
422
+ inverted_icon_on_muted: "var(--uxf-color-inverted-icon-on-muted)",
423
+ inverted_text_default: "var(--uxf-color-inverted-text-default)",
424
+ inverted_text_disabled: "var(--uxf-color-inverted-text-disabled)",
425
+ inverted_text_muted: "var(--uxf-color-inverted-text-muted)",
426
+ inverted_text_on_muted: "var(--uxf-color-inverted-text-on-muted)",
427
+ negative_border: "var(--uxf-color-negative-border)",
428
+ negative_icon: "var(--uxf-color-negative-icon)",
429
+ negative_icon_on_muted: "var(--uxf-color-negative-icon-on-muted)",
430
+ negative_text: "var(--uxf-color-negative-text)",
431
+ negative_text_on_muted: "var(--uxf-color-negative-text-on-muted)",
432
+ negative_surface_default: "var(--uxf-color-negative-surface-default)",
433
+ negative_surface_default_hover: "var(--uxf-color-negative-surface-default-hover)",
434
+ negative_surface_muted: "var(--uxf-color-negative-surface-muted)",
435
+ negative_surface_muted_hover: "var(--uxf-color-negative-surface-muted-hover)",
436
+ negative_surface_subtle: "var(--uxf-color-negative-surface-subtle)",
437
+ negative_surface_subtle_hover: "var(--uxf-color-negative-surface-subtle-hover)",
438
+ neutral_border: "var(--uxf-color-neutral-border)",
439
+ neutral_icon: "var(--uxf-color-neutral-icon)",
440
+ neutral_icon_on_muted: "var(--uxf-color-neutral-icon-on-muted)",
441
+ neutral_text: "var(--uxf-color-neutral-text)",
442
+ neutral_text_on_muted: "var(--uxf-color-neutral-text-on-muted)",
443
+ neutral_surface_bolder: "var(--uxf-color-neutral-surface-bolder)",
444
+ neutral_surface_bolder_hover: "var(--uxf-color-neutral-surface-bolder-hover)",
445
+ neutral_surface_default: "var(--uxf-color-neutral-surface-default)",
446
+ neutral_surface_default_hover: "var(--uxf-color-neutral-surface-default-hover)",
447
+ neutral_surface_muted: "var(--uxf-color-neutral-surface-muted)",
448
+ neutral_surface_muted_hover: "var(--uxf-color-neutral-surface-muted-hover)",
449
+ neutral_surface_subtle: "var(--uxf-color-neutral-surface-subtle)",
450
+ neutral_surface_subtle_hover: "var(--uxf-color-neutral-surface-subtle-hover)",
451
+ positive_border: "var(--uxf-color-positive-border)",
452
+ positive_icon: "var(--uxf-color-positive-icon)",
453
+ positive_icon_on_muted: "var(--uxf-color-positive-icon-on-muted)",
454
+ positive_text: "var(--uxf-color-positive-text)",
455
+ positive_text_on_muted: "var(--uxf-color-positive-text-on-muted)",
456
+ positive_surface_default: "var(--uxf-color-positive-surface-default)",
457
+ positive_surface_default_hover: "var(--uxf-color-positive-surface-default-hover)",
458
+ positive_surface_muted: "var(--uxf-color-positive-surface-muted)",
459
+ positive_surface_muted_hover: "var(--uxf-color-positive-surface-muted-hover)",
460
+ positive_surface_subtle: "var(--uxf-color-positive-surface-subtle)",
461
+ positive_surface_subtle_hover: "var(--uxf-color-positive-surface-subtle-hover)",
462
+ warning_border: "var(--uxf-color-warning-border)",
463
+ warning_icon: "var(--uxf-color-warning-icon)",
464
+ warning_icon_on_muted: "var(--uxf-color-warning-icon-on-muted)",
465
+ warning_text: "var(--uxf-color-warning-text)",
466
+ warning_text_on_muted: "var(--uxf-color-warning-text-on-muted)",
467
+ warning_surface_default: "var(--uxf-color-warning-surface-default)",
468
+ warning_surface_default_hover: "var(--uxf-color-warning-surface-default-hover)",
469
+ warning_surface_muted: "var(--uxf-color-warning-surface-muted)",
470
+ warning_surface_muted_hover: "var(--uxf-color-warning-surface-muted-hover)",
471
+ warning_surface_subtle: "var(--uxf-color-warning-surface-subtle)",
472
+ warning_surface_subtle_hover: "var(--uxf-color-warning-surface-subtle-hover)",
358
473
  };
@@ -2,10 +2,4 @@
2
2
  // this file is generated automatically, do not change anything manually in the contents of this file
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.twContainers = void 0;
5
- exports.twContainers = {
6
- xs: "33.75rem",
7
- sm: "45rem",
8
- md: "58rem",
9
- lg: "64rem",
10
- xl: "76rem",
11
- };
5
+ exports.twContainers = { xs: "33.75rem", sm: "45rem", md: "58rem", lg: "64rem", xl: "76rem" };
@@ -2,10 +2,4 @@
2
2
  // this file is generated automatically, do not change anything manually in the contents of this file
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.twScreens = void 0;
5
- exports.twScreens = {
6
- xs: "36em",
7
- sm: "48em",
8
- md: "62em",
9
- lg: "75em",
10
- xl: "90em",
11
- };
5
+ exports.twScreens = { xs: "36em", sm: "48em", md: "62em", lg: "75em", xl: "90em" };
@@ -22,6 +22,11 @@ export interface StorybookConfig {
22
22
  Chip: {
23
23
  colors: ChipColor[];
24
24
  };
25
+ IconButton: {
26
+ colors: ButtonColor[];
27
+ sizes: ButtonSize[];
28
+ variants: ButtonVariant[];
29
+ };
25
30
  Input: {
26
31
  sizes: (keyof InputGroupSizes)[];
27
32
  };
@@ -44,6 +44,11 @@ exports.defaultConfig = {
44
44
  Chip: {
45
45
  colors: ["primary", "orange", "red", "yellow", "pink", "purple", "indigo", "green", "blue", "default"],
46
46
  },
47
+ IconButton: {
48
+ sizes: ["sm", "default", "lg", "xl"],
49
+ colors: ["default", "positive", "negative", "warning", "info", "inverted"],
50
+ variants: ["default", "secondary", "text"],
51
+ },
47
52
  Input: {
48
53
  sizes: ["small", "default", "large"],
49
54
  },
@@ -1,6 +1,7 @@
1
1
  const tailwindThemeDefaults = require("./tailwind-theme-defaults");
2
2
  const { fontFamily } = require("tailwindcss/defaultTheme");
3
3
  const { rem } = require("@uxf/styles/units/rem");
4
+ const { figmaColors } = require("../figma-colors");
4
5
 
5
6
  /** @type {import('tailwindcss').Config} */
6
7
  module.exports = {
@@ -96,6 +97,12 @@ module.exports = {
96
97
  900: "#7f1d1d",
97
98
  },
98
99
  test: "#ff00ff",
100
+ // TODO get primary from generated colors
101
+ primary_surface_default: "var(--uxf-color-brand-surface-default)",
102
+ primary_surface_default_hover: "var(--uxf-color-brand-surface-default-hover)",
103
+
104
+ // generated color-tokens from figma
105
+ ...figmaColors,
99
106
  },
100
107
  fontFamily: {
101
108
  sans: ["var(--font-inter)", ...fontFamily.sans],
package/css/colors.css DELETED
@@ -1,99 +0,0 @@
1
- :root {
2
- /** base */
3
- --uxf-color-base-border-inverted: #ffffff1f;
4
- --uxf-color-base-border-input: #d2d6db;
5
- --uxf-color-base-border-border: #e5e7eb;
6
- --uxf-color-base-surface-main: #fff;
7
- --uxf-color-base-surface-main-hover: #f3f4f6;
8
- --uxf-color-base-surface-background: #f9fafb;
9
- --uxf-color-base-surface-input-disabled: #f3f4f6;
10
- --uxf-color-base-surface-disabled: #d2d6db;
11
- --uxf-color-base-surface-inverted-main: #ffffff14;
12
- --uxf-color-base-surface-inverted-main-hover: #ffffff29;
13
- --uxf-color-base-text-disabled: #9da4ae;
14
- --uxf-color-base-text-high-emphasis: #111927;
15
- --uxf-color-base-text-low-emphasis: #4d5761;
16
- --uxf-color-base-text-inverted-high-emphasis: #fff;
17
- --uxf-color-base-text-inverted-low-emphasis: #fffc;
18
- --uxf-color-base-text-inverted-disabled: #ffffffb3;
19
-
20
- /** primary */
21
- --uxf-color-primary-surface-default: #155dee;
22
- --uxf-color-primary-surface-default-hover: #004eea;
23
-
24
- /** positive */
25
- --uxf-color-positive-text: #039754;
26
- --uxf-color-positive-border: #6be9a6;
27
- --uxf-color-positive-surface-default: #09914f;
28
- --uxf-color-positive-surface-default-hover: #087343;
29
-
30
- /** negative */
31
- --uxf-color-negative-text: #d92c20;
32
- --uxf-color-negative-border: #fca19b;
33
- --uxf-color-negative-surface-default: #d92c20;
34
- --uxf-color-negative-surface-default-hover: #b42318;
35
-
36
- /** warning */
37
- --uxf-color-warning-text: #dc6803;
38
- --uxf-color-warning-border: #fec84b;
39
- --uxf-color-warning-surface-default: #dc6803;
40
- --uxf-color-warning-surface-default-hover: #b54707;
41
- --uxf-color-warning-surface-muted: #fef0c7;
42
- --uxf-color-warning-icon-on-muted: #b54707;
43
-
44
- /** info */
45
- --uxf-color-info-text: #3e4783;
46
- --uxf-color-info-border: #b3b8db;
47
- --uxf-color-info-surface-default: #3e4783;
48
- --uxf-color-info-surface-default-hover: #404968;
49
-
50
- .dark {
51
- /** base */
52
- --uxf-color-base-border-inverted: #3842501f;
53
- --uxf-color-base-border-input: #384250;
54
- --uxf-color-base-border-border: #e5e7eb1f;
55
- --uxf-color-base-surface-main: #111927;
56
- --uxf-color-base-surface-main-hover: #1f2a37;
57
- --uxf-color-base-surface-background: #1f2a37;
58
- --uxf-color-base-surface-input-disabled: #4d5761;
59
- --uxf-color-base-surface-disabled: #d2d6db;
60
- --uxf-color-base-surface-inverted-main: #20293914;
61
- --uxf-color-base-surface-inverted-main-hover: #20293929;
62
- --uxf-color-base-text-disabled: #ffffff80;
63
- --uxf-color-base-text-high-emphasis: #fff;
64
- --uxf-color-base-text-low-emphasis: #ffffffbf;
65
- --uxf-color-base-text-inverted-high-emphasis: #111927;
66
- --uxf-color-base-text-inverted-low-emphasis: #202939cc;
67
- --uxf-color-base-text-inverted-disabled: #202939b3;
68
-
69
- /** primary */
70
- --uxf-color-primary-surface-default: #518bff;
71
- --uxf-color-primary-surface-default-hover: #83adff;
72
-
73
- /** positive */
74
- --uxf-color-positive-text: #6be9a6;
75
- --uxf-color-positive-border: #039754;
76
- --uxf-color-positive-surface-default: #3ccb7f;
77
- --uxf-color-positive-surface-default-hover: #72e2a3;
78
-
79
- /** negative */
80
- --uxf-color-negative-text: #fca19b;
81
- --uxf-color-negative-border: #d92c20;
82
- --uxf-color-negative-surface-default: #f97066;
83
- --uxf-color-negative-surface-default-hover: #fca19b;
84
-
85
- /** warning */
86
- --uxf-color-warning-text: #fec84b;
87
- --uxf-color-warning-border: #dc6803;
88
- --uxf-color-warning-surface-default: #fdb022;
89
- --uxf-color-warning-surface-default-hover: #fec84b;
90
- --uxf-color-warning-surface-muted: #93370c;
91
- --uxf-color-warning-icon-on-muted: #fec84b;
92
-
93
- /** info */
94
- --uxf-color-info-text: #b3b8db;
95
- --uxf-color-info-border: #3e4783;
96
- --uxf-color-info-surface-default: #b3b8db;
97
- --uxf-color-info-surface-default-hover: #d5d9eb;
98
- }
99
- }
File without changes
File without changes