@planningcenter/topbar 11.2.5-rc.0 → 12.0.0-rc.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.
package/dist/topbar.js CHANGED
@@ -3627,6 +3627,19 @@ const {
3627
3627
  LoadingIndicator: LoadingIndicator$1,
3628
3628
  StackView: StackView$1
3629
3629
  } = addOns.components;
3630
+ function CalendlyWidget({
3631
+ url,
3632
+ pageSettings,
3633
+ prefill,
3634
+ styles
3635
+ }) {
3636
+ return url ? (/*#__PURE__*/React.createElement(reactCalendly.InlineWidget, {
3637
+ url: url,
3638
+ pageSettings: pageSettings,
3639
+ prefill: prefill,
3640
+ styles: styles
3641
+ })) : null;
3642
+ }
3630
3643
  function HelpdeskComponent({
3631
3644
  appName,
3632
3645
  closeDrawer,
@@ -3695,14 +3708,68 @@ function HelpdeskComponent({
3695
3708
  spacing: 1
3696
3709
  }, /*#__PURE__*/React.createElement(DrawerHeading, null, "Help and support"), /*#__PURE__*/React.createElement(LoadingIndicator$1, null)))),
3697
3710
  additionalComponents: {
3698
- // @ts-expect-error TODO: Relax type specification in add-ons-js to not require children
3699
- CalendlyWidget: reactCalendly.InlineWidget,
3700
- DocumentationSearch,
3701
- DrawerHeader,
3711
+ CalendlyWidget: {
3712
+ component: CalendlyWidget,
3713
+ properties: {
3714
+ pageSettings: {
3715
+ attribute: false
3716
+ },
3717
+ prefill: {
3718
+ attribute: false
3719
+ },
3720
+ styles: {
3721
+ attribute: false
3722
+ },
3723
+ url: {
3724
+ type: String
3725
+ }
3726
+ }
3727
+ },
3728
+ DocumentationSearch: {
3729
+ component: DocumentationSearch,
3730
+ properties: {
3731
+ currentAppName: {
3732
+ type: String
3733
+ },
3734
+ indexName: {
3735
+ type: String
3736
+ }
3737
+ }
3738
+ },
3739
+ DrawerHeader: {
3740
+ component: DrawerHeader,
3741
+ properties: {
3742
+ closeDrawer: {
3743
+ event: false
3744
+ }
3745
+ }
3746
+ },
3702
3747
  DrawerHeading,
3703
- PicobotIframe,
3748
+ PicobotIframe: {
3749
+ component: PicobotIframe,
3750
+ properties: {
3751
+ currentPath: {
3752
+ attribute: false
3753
+ },
3754
+ onChangePath: {
3755
+ event: false,
3756
+ type: Function
3757
+ },
3758
+ onMessage: {
3759
+ event: false,
3760
+ type: Function
3761
+ }
3762
+ }
3763
+ },
3704
3764
  ScrollContainer,
3705
- SwitchView
3765
+ SwitchView: {
3766
+ component: SwitchView,
3767
+ properties: {
3768
+ activeIndex: {
3769
+ type: Number
3770
+ }
3771
+ }
3772
+ }
3706
3773
  },
3707
3774
  args: {
3708
3775
  appName,
@@ -4306,8 +4373,13 @@ const {
4306
4373
  function NavLinkWithBadge({
4307
4374
  children,
4308
4375
  badge,
4309
- onClick,
4310
- ...rest
4376
+ borderBottomColor,
4377
+ borderBottomStyle,
4378
+ borderBottomWidth,
4379
+ color,
4380
+ fontSize,
4381
+ fontWeight,
4382
+ onClick
4311
4383
  }) {
4312
4384
  return /*#__PURE__*/React.createElement(tapestryReact.StackView, {
4313
4385
  as: "button",
@@ -4317,7 +4389,14 @@ function NavLinkWithBadge({
4317
4389
  paddingBottom: 0.75,
4318
4390
  onClick: () => onClick(),
4319
4391
  spacing: 1,
4320
- ...rest
4392
+ ...{
4393
+ borderBottomColor,
4394
+ borderBottomStyle,
4395
+ borderBottomWidth,
4396
+ color,
4397
+ fontSize,
4398
+ fontWeight
4399
+ }
4321
4400
  }, children, badge && /*#__PURE__*/React.createElement(tapestryReact.Badge, {
4322
4401
  size: "sm",
4323
4402
  fontWeight: "600",
@@ -4369,11 +4448,55 @@ function TasksComponent({
4369
4448
  spacing: 1
4370
4449
  }, /*#__PURE__*/React.createElement(DrawerHeading, null, "To do"), /*#__PURE__*/React.createElement(LoadingIndicator, null)))),
4371
4450
  additionalComponents: {
4372
- DrawerHeader,
4451
+ DrawerHeader: {
4452
+ component: DrawerHeader,
4453
+ properties: {
4454
+ closeDrawer: {
4455
+ event: false,
4456
+ type: Function
4457
+ }
4458
+ }
4459
+ },
4373
4460
  DrawerHeading,
4374
- NavLinkWithBadge,
4461
+ NavLinkWithBadge: {
4462
+ component: NavLinkWithBadge,
4463
+ properties: {
4464
+ badge: {
4465
+ attribute: false
4466
+ },
4467
+ borderBottomColor: {
4468
+ type: String
4469
+ },
4470
+ borderBottomStyle: {
4471
+ type: String
4472
+ },
4473
+ borderBottomWidth: {
4474
+ type: String
4475
+ },
4476
+ color: {
4477
+ type: String
4478
+ },
4479
+ fontSize: {
4480
+ attribute: false
4481
+ },
4482
+ fontWeight: {
4483
+ attribute: false
4484
+ },
4485
+ onClick: {
4486
+ event: false,
4487
+ type: Function
4488
+ }
4489
+ }
4490
+ },
4375
4491
  ScrollContainer,
4376
- SwitchView
4492
+ SwitchView: {
4493
+ component: SwitchView,
4494
+ properties: {
4495
+ activeIndex: {
4496
+ type: Number
4497
+ }
4498
+ }
4499
+ }
4377
4500
  },
4378
4501
  args: {
4379
4502
  closeDrawer,