@devtron-labs/devtron-fe-common-lib 1.10.16-beta-2 → 1.10.17

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 (54) hide show
  1. package/dist/{@code-editor-BPAbtV3J.js → @code-editor-BvjrvTRt.js} +4937 -4999
  2. package/dist/{@common-rjsf-BpO7Uh9_.js → @common-rjsf-DM5WzH7I.js} +1 -1
  3. package/dist/Common/Constants.d.ts +1 -0
  4. package/dist/Common/SegmentedControl/types.d.ts +0 -4
  5. package/dist/Common/Toggle/Toggle.d.ts +1 -2
  6. package/dist/Common/Types.d.ts +0 -1
  7. package/dist/Shared/Components/ConfirmationModal/index.d.ts +1 -2
  8. package/dist/Shared/Components/DatePicker/constants.d.ts +0 -9
  9. package/dist/Shared/Components/Icon/Icon.d.ts +0 -14
  10. package/dist/Shared/Components/Icon/types.d.ts +1 -1
  11. package/dist/Shared/Components/ReactSelect/constants.d.ts +11 -0
  12. package/dist/Shared/Components/SelectPicker/common.d.ts +1 -0
  13. package/dist/Shared/Components/TabGroup/TabGroup.helpers.d.ts +2 -2
  14. package/dist/Shared/Components/TabGroup/TabGroup.types.d.ts +3 -5
  15. package/dist/Shared/Components/TabGroup/TabGroup.utils.d.ts +0 -2
  16. package/dist/Shared/Components/index.d.ts +0 -1
  17. package/dist/Shared/Hooks/index.d.ts +1 -1
  18. package/dist/Shared/Hooks/useForm/useForm.d.ts +0 -8
  19. package/dist/Shared/Hooks/useUserPreferences/index.d.ts +4 -0
  20. package/dist/Shared/Hooks/useUserPreferences/service.d.ts +8 -0
  21. package/dist/Shared/Hooks/useUserPreferences/types.d.ts +80 -0
  22. package/dist/Shared/Hooks/useUserPreferences/useUserPrefrences.d.ts +10 -0
  23. package/dist/Shared/Hooks/useUserPreferences/utils.d.ts +4 -0
  24. package/dist/Shared/Services/common.service.d.ts +1 -3
  25. package/dist/Shared/Services/types.d.ts +5 -30
  26. package/dist/Shared/constants.d.ts +12 -0
  27. package/dist/Shared/types.d.ts +4 -17
  28. package/dist/assets/@code-editor.css +1 -1
  29. package/dist/assets/ic-hibernate.988d2323.svg +28 -0
  30. package/dist/index.d.ts +1 -1
  31. package/dist/index.js +500 -499
  32. package/package.json +1 -1
  33. package/dist/Shared/Components/FramerComponents/MotionDiv.d.ts +0 -2
  34. package/dist/Shared/Components/FramerComponents/index.d.ts +0 -3
  35. package/dist/Shared/Hooks/useOneTimePrompt/constants.d.ts +0 -1
  36. package/dist/Shared/Hooks/useOneTimePrompt/index.d.ts +0 -1
  37. package/dist/Shared/Hooks/useOneTimePrompt/types.d.ts +0 -3
  38. package/dist/Shared/Hooks/useOneTimePrompt/useOneTimePrompt.d.ts +0 -6
  39. package/dist/assets/ic-arrows-left-right.2d4dda45.svg +0 -3
  40. package/dist/assets/ic-check.a0f5ee85.svg +0 -3
  41. package/dist/assets/ic-close-large.fb6095e0.svg +0 -3
  42. package/dist/assets/ic-delete-lightning.2a7545bd.svg +0 -3
  43. package/dist/assets/ic-folder-user.ff0670e8.svg +0 -3
  44. package/dist/assets/ic-hibernate.f75c1e70.svg +0 -19
  45. package/dist/assets/ic-lightning-fill.25ce980f.svg +0 -3
  46. package/dist/assets/ic-lightning.02da5bf8.svg +0 -3
  47. package/dist/assets/ic-medium-delete.f33a9cd7.svg +0 -11
  48. package/dist/assets/ic-pencil.3ea1c075.svg +0 -3
  49. package/dist/assets/ic-sort-ascending.45f474ff.svg +0 -3
  50. package/dist/assets/ic-sort-descending.0ee6b8dd.svg +0 -3
  51. package/dist/assets/ic-sortable.1d3308e1.svg +0 -3
  52. package/dist/assets/ic-stamp.23836e37.svg +0 -3
  53. package/dist/assets/ic-users.102d4732.svg +0 -3
  54. /package/dist/Shared/{Services → Hooks/useUserPreferences}/constants.d.ts +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtron-labs/devtron-fe-common-lib",
