@selfcommunity/react-ui 0.5.2-alpha.3 → 0.5.3-alpha.1

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 (64) hide show
  1. package/lib/cjs/components/AccountReset/AccountReset.d.ts +3 -3
  2. package/lib/cjs/components/AccountReset/AccountReset.d.ts.map +1 -1
  3. package/lib/cjs/components/AccountReset/AccountReset.js +6 -10
  4. package/lib/cjs/components/AccountReset/AccountReset.js.map +1 -1
  5. package/lib/cjs/components/AccountVerify/AccountVerify.d.ts +3 -3
  6. package/lib/cjs/components/AccountVerify/AccountVerify.d.ts.map +1 -1
  7. package/lib/cjs/components/AccountVerify/AccountVerify.js +13 -8
  8. package/lib/cjs/components/AccountVerify/AccountVerify.js.map +1 -1
  9. package/lib/cjs/components/Header/Header.d.ts.map +1 -1
  10. package/lib/cjs/components/Header/Header.js +32 -18
  11. package/lib/cjs/components/Header/Header.js.map +1 -1
  12. package/lib/cjs/components/Header/MobileHeader/MobileHeader.d.ts.map +1 -1
  13. package/lib/cjs/components/Header/MobileHeader/MobileHeader.js +29 -16
  14. package/lib/cjs/components/Header/MobileHeader/MobileHeader.js.map +1 -1
  15. package/lib/cjs/components/Header/MobileHeader/Skeleton.d.ts +22 -0
  16. package/lib/cjs/components/Header/MobileHeader/Skeleton.d.ts.map +1 -0
  17. package/lib/cjs/components/Header/MobileHeader/Skeleton.js +47 -0
  18. package/lib/cjs/components/Header/MobileHeader/Skeleton.js.map +1 -0
  19. package/lib/cjs/components/Header/MobileHeader/index.d.ts +2 -1
  20. package/lib/cjs/components/Header/MobileHeader/index.d.ts.map +1 -1
  21. package/lib/cjs/components/Header/MobileHeader/index.js +3 -0
  22. package/lib/cjs/components/Header/MobileHeader/index.js.map +1 -1
  23. package/lib/cjs/components/Header/Skeleton.d.ts +23 -0
  24. package/lib/cjs/components/Header/Skeleton.d.ts.map +1 -0
  25. package/lib/cjs/components/Header/Skeleton.js +50 -0
  26. package/lib/cjs/components/Header/Skeleton.js.map +1 -0
  27. package/lib/cjs/components/Header/index.d.ts +2 -1
  28. package/lib/cjs/components/Header/index.d.ts.map +1 -1
  29. package/lib/cjs/components/Header/index.js +3 -0
  30. package/lib/cjs/components/Header/index.js.map +1 -1
  31. package/lib/esm/components/AccountReset/AccountReset.d.ts +3 -3
  32. package/lib/esm/components/AccountReset/AccountReset.d.ts.map +1 -1
  33. package/lib/esm/components/AccountReset/AccountReset.js +7 -11
  34. package/lib/esm/components/AccountReset/AccountReset.js.map +1 -1
  35. package/lib/esm/components/AccountVerify/AccountVerify.d.ts +3 -3
  36. package/lib/esm/components/AccountVerify/AccountVerify.d.ts.map +1 -1
  37. package/lib/esm/components/AccountVerify/AccountVerify.js +14 -9
  38. package/lib/esm/components/AccountVerify/AccountVerify.js.map +1 -1
  39. package/lib/esm/components/Header/Header.d.ts.map +1 -1
  40. package/lib/esm/components/Header/Header.js +34 -20
  41. package/lib/esm/components/Header/Header.js.map +1 -1
  42. package/lib/esm/components/Header/MobileHeader/MobileHeader.d.ts.map +1 -1
  43. package/lib/esm/components/Header/MobileHeader/MobileHeader.js +30 -17
  44. package/lib/esm/components/Header/MobileHeader/MobileHeader.js.map +1 -1
  45. package/lib/esm/components/Header/MobileHeader/Skeleton.d.ts +22 -0
  46. package/lib/esm/components/Header/MobileHeader/Skeleton.d.ts.map +1 -0
  47. package/lib/esm/components/Header/MobileHeader/Skeleton.js +41 -0
  48. package/lib/esm/components/Header/MobileHeader/Skeleton.js.map +1 -0
  49. package/lib/esm/components/Header/MobileHeader/index.d.ts +2 -1
  50. package/lib/esm/components/Header/MobileHeader/index.d.ts.map +1 -1
  51. package/lib/esm/components/Header/MobileHeader/index.js +2 -0
  52. package/lib/esm/components/Header/MobileHeader/index.js.map +1 -1
  53. package/lib/esm/components/Header/Skeleton.d.ts +23 -0
  54. package/lib/esm/components/Header/Skeleton.d.ts.map +1 -0
  55. package/lib/esm/components/Header/Skeleton.js +44 -0
  56. package/lib/esm/components/Header/Skeleton.js.map +1 -0
  57. package/lib/esm/components/Header/index.d.ts +2 -1
  58. package/lib/esm/components/Header/index.d.ts.map +1 -1
  59. package/lib/esm/components/Header/index.js +2 -0
  60. package/lib/esm/components/Header/index.js.map +1 -1
  61. package/lib/umd/react-ui.js +9 -9
  62. package/lib/umd/react-ui.js.LICENSE.txt +1 -1
  63. package/lib/umd/react-ui.js.map +1 -1
  64. package/package.json +7 -7
