@infonomic/uikit 5.3.0 → 5.4.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 (61) hide show
  1. package/dist/astro.d.ts +45 -0
  2. package/dist/astro.js +45 -0
  3. package/dist/components/accordion/accordion.module.css +60 -0
  4. package/dist/components/avatar/avatar.module.css +54 -0
  5. package/dist/components/badge/badge.module.css +61 -0
  6. package/dist/components/button/button-group.module.css +19 -0
  7. package/dist/components/button/button.astro +86 -0
  8. package/dist/components/button/button.module.css +431 -0
  9. package/dist/components/button/control-buttons.module.css +132 -0
  10. package/dist/components/button/copy-button.module.css +56 -0
  11. package/dist/components/button/icon-button.astro +47 -0
  12. package/dist/components/card/card-content.astro +14 -0
  13. package/dist/components/card/card-description.astro +14 -0
  14. package/dist/components/card/card-footer.astro +14 -0
  15. package/dist/components/card/card-header.astro +14 -0
  16. package/dist/components/card/card-title.astro +14 -0
  17. package/dist/components/card/card.astro +41 -0
  18. package/dist/components/card/card.module.css +77 -0
  19. package/dist/components/container/container.astro +13 -0
  20. package/dist/components/container/container.module.css +36 -0
  21. package/dist/components/dropdown/dropdown.module.css +120 -0
  22. package/dist/components/forms/calendar.module.css +269 -0
  23. package/dist/components/forms/checkbox.module.css +211 -0
  24. package/dist/components/forms/error-text.astro +14 -0
  25. package/dist/components/forms/error-text.module.css +9 -0
  26. package/dist/components/forms/help-text.astro +13 -0
  27. package/dist/components/forms/help-text.module.css +9 -0
  28. package/dist/components/forms/input-adornment.astro +26 -0
  29. package/dist/components/forms/input-adornment.module.css +21 -0
  30. package/dist/components/forms/input.astro +99 -0
  31. package/dist/components/forms/input.module.css +278 -0
  32. package/dist/components/forms/label.astro +24 -0
  33. package/dist/components/forms/label.module.css +15 -0
  34. package/dist/components/forms/radio-group.module.css +163 -0
  35. package/dist/components/forms/select.module.css +68 -0
  36. package/dist/components/forms/text-area.module.css +10 -0
  37. package/dist/components/hamburger/hamburger.astro +30 -0
  38. package/dist/components/notifications/alert.module.css +110 -0
  39. package/dist/components/notifications/toast.module.css +237 -0
  40. package/dist/components/overlay/overlay.module.css +41 -0
  41. package/dist/components/pager/pagination.module.css +149 -0
  42. package/dist/components/scroll-area/scroll-area.module.css +64 -0
  43. package/dist/components/scroll-to-top/scroll-to-top.astro +75 -0
  44. package/dist/components/scroll-to-top/scroll-to-top.module.css +86 -0
  45. package/dist/components/section/section.astro +13 -0
  46. package/dist/components/section/section.module.css +9 -0
  47. package/dist/components/shimmer/shimmer.module.css +53 -0
  48. package/dist/components/table/table.module.css +100 -0
  49. package/dist/components/tabs/tabs.module.css +66 -0
  50. package/dist/components/tooltip/tooltip.module.css +45 -0
  51. package/dist/icons/close-icon.astro +38 -0
  52. package/dist/icons/icon-element.astro +27 -0
  53. package/dist/icons/icons.module.css +155 -0
  54. package/dist/icons/light-icon.astro +36 -0
  55. package/dist/icons/moon-icon.astro +38 -0
  56. package/dist/icons/search-icon.astro +40 -0
  57. package/dist/widgets/datepicker/datepicker.module.css +189 -0
  58. package/dist/widgets/drawer/drawer.module.css +112 -0
  59. package/dist/widgets/modal/modal.module.css +81 -0
  60. package/dist/widgets/timeline/timeline.module.css +87 -0
  61. package/package.json +5 -4
