ctms-common-components 1.0.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.
- package/.babelrc +3 -0
- package/.czrc +3 -0
- package/.github/CODEOWNERS +1 -0
- package/.github/workflows/cd.yml +38 -0
- package/.github/workflows/ci.yml +29 -0
- package/.storybook/main.js +22 -0
- package/.storybook/preview.js +14 -0
- package/CHANGELOG.md +11 -0
- package/README.md +1 -0
- package/dist/index.js.LICENSE.txt +50 -0
- package/package.json +58 -0
- package/public/fonts/lato-latin.woff2 +0 -0
- package/public/index.html +17 -0
- package/src/assets/components/index.css +3 -0
- package/src/assets/components/index.jsx +607 -0
- package/src/assets/pngs/background-logo.png +0 -0
- package/src/assets/pngs/logo.png +0 -0
- package/src/assets/styles/tailwind.css +3 -0
- package/src/assets/svgs/edit-icon.svg +12 -0
- package/src/assets/svgs/overflow-icon.svg +20 -0
- package/src/assets/svgs/tick-mark.svg +3 -0
- package/src/components/Button.jsx +50 -0
- package/src/components/Pagination/PaginationStyles.js +49 -0
- package/src/components/Pagination/index.jsx +85 -0
- package/src/components/PoojaCard/index.jsx +216 -0
- package/src/components/StatusCard/index.jsx +102 -0
- package/src/components/TokenCard/index.jsx +205 -0
- package/src/components/button.css +50 -0
- package/src/components/custom-Table/AdvancedTableBody.jsx +186 -0
- package/src/components/custom-Table/AdvancedTableHead.jsx +315 -0
- package/src/components/custom-Table/EllipsisCell.jsx +137 -0
- package/src/components/custom-Table/Loader.jsx +24 -0
- package/src/components/custom-Table/index.jsx +340 -0
- package/src/components/index.js +7 -0
- package/src/components/more-actions/MenuStyles.js +54 -0
- package/src/components/more-actions/index.jsx +50 -0
- package/src/index.jsx +11 -0
- package/src/lib.js +133 -0
- package/src/stories/AdvancedTable.stories.jsx +108 -0
- package/src/stories/Button.stories.js +45 -0
- package/src/stories/PoojaCard.stories.jsx +108 -0
- package/src/stories/StatusCard.stories.jsx +51 -0
- package/src/stories/TokenCard.stories.jsx +75 -0
- package/src/theme/README.md +23 -0
- package/src/theme/components/button.js +42 -0
- package/src/theme/components/checkbox.js +20 -0
- package/src/theme/components/index.js +27 -0
- package/src/theme/foundations/blur.js +12 -0
- package/src/theme/foundations/borders.js +9 -0
- package/src/theme/foundations/breakpoints.js +10 -0
- package/src/theme/foundations/colors.js +196 -0
- package/src/theme/foundations/index.js +27 -0
- package/src/theme/foundations/radius.js +13 -0
- package/src/theme/foundations/shadows.js +16 -0
- package/src/theme/foundations/sizes.js +60 -0
- package/src/theme/foundations/spacing.js +37 -0
- package/src/theme/foundations/transition.js +25 -0
- package/src/theme/foundations/typography.js +55 -0
- package/src/theme/foundations/z-index.js +17 -0
- package/src/theme/index.js +20 -0
- package/webpack.config.js +34 -0
package/.babelrc
ADDED
package/.czrc
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* @jisti78
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
name: Publish Package to npmjs
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: write
|
|
10
|
+
id-token: write
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
build:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
|
|
16
|
+
steps:
|
|
17
|
+
- name: Checkout repository
|
|
18
|
+
uses: actions/checkout@v3
|
|
19
|
+
|
|
20
|
+
- name: Set up Node.js
|
|
21
|
+
uses: actions/setup-node@v3
|
|
22
|
+
with:
|
|
23
|
+
node-version: '18.x'
|
|
24
|
+
registry-url: 'https://registry.npmjs.org'
|
|
25
|
+
|
|
26
|
+
- name: Configure npm to use npmjs registry
|
|
27
|
+
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
|
|
28
|
+
|
|
29
|
+
- name: Install dependencies
|
|
30
|
+
run: npm ci
|
|
31
|
+
|
|
32
|
+
- name: Build the project
|
|
33
|
+
run: npm run build
|
|
34
|
+
|
|
35
|
+
- name: Publish to npm
|
|
36
|
+
run: npm publish --provenance --access public
|
|
37
|
+
env:
|
|
38
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
name: Continuous Integration
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
pull_request:
|
|
8
|
+
branches:
|
|
9
|
+
- main
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
build-and-test:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
|
|
15
|
+
steps:
|
|
16
|
+
- name: Checkout repository
|
|
17
|
+
uses: actions/checkout@v3
|
|
18
|
+
|
|
19
|
+
- name: Set up Node.js
|
|
20
|
+
uses: actions/setup-node@v3
|
|
21
|
+
with:
|
|
22
|
+
node-version: '18'
|
|
23
|
+
cache: 'npm'
|
|
24
|
+
|
|
25
|
+
- name: Install dependencies
|
|
26
|
+
run: npm ci
|
|
27
|
+
|
|
28
|
+
- name: Build the project
|
|
29
|
+
run: npm run build
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/** @type { import('@storybook/react-webpack5').StorybookConfig } */
|
|
2
|
+
const config = {
|
|
3
|
+
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
|
|
4
|
+
addons: [
|
|
5
|
+
"@storybook/addon-links",
|
|
6
|
+
"@storybook/addon-essentials",
|
|
7
|
+
"@storybook/addon-onboarding",
|
|
8
|
+
"@storybook/addon-interactions",
|
|
9
|
+
],
|
|
10
|
+
framework: {
|
|
11
|
+
name: "@storybook/react-webpack5",
|
|
12
|
+
options: {
|
|
13
|
+
builder: {
|
|
14
|
+
useSWC: true,
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
docs: {
|
|
19
|
+
autodocs: "tag",
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
export default config;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** @type { import('@storybook/react').Preview } */
|
|
2
|
+
const preview = {
|
|
3
|
+
parameters: {
|
|
4
|
+
actions: { argTypesRegex: "^on[A-Z].*" },
|
|
5
|
+
controls: {
|
|
6
|
+
matchers: {
|
|
7
|
+
color: /(background|color)$/i,
|
|
8
|
+
date: /Date$/i,
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export default preview;
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
## [1.0.0] (2026-05-29)
|
|
2
|
+
|
|
3
|
+
### Bugs fixed:
|
|
4
|
+
|
|
5
|
+
- packeges and changes([`5c544a4`](https://personal/jithstephen13/jsUiComponentLibrary/commit/5c544a4425e00e208c38b89e5631f4170abd6bfe)) (by jithstephen)
|
|
6
|
+
|
|
7
|
+
## [1.0.1] (2026-05-29)
|
|
8
|
+
|
|
9
|
+
### Bugs fixed:
|
|
10
|
+
|
|
11
|
+
- work flow changes([`2a082d8`](https://github.com-jisti78/jisti78/CTMS_common_components/commit/2a082d815bdf3b150ce9e16ec92288d502062236)) (by Jith Stephen)
|
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# jsUiComponentLibrary
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @license React
|
|
5
|
+
* react-dom.production.min.js
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the MIT license found in the
|
|
10
|
+
* LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @license React
|
|
15
|
+
* react-is.production.js
|
|
16
|
+
*
|
|
17
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the MIT license found in the
|
|
20
|
+
* LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @license React
|
|
25
|
+
* react-jsx-runtime.production.min.js
|
|
26
|
+
*
|
|
27
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
28
|
+
*
|
|
29
|
+
* This source code is licensed under the MIT license found in the
|
|
30
|
+
* LICENSE file in the root directory of this source tree.
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @license React
|
|
35
|
+
* scheduler.production.min.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/
|
|
42
|
+
|
|
43
|
+
/** @license React v16.13.1
|
|
44
|
+
* react-is.production.min.js
|
|
45
|
+
*
|
|
46
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
47
|
+
*
|
|
48
|
+
* This source code is licensed under the MIT license found in the
|
|
49
|
+
* LICENSE file in the root directory of this source tree.
|
|
50
|
+
*/
|
package/package.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ctms-common-components",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Comprehensive Temple Management System",
|
|
5
|
+
"main": "./src/lib.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"start": "webpack serve --open --config webpack.config.js",
|
|
8
|
+
"build": "webpack",
|
|
9
|
+
"prepublish": "npm run build",
|
|
10
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
11
|
+
"storybook": "storybook dev -p 6006",
|
|
12
|
+
"build-storybook": "storybook build",
|
|
13
|
+
"commit": "cz"
|
|
14
|
+
},
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "https://github.com/jisti78/CTMS_common_components"
|
|
18
|
+
},
|
|
19
|
+
"author": "ctms",
|
|
20
|
+
"license": "ISC",
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@babel/core": "^7.24.0",
|
|
23
|
+
"@babel/preset-env": "^7.24.0",
|
|
24
|
+
"@babel/preset-react": "^7.23.3",
|
|
25
|
+
"@storybook/addon-essentials": "^7.6.17",
|
|
26
|
+
"@storybook/addon-interactions": "^7.6.17",
|
|
27
|
+
"@storybook/addon-links": "^7.6.17",
|
|
28
|
+
"@storybook/addon-onboarding": "^1.0.11",
|
|
29
|
+
"@storybook/blocks": "^7.6.17",
|
|
30
|
+
"@storybook/react": "^7.6.17",
|
|
31
|
+
"@storybook/react-webpack5": "^7.6.17",
|
|
32
|
+
"@storybook/test": "^7.6.17",
|
|
33
|
+
"babel-loader": "^9.1.3",
|
|
34
|
+
"commitizen": "^4.3.0",
|
|
35
|
+
"css-loader": "^6.10.0",
|
|
36
|
+
"cz-conventional-changelog": "^3.3.0",
|
|
37
|
+
"prop-types": "^15.8.1",
|
|
38
|
+
"react": "^18.2.0",
|
|
39
|
+
"react-dom": "^18.2.0",
|
|
40
|
+
"storybook": "^7.6.17",
|
|
41
|
+
"style-loader": "^3.3.4",
|
|
42
|
+
"webpack": "^5.90.3",
|
|
43
|
+
"webpack-cli": "^5.1.4",
|
|
44
|
+
"webpack-dev-server": "^4.15.2"
|
|
45
|
+
},
|
|
46
|
+
"peerDependencies": {
|
|
47
|
+
"react": "^18.2.0",
|
|
48
|
+
"react-dom": "^18.2.0"
|
|
49
|
+
},
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"@emotion/react": "^11.14.0",
|
|
52
|
+
"@emotion/styled": "^11.14.1",
|
|
53
|
+
"@mui/icons-material": "^9.0.1",
|
|
54
|
+
"@mui/material": "^9.0.1",
|
|
55
|
+
"framer-motion": "^11.0.8",
|
|
56
|
+
"lodash-es": "^4.17.21"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
+
<meta name="theme-color" content="#000000" />
|
|
7
|
+
<meta
|
|
8
|
+
name="description"
|
|
9
|
+
content="Web site created using create-react-app"
|
|
10
|
+
/>
|
|
11
|
+
<title>React App</title>
|
|
12
|
+
</head>
|
|
13
|
+
<body>
|
|
14
|
+
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
15
|
+
<div id="root"></div>
|
|
16
|
+
</body>
|
|
17
|
+
</html>
|