@g4rcez/components 3.0.0-0 → 3.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.
Files changed (175) hide show
  1. package/dist/components/core/button.d.ts +2 -8
  2. package/dist/components/core/button.d.ts.map +1 -1
  3. package/dist/components/core/button.jsx +11 -18
  4. package/dist/components/core/polymorph.d.ts.map +1 -1
  5. package/dist/components/core/slot.d.ts +1 -1
  6. package/dist/components/core/slot.d.ts.map +1 -1
  7. package/dist/components/core/slot.jsx +28 -35
  8. package/dist/components/core/tag.d.ts +1 -1
  9. package/dist/components/core/tag.d.ts.map +1 -1
  10. package/dist/components/core/tag.jsx +3 -3
  11. package/dist/components/core/typography.d.ts.map +1 -1
  12. package/dist/components/core/typography.jsx +16 -20
  13. package/dist/components/display/alert.d.ts.map +1 -1
  14. package/dist/components/display/alert.jsx +19 -17
  15. package/dist/components/display/calendar.d.ts.map +1 -1
  16. package/dist/components/display/calendar.jsx +6 -8
  17. package/dist/components/display/card.d.ts.map +1 -1
  18. package/dist/components/display/card.jsx +6 -6
  19. package/dist/components/display/empty.jsx +1 -1
  20. package/dist/components/display/notifications.d.ts +2 -0
  21. package/dist/components/display/notifications.d.ts.map +1 -1
  22. package/dist/components/display/notifications.jsx +76 -48
  23. package/dist/components/display/progress.d.ts.map +1 -1
  24. package/dist/components/display/progress.jsx +7 -9
  25. package/dist/components/display/shortcut.jsx +1 -1
  26. package/dist/components/display/skeleton.d.ts.map +1 -1
  27. package/dist/components/display/skeleton.jsx +3 -5
  28. package/dist/components/display/step.d.ts.map +1 -1
  29. package/dist/components/display/step.jsx +27 -27
  30. package/dist/components/display/tabs.d.ts.map +1 -1
  31. package/dist/components/display/tabs.jsx +5 -7
  32. package/dist/components/display/timeline.jsx +1 -1
  33. package/dist/components/floating/command-palette.d.ts +1 -0
  34. package/dist/components/floating/command-palette.d.ts.map +1 -1
  35. package/dist/components/floating/command-palette.jsx +92 -70
  36. package/dist/components/floating/dropdown.d.ts.map +1 -1
  37. package/dist/components/floating/dropdown.jsx +15 -15
  38. package/dist/components/floating/menu.d.ts +2 -2
  39. package/dist/components/floating/menu.jsx +2 -2
  40. package/dist/components/floating/modal.d.ts +20 -53
  41. package/dist/components/floating/modal.d.ts.map +1 -1
  42. package/dist/components/floating/modal.jsx +109 -51
  43. package/dist/components/floating/tooltip.d.ts.map +1 -1
  44. package/dist/components/floating/tooltip.jsx +2 -8
  45. package/dist/components/floating/wizard.d.ts +1 -1
  46. package/dist/components/floating/wizard.d.ts.map +1 -1
  47. package/dist/components/floating/wizard.jsx +50 -53
  48. package/dist/components/form/autocomplete.d.ts.map +1 -1
  49. package/dist/components/form/autocomplete.jsx +42 -38
  50. package/dist/components/form/checkbox.jsx +3 -3
  51. package/dist/components/form/date-picker.d.ts.map +1 -1
  52. package/dist/components/form/date-picker.jsx +14 -14
  53. package/dist/components/form/file-upload.jsx +13 -13
  54. package/dist/components/form/free-text.d.ts.map +1 -1
  55. package/dist/components/form/free-text.jsx +3 -3
  56. package/dist/components/form/input-field.d.ts +3 -2
  57. package/dist/components/form/input-field.d.ts.map +1 -1
  58. package/dist/components/form/input-field.jsx +43 -41
  59. package/dist/components/form/multi-select.d.ts.map +1 -1
  60. package/dist/components/form/multi-select.jsx +56 -56
  61. package/dist/components/form/select.d.ts.map +1 -1
  62. package/dist/components/form/select.jsx +3 -3
  63. package/dist/components/form/slider.d.ts.map +1 -1
  64. package/dist/components/form/slider.jsx +10 -10
  65. package/dist/components/form/switch.jsx +2 -2
  66. package/dist/components/form/transfer-list.jsx +3 -3
  67. package/dist/components/index.d.ts +2 -0
  68. package/dist/components/index.d.ts.map +1 -1
  69. package/dist/components/index.js +2 -0
  70. package/dist/components/page-calendar/calendar-header.d.ts +16 -0
  71. package/dist/components/page-calendar/calendar-header.d.ts.map +1 -0
  72. package/dist/components/page-calendar/calendar-header.jsx +81 -0
  73. package/dist/components/page-calendar/day-view.d.ts +12 -0
  74. package/dist/components/page-calendar/day-view.d.ts.map +1 -0
  75. package/dist/components/page-calendar/day-view.jsx +87 -0
  76. package/dist/components/page-calendar/event-pill.d.ts +9 -0
  77. package/dist/components/page-calendar/event-pill.d.ts.map +1 -0
  78. package/dist/components/page-calendar/event-pill.jsx +25 -0
  79. package/dist/components/page-calendar/index.d.ts +4 -0
  80. package/dist/components/page-calendar/index.d.ts.map +1 -0
  81. package/dist/components/page-calendar/index.js +2 -0
  82. package/dist/components/page-calendar/month-view.d.ts +11 -0
  83. package/dist/components/page-calendar/month-view.d.ts.map +1 -0
  84. package/dist/components/page-calendar/month-view.jsx +47 -0
  85. package/dist/components/page-calendar/page-calendar.d.ts +18 -0
  86. package/dist/components/page-calendar/page-calendar.d.ts.map +1 -0
  87. package/dist/components/page-calendar/page-calendar.jsx +41 -0
  88. package/dist/components/page-calendar/page-calendar.types.d.ts +18 -0
  89. package/dist/components/page-calendar/page-calendar.types.d.ts.map +1 -0
  90. package/dist/components/page-calendar/page-calendar.types.js +1 -0
  91. package/dist/components/page-calendar/page-calendar.utils.d.ts +18 -0
  92. package/dist/components/page-calendar/page-calendar.utils.d.ts.map +1 -0
  93. package/dist/components/page-calendar/page-calendar.utils.js +71 -0
  94. package/dist/components/page-calendar/week-view.d.ts +11 -0
  95. package/dist/components/page-calendar/week-view.d.ts.map +1 -0
  96. package/dist/components/page-calendar/week-view.jsx +64 -0
  97. package/dist/components/table/filter.jsx +4 -4
  98. package/dist/components/table/index.d.ts.map +1 -1
  99. package/dist/components/table/index.jsx +10 -10
  100. package/dist/components/table/inner-table.d.ts.map +1 -1
  101. package/dist/components/table/inner-table.jsx +18 -18
  102. package/dist/components/table/metadata.d.ts.map +1 -1
  103. package/dist/components/table/metadata.jsx +29 -30
  104. package/dist/components/table/pagination.jsx +1 -1
  105. package/dist/components/table/row.d.ts.map +1 -1
  106. package/dist/components/table/row.jsx +17 -17
  107. package/dist/components/table/sort.jsx +1 -1
  108. package/dist/components/table/table-lib.d.ts.map +1 -1
  109. package/dist/components/table/table-lib.js +1 -2
  110. package/dist/components/table/thead.d.ts.map +1 -1
  111. package/dist/components/table/thead.jsx +6 -6
  112. package/dist/config/context.d.ts.map +1 -1
  113. package/dist/config/default-translations.d.ts +17 -0
  114. package/dist/config/default-translations.d.ts.map +1 -1
  115. package/dist/config/default-translations.jsx +18 -1
  116. package/dist/constants.d.ts.map +1 -1
  117. package/dist/hooks/use-components-provider.d.ts.map +1 -1
  118. package/dist/hooks/use-components-provider.jsx +4 -1
  119. package/dist/hooks/use-form.d.ts +11 -11
  120. package/dist/hooks/use-form.d.ts.map +1 -1
  121. package/dist/hooks/use-form.js +1 -0
  122. package/dist/hooks/use-input-id.d.ts.map +1 -1
  123. package/dist/hooks/use-is-coarse-device.js +1 -1
  124. package/dist/hooks/use-preferences.d.ts.map +1 -1
  125. package/dist/hooks/use-previous.d.ts.map +1 -1
  126. package/dist/hooks/use-previous.js +1 -0
  127. package/dist/hooks/use-reactive.d.ts.map +1 -1
  128. package/dist/hooks/use-reactive.js +1 -0
  129. package/dist/hooks/use-resize-observer.d.ts.map +1 -1
  130. package/dist/hooks/use-stable-ref.d.ts.map +1 -1
  131. package/dist/hooks/use-stable-ref.js +1 -0
  132. package/dist/hooks/use-swipe.d.ts.map +1 -1
  133. package/dist/hooks/use-swipe.js +1 -0
  134. package/dist/hooks/use-translations.d.ts +17 -0
  135. package/dist/hooks/use-translations.d.ts.map +1 -1
  136. package/dist/index.css +1 -0
  137. package/dist/index.d.ts.map +1 -1
  138. package/dist/index.js.map +1 -1
  139. package/dist/index.mjs +13689 -12344
  140. package/dist/index.mjs.map +1 -1
  141. package/dist/index.umd.js +24 -17
  142. package/dist/index.umd.js.map +1 -1
  143. package/dist/lib/dom.d.ts +1 -0
  144. package/dist/lib/dom.d.ts.map +1 -1
  145. package/dist/lib/dom.js +20 -2
  146. package/dist/lib/fns.d.ts.map +1 -1
  147. package/dist/lib/fns.js +2 -2
  148. package/dist/preset/plugin.tailwind.d.ts +9 -0
  149. package/dist/preset/plugin.tailwind.d.ts.map +1 -0
  150. package/dist/preset/plugin.tailwind.js +27 -0
  151. package/dist/preset/preset.tailwind.d.ts +8 -0
  152. package/dist/preset/preset.tailwind.d.ts.map +1 -0
  153. package/dist/preset/preset.tailwind.js +54 -0
  154. package/dist/preset/src/styles/common.d.ts +2 -14
  155. package/dist/preset/src/styles/common.d.ts.map +1 -1
  156. package/dist/preset/src/styles/common.js +1 -0
  157. package/dist/preset/src/styles/dark.d.ts.map +1 -1
  158. package/dist/preset/src/styles/dark.js +119 -114
  159. package/dist/preset/src/styles/light.d.ts.map +1 -1
  160. package/dist/preset/src/styles/light.js +111 -106
  161. package/dist/preset/src/styles/theme.types.d.ts +17 -8
  162. package/dist/preset/src/styles/theme.types.d.ts.map +1 -1
  163. package/dist/styles/common.d.ts +2 -14
  164. package/dist/styles/common.d.ts.map +1 -1
  165. package/dist/styles/common.js +1 -0
  166. package/dist/styles/dark.d.ts.map +1 -1
  167. package/dist/styles/dark.js +119 -114
  168. package/dist/styles/light.d.ts.map +1 -1
  169. package/dist/styles/light.js +111 -106
  170. package/dist/styles/theme.types.d.ts +17 -8
  171. package/dist/styles/theme.types.d.ts.map +1 -1
  172. package/package.json +299 -301
  173. package/dist/preset/tailwindcssv4.d.ts +0 -3
  174. package/dist/preset/tailwindcssv4.d.ts.map +0 -1
  175. package/dist/preset/tailwindcssv4.js +0 -75