@@ -0,0 +1,41 @@
1
+ import React from 'react';
2
+ import { AppBar, Box } from '@mui/material';
3
+ import { styled } from '@mui/material/styles';
4
+ import Skeleton from '@mui/material/Skeleton';
5
+ const PREFIX = 'SCMobileHeaderSkeleton';
6
+ const classes = {
7
+ root: `${PREFIX}-root`
8
+ };
9
+ const Root = styled(Box, {
10
+ name: PREFIX,
11
+ slot: 'Root',
12
+ overridesResolver: (props, styles) => styles.root
13
+ })(() => ({}));
14
+ /**
15
+ * > API documentation for the Community-JS Header Skeleton component. Learn about the available props and the CSS API.
16
+
17
+ #### Import
18
+
19
+ ```jsx
20
+ import {MobileHeaderSkeleton} from '@selfcommunity/react-ui';
21
+ ```
22
+
23
+ #### Component Name
24
+
25
+ The name `SCMobileHeaderSkeleton` can be used when providing style overrides in the theme.
26
+
27
+ #### CSS
28
+
29
+ |Rule Name|Global class|Description|
30
+ |---|---|---|
31
+ |root|.SCMobileHeaderSkeleton-root|Styles applied to the root element.|
32
+ *
33
+ */
34
+ export default function CategoryHeaderSkeleton() {
35
+ return (React.createElement(Root, { className: classes.root },
36
+ React.createElement(AppBar, { sx: { position: 'fixed' } },
37
+ React.createElement(Skeleton, { sx: { height: 60 }, animation: "wave", variant: "rectangular" })),
38
+ React.createElement(AppBar, { sx: { position: 'fixed', top: 'auto', bottom: 0 } },
39
+ React.createElement(Skeleton, { sx: { height: 60 }, animation: "wave", variant: "rectangular" }))));
40
+ }
41
+ //# sourceMappingURL=Skeleton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Skeleton.js","sourceR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5 @@
1
1
  import MobileHeader, { MobileHeaderProps } from './MobileHeader';
2
+ import MobileHeaderSkeleton from './Skeleton';
2
3
  export default MobileHeader;
3
- export { MobileHeaderProps };
4
+ export { MobileHeaderProps, MobileHeaderSkeleton };
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Header/MobileHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,YAAY,EAAE,EAAC,iBAAiB,EAAC,MAAM,gBAAgB,CAAC;AAC/D,eAAe,YAAY,CAAC;AAC5B,OAAO,EAAC,iBAAiB,EAAC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Header/MobileHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,YAAY,EAAE,EAAC,iBAAiB,EAAC,MAAM,gBAAgB,CAAC;AAC/D,OAAO,oBAAoB,MAAM,YAAY,CAAC;AAC9C,eAAe,YAAY,CAAC;AAC5B,OAAO,EAAC,iBAAiB,EAAE,oBAAoB,EAAC,CAAC"}
@@ -1,3 +1,5 @@
1
1
  import MobileHeader from './MobileHeader';
2
+ import MobileHeaderSkeleton from './Skeleton';
2
3
  export default MobileHeader;