3
- "version": "1.10.16-beta-2",
3
+ "version": "1.10.17",
4
4
  "description": "Supporting common component library",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,2 +0,0 @@
1
- import { HTMLMotionProps } from 'framer-motion';
2
- export declare const MotionDiv: (props: HTMLMotionProps<"div">) => JSX.Element;
@@ -1,3 +0,0 @@
1
- import { AnimatePresence } from 'framer-motion';
2
- export * from './MotionDiv';
3
- export { AnimatePresence };
@@ -1 +0,0 @@
1
- export declare const ONE_TIME_PROMPT_LOCAL_STORAGE_KEY = "one-time-prompt-do-not-show-again";
@@ -1 +0,0 @@
1
- export * from './useOneTimePrompt';
@@ -1,3 +0,0 @@
1
- export interface UseOneTimePromptProps {
2
- localStorageKey: string;
3
- }
@@ -1,6 +0,0 @@
1
- import { UseOneTimePromptProps } from './types';
2
- export declare const useOneTimePrompt: ({ localStorageKey }: UseOneTimePromptProps) => {
3
- showPrompt: boolean;
4
- handleClose: () => void;
5
- handleDoNotShowAgainClose: () => void;
6
- };
@@ -1,3 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
2
- <path stroke="#3B444C" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m16 13 3 3m0 0-3 3m3-3H5m3-5L5 8m0 0 3-3M5 8h14" vector-effect="non-scaling-stroke"/>
3
- </svg>
@@ -1,3 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
2
- <path stroke="#3B444C" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m20.25 6.75-10.5 10.5L4.5 12" vector-effect="non-scaling-stroke"/>
3
- </svg>
@@ -1,3 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
2
- <path stroke="#3B444C" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m18.75 5.25-13.5 13.5m13.5 0L5.25 5.25" vector-effect="non-scaling-stroke"/>
3
- </svg>
@@ -1,3 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
2
- <path stroke="#3B444C" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M3 6h2m0 0h16M5 6v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2m-5.071 12.5 4.5-4.821L9 14.32l4.5-4.82" vector-effect="non-scaling-stroke"/>
3
- </svg>
@@ -1,3 +0,0 @@
1
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M2.76923 19.6667L2.76704 20.4167H2.76923V19.6667ZM2 18.8974H1.25L1.25 18.8996L2 18.8974ZM2.83333 3V3.75V3ZM8.32149 3V3.75V3ZM8.91075 3.24408L8.38041 3.77441L8.38041 3.77441L8.91075 3.24408ZM11.4697 6.86366C11.7626 7.15656 12.2374 7.15656 12.5303 6.86366C12.8232 6.57077 12.8232 6.0959 12.5303 5.803L11.4697 6.86366ZM21.25 8.0463C21.25 8.46051 21.5858 8.7963 22 8.7963C22.4142 8.7963 22.75 8.46051 22.75 8.0463H21.25ZM9.01425 20.4167C9.42846 20.4167 9.76425 20.0809 9.76425 19.6667C9.76425 19.2525 9.42846 18.9167 9.01425 18.9167V20.4167ZM13 19.2773L12.3323 18.9357C12.1774 19.2384 12.2456 19.6074 12.4983 19.8348L13 19.2773ZM22 19.276L22.5018 19.8334C22.7545 19.6059 22.8225 19.237 22.6677 18.9343L22 19.276ZM2.77143 18.9167C2.76575 18.9167 2.76031 18.9144 2.75629 18.9104L1.69563 19.971C1.97988 20.2553 2.36506 20.4155 2.76704 20.4167L2.77143 18.9167ZM2.75629 18.9104C2.75228 18.9064 2.75001 18.9009 2.75 18.8952L1.25 18.8996C1.25118 19.3016 1.41139 19.6868 1.69563 19.971L2.75629 18.9104ZM2.75 18.8974V6.33333H1.25V18.8974H2.75ZM2 7.08333H21.1667V5.58333H2V7.08333ZM21.1667 7.08333C21.1888 7.08333 21.21 7.09211 21.2256 7.10774L22.2863 6.04708C21.9893 5.75015 21.5866 5.58333 21.1667 5.58333V7.08333ZM21.2256 7.10774C21.2412 7.12337 21.25 7.14456 21.25 7.16667H22.75C22.75 6.74674 22.5832 6.34402 22.2863 6.04708L21.2256 7.10774ZM2.75 6.33333V3.83333H1.25V6.33333H2.75ZM2.75 3.83333C2.75 3.81123 2.75878 3.79004 2.77441 3.77441L1.71375 2.71375C1.41682 3.01068 1.25 3.41341 1.25 3.83333H2.75ZM2.77441 3.77441C2.79004 3.75878 2.81123 3.75 2.83333 3.75V2.25C2.41341 2.25 2.01068 2.41682 1.71375 2.71375L2.77441 3.77441ZM2.83333 3.75H8.32149V2.25H2.83333V3.75ZM8.32149 3.75C8.33243 3.75 8.34327 3.75216 8.35338 3.75634L8.9274 2.37052C8.73531 2.29095 8.52941 2.25 8.32149 2.25V3.75ZM8.35338 3.75634C8.36349 3.76053 8.37268 3.76667 8.38041 3.77441L9.44108 2.71375C9.29405 2.56672 9.11951 2.45009 8.9274 2.37052L8.35338 3.75634ZM8.38041 3.77441L11.4697 6.86366L12.5303 5.803L9.44108 2.71375L8.38041 3.77441ZM21.25 7.16667V8.0463H22.75V7.16667H21.25ZM9.01425 18.9167H2.76923V20.4167H9.01425V18.9167ZM19.5437 13.7778C19.5437 14.8935 18.6326 15.8056 17.4993 15.8056V17.3056C19.4526 17.3056 21.0437 15.7303 21.0437 13.7778H19.5437ZM17.4993 15.8056C16.3659 15.8056 15.4548 14.8935 15.4548 13.7778H13.9548C13.9548 15.7303 15.546 17.3056 17.4993 17.3056V15.8056ZM15.4548 13.7778C15.4548 12.6621 16.3659 11.75 17.4993 11.75V10.25C15.546 10.25 13.9548 11.8252 13.9548 13.7778H15.4548ZM17.4993 11.75C18.6326 11.75 19.5437 12.6621 19.5437 13.7778H21.0437C21.0437 11.8252 19.4526 10.25 17.4993 10.25V11.75ZM13.6677 19.6189C14.0206 18.9292 14.5758 18.3504 15.2589 17.934L14.4781 16.6532C13.578 17.202 12.8214 17.9799 12.3323 18.9357L13.6677 19.6189ZM15.2589 17.934C15.9327 17.5232 16.7081 17.3056 17.4993 17.3056L17.4993 15.8056C16.4332 15.8056 15.3875 16.0988 14.4781 16.6532L15.2589 17.934ZM17.4993 17.3056C18.2904 17.3056 19.0658 17.5232 19.7396 17.934L20.5204 16.6532C19.611 16.0988 18.5654 15.8056 17.4993 15.8056L17.4993 17.3056ZM19.7396 17.934C20.4237 18.351 20.9799 18.9288 21.3323 19.6176L22.6677 18.9343C22.1781 17.9776 21.4196 17.2013 20.5204 16.6532L19.7396 17.934ZM21.4982 18.7186C20.4409 19.6704 19.0394 20.25 17.4993 20.25V21.75C19.4232 21.75 21.179 21.0243 22.5018 19.8334L21.4982 18.7186ZM17.4993 20.25C15.9598 20.25 14.5588 19.6709 13.5017 18.7198L12.4983 19.8348C13.821 21.0249 15.5761 21.75 17.4993 21.75V20.25Z" fill="#3B444C"/>
3
- </svg>
@@ -1,19 +0,0 @@
1
- <!--
2
- - Copyright (c) 2024. Devtron Inc.
3
- -
4
- - Licensed under the Apache License, Version 2.0 (the "License");
5
- - you may not use this file except in compliance with the License.
6
- - You may obtain a copy of the License at
7
- -
8
- - http://www.apache.org/licenses/LICENSE-2.0
9
- -
10
- - Unless required by applicable law or agreed to in writing, software
11
- - distributed under the License is distributed on an "AS IS" BASIS,
12
- - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- - See the License for the specific language governing permissions and
14
- - limitations under the License.
15
- -->
16
-
17
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
18
- <path fill-rule="evenodd" clip-rule="evenodd" d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM15 15C16.4455 15 17.7716 14.4888 18.8074 13.6374C18.0702 16.7135 15.3021 19 12 19C8.13401 19 5 15.866 5 12C5 8.69784 7.2865 5.92973 10.3626 5.19253C9.51118 6.22836 9 7.55448 9 9C9 12.3137 11.6863 15 15 15Z" fill="#3B444C"/>
19
- </svg>
@@ -1,3 +0,0 @@
1
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M19.319 11.181C19.2939 11.0743 19.2429 10.9754 19.1706 10.8931C19.0982 10.8108 19.0066 10.7476 18.904 10.7091L14.1015 8.90814L15.3237 2.79739C15.3521 2.65516 15.3334 2.50754 15.2703 2.37691C15.2073 2.24628 15.1033 2.13977 14.9743 2.07355C14.8453 2.00732 14.6981 1.98499 14.5552 2.00994C14.4124 2.03488 14.2815 2.10575 14.1825 2.21178L4.84922 12.2118C4.77444 12.2919 4.72056 12.3892 4.69236 12.4951C4.66416 12.6011 4.66252 12.7123 4.68756 12.819C4.71261 12.9257 4.76358 13.0246 4.83596 13.1069C4.90833 13.1892 4.99989 13.2524 5.10252 13.2909L9.90504 15.0918L8.68288 21.2026C8.65442 21.3448 8.67313 21.4924 8.73617 21.6231C8.79921 21.7537 8.90314 21.8602 9.0322 21.9265C9.16125 21.9927 9.30838 22.015 9.45128 21.9901C9.59417 21.9651 9.72502 21.8942 9.82399 21.7882L19.1573 11.7882C19.2321 11.7081 19.286 11.6107 19.3142 11.5048C19.3424 11.3989 19.344 11.2877 19.319 11.181Z" fill="#3B444C"/>
3
- </svg>
@@ -1,3 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
2
- <path stroke="#3B444C" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m9 22.499 1.5-7.5-6-2.25L15 1.499l-1.5 7.5 6 2.25L9 22.499Z" vector-effect="non-scaling-stroke"/>
3
- </svg>
@@ -1,11 +0,0 @@
1
- <svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path fill-rule="evenodd" clip-rule="evenodd" d="M7 24H31V41C31 43.2091 29.2091 45 27 45H11C8.79086 45 7 43.2091 7 41V24Z" fill="#F33E3E" fill-opacity="0.12" stroke="#F33E3E" stroke-width="2" stroke-linejoin="round"/>
3
- <path d="M19 29.5V39.5" stroke="#F33E3E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
4
- <path d="M24 29.5V39.5" stroke="#F33E3E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
5
- <path d="M14 29.5V39.5" stroke="#F33E3E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
6
- <path d="M42 10C43.6569 10 45 11.3431 45 13C45 14.6569 43.6569 16 42 16H33" stroke="#F33E3E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
7
- <path d="M38 23C38 21.3431 36.6569 20 35 20H27" stroke="#F33E3E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
8
- <path d="M31.6912 7.04037L4.11658 11.9025C3.57269 11.9984 3.20952 12.5171 3.30542 13.061L3.82637 16.0154C3.92227 16.5593 4.44093 16.9225 4.98482 16.8266L32.5594 11.9644C33.1033 11.8685 33.4665 11.3499 33.3706 10.806L32.8497 7.85153C32.7538 7.30764 32.2351 6.94447 31.6912 7.04037Z" fill="#F33E3E" fill-opacity="0.12" stroke="#F33E3E" stroke-width="2" stroke-linejoin="round"/>
9
- <path fill-rule="evenodd" clip-rule="evenodd" d="M12.9228 4.2572L20.8012 2.86801C21.889 2.6762 22.9263 3.40254 23.1181 4.49033L23.8127 8.42956L11.995 10.5133L11.3005 6.57411C11.1086 5.48632 11.835 4.449 12.9228 4.2572Z" stroke="#F33E3E" stroke-width="2" stroke-linejoin="round"/>
10
- <circle cx="30" cy="16" r="1" fill="#F33E3E"/>
11
- </svg>
@@ -1,3 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
2
- <path stroke="#3B444C" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12.75 6 18 11.25m-9 9H4.5a.75.75 0 0 1-.75-.75v-4.19a.75.75 0 0 1 .22-.53L15.22 3.53a.75.75 0 0 1 1.06 0l4.19 4.19a.75.75 0 0 1 0 1.06L9 20.25Z" vector-effect="non-scaling-stroke"/>
3
- </svg>
@@ -1,3 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
2
- <path stroke="#3B444C" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m7 9 5-5m0 0 5 4.999m-5-5V20" vector-effect="non-scaling-stroke"/>
3
- </svg>
@@ -1,3 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
2
- <path stroke="#3B444C" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m7 15 5 5m0 0 5-4.999m-5 5V4" vector-effect="non-scaling-stroke"/>
3
- </svg>
@@ -1,3 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
2
- <path stroke="#3B444C" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M8.25 17 12 21.5l3.75-4.5M8.25 7 12 2.5 15.75 7" vector-effect="non-scaling-stroke"/>
3
- </svg>
@@ -1,3 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
2
- <path stroke="#3B444C" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M4 22h16M5 18h14a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1Zm8.5-5 1.945-8.557A2 2 0 0 0 13.495 2h-2.99a2 2 0 0 0-1.95 2.443L10.5 13h3Z" vector-effect="non-scaling-stroke"/>
3
- </svg>
@@ -1,3 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
2
- <path stroke="#3B444C" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M8.25 15a4.875 4.875 0 1 0 0-9.75 4.875 4.875 0 0 0 0 9.75Zm0 0a8.253 8.253 0 0 0-6.75 3.506M8.25 15A8.251 8.251 0 0 1 15 18.505m-.43-13.073A4.876 4.876 0 1 1 15.893 15a8.241 8.241 0 0 1 6.75 3.506" vector-effect="non-scaling-stroke"/>
3
- </svg>