@ed.yakovich/component-library 0.0.11 → 0.0.12

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 (46) hide show
  1. package/dist/components/InfoBanner/index.js +23 -4
  2. package/dist/main.js +1 -1
  3. package/package.json +2 -5
  4. package/dist/index-0d8e0844-BJzWsYCM.js +0 -7403
  5. package/dist/index-By9FNwDt.js +0 -29159
  6. package/dist/index-b30029d4-WVn-64c9.js +0 -12
  7. package/dist/index-e6818ded-r_t6ryaW.js +0 -57
  8. package/dist/index.esm-322571ff-D1REhsOg.js +0 -41
  9. package/dist/prism-accordion.entry-Cx9R3pGR.js +0 -51
  10. package/dist/prism-avatar_2.entry-BYgG-lCw.js +0 -68
  11. package/dist/prism-badge.entry-7tkOjkOC.js +0 -58
  12. package/dist/prism-banner.entry-jfMhWTJ-.js +0 -82
  13. package/dist/prism-breadcrumb.entry-6BKiTFvg.js +0 -33
  14. package/dist/prism-button_2.entry-DnnPRWBp.js +0 -110
  15. package/dist/prism-card.entry-CkJQnJF8.js +0 -119
  16. package/dist/prism-carousel.entry-CjyHpSoz.js +0 -3111
  17. package/dist/prism-checkbox-group.entry-h68bFMNT.js +0 -62
  18. package/dist/prism-checkbox.entry-BnqA0ld6.js +0 -99
  19. package/dist/prism-data-table.entry-CRJbrNmp.js +0 -10475
  20. package/dist/prism-datepicker.entry-Xu0QUY2Q.js +0 -249
  21. package/dist/prism-form.entry-BJl2ma6x.js +0 -42
  22. package/dist/prism-grid.entry-DIdkZa73.js +0 -28
  23. package/dist/prism-header.entry-BZVXHBCx.js +0 -202
  24. package/dist/prism-hero.entry-D6vT9Cfs.js +0 -23
  25. package/dist/prism-icon_2.entry-u0DT931p.js +0 -118
  26. package/dist/prism-image.entry-Db2L08jh.js +0 -38
  27. package/dist/prism-input-file.entry-NMZff8Re.js +0 -119
  28. package/dist/prism-input-otp.entry-qFelMElv.js +0 -63
  29. package/dist/prism-input-text.entry-YbQ3NQuB.js +0 -228
  30. package/dist/prism-input-textarea.entry-Bz7ecyna.js +0 -140
  31. package/dist/prism-layout.entry-DVLlE1S8.js +0 -20
  32. package/dist/prism-lineitem.entry-BOUyDMlc.js +0 -44
  33. package/dist/prism-menu.entry-TqJabKKs.js +0 -231
  34. package/dist/prism-modal.entry-CiIsey_Y.js +0 -94
  35. package/dist/prism-pagination.entry-BZOMunz-.js +0 -60
  36. package/dist/prism-popover.entry-Bt1uXSV9.js +0 -1013
  37. package/dist/prism-popper.entry-Ck2qBmqM.js +0 -959
  38. package/dist/prism-progress.entry-DobqcGx4.js +0 -79
  39. package/dist/prism-radio-group.entry-DTVEUN2r.js +0 -66
  40. package/dist/prism-radio.entry-D0dGSQn2.js +0 -101
  41. package/dist/prism-select.entry-CRYklxK0.js +0 -230
  42. package/dist/prism-switch.entry-CINfgY_6.js +0 -95
  43. package/dist/prism-tab.entry-dV7AljQC.js +0 -20
  44. package/dist/prism-tabs.entry-DPc_2ypT.js +0 -70
  45. package/dist/prism-tooltip.entry-DZJ2tfFV.js +0 -52
  46. package/dist/prism-typeahead.entry-DDkmHo72.js +0 -1234
@@ -1,6 +1,25 @@
1
- import "react/jsx-runtime";
2
- import { I as p } from "../../index-By9FNwDt.js";
3
- import "./context/index.js";
1
+ import { jsx as e, jsxs as f } from "react/jsx-runtime";
2
+ import { useInfoBannerContext as N } from "./context/index.js";
3
+ const C = (t) => {
4
+ const { isHidden: o, componentId: a = "", heading: c = "", description: r = "", icon: l = "" } = t, n = N(), h = n == null ? void 0 : n.isHidden, p = (n == null ? void 0 : n.icon) || "", m = (n == null ? void 0 : n.heading) || "", g = (n == null ? void 0 : n.description) || "", x = () => ({
5
+ isHiddenVal: h || o,
6
+ iconVal: p || l,
7
+ headingVal: m || c,
8
+ descriptionVal: g || r
9
+ }), { isHiddenVal: V, iconVal: i, headingVal: s, descriptionVal: d } = x();
10
+ return V ? null : /* @__PURE__ */ e(
11
+ "div",
12
+ {
13
+ "data-component-id": `InfoBanner--${a}`,
14
+ className: "bg-blue-500 p-4 text-white @container/infobanner",
15
+ children: /* @__PURE__ */ e("div", { className: "text-center", children: /* @__PURE__ */ f("div", { className: "space-y-1", children: [
16
+ i && /* @__PURE__ */ e("p", { children: i }),
17
+ s && /* @__PURE__ */ e("div", { className: "text-center @lg/infobanner:px-14", children: /* @__PURE__ */ e("h2", { className: "text-3xl", children: /* @__PURE__ */ e("strong", { children: s }) }) }),
18
+ d && /* @__PURE__ */ e("p", { className: "text-xs mb-2", children: /* @__PURE__ */ e("strong", { children: d }) })
19
+ ] }) })
20
+ }
21
+ );
22
+ };
4
23
  export {
5
- p as InfoBanner
24
+ C as InfoBanner
6
25
  };
package/dist/main.js CHANGED
@@ -1,4 +1,4 @@
1
- import { I as e } from "./index-By9FNwDt.js";
1
+ import { InfoBanner as e } from "./components/InfoBanner/index.js";
2
2
  import { InfoBannerContextProvider as t } from "./components/InfoBanner/context/index.js";
3
3
  import { StickyFooter as x } from "./components/StickyFooter/index.js";
4
4
  export {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "@ed.yakovich/component-library",
4
4
  "author": "Ed Yakovich",
5
5
  "private": false,
6
- "version": "0.0.11",
6
+ "version": "0.0.12",
7
7
  "type": "module",
8
8
  "exports": {
9
9
  ".": {
@@ -29,10 +29,7 @@
29
29
  },
30
30
  "peerDependencies": {
31
31
  "react": "^18.0.0 || ^19.0.0",
32
- "react-dom": "^18.0.0 || ^19.0.0",
33
- "tailwindcss": "^4",
34
- "@prism-ui/react": "^7.30.2",
35
- "@tanstack/react-router": "^1.143.3"
32
+ "react-dom": "^18.0.0 || ^19.0.0"
36
33
  },
37
34
  "devDependencies": {
38
35
  "@types/node": "^22.5.4",