package/dist/lib/dom.d.ts CHANGED
@@ -15,4 +15,5 @@ export declare const getCoords: (elem: HTMLElement, docEl: HTMLElement) => {
15
15
  top: number;
16
16
  left: number;
17
17
  };
18
+ export declare const isChildVisible: (container: HTMLElement, child: HTMLElement, partial?: boolean) => boolean;
18
19
  //# sourceMappingURL=dom.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../src/lib/dom.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,MAAM,CAAC;AACxC,OAAO,KAAK,EAAE,EAAE,GAAG,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAI3D,eAAO,MAAM,SAAS,GACjB,CAAC,EAAE,GAAG,MAAM,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,KAAG,WAAW,CAAC,CAAC,CAS3E,CAAC;AAEN,eAAO,MAAM,gBAAgB,GAAI,GAAG,GAAG,KAAG,CAAC,IAAI,KAAK,CAAC,YAQpD,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,GAAG,GAAG,gCAAmB,CAAC;AAEpD,eAAO,MAAM,GAAG,GAAI,GAAG,QAAQ,UAAU,EAAE,WAA0B,CAAC;AAEtE,eAAO,MAAM,aAAa,GAAI,OAAO,gBAAgB,GAAG,SAAS,GAAG,IAAI;;;CAIvE,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,OAAO,gBAAgB,GAAG,mBAAmB,GAAG,iBAAiB,eAIvG,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,aAAa,WAAW,YAAwD,CAAC;AAEnH,eAAO,MAAM,gBAAgB,GAAI,SAAS,WAAW,EAAE,YAAY,MAAM,WAGxE,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,MAAM,WAAW,EAAE,OAAO,WAAW;;;CAI9D,CAAC"}