@@ -0,0 +1,87 @@
1
+ @layer infonomic-base, infonomic-functional, infonomic-utilities, infonomic-theme, infonomic-typography, infonomic-components;
2
+
3
+ @layer infonomic-components {
4
+ .timeline {
5
+ margin-left: var(--spacing-8);
6
+ }
7
+
8
+ .timeline-root {
9
+ position: relative;
10
+ list-style: none;
11
+ margin-left: var(--spacing-8);
12
+ padding-left: var(--spacing-8);
13
+ border-left-width: var(--border-width-thin);
14
+ border-left-color: var(--border-color);
15
+ border-left-style: var(--border-style-solid);
16
+ }
17
+
18
+ .timeline-item {
19
+ margin: 0 0 var(--spacing-16) var(--spacing-20);
20
+ }
21
+
22
+ /* 'absolute block flex items-center justify-center w-[36px] h-[36px] rounded-full -mt-[3px] sm:mt-0 -left-[18px] border-[6px] bg-secondary-600 dark:bg-secondary-900 border-gray-50 dark:border-canvas-600', */
23
+ .timeline-icon {
24
+ position: absolute;
25
+ display: flex;
26
+ align-items: center;
27
+ justify-content: center;
28
+ width: 36px;
29
+ height: 36px;
30
+ border-radius: 50%;
31
+ margin-top: -3px;
32
+ left: -18px;
33
+ border-width: 6px;
34
+ color: white;
35
+ background-color: var(--primary-600);
36
+ border-color: var(--gray-50);
37
+ }
38
+
39
+ .timeline-icon svg {
40
+ display: block;
41
+ width: 60%;
42
+ color: white;
43
+ }
44
+
45
+ /* 'text-[1.5rem] sm:text-[1.57rem] leading-[1.2] !m-0 font-semibold' */
46
+ .timeline-heading {
47
+ font-size: 1.5rem;
48
+ line-height: 1.2;
49
+ margin: 0;
50
+ font-weight: var(--font-weight-semibold);
51
+ }
52
+
53
+ /* 'block mt-2 mb-2 text-[0.9em] font-medium leading-none text-gray-900 dark:text-gray-100' */
54
+ .timeline-date {
55
+ display: block;
56
+ margin-top: var(--spacing-8);
57
+ margin-bottom: var(--spacing-8);
58
+ font-size: 0.9em;
59
+ font-weight: var(--font-weight-medium);
60
+ line-height: 0;
61
+ color: var(--gray-600);
62
+ }
63
+
64
+ /* '[&_p]:m-0 [&_p]:mb-4 [&_p]:sm:m-0 [&_p]:sm:mb-4 text-lg font-normal text-gray-900 dark:text-gray-300' */
65
+ .timeline-content {
66
+ margin: 0;
67
+ margin-bottom: var(--spacing-16);
68
+ font-size: 1.125rem;
69
+ font-weight: var(--font-weight-normal);
70
+
71
+ & p {
72
+ margin: 0;
73
+ margin-bottom: var(--spacing-16);
74
+ }
75
+ }
76
+
77
+ /* 🌙 Dark via `.dark` class. We rely on the
78
+ * consuming application to detect a user's preferred
79
+ * color scheme - either by header or cookie, and set
80
+ * a root html class accordingly
81
+ */
82
+ :global(.dark) {
83
+ .timeline-icon:not(:where([class~="not-dark"], [class~="not-dark"] *)) {
84
+ border-color: var(--canvas-600);
85
+ }
86
+ }
87
+ }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@infonomic/uikit",
3
3
  "private": false,
4
4
  "license": "MIT",
5
- "version": "5.3.0",
5
+ "version": "5.4.0",
6
6
  "type": "module",
7
7
  "description": "Infonomic UI kit is a collection of reusable UI components and utilities for React and Astro.",
8
8
  "keywords": [
@@ -30,9 +30,9 @@
30
30
  ],
31
31
  "exports": {
32
32
  "./astro": {
33
- "types": "./src/astro.d.ts",
34
- "import": "./src/astro.js",
35
- "default": "./src/astro.js"
33
+ "types": "./dist/astro.d.ts",
34
+ "import": "./dist/astro.js",
35
+ "default": "./dist/astro.js"
36
36
  },
37
37
  "./react": {
38
38
  "types": "./dist/react.d.ts",
@@ -114,6 +114,7 @@
114
114
  "build": "run-s build:*",
115
115
  "build:clean": "rimraf dist build",
116
116
  "build:code": "rslib build",
117
+ "build:astro": "node ./scripts/build-astro.js",
117
118
  "build:css": "lightningcss --bundle ./src/styles/styles.css ./src/styles/typography.css --output-dir ./dist/styles",
118
119
  "build:minify": "lightningcss --minify ./dist/styles/styles.css ./dist/styles/typography.css --output-dir ./dist/styles",
119
120
  "build:vanilla-components-css": "node ./scripts/task-merge-vanilla-components-css.js",