4
+ export { MobileHeaderSkeleton };
3
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/Header/MobileHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,YAAiC,MAAM,gBAAgB,CAAC;AAC/D,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/Header/MobileHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,YAAiC,MAAM,gBAAgB,CAAC;AAC/D,OAAO,oBAAoB,MAAM,YAAY,CAAC;AAC9C,eAAe,YAAY,CAAC;AAC5B,OAAO,EAAoB,oBAAoB,EAAC,CAAC"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * > API documentation for the Community-JS Header Skeleton component. Learn about the available props and the CSS API.
3
+
4
+ #### Import
5
+
6
+ ```jsx
7
+ import {HeaderSkeleton} from '@selfcommunity/react-ui';
8
+ ```
9
+
10
+ #### Component Name
11
+
12
+ The name `SCHeaderSkeleton` can be used when providing style overrides in the theme.
13
+
14
+ #### CSS
15
+
16
+ |Rule Name|Global class|Description|
17
+ |---|---|---|
18
+ |root|.SCHeaderSkeleton-root|Styles applied to the root element.|
19
+ |icon|.SCHeaderSkeleton-icon|Styles applied to the icon element.|
20
+ *
21
+ */
22
+ export default function CategoryHeaderSkeleton(): JSX.Element;
23
+ //# sourceMappingURL=Skeleton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../../../../src/components/Header/Skeleton.tsx"],"names":[],"mappings":"AAqBA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,OAAO,UAAU,sBAAsB,IAAI,GAAG,CAAC,OAAO,CAM5D"}
@@ -0,0 +1,44 @@
1
+ import React from 'react';
2
+ import { Box } from '@mui/material';
3
+ import { styled } from '@mui/material/styles';
4
+ import Skeleton from '@mui/material/Skeleton';
5
+ const PREFIX = 'SCHeaderSkeleton';
6
+ const classes = {
7
+ root: `${PREFIX}-root`,
8
+ icon: `${PREFIX}-icon`,
9
+ };
10
+ const Root = styled(Box, {
11
+ name: PREFIX,
12
+ slot: 'Root',
13
+ overridesResolver: (props, styles) => styles.root
14
+ })(() => ({
15
+ position: 'relative',
16
+ // [`& .${classes.icon}`]: {
17
+ // },
18
+ }));
19
+ /**
20
+ * > API documentation for the Community-JS Header Skeleton component. Learn about the available props and the CSS API.
21
+
22
+ #### Import
23
+
24
+ ```jsx
25
+ import {HeaderSkeleton} from '@selfcommunity/react-ui';
26
+ ```
27
+
28
+ #### Component Name
29
+
30
+ The name `SCHeaderSkeleton` can be used when providing style overrides in the theme.
31
+
32
+ #### CSS
33
+
34
+ |Rule Name|Global class|Description|
35
+ |---|---|---|
36
+ |root|.SCHeaderSkeleton-root|Styles applied to the root element.|
37
+ |icon|.SCHeaderSkeleton-icon|Styles applied to the icon element.|
38
+ *
39
+ */
40
+ export default function CategoryHeaderSkeleton() {
41
+ return (React.createElement(Root, { className: classes.root },
42
+ React.createElement(Skeleton, { sx: { height: 60 }, animation: "wave", variant: "rectangular" })));
43
+ }
44
+ //# sourceMappingURL=Skeleton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Skeleton.js","sourceRoot":"","sources":["../../../../src/components/Header/Skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,GAAG,EAAC,MAAM,eAAe,CAAC;AAClC,OAAO,EAAC,MAAM,EAAC,MAAM,sBAAsB,CAAC;AAC5C,OAAO,QAAQ,MAAM,wBAAwB,CAAC;AAE9C,MAAM,MAAM,GAAG,kBAAkB,CAAC;AAElC,MAAM,OAAO,GAAG;IACd,IAAI,EAAE,GAAG,MAAM,OAAO;IACtB,IAAI,EAAE,GAAG,MAAM,OAAO;CACvB,CAAC;AAEF,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,EAAE;IACvB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI;CAClD,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;IACR,QAAQ,EAAE,UAAU;IACpB,4BAA4B;IAC5B,KAAK;CACN,CAAC,CAAC,CAAC;AACJ;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,OAAO,UAAU,sBAAsB;IAC5C,OAAO,CACL,oBAAC,IAAI,IAAC,SAAS,EAAE,OAAO,CAAC,IAAI;QAC3B,oBAAC,QAAQ,IAAC,EAAE,EAAE,EAAC,MAAM,EAAE,EAAE,EAAC,EAAE,SAAS,EAAC,MAAM,EAAC,OAAO,EAAC,aAAa,GAAG,CAChE,CACR,CAAC;AACJ,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import Header, { HeaderProps } from './Header';
2
+ import HeaderSkeleton from './Skeleton';
2
3
  export default Header;
3
- export { HeaderProps };
4
+ export { HeaderProps, HeaderSkeleton };
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Header/index.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAC,WAAW,EAAC,MAAM,UAAU,CAAC;AAC7C,eAAe,MAAM,CAAC;AACtB,OAAO,EAAC,WAAW,EAAC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Header/index.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAC,WAAW,EAAC,MAAM,UAAU,CAAC;AAC7C,OAAO,cAAc,MAAM,YAAY,CAAC;AACxC,eAAe,MAAM,CAAC;AACtB,OAAO,EAAC,WAAW,EAAE,cAAc,EAAC,CAAC"}
@@ -1,3 +1,5 @@
1
1
  import Header from './Header';
2
+ import HeaderSkeleton from './Skeleton';
2
3
  export default Header;
4
+ export { HeaderSkeleton };
3
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Header/index.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAqB,MAAM,UAAU,CAAC;AAC7C,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Header/index.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAqB,MAAM,UAAU,CAAC;AAC7C,OAAO,cAAc,MAAM,YAAY,CAAC;AACxC,eAAe,MAAM,CAAC;AACtB,OAAO,EAAc,cAAc,EAAC,CAAC"}