1
+ {"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../src/lib/dom.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,MAAM,CAAC;AACxC,OAAO,KAAK,EAAE,EAAE,GAAG,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAI3D,eAAO,MAAM,SAAS,GACjB,CAAC,EAAE,GAAG,MAAM,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,KAAG,WAAW,CAAC,CAAC,CAS3E,CAAC;AAEN,eAAO,MAAM,gBAAgB,GAAI,GAAG,GAAG,KAAG,CAAC,IAAI,KAAK,CAAC,YAQpD,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,GAAG,GAAG,gCAAmB,CAAC;AAEpD,eAAO,MAAM,GAAG,GAAI,GAAG,QAAQ,UAAU,EAAE,WAA0B,CAAC;AAEtE,eAAO,MAAM,aAAa,GAAI,OAAO,gBAAgB,GAAG,SAAS,GAAG,IAAI;;;CAIvE,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,OAAO,gBAAgB,GAAG,mBAAmB,GAAG,iBAAiB,eAIvG,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,aAAa,WAAW,YAAwD,CAAC;AAEnH,eAAO,MAAM,gBAAgB,GAAI,SAAS,WAAW,EAAE,YAAY,MAAM,WAMxE,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,MAAM,WAAW,EAAE,OAAO,WAAW;;;CAI9D,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,WAAW,WAAW,EAAE,OAAO,WAAW,EAAE,UAAS,OAAc,KAAG,OAgBpG,CAAC"}
package/dist/lib/dom.js CHANGED
@@ -34,11 +34,29 @@ export const initializeInputDataset = (input) => {
34
34
  };
35
35
  export const hasVerticalScroll = (htmlElement) => htmlElement.scrollHeight > htmlElement.clientHeight;
36
36
  export const getRemainingSize = (element, windowSize) => {
37
- const rect = element.getBoundingClientRect();
38
- return Math.abs(windowSize - rect.bottom);
37
+ if (element && element.getBoundingClientRect) {
38
+ const rect = element.getBoundingClientRect();
39
+ return Math.abs(windowSize - rect.bottom);
40
+ }
41
+ return 320;
39
42
  };
40
43
  export const getCoords = (elem, docEl) => {
41
44
  const box = elem.getBoundingClientRect();
42
45
  const parent = docEl.getBoundingClientRect();
43
46
  return { top: Math.round(box.top - parent.top), left: Math.round(box.left - parent.left) };
44
47
  };
