@churchapps/apphelper 0.5.2 → 0.5.3

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,4 +1,5 @@
1
1
  import React from "react";
2
+ import "react-activity/dist/Dots.css";
2
3
  interface Props {
3
4
  size?: "sm" | "md" | "lg";
4
5
  loadingText?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Loading.d.ts","sourceRoot":"","sources":["../../src/components/Loading.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAkD1B,UAAU,KAAK;IAAG,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE;AAEnF,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAsBnC,CAAA"}
1
+ {"version":3,"file":"Loading.d.ts","sourceRoot":"","sources":["../../src/components/Loading.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,8BAA8B,CAAC;AAEtC,UAAU,KAAK;IAAG,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE;AAEnF,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAsBnC,CAAA"}
@@ -1,51 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { Dots } from "react-activity";
4
- // Inline CSS for react-activity to avoid external dependencies
5
- const activityStyles = `
6
- .activity-loader {
7
- position: relative;
8
- display: inline-block;
9
- }
10
- .activity-dots {
11
- position: relative;
12
- display: inline-block;
13
- }
14
- .activity-dots > div {
15
- position: absolute;
16
- border-radius: 50%;
17
- animation: activity-dots 1.2s infinite ease-in-out;
18
- animation-fill-mode: both;
19
- }
20
- .activity-dots > div:nth-child(1) { animation-delay: -1.1s; }
21
- .activity-dots > div:nth-child(2) { animation-delay: -1.0s; }
22
- .activity-dots > div:nth-child(3) { animation-delay: -0.9s; }
23
- .activity-dots > div:nth-child(4) { animation-delay: -0.8s; }
24
- .activity-dots > div:nth-child(5) { animation-delay: -0.7s; }
25
- .activity-dots > div:nth-child(6) { animation-delay: -0.6s; }
26
- .activity-dots > div:nth-child(7) { animation-delay: -0.5s; }
27
- .activity-dots > div:nth-child(8) { animation-delay: -0.4s; }
28
- .activity-dots > div:nth-child(9) { animation-delay: -0.3s; }
29
- .activity-dots > div:nth-child(10) { animation-delay: -0.2s; }
30
- .activity-dots > div:nth-child(11) { animation-delay: -0.1s; }
31
- .activity-dots > div:nth-child(12) { animation-delay: 0s; }
32
-
33
- @keyframes activity-dots {
34
- 0%, 80%, 100% {
35
- transform: scale(0);
36
- }
37
- 40% {
38
- transform: scale(1);
39
- }
40
- }
41
- `;
42
- // Add styles to document head if not already present
43
- if (typeof document !== 'undefined' && !document.getElementById('activity-styles')) {
44
- const style = document.createElement('style');
45
- style.id = 'activity-styles';
46
- style.textContent = activityStyles;
47
- document.head.appendChild(style);
48
- }
4
+ import "react-activity/dist/Dots.css";
49
5
  export const Loading = (props) => {
50
6
  const getContents = () => {
51
7
  const text = (props.loadingText) ? props.loadingText : "Loading";
@@ -1 +1 @@
1
- {"version":3,"file":"Loading.js","sourceRoot":"","sources":["../../src/components/Loading.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAEtC,+DAA+D;AAC/D,MAAM,cAAc,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCtB,CAAC;AAEF,qDAAqD;AACrD,IAAI,OAAO,QAAQ,KAAK,WAAW,IAAI,CAAC,QA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K,IAAI;gBACP,MAAM,GAAG,8BAAE,KAAC,IAAI,IAAC,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,GAAI,EAAA,YAAG,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,YAAG,IAAI,GAAK,IAAG,CAAA;gBAC/H,MAAM;YACR,KAAK,IAAI;gBACP,MAAM,GAAG,8BAAE,KAAC,IAAI,IAAC,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,GAAI,EAAA,YAAG,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,YAAG,IAAI,GAAK,IAAG,CAAA;gBAC/H,MAAM;QACV,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC,CAAA;IAED,OAAO,CACL,cAAK,EAAE,EAAC,mBAAmB,EAAC,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,YAC7E,WAAW,EAAE,GACV,CACP,CAAA;AACH,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@churchapps/apphelper",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "description": "Library of helper functions for React and NextJS ChurchApps",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -2,53 +2,7 @@
2
2
 
3
3
  import React from "react";
4
4
  import { Dots } from "react-activity";
5
-
6
- // Inline CSS for react-activity to avoid external dependencies
7
- const activityStyles = `
8
- .activity-loader {
9
- position: relative;
10
- display: inline-block;
11
- }
12
- .activity-dots {
13
- position: relative;
14
- display: inline-block;
15
- }
16
- .activity-dots > div {
17
- position: absolute;
18
- border-radius: 50%;
19
- animation: activity-dots 1.2s infinite ease-in-out;
20
- animation-fill-mode: both;
21
- }
22
- .activity-dots > div:nth-child(1) { animation-delay: -1.1s; }
23
- .activity-dots > div:nth-child(2) { animation-delay: -1.0s; }
24
- .activity-dots > div:nth-child(3) { animation-delay: -0.9s; }
25
- .activity-dots > div:nth-child(4) { animation-delay: -0.8s; }
26
- .activity-dots > div:nth-child(5) { animation-delay: -0.7s; }
27
- .activity-dots > div:nth-child(6) { animation-delay: -0.6s; }
28
- .activity-dots > div:nth-child(7) { animation-delay: -0.5s; }
29
- .activity-dots > div:nth-child(8) { animation-delay: -0.4s; }
30
- .activity-dots > div:nth-child(9) { animation-delay: -0.3s; }
31
- .activity-dots > div:nth-child(10) { animation-delay: -0.2s; }
32
- .activity-dots > div:nth-child(11) { animation-delay: -0.1s; }
33
- .activity-dots > div:nth-child(12) { animation-delay: 0s; }
34
-
35
- @keyframes activity-dots {
36
- 0%, 80%, 100% {
37
- transform: scale(0);
38
- }
39
- 40% {
40
- transform: scale(1);
41
- }
42
- }
43
- `;
44
-
45
- // Add styles to document head if not already present
46
- if (typeof document !== 'undefined' && !document.getElementById('activity-styles')) {
47
- const style = document.createElement('style');
48
- style.id = 'activity-styles';
49
- style.textContent = activityStyles;
50
- document.head.appendChild(style);
51
- }
5
+ import "react-activity/dist/Dots.css";
52
6
 
53
7
  interface Props { size?: "sm" | "md" | "lg", loadingText?: string, color?: string }
54
8