@opensite/ui 2.9.7 → 2.9.9

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.
@@ -1,6 +1,7 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
+ var socialShare = require('@page-speed/social-share');
4
5
  var React = require('react');
5
6
  var dateFns = require('date-fns');
6
7
  var clsx = require('clsx');
@@ -1013,6 +1014,16 @@ function ArticleHeroProseComponent({
1013
1014
  ),
1014
1015
  children
1015
1016
  }
1017
+ ) }),
1018
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center py-24", children: /* @__PURE__ */ jsxRuntime.jsx(
1019
+ socialShare.SocialShare,
1020
+ {
1021
+ variant: "combo",
1022
+ postTitle: title && typeof title === "string" ? title : "",
1023
+ shareUrl: window?.location?.href,
1024
+ summaryContent: description && typeof description === "string" ? description : "",
1025
+ disableImageAttachments: true
1026
+ }
1016
1027
  ) })
1017
1028
  ]
1018
1029
  }
@@ -1,4 +1,5 @@
1
1
  "use client";
2
+ import { SocialShare } from '@page-speed/social-share';
2
3
  import * as React from 'react';
3
4
  import React__default from 'react';
4
5
  import { format } from 'date-fns';
@@ -991,6 +992,16 @@ function ArticleHeroProseComponent({
991
992
  ),
992
993
  children
993
994
  }
995
+ ) }),
996
+ /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center py-24", children: /* @__PURE__ */ jsx(
997
+ SocialShare,
998
+ {
999
+ variant: "combo",
1000
+ postTitle: title && typeof title === "string" ? title : "",
1001
+ shareUrl: window?.location?.href,
1002
+ summaryContent: description && typeof description === "string" ? description : "",
1003
+ disableImageAttachments: true
1004
+ }
994
1005
  ) })
995
1006
  ]
996
1007
  }
@@ -554,7 +554,7 @@ function ContactMap({
554
554
  contentGridClassName
555
555
  ),
556
556
  children: [
557
- /* @__PURE__ */ jsxRuntime.jsx(Card, { className: cardClassName, children: /* @__PURE__ */ jsxRuntime.jsxs(CardContent, { className: cardContentClassName, children: [
557
+ /* @__PURE__ */ jsxRuntime.jsx(Card, { className: cn("shadow-lg rounded-xl", cardClassName), children: /* @__PURE__ */ jsxRuntime.jsxs(CardContent, { className: cardContentClassName, children: [
558
558
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("mb-6", headerClassName), children: [
559
559
  heading && (typeof heading === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
560
560
  "h2",
@@ -570,7 +570,7 @@ function ContactMap({
570
570
  "p",
571
571
  {
572
572
  className: cn(
573
- "leading-relaxed text-pretty",
573
+ "leading-relaxed text-balance",
574
574
  descriptionClassName
575
575
  ),
576
576
  children: description
@@ -584,7 +584,7 @@ function ContactMap({
584
584
  {
585
585
  className: cn(
586
586
  // Allow map panels to overflow outside container
587
- "relative",
587
+ "relative shadow-lg rounded-xl",
588
588
  mapColumnClassName
589
589
  ),
590
590
  style: {
@@ -533,7 +533,7 @@ function ContactMap({
533
533
  contentGridClassName
534
534
  ),
535
535
  children: [
536
- /* @__PURE__ */ jsx(Card, { className: cardClassName, children: /* @__PURE__ */ jsxs(CardContent, { className: cardContentClassName, children: [
536
+ /* @__PURE__ */ jsx(Card, { className: cn("shadow-lg rounded-xl", cardClassName), children: /* @__PURE__ */ jsxs(CardContent, { className: cardContentClassName, children: [
537
537
  /* @__PURE__ */ jsxs("div", { className: cn("mb-6", headerClassName), children: [
538
538
  heading && (typeof heading === "string" ? /* @__PURE__ */ jsx(
539
539
  "h2",
@@ -549,7 +549,7 @@ function ContactMap({
549
549
  "p",
550
550
  {
551
551
  className: cn(
552
- "leading-relaxed text-pretty",
552
+ "leading-relaxed text-balance",
553
553
  descriptionClassName
554
554
  ),
555
555
  children: description
@@ -563,7 +563,7 @@ function ContactMap({
563
563
  {
564
564
  className: cn(
565
565
  // Allow map panels to overflow outside container
566
- "relative",
566
+ "relative shadow-lg rounded-xl",
567
567
  mapColumnClassName
568
568
  ),
569
569
  style: {
@@ -127,6 +127,6 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
127
127
  * </Pressable>
128
128
  * ```
129
129
  */
130
- declare const Pressable: React.ForwardRefExoticComponent<PressableProps & Partial<LinkProps> & Partial<ButtonProps> & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement>>;
130
+ declare const Pressable: React.ForwardRefExoticComponent<PressableProps & Partial<LinkProps> & Partial<ButtonProps> & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement | HTMLSpanElement>>;
131
131
 
132
132
  export { Pressable, type PressableProps };
@@ -127,6 +127,6 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
127
127
  * </Pressable>
128
128
  * ```
129
129
  */
130
- declare const Pressable: React.ForwardRefExoticComponent<PressableProps & Partial<LinkProps> & Partial<ButtonProps> & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement>>;
130
+ declare const Pressable: React.ForwardRefExoticComponent<PressableProps & Partial<LinkProps> & Partial<ButtonProps> & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement | HTMLSpanElement>>;
131
131
 
132
132
  export { Pressable, type PressableProps };
package/dist/registry.cjs CHANGED
@@ -26,6 +26,7 @@ var AutoScroll3 = require('embla-carousel-auto-scroll');
26
26
  var AspectRatioPrimitive = require('@radix-ui/react-aspect-ratio');
27
27
  var CheckboxPrimitive = require('@radix-ui/react-checkbox');
28
28
  var LabelPrimitive = require('@radix-ui/react-label');
29
+ var socialShare = require('@page-speed/social-share');
29
30
  var dateFns = require('date-fns');
30
31
  var DialogPrimitive = require('@radix-ui/react-dialog');
31
32
  var forms = require('@page-speed/forms');
@@ -16664,7 +16665,7 @@ function ContactMap({
16664
16665
  contentGridClassName
16665
16666
  ),
16666
16667
  children: [
16667
- /* @__PURE__ */ jsxRuntime.jsx(Card, { className: cardClassName, children: /* @__PURE__ */ jsxRuntime.jsxs(CardContent, { className: cardContentClassName, children: [
16668
+ /* @__PURE__ */ jsxRuntime.jsx(Card, { className: cn("shadow-lg rounded-xl", cardClassName), children: /* @__PURE__ */ jsxRuntime.jsxs(CardContent, { className: cardContentClassName, children: [
16668
16669
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("mb-6", headerClassName), children: [
16669
16670
  heading && (typeof heading === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
16670
16671
  "h2",
@@ -16680,7 +16681,7 @@ function ContactMap({
16680
16681
  "p",
16681
16682
  {
16682
16683
  className: cn(
16683
- "leading-relaxed text-pretty",
16684
+ "leading-relaxed text-balance",
16684
16685
  descriptionClassName
16685
16686
  ),
16686
16687
  children: description
@@ -16694,7 +16695,7 @@ function ContactMap({
16694
16695
  {
16695
16696
  className: cn(
16696
16697
  // Allow map panels to overflow outside container
16697
- "relative",
16698
+ "relative shadow-lg rounded-xl",
16698
16699
  mapColumnClassName
16699
16700
  ),
16700
16701
  style: {
@@ -37850,6 +37851,16 @@ function ArticleHeroProseComponent({
37850
37851
  ),
37851
37852
  children
37852
37853
  }
37854
+ ) }),
37855
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center py-24", children: /* @__PURE__ */ jsxRuntime.jsx(
37856
+ socialShare.SocialShare,
37857
+ {
37858
+ variant: "combo",
37859
+ postTitle: title && typeof title === "string" ? title : "",
37860
+ shareUrl: window?.location?.href,
37861
+ summaryContent: description && typeof description === "string" ? description : "",
37862
+ disableImageAttachments: true
37863
+ }
37853
37864
  ) })
37854
37865
  ]
37855
37866
  }
package/dist/registry.js CHANGED
@@ -25,6 +25,7 @@ import AutoScroll3 from 'embla-carousel-auto-scroll';
25
25
  import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
26
26
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
27
27
  import * as LabelPrimitive from '@radix-ui/react-label';
28
+ import { SocialShare } from '@page-speed/social-share';
28
29
  import { format } from 'date-fns';
29
30
  import * as DialogPrimitive from '@radix-ui/react-dialog';
30
31
  import { Form, useForm, Field } from '@page-speed/forms';
@@ -16624,7 +16625,7 @@ function ContactMap({
16624
16625
  contentGridClassName
16625
16626
  ),
16626
16627
  children: [
16627
- /* @__PURE__ */ jsx(Card, { className: cardClassName, children: /* @__PURE__ */ jsxs(CardContent, { className: cardContentClassName, children: [
16628
+ /* @__PURE__ */ jsx(Card, { className: cn("shadow-lg rounded-xl", cardClassName), children: /* @__PURE__ */ jsxs(CardContent, { className: cardContentClassName, children: [
16628
16629
  /* @__PURE__ */ jsxs("div", { className: cn("mb-6", headerClassName), children: [
16629
16630
  heading && (typeof heading === "string" ? /* @__PURE__ */ jsx(
16630
16631
  "h2",
@@ -16640,7 +16641,7 @@ function ContactMap({
16640
16641
  "p",
16641
16642
  {
16642
16643
  className: cn(
16643
- "leading-relaxed text-pretty",
16644
+ "leading-relaxed text-balance",
16644
16645
  descriptionClassName
16645
16646
  ),
16646
16647
  children: description
@@ -16654,7 +16655,7 @@ function ContactMap({
16654
16655
  {
16655
16656
  className: cn(
16656
16657
  // Allow map panels to overflow outside container
16657
- "relative",
16658
+ "relative shadow-lg rounded-xl",
16658
16659
  mapColumnClassName
16659
16660
  ),
16660
16661
  style: {
@@ -37810,6 +37811,16 @@ function ArticleHeroProseComponent({
37810
37811
  ),
37811
37812
  children
37812
37813
  }
37814
+ ) }),
37815
+ /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center py-24", children: /* @__PURE__ */ jsx(
37816
+ SocialShare,
37817
+ {
37818
+ variant: "combo",
37819
+ postTitle: title && typeof title === "string" ? title : "",
37820
+ shareUrl: window?.location?.href,
37821
+ summaryContent: description && typeof description === "string" ? description : "",
37822
+ disableImageAttachments: true
37823
+ }
37813
37824
  ) })
37814
37825
  ]
37815
37826
  }
@@ -80,6 +80,6 @@ interface SocialLinkIconProps extends Omit<PressableProps, "children">, SocialLi
80
80
  * />
81
81
  * ```
82
82
  */
83
- declare const SocialLinkIcon: React.ForwardRefExoticComponent<SocialLinkIconProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement>>;
83
+ declare const SocialLinkIcon: React.ForwardRefExoticComponent<SocialLinkIconProps & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement | HTMLSpanElement>>;
84
84
 
85
85
  export { SocialLinkIcon, type SocialLinkIconDynamicIconProps, type SocialLinkIconProps };
@@ -80,6 +80,6 @@ interface SocialLinkIconProps extends Omit<PressableProps, "children">, SocialLi
80
80
  * />
81
81
  * ```
82
82
  */
83
- declare const SocialLinkIcon: React.ForwardRefExoticComponent<SocialLinkIconProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement | HTMLSpanElement>>;
83
+ declare const SocialLinkIcon: React.ForwardRefExoticComponent<SocialLinkIconProps & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement | HTMLSpanElement>>;
84
84
 
85
85
  export { SocialLinkIcon, type SocialLinkIconDynamicIconProps, type SocialLinkIconProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opensite/ui",
3
- "version": "2.9.7",
3
+ "version": "2.9.9",
4
4
  "description": "Foundational UI component library for OpenSite Semantic Site Builder with tree-shakable exports and abstract styling",
5
5
  "keywords": [
6
6
  "react",
@@ -3413,9 +3413,9 @@
3413
3413
  "@page-speed/icon": "0.1.2",
3414
3414
  "@page-speed/img": "0.4.6",
3415
3415
  "@page-speed/lightbox": "0.2.1",
3416
- "@page-speed/maps": "0.1.9",
3416
+ "@page-speed/maps": "0.2.1",
3417
3417
  "@page-speed/pdf-viewer": "0.1.9",
3418
- "@page-speed/social-share": "0.0.5",
3418
+ "@page-speed/social-share": "0.1.2",
3419
3419
  "@radix-ui/react-accordion": "^1.2.12",
3420
3420
  "@radix-ui/react-aspect-ratio": "^1.1.8",
3421
3421
  "@radix-ui/react-avatar": "^1.1.11",