48
+ export const isChildVisible = (container, child, partial = true) => {
49
+ const containerRect = container.getBoundingClientRect();
50
+ const childRect = child.getBoundingClientRect();
51
+ const isWithinTop = childRect.top >= containerRect.top;
52
+ const isWithinBottom = childRect.bottom <= containerRect.bottom;
53
+ const isWithinLeft = childRect.left >= containerRect.left;
54
+ const isWithinRight = childRect.right <= containerRect.right;
55
+ if (partial) {
56
+ return (childRect.top < containerRect.bottom &&
57
+ childRect.bottom > containerRect.top &&
58
+ childRect.left < containerRect.right &&
59
+ childRect.right > containerRect.left);
60
+ }
61
+ return isWithinTop && isWithinBottom && isWithinLeft && isWithinRight;
62
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"fns.d.ts","sourceRoot":"","sources":["../../src/lib/fns.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAE/B,eAAO,MAAM,IAAI,QAAO,MAkBvB,CAAA;AAUD,eAAO,MAAM,IAAI,GAAI,CAAC,SAAS,GAAG,EAAE,CAAC,SAAS,QAAQ,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,oBAGzE,CAAC;AAEF,eAAO,MAAM,KAAK,eAAsC,CAAC;AAEzD,eAAO,MAAM,SAAS,GAAI,QAAQ,MAAM,WAAkD,CAAC;AAE3F,eAAO,MAAM,SAAS,GAAI,CAAC,EAAE,OAAO,CAAC,EAAE,EAAE,MAAM,MAAM,UAQpD,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,GAAG,OAAO,YAAO,CAAC;AAEzC,eAAO,MAAM,IAAI,YAAY,CAAC;AAE9B,eAAO,MAAM,QAAQ,eAGpB,CAAA"}
1
+ {"version":3,"file":"fns.d.ts","sourceRoot":"","sources":["../../src/lib/fns.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAE/B,eAAO,MAAM,IAAI,QAAO,MAkBvB,CAAC;AAUF,eAAO,MAAM,IAAI,GAAI,CAAC,SAAS,GAAG,EAAE,CAAC,SAAS,QAAQ,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,oBAGzE,CAAC;AAEF,eAAO,MAAM,KAAK,eAAsC,CAAC;AAEzD,eAAO,MAAM,SAAS,GAAI,QAAQ,MAAM,WAAkD,CAAC;AAE3F,eAAO,MAAM,SAAS,GAAI,CAAC,EAAE,OAAO,CAAC,EAAE,EAAE,MAAM,MAAM,UAQpD,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,GAAG,OAAO,YAAO,CAAC;AAEzC,eAAO,MAAM,IAAI,YAAW,CAAC;AAE7B,eAAO,MAAM,QAAQ,eAGpB,CAAC"}
package/dist/lib/fns.js CHANGED
@@ -13,8 +13,8 @@ export const uuid = () => {
13
13
  bytes[6] = (bytes[6] & 0x0f) | 0x70;
14
14
  bytes[8] = (bytes[8] & 0x3f) | 0x80;
15
15
  const hex = Array.from(bytes)
16
- .map(b => b.toString(16).padStart(2, '0'))
17
- .join('');
16
+ .map((b) => b.toString(16).padStart(2, "0"))
17
+ .join("");
18
18
  return `${hex.slice(0, 8)}-${hex.slice(8, 12)}-${hex.slice(12, 16)}-${hex.slice(16, 20)}-${hex.slice(20)}`;
19
19
  };
20
20
  const travel = (path, regexp, obj) => path
@@ -0,0 +1,9 @@
1
+ declare const plugin: {
2
+ (options: unknown): {
3
+ handler: import("tailwindcss/types/config").PluginCreator;
4
+ config?: Partial<import("tailwindcss/types/config").Config>;
5
+ };
6
+ __isOptionsFunction: true;
7
+ };
8
+ export default plugin;
9
+ //# sourceMappingURL=plugin.tailwind.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.tailwind.d.ts","sourceRoot":"","sources":["../../plugin.tailwind.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,MAAM;;;cAIoB,CAAC;;;CAiBhC,CAAA;AAED,eAAe,MAAM,CAAA"}
@@ -0,0 +1,27 @@
1
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
+ return cooked;
4
+ };
5
+ import { withOptions } from "tailwindcss/plugin";
6
+ var css = String.raw;
7
+ var plugin = withOptions(function () {
8
+ return function (_a) {
9
+ var addVariant = _a.addVariant;
10
+ addVariant("hocus", ["&:hover", "&:focus"]);
11
+ addVariant("link", ["&:hover", "&:active"]);
12
+ addVariant("group-assert", [css(templateObject_1 || (templateObject_1 = __makeTemplateObject([":merge(.group):valid:has(.input:valid:not(:placeholder-shown)) &"], [":merge(.group):valid:has(.input:valid:not(:placeholder-shown)) &"])))]);
13
+ addVariant("group-checkbox-checked", [css(templateObject_2 || (templateObject_2 = __makeTemplateObject([":merge(&:has(.form-checkbox[type=\"checkbox\"]:checked))"], [":merge(&:has(.form-checkbox[type=\"checkbox\"]:checked))"])))]);
14
+ addVariant("group-error", [
15
+ css(templateObject_3 || (templateObject_3 = __makeTemplateObject([":merge(.group):invalid:has(.input:not(:focus):invalid[data-initialized=true]) &"], [":merge(.group):invalid:has(.input:not(:focus):invalid[data-initialized=true]) &"]))),
16
+ css(templateObject_4 || (templateObject_4 = __makeTemplateObject([":merge(.group[data-error=true]:has(.input[data-initialized=true])) &"], [":merge(.group[data-error=true]:has(.input[data-initialized=true])) &"]))),
17
+ css(templateObject_5 || (templateObject_5 = __makeTemplateObject([":merge(.group[data-error=true][data-interactive=true]):has(.input) &"], [":merge(.group[data-error=true][data-interactive=true]):has(.input) &"]))),
18
+ css(templateObject_6 || (templateObject_6 = __makeTemplateObject([":merge(.group[data-error=true][data-interactive=true]):has(.input[data-initialized=true]) &"], [":merge(.group[data-error=true][data-interactive=true]):has(.input[data-initialized=true]) &"]))),
19
+ ]);
20
+ };
21
+ }, function () {
22
+ return {
23
+ theme: {},
24
+ };
25
+ });
26
+ export default plugin;
27
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
@@ -0,0 +1,8 @@
1
+ import { Config } from "tailwindcss";
2
+ import { createDesignTokens, parsers } from "./src/styles/design-tokens";
3
+ import { defaultLightTheme as theme } from "./src/styles/theme";
4
+ import customPlugins from "./plugin.tailwind";
5
+ declare const config: Partial<Config>;
6
+ export { createDesignTokens, parsers, theme, config, customPlugins };
7
+ export default config;
8
+ //# sourceMappingURL=preset.tailwind.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset.tailwind.d.ts","sourceRoot":"","sources":["../../preset.tailwind.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,iBAAiB,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,aAAa,MAAM,mBAAmB,CAAC;AAQ9C,QAAA,MAAM,MAAM,EAAE,OAAO,CAAC,MAAM,CAiC3B,CAAC;AAEF,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,CAAC;AAErE,eAAe,MAAM,CAAC"}
@@ -0,0 +1,54 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import forms from "@tailwindcss/forms";
13
+ import { createDesignTokens, parsers } from "./src/styles/design-tokens";
14
+ import { defaultLightTheme as theme } from "./src/styles/theme";
15
+ import customPlugins from "./plugin.tailwind";
16
+ var COLORS = createDesignTokens(theme.colors, parsers.formatWithVar("hsla"));
17
+ var spacing = createDesignTokens(theme.spacing, parsers.cssVariable);
18
+ var shadows = createDesignTokens(theme.shadow, parsers.cssVariable);
19
+ var config = {
20
+ theme: {
21
+ extend: {
22
+ transitionTimingFunction: {
23
+ DEFAULT: "cubic-bezier(0,0,.58,1)",
24
+ normal: "cubic-bezier(.25,.1,.25,1)",
25
+ },
26
+ spacing: spacing,
27
+ fill: COLORS,
28
+ colors: COLORS,
29
+ width: spacing,
30
+ fontSize: spacing,
31
+ boxShadow: shadows,
32
+ dropShadow: shadows,
33
+ lineHeight: { typography: "1.45" },
34
+ letterSpacing: { typography: "0.0175" },
35
+ placeholderColor: COLORS,
36
+ transitionDuration: { DEFAULT: "375ms" },
37
+ minWidth: { xs: "20rem", screen: "100vh" },
38
+ borderColors: __assign(__assign({}, COLORS), { DEFAULT: COLORS.card.border }),
39
+ borderRadius: createDesignTokens(theme.rounded, parsers.cssVariable),
40
+ zIndex: {
41
+ wizard: "var(--z-wizard)",
42
+ navbar: "var(--z-navbar)",
43
+ normal: "var(--z-normal)",
44
+ overlay: "var(--z-overlay)",
45
+ tooltip: "var(--z-tooltip)",
46
+ calendar: "var(--z-calendar)",
47
+ floating: "var(--z-floating)",
48
+ },
49
+ }
50
+ },
51
+ plugins: [forms({ strategy: "class" }), customPlugins],
52
+ };
53
+ export { createDesignTokens, parsers, theme, config, customPlugins };
54
+ export default config;
@@ -1,22 +1,10 @@
1
- import { ZIndex } from "./theme.types";
1
+ import { DesignTokens, ZIndex } from "./theme.types";
2
2
  export declare const rounded: {
3
3
  readonly button: "0.55rem";
4
4
  readonly pill: "2rem";
5
5
  readonly card: "0.75rem";
6
6
  readonly full: "9999px";
7
7
  };
8
- export declare const spacing: {
9
- readonly base: "1rem";
10
- readonly hairline: "0.0625rem";
11
- readonly lg: "1.125rem";
12
- readonly sm: "0.75rem";
13
- readonly "field-height": "1.5rem";
14
- readonly "field-label": "0.875rem";
15
- readonly "input-height": "2.5rem";
16
- readonly "input-x": "0.5rem";
17
- readonly "input-y": "0.25rem";
18
- readonly "input-inline": "0.25rem";
19
- readonly "input-gap": "0.3rem";
20
- };
8
+ export declare const spacing: DesignTokens["spacing"];
21
9
  export declare const zIndex: ZIndex;
22
10
  //# sourceMappingURL=common.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../src/styles/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,eAAO,MAAM,OAAO;;;;;CAKV,CAAC;AAEX,eAAO,MAAM,OAAO;;;;;;;;;;;;CAYV,CAAC;AAEX,eAAO,MAAM,MAAM,EAAE,MAQX,CAAC"}
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../src/styles/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAErD,eAAO,MAAM,OAAO;;;;;CAKV,CAAC;AAEX,eAAO,MAAM,OAAO,EAAE,YAAY,CAAC,SAAS,CAalC,CAAC;AAEX,eAAO,MAAM,MAAM,EAAE,MAQX,CAAC"}
@@ -9,6 +9,7 @@ export var spacing = {
9
9
  hairline: "0.0625rem",
10
10
  lg: "1.125rem",
11
11
  sm: "0.75rem",
12
+ dialog: "20rem",
12
13
  "field-height": "1.5rem",
13
14
  "field-label": "0.875rem",
14
15
  "input-height": "2.5rem",
@@ -1 +1 @@
1
- {"version":3,"file":"dark.d.ts","sourceRoot":"","sources":["../../../../src/styles/dark.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,eAAO,MAAM,UAAU,EAAE,YA+MxB,CAAC"}
1
+ {"version":3,"file":"dark.d.ts","sourceRoot":"","sources":["../../../../src/styles/dark.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,eAAO,MAAM,UAAU,EAAE,YAoNxB,CAAC"}
@@ -11,198 +11,203 @@ export var DARK_THEME = {
11
11
  "shadow-table": "0px 1px 1px 1px hsla(210, 25%, 20%, 0.1)",
12
12
  },
13
13
  colors: {
14
- foreground: "hsla(210, 50%, 98%)",
15
- background: "hsla(0, 0%, 9%)",
16
- border: "hsla(240, 7%, 27%)",
17
- muted: "hsla(210, 10%, 40%)",
18
- disabled: "hsla(240, 4%, 33%)",
14
+ foreground: "hsla(240, 5%, 96%)",
15
+ background: "hsla(240, 10%, 8%)",
16
+ border: "hsla(240, 4%, 16%)",
17
+ disabled: "hsla(240, 4%, 16%)",
18
+ muted: {
19
+ DEFAULT: "hsla(240, 4%, 16%)",
20
+ foreground: "hsla(240, 5%, 65%)",
21
+ subtle: "hsla(240, 5%, 65%)",
22
+ hover: "hsla(240, 4%, 20%)",
23
+ },
19
24
  emphasis: {
20
- foreground: "hsla(251, 91%, 95%)",
21
- DEFAULT: "hsla(255, 92%, 76%)",
22
- subtle: "hsla(252, 95%, 85%)",
23
- hover: "hsla(262, 83%, 58%)",
25
+ foreground: "hsla(199, 89%, 48%)",
26
+ DEFAULT: "hsla(199, 89%, 10%)",
27
+ subtle: "hsla(199, 89%, 15%)",
28
+ hover: "hsla(199, 89%, 40%)",
24
29
  },
25
30
  primary: {
26
- foreground: "hsla(210, 40%, 98%)",
27
- DEFAULT: "hsla(200,98%,39%)",
28
- subtle: "hsla(199, 95%, 87%)",
29
- hover: "hsla(199, 97%, 40%)",
31
+ foreground: "hsla(240, 6%, 10%)",
32
+ DEFAULT: "hsla(201,49%,54%)",
33
+ subtle: "hsla(201,49%,36%)",
34
+ hover: "hsla(201,49%,22%)",
30
35
  },
31
36
  secondary: {
32
- DEFAULT: "hsla(210, 32%, 70%)",
33
- background: "hsla(210, 30%, 81%)",
34
- subtle: "hsla(210, 27%, 88%)",
35
- hover: "hsla(210, 10%, 58%)",
36
- foreground: "hsla(210, 20%, 30%)",
37
+ DEFAULT: "hsla(240, 5%, 96%)",
38
+ background: "hsla(240, 4%, 16%)",
39
+ subtle: "hsla(240, 4%, 20%)",
40
+ hover: "hsla(240, 4%, 25%)",
41
+ foreground: "hsla(240, 5%, 96%)",
37
42
  },
38
43
  info: {
39
- DEFAULT: "hsla(219, 91%, 59%)",
40
- subtle: "hsla(219, 93%, 77%)",
41
- hover: "hsla(219, 83%, 41%)",
42
- foreground: "hsla(210, 40%, 98%)",
43
- notification: "hsla(219, 91%, 59%)",
44
- },
45
- warn: {
46
- DEFAULT: "hsla(27, 96%, 61%)",
47
- subtle: "hsla(45, 95%, 66%)",
48
- hover: "hsla(21, 90%, 48%)",
49
- foreground: "hsla(210, 40%, 98%)",
50
- notification: "hsla(32, 65%, 75%)",
44
+ DEFAULT: "hsla(199, 89%, 48%)",
45
+ subtle: "hsla(199, 89%, 15%)",
46
+ hover: "hsla(199, 89%, 40%)",
47
+ foreground: "hsla(0, 0%, 100%)",
48
+ notification: "hsla(199, 89%, 48%)",
51
49
  },
52
50
  danger: {
53
- DEFAULT: "hsla(358, 65%, 57%)",
54
- subtle: "hsla(0, 94%, 81%)",
55
- hover: "hsla(0, 82%, 47%)",
56
- foreground: "hsla(210, 40%, 98%)",
57
- notification: "hsla(358, 40%, 23%)",
51
+ DEFAULT: "hsla(0, 84%, 60%)",
52
+ subtle: "hsla(0, 84%, 15%)",
53
+ hover: "hsla(0, 84%, 50%)",
54
+ foreground: "hsla(0, 0%, 100%)",
55
+ notification: "hsla(0, 84%, 60%)",
56
+ },
57
+ warn: {
58
+ DEFAULT: "hsla(38, 92%, 50%)",
59
+ subtle: "hsla(38, 92%, 15%)",
60
+ hover: "hsla(38, 92%, 45%)",
61
+ foreground: "hsla(240, 10%, 4%)",
62
+ notification: "hsla(38, 92%, 50%)",
58
63
  },
59
64
  success: {
60
- DEFAULT: "hsla(160, 73%, 36%)",
61
- subtle: "hsla(160, 75%, 75%)",
62
- hover: "hsla(160, 91%, 27%)",
63
- foreground: "hsla(160, 91%, 50%)",
64
- notification: "hsla(160,90%,5%)",
65
+ DEFAULT: "hsla(142, 71%, 45%)",
66
+ subtle: "hsla(142, 71%, 15%)",
67
+ hover: "hsla(142, 71%, 40%)",
68
+ foreground: "hsla(240, 10%, 4%)",
69
+ notification: "hsla(142, 71%, 45%)",
65
70
  },
66
71
  input: {
67
- border: "hsla(240, 4%, 25%)",
68
- placeholder: "hsla(210, 24%, 71%)",
69
- "mask-error": "hsla(0, 94%, 81%)",
70
- "switch-bg": "hsla(0, 0%, 9%)",
72
+ border: "hsla(240, 4%, 16%)",
73
+ placeholder: "hsla(240, 5%, 65%)",
74
+ "mask-error": "hsla(0, 84%, 20%)",
75
+ "switch-bg": "hsla(240, 4%, 16%)",
71
76
  switch: "hsla(0, 0%, 100%)",
72
77
  slider: "hsla(0, 0%, 100%)",
73
78
  },
74
79
  card: {
75
- muted: "hsla(0, 0%, 22%)",
76
- border: "hsla(240, 7%, 20%)",
77
- background: "hsla(0, 0%, 15%)",
80
+ muted: "hsla(240, 4%, 10%)",
81
+ border: "hsla(240, 4%, 11%)",
82
+ background: "hsla(221, 16%, 9%)",
78
83
  },
79
84
  floating: {
80
- foreground: "hsla(210, 40%, 98%)",
81
- background: "hsla(219, 15%, 12%)",
82
- hover: "hsla(221, 10%, 22%)",
83
- border: "hsla(240, 7%, 17%)",
85
+ foreground: "hsla(240, 5%, 96%)",
86
+ background: "hsla(240, 10%, 8%)",
87
+ hover: "hsla(240, 4%, 16%)",
88
+ border: "hsla(240, 4%, 16%)",
84
89
  overlay: "hsla(0, 0%, 0%)",
85
90
  },
86
91
  tooltip: {
87
- foreground: "hsla(210, 40%, 98%)",
88
- background: "hsla(221, 5%, 15%)",
89
- hover: "hsla(221, 10%, 35%)",
90
- border: "hsla(0, 0%, 19%)",
92
+ foreground: "hsla(240, 10%, 4%)",
93
+ background: "hsla(0, 0%, 100%)",
94
+ hover: "hsla(0, 0%, 100%)",
95
+ border: "hsla(0, 0%, 100%)",
91
96
  overlay: "hsla(0, 0%, 0%)",
92
97
  },
93
98
  table: {
94
- header: "hsla(0, 0%, 12%)",
95
- border: "hsla(240, 4%, 20%)",
96
- background: "hsla(0, 0%, 15%)",
99
+ header: "hsla(240, 4%, 10%)",
100
+ border: "hsla(240, 4%, 16%)",
101
+ background: "hsla(240, 10%, 4%)",
97
102
  },
98
103
  button: {
99
104
  primary: {
100
- text: "hsla(200,98%,60%)",
101
- bg: "hsla(200,28%,19%)",
105
+ text: "hsla(221, 52%, 100%)",
106
+ bg: "hsla(201,49%,42%)",
102
107
  },
103
108
  warn: {
104
- text: "hsla(26,100%,67%)",
105
- bg: "hsla(37,100%,15%)",
109
+ text: "hsla(240, 10%, 4%)",
110
+ bg: "hsla(38, 92%, 50%)",
106
111
  },
107
112
  info: {
108
- text: "hsla(200,80%,70%)",
109
- bg: "hsla(206,66%,24%)",
113
+ text: "hsla(0, 0%, 100%)",
114
+ bg: "hsla(199, 89%, 48%)",
110
115
  },
111
116
  success: {
112
- text: "hsla(151,65%,54%)",
113
- bg: "hsla(154,52%,19%)",
117
+ text: "hsla(240, 10%, 4%)",
118
+ bg: "hsla(142, 71%, 45%)",
114
119
  },
115
120
  danger: {
116
- text: "hsla(2,100%,90%)",
117
- bg: "hsla(5,62%,23%)",
121
+ text: "hsla(0, 0%, 100%)",
122
+ bg: "hsla(0, 84%, 60%)",
118
123
  },
119
124
  muted: {
120
- text: "hsla(0, 100%, 100%)",
121
- bg: "hsla(0, 0%, 12%)",
125
+ text: "hsla(240, 5%, 96%)",
126
+ bg: "hsla(240, 4%, 16%)",
122
127
  },
123
128
  neutral: {
124
- text: "hsla(200,98%,60%)",
125
- bg: "hsla(200,28%,19%)",
129
+ text: "hsla(240, 5%, 96%)",
130
+ bg: "hsla(240, 4%, 16%)",
126
131
  },
127
132
  secondary: {
128
- text: "hsla(216,10%,90%)",
129
- bg: "hsla(214,7%,19%)",
133
+ text: "hsla(240, 10%, 4%)",
134
+ bg: "hsla(0, 0%, 100%)",
130
135
  },
131
136
  },
132
137
  tag: {
133
138
  primary: {
134
- text: "hsla(200,98%,60%)",
135
- bg: "hsla(200,28%,19%)",
139
+ text: "hsla(0, 0%, 100%)",
140
+ bg: "hsla(240, 4%, 20%)",
136
141
  },
137
142
  warn: {
138
- text: "hsla(26,100%,67%)",
139
- bg: "hsla(37,100%,15%)",
143
+ text: "hsla(38, 92%, 70%)",
144
+ bg: "hsla(38, 92%, 15%)",
140
145
  },
141
146
  info: {
142
- text: "hsla(200,80%,70%)",
143
- bg: "hsla(206,66%,24%)",
147
+ text: "hsla(199, 89%, 70%)",
148
+ bg: "hsla(199, 89%, 15%)",
144
149
  },
145
150
  success: {
146
- text: "hsla(151,65%,54%)",
147
- bg: "hsla(154,52%,19%)",
151
+ text: "hsla(142, 71%, 70%)",
152
+ bg: "hsla(142, 71%, 15%)",
148
153
  },
149
154
  danger: {
150
- text: "hsla(2,100%,79%)",
151
- bg: "hsla(5,62%,23%)",
155
+ text: "hsla(0, 84%, 70%)",
156
+ bg: "hsla(0, 84%, 15%)",
152
157
  },
153
158
  neutral: {
154
- text: "hsla(200,98%,60%)",
155
- bg: "hsla(200,28%,19%)",
159
+ text: "hsla(240, 5%, 96%)",
160
+ bg: "hsla(240, 4%, 16%)",
156
161
  },
157
162
  secondary: {
158
- text: "hsla(216,10%,90%)",
159
- bg: "hsla(214,7%,19%)",
163
+ text: "hsla(240, 10%, 4%)",
164
+ bg: "hsla(0, 0%, 100%)",
160
165
  },
161
166
  muted: {
162
- text: "hsla(0, 100%, 100%)",
163
- bg: "hsla(0, 0%, 12%)",
167
+ text: "hsla(240, 5%, 96%)",
168
+ bg: "hsla(240, 4%, 16%)",
164
169
  },
165
170
  },
166
171
  alert: {
167
172
  primary: {
168
- text: "hsla(210,100%,72%)",
169
- border: "hsla(212,69%,16%)",
170
- bg: "hsla(215,42%,9%)",
173
+ text: "hsla(199, 89%, 80%)",
174
+ border: "hsla(199, 89%, 25%)",
175
+ bg: "hsla(199, 89%, 12%)",
171
176
  },
172
177
  warn: {
173
- bg: "hsla(28,33%,9%)",
174
- border: "hsla(29,65%,12%)",
175
- text: "hsla(27,100%,78%)",
178
+ bg: "hsla(38, 92%, 12%)",
179
+ border: "hsla(38, 92%, 25%)",
180
+ text: "hsla(38, 92%, 80%)",
176
181
  },
177
182
  info: {
178
- text: "hsla(253,100%,83%)",
179
- bg: "hsla(263,28%,11%)",
180
- border: "hsla(252,34%,51%)",
183
+ text: "hsla(199, 89%, 80%)",
184
+ bg: "hsla(199, 89%, 12%)",
185
+ border: "hsla(199, 89%, 25%)",
181
186
  },
182
187
  success: {
183
- text: "hsla(144,79%,79%)",
184
- bg: "hsla(153,20%,9%)",
185
- border: "hsla(144,70%,14%)",
188
+ text: "hsla(142, 71%, 80%)",
189
+ bg: "hsla(142, 71%, 12%)",
190
+ border: "hsla(142, 71%, 25%)",
186
191
  },
187
192
  danger: {
188
- text: "hsla(350,100%,91%)",
189
- bg: "hsla(355,25%,15%)",
190
- border: "hsla(355,25%,10%)",
193
+ text: "hsla(0, 84%, 80%)",
194
+ bg: "hsla(0, 84%, 12%)",
195
+ border: "hsla(0, 84%, 25%)",
191
196
  },
192
197
  neutral: {
193
- text: "hsla(200,98%,60%)",
194
- bg: "hsla(200,28%,19%)",
195
- border: "hsla(200,90%,89%)",
198
+ text: "hsla(240, 5%, 96%)",
199
+ bg: "hsla(240, 4%, 16%)",
200
+ border: "hsla(240, 4%, 20%)",
196
201
  },
197
202
  secondary: {
198
- text: "hsla(220,9%,94%)",
199
- bg: "hsla(220,6%,10%)",
200
- border: "hsla(214,7%,19%)",
203
+ text: "hsla(240, 10%, 4%)",
204
+ bg: "hsla(0, 0%, 100%)",
205
+ border: "hsla(0, 0%, 100%)",
201
206
  },
202
207
  muted: {
203
- bg: "hsla(0, 0%, 12%)",
204
- border: "hsla(0, 0%, 40%)",
205
- text: "hsla(0, 100%, 100%)",
208
+ bg: "hsla(240, 4%, 16%)",
209
+ border: "hsla(240, 4%, 20%)",
210
+ text: "hsla(240, 5%, 96%)",
206
211
  },
207
212
  },
208
213
  },
@@ -1 +1 @@
1
- {"version":3,"file":"light.d.ts","sourceRoot":"","sources":["../../../../src/styles/light.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,eAAO,MAAM,WAAW,EAAE,YA+MzB,CAAC"}
1
+ {"version":3,"file":"light.d.ts","sourceRoot":"","sources":["../../../../src/styles/light.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,eAAO,MAAM,WAAW,EAAE,YAoNzB,CAAC"}