pixel-react 1.0.4 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. package/lib/assets/utils/functionUtils.d.ts +3 -0
  2. package/lib/components/DatePicker/DatePicker.d.ts +5 -0
  3. package/lib/components/DatePicker/DatePicker.stories.d.ts +9 -0
  4. package/lib/components/DatePicker/Timepicker.d.ts +4 -0
  5. package/lib/components/DatePicker/index.d.ts +1 -0
  6. package/lib/components/DatePicker/types.d.ts +81 -0
  7. package/lib/components/IconButton/IconButton.d.ts +5 -0
  8. package/lib/components/IconButton/IconButton.stories.d.ts +6 -0
  9. package/lib/components/IconButton/index.d.ts +1 -0
  10. package/lib/components/IconButton/types.d.ts +5 -0
  11. package/lib/components/InputWithDropdown/InputWithDropdown.d.ts +1 -1
  12. package/lib/components/InputWithDropdown/types.d.ts +3 -7
  13. package/lib/components/TableTree/TableTree.d.ts +1 -1
  14. package/lib/index.d.ts +68 -10
  15. package/lib/index.esm.js +8556 -224
  16. package/lib/index.esm.js.map +1 -1
  17. package/lib/index.js +8558 -224
  18. package/lib/index.js.map +1 -1
  19. package/lib/tsconfig.tsbuildinfo +1 -1
  20. package/package.json +3 -1
  21. package/src/assets/Themes/BaseTheme.scss +7 -0
  22. package/src/assets/Themes/DarkTheme.scss +7 -1
  23. package/src/assets/icons/add_variable_icon.svg +5 -0
  24. package/src/assets/icons/calendar_icon.svg +9 -0
  25. package/src/assets/icons/clock_icon.svg +11 -0
  26. package/src/assets/icons/info_icon.svg +4 -0
  27. package/src/assets/icons/left_arrow_icon.svg +3 -0
  28. package/src/assets/icons/right_arrow_icon.svg +4 -0
  29. package/src/assets/styles/_mixins.scss +1 -0
  30. package/src/assets/utils/functionUtils.ts +37 -0
  31. package/src/components/DatePicker/DatePicker.scss +387 -0
  32. package/src/components/DatePicker/DatePicker.stories.tsx +161 -0
  33. package/src/components/DatePicker/DatePicker.tsx +438 -0
  34. package/src/components/DatePicker/Timepicker.tsx +372 -0
  35. package/src/components/DatePicker/index.ts +1 -0
  36. package/src/components/DatePicker/types.ts +100 -0
  37. package/src/components/Drawer/Drawer.scss +0 -1
  38. package/src/components/Drawer/Drawer.tsx +10 -14
  39. package/src/components/Icon/iconList.ts +17 -9
  40. package/src/components/{AddButton/AddButton.scss → IconButton/IconButton.scss} +6 -2
  41. package/src/components/IconButton/IconButton.stories.tsx +25 -0
  42. package/src/components/{AddButton/AddButton.tsx → IconButton/IconButton.tsx} +10 -7
  43. package/src/components/IconButton/index.ts +1 -0
  44. package/src/components/{AddButton → IconButton}/types.ts +3 -2
  45. package/src/components/InputWithDropdown/InputWithDropdown.scss +1 -1
  46. package/src/components/InputWithDropdown/InputWithDropdown.stories.tsx +10 -13
  47. package/src/components/InputWithDropdown/InputWithDropdown.tsx +10 -8
  48. package/src/components/InputWithDropdown/types.ts +4 -7
  49. package/src/components/RadioButton/RadioButton.scss +3 -3
  50. package/src/components/Select/Select.scss +1 -1
  51. package/src/components/StateDropdown/StateDropdown.tsx +10 -15
  52. package/src/components/TableTree/TableTree.tsx +4 -0
  53. package/src/index.ts +5 -0
  54. package/src/assets/icons/expired_license_icon.svg +0 -3
  55. package/src/assets/icons/expiringSoon_license_icon.svg +0 -3
  56. package/src/components/AddButton/AddButton.stories.tsx +0 -24
  57. package/src/components/AddButton/index.ts +0 -1
@@ -1 +1 @@
1
- {"root":["../src/index.ts","../src/styleguide/colorpalette/colorpalette.stories.tsx","../src/styleguide/colorpalette/colorpalette.tsx","../src/styleguide/colorpalette/colorpalettelist.ts","../src/styleguide/colorpalette/index.ts","../src/styleguide/colorpalette/types.ts","../src/styleguide/typography/typography.stories.tsx","../src/styleguide/typography/typography.tsx","../src/styleguide/typography/typographylist.ts","../src/styleguide/typography/types.ts","../src/assets/utils/functionutils.ts","../src/components/accordion/accordion.stories.tsx","../src/components/accordion/accordion.tsx","../src/components/accordion/index.ts","../src/components/accordion/types.ts","../src/components/addbutton/addbutton.stories.tsx","../src/components/addbutton/addbutton.tsx","../src/components/addbutton/index.ts","../src/components/addbutton/types.ts","../src/components/addresourcebutton/addbutton.stories.tsx","../src/components/addresourcebutton/addbutton.tsx","../src/components/addresourcebutton/index.ts","../src/components/addresourcebutton/type.ts","../src/components/addresourcebutton/arrowsbutton/arrowsbutton.tsx","../src/components/button/button.stories.tsx","../src/components/button/button.tsx","../src/components/button/index.ts","../src/components/button/types.ts","../src/components/charts/donutchart/donutchart.stories.tsx","../src/components/charts/donutchart/donutchart.tsx","../src/components/charts/donutchart/index.ts","../src/components/charts/donutchart/type.ts","../src/components/charts/radialchart/radialchart.stories.tsx","../src/components/charts/radialchart/radialchart.tsx","../src/components/charts/radialchart/index.ts","../src/components/charts/radialchart/types.ts","../src/components/checkbox/checkbox.stories.tsx","../src/components/checkbox/checkbox.tsx","../src/components/checkbox/index.ts","../src/components/checkbox/types.ts","../src/components/chip/chip.stories.tsx","../src/components/chip/chip.tsx","../src/components/chip/index.ts","../src/components/chip/types.ts","../src/components/drawer/drawer.stories.tsx","../src/components/drawer/drawer.tsx","../src/components/drawer/types.ts","../src/components/drawer/index.ts","../src/components/expandablemenu/expandablemenu.stories.tsx","../src/components/expandablemenu/expandablemenu.tsx","../src/components/expandablemenu/index.ts","../src/components/expandablemenu/types.ts","../src/components/filedropzone/dropzone.tsx","../src/components/filedropzone/filedropzone.stories.tsx","../src/components/filedropzone/filedropzone.tsx","../src/components/filedropzone/filepreview.tsx","../src/components/filedropzone/index.ts","../src/components/filedropzone/types.ts","../src/components/form/form.stories.tsx","../src/components/form/form.tsx","../src/components/form/index.ts","../src/components/form/types.ts","../src/components/gridlayout/gridlayout.stories.tsx","../src/components/gridlayout/gridlayout.tsx","../src/components/gridlayout/index.ts","../src/components/gridlayout/types.ts","../src/components/highlighttext/highlighttext.stories.tsx","../src/components/highlighttext/highlighttext.tsx","../src/components/highlighttext/index.ts","../src/components/highlighttext/types.ts","../src/components/icon/icon.stories.tsx","../src/components/icon/icon.tsx","../src/components/icon/iconlist.ts","../src/components/icon/index.ts","../src/components/icon/types.ts","../src/components/input/input.stories.tsx","../src/components/input/input.tsx","../src/components/input/index.ts","../src/components/input/types.ts","../src/components/inputwithdropdown/inputwithdropdown.stories.tsx","../src/components/inputwithdropdown/inputwithdropdown.tsx","../src/components/inputwithdropdown/index.ts","../src/components/inputwithdropdown/types.ts","../src/components/lazyload/lazyload.stories.tsx","../src/components/lazyload/lazyload.ts","../src/components/lazyload/lazyloading.tsx","../src/components/lazyload/index.ts","../src/components/menuoption/menuoption.stories.tsx","../src/components/menuoption/menuoption.tsx","../src/components/menuoption/index.ts","../src/components/menuoption/types.ts","../src/components/minimodal/minimodal.stories.tsx","../src/components/minimodal/minimodal.tsx","../src/components/minimodal/index.ts","../src/components/minimodal/types.ts","../src/components/multiselect/dropdown.tsx","../src/components/multiselect/multiselect.stories.tsx","../src/components/multiselect/multiselect.tsx","../src/components/multiselect/multiselecttypes.ts","../src/components/multiselect/dropdowntypes.ts","../src/components/multiselect/index.ts","../src/components/radiobutton/radiobutton.stories.tsx","../src/components/radiobutton/radiobutton.tsx","../src/components/radiobutton/index.ts","../src/components/radiobutton/radiobuttontypes.tsx","../src/components/radiogroup/radiogroup.stories.tsx","../src/components/radiogroup/radiogroup.tsx","../src/components/radiogroup/index.ts","../src/components/radiogroup/radiogrouptypes.tsx","../src/components/search/search.stories.tsx","../src/components/search/search.tsx","../src/components/search/index.ts","../src/components/search/types.ts","../src/components/select/select.stories.tsx","../src/components/select/select.tsx","../src/components/select/index.ts","../src/components/select/types.ts","../src/components/select/components/dropdown/dropdown.tsx","../src/components/select/components/dropdown/dropdowntypes.ts","../src/components/statedropdown/statedropdown.stories.tsx","../src/components/statedropdown/statedropdown.tsx","../src/components/statedropdown/statedropdowntypes.tsx","../src/components/statedropdown/index.ts","../src/components/statusbutton/statusbutton.stories.tsx","../src/components/statusbutton/statusbutton.tsx","../src/components/statusbutton/index.ts","../src/components/statusbutton/types.ts","../src/components/table/table.stories.tsx","../src/components/table/table.tsx","../src/components/table/types.ts","../src/components/table/index.ts","../src/components/tabletree/tabletree.stories.tsx","../src/components/tabletree/tabletree.tsx","../src/components/tabletree/data.ts","../src/components/tabletree/index.ts","../src/components/tabs/tabs.stories.tsx","../src/components/tabs/tabs.tsx","../src/components/tabs/index.ts","../src/components/tabs/types.ts","../src/components/textarea/textarea.stories.tsx","../src/components/textarea/textarea.tsx","../src/components/textarea/types.ts","../src/components/textarea/index.tsx","../src/components/themeprovider/themeprovider.tsx","../src/components/themeprovider/index.ts","../src/components/themeprovider/types.ts","../src/components/toast/toast.stories.tsx","../src/components/toast/toast.tsx","../src/components/toast/index.ts","../src/components/toast/types.ts","../src/components/toggle/toggle.stories.tsx","../src/components/toggle/toggle.tsx","../src/components/toggle/index.ts","../src/components/toggle/types.ts","../src/components/tooltip/tooltip.stories.tsx","../src/components/tooltip/tooltip.tsx","../src/components/tooltip/index.ts","../src/components/tooltip/types.ts","../src/components/typography/typography.stories.tsx","../src/components/typography/typography.tsx","../src/components/typography/index.ts","../src/components/typography/types.ts","../src/hooks/useclickoutside.tsx","../src/hooks/usefiledropzone.tsx","../src/hooks/useportalposition.tsx","../src/hooks/usetheme.tsx","../src/hooks/keyboardevents/useesckeyevent.tsx","../src/utils/tablecell/tablecell.ts","../src/utils/checkempty/checkempty.stories.tsx","../src/utils/checkempty/checkempty.ts","../src/utils/comparearrays/comparearrays.stories.tsx","../src/utils/comparearrays/comparearrays.ts","../src/utils/compareobjects/compareobjects.stories.tsx","../src/utils/compareobjects/compareobjects.ts","../src/utils/debounce/debounce.stories.tsx","../src/utils/debounce/debounce.ts","../src/utils/ffid/ffid.stories.tsx","../src/utils/ffid/ffid.ts","../src/utils/find/findandinsert.stories.tsx","../src/utils/find/findandinsert.ts","../src/utils/getextension/getextension.stories.tsx","../src/utils/getextension/getextension.ts","../src/utils/throttle/throttle.stories.tsx","../src/utils/throttle/throttle.ts","../src/utils/truncatetext/truncatetext.stories.tsx","../src/utils/truncatetext/truncatetext.ts"],"version":"5.6.3"}
1
+ {"root":["../src/index.ts","../src/styleguide/colorpalette/colorpalette.stories.tsx","../src/styleguide/colorpalette/colorpalette.tsx","../src/styleguide/colorpalette/colorpalettelist.ts","../src/styleguide/colorpalette/index.ts","../src/styleguide/colorpalette/types.ts","../src/styleguide/typography/typography.stories.tsx","../src/styleguide/typography/typography.tsx","../src/styleguide/typography/typographylist.ts","../src/styleguide/typography/types.ts","../src/assets/utils/functionutils.ts","../src/components/accordion/accordion.stories.tsx","../src/components/accordion/accordion.tsx","../src/components/accordion/index.ts","../src/components/accordion/types.ts","../src/components/addresourcebutton/addbutton.stories.tsx","../src/components/addresourcebutton/addbutton.tsx","../src/components/addresourcebutton/index.ts","../src/components/addresourcebutton/type.ts","../src/components/addresourcebutton/arrowsbutton/arrowsbutton.tsx","../src/components/button/button.stories.tsx","../src/components/button/button.tsx","../src/components/button/index.ts","../src/components/button/types.ts","../src/components/charts/donutchart/donutchart.stories.tsx","../src/components/charts/donutchart/donutchart.tsx","../src/components/charts/donutchart/index.ts","../src/components/charts/donutchart/type.ts","../src/components/charts/radialchart/radialchart.stories.tsx","../src/components/charts/radialchart/radialchart.tsx","../src/components/charts/radialchart/index.ts","../src/components/charts/radialchart/types.ts","../src/components/checkbox/checkbox.stories.tsx","../src/components/checkbox/checkbox.tsx","../src/components/checkbox/index.ts","../src/components/checkbox/types.ts","../src/components/chip/chip.stories.tsx","../src/components/chip/chip.tsx","../src/components/chip/index.ts","../src/components/chip/types.ts","../src/components/datepicker/datepicker.stories.tsx","../src/components/datepicker/datepicker.tsx","../src/components/datepicker/timepicker.tsx","../src/components/datepicker/index.ts","../src/components/datepicker/types.ts","../src/components/drawer/drawer.stories.tsx","../src/components/drawer/drawer.tsx","../src/components/drawer/types.ts","../src/components/drawer/index.ts","../src/components/expandablemenu/expandablemenu.stories.tsx","../src/components/expandablemenu/expandablemenu.tsx","../src/components/expandablemenu/index.ts","../src/components/expandablemenu/types.ts","../src/components/filedropzone/dropzone.tsx","../src/components/filedropzone/filedropzone.stories.tsx","../src/components/filedropzone/filedropzone.tsx","../src/components/filedropzone/filepreview.tsx","../src/components/filedropzone/index.ts","../src/components/filedropzone/types.ts","../src/components/form/form.stories.tsx","../src/components/form/form.tsx","../src/components/form/index.ts","../src/components/form/types.ts","../src/components/gridlayout/gridlayout.stories.tsx","../src/components/gridlayout/gridlayout.tsx","../src/components/gridlayout/index.ts","../src/components/gridlayout/types.ts","../src/components/highlighttext/highlighttext.stories.tsx","../src/components/highlighttext/highlighttext.tsx","../src/components/highlighttext/index.ts","../src/components/highlighttext/types.ts","../src/components/icon/icon.stories.tsx","../src/components/icon/icon.tsx","../src/components/icon/iconlist.ts","../src/components/icon/index.ts","../src/components/icon/types.ts","../src/components/iconbutton/iconbutton.stories.tsx","../src/components/iconbutton/iconbutton.tsx","../src/components/iconbutton/index.ts","../src/components/iconbutton/types.ts","../src/components/input/input.stories.tsx","../src/components/input/input.tsx","../src/components/input/index.ts","../src/components/input/types.ts","../src/components/inputwithdropdown/inputwithdropdown.stories.tsx","../src/components/inputwithdropdown/inputwithdropdown.tsx","../src/components/inputwithdropdown/index.ts","../src/components/inputwithdropdown/types.ts","../src/components/lazyload/lazyload.stories.tsx","../src/components/lazyload/lazyload.ts","../src/components/lazyload/lazyloading.tsx","../src/components/lazyload/index.ts","../src/components/menuoption/menuoption.stories.tsx","../src/components/menuoption/menuoption.tsx","../src/components/menuoption/index.ts","../src/components/menuoption/types.ts","../src/components/minimodal/minimodal.stories.tsx","../src/components/minimodal/minimodal.tsx","../src/components/minimodal/index.ts","../src/components/minimodal/types.ts","../src/components/multiselect/dropdown.tsx","../src/components/multiselect/multiselect.stories.tsx","../src/components/multiselect/multiselect.tsx","../src/components/multiselect/multiselecttypes.ts","../src/components/multiselect/dropdowntypes.ts","../src/components/multiselect/index.ts","../src/components/radiobutton/radiobutton.stories.tsx","../src/components/radiobutton/radiobutton.tsx","../src/components/radiobutton/index.ts","../src/components/radiobutton/radiobuttontypes.tsx","../src/components/radiogroup/radiogroup.stories.tsx","../src/components/radiogroup/radiogroup.tsx","../src/components/radiogroup/index.ts","../src/components/radiogroup/radiogrouptypes.tsx","../src/components/search/search.stories.tsx","../src/components/search/search.tsx","../src/components/search/index.ts","../src/components/search/types.ts","../src/components/select/select.stories.tsx","../src/components/select/select.tsx","../src/components/select/index.ts","../src/components/select/types.ts","../src/components/select/components/dropdown/dropdown.tsx","../src/components/select/components/dropdown/dropdowntypes.ts","../src/components/statedropdown/statedropdown.stories.tsx","../src/components/statedropdown/statedropdown.tsx","../src/components/statedropdown/statedropdowntypes.tsx","../src/components/statedropdown/index.ts","../src/components/statusbutton/statusbutton.stories.tsx","../src/components/statusbutton/statusbutton.tsx","../src/components/statusbutton/index.ts","../src/components/statusbutton/types.ts","../src/components/table/table.stories.tsx","../src/components/table/table.tsx","../src/components/table/types.ts","../src/components/table/index.ts","../src/components/tabletree/tabletree.stories.tsx","../src/components/tabletree/tabletree.tsx","../src/components/tabletree/data.ts","../src/components/tabletree/index.ts","../src/components/tabs/tabs.stories.tsx","../src/components/tabs/tabs.tsx","../src/components/tabs/index.ts","../src/components/tabs/types.ts","../src/components/textarea/textarea.stories.tsx","../src/components/textarea/textarea.tsx","../src/components/textarea/types.ts","../src/components/textarea/index.tsx","../src/components/themeprovider/themeprovider.tsx","../src/components/themeprovider/index.ts","../src/components/themeprovider/types.ts","../src/components/toast/toast.stories.tsx","../src/components/toast/toast.tsx","../src/components/toast/index.ts","../src/components/toast/types.ts","../src/components/toggle/toggle.stories.tsx","../src/components/toggle/toggle.tsx","../src/components/toggle/index.ts","../src/components/toggle/types.ts","../src/components/tooltip/tooltip.stories.tsx","../src/components/tooltip/tooltip.tsx","../src/components/tooltip/index.ts","../src/components/tooltip/types.ts","../src/components/typography/typography.stories.tsx","../src/components/typography/typography.tsx","../src/components/typography/index.ts","../src/components/typography/types.ts","../src/hooks/useclickoutside.tsx","../src/hooks/usefiledropzone.tsx","../src/hooks/useportalposition.tsx","../src/hooks/usetheme.tsx","../src/hooks/keyboardevents/useesckeyevent.tsx","../src/utils/tablecell/tablecell.ts","../src/utils/checkempty/checkempty.stories.tsx","../src/utils/checkempty/checkempty.ts","../src/utils/comparearrays/comparearrays.stories.tsx","../src/utils/comparearrays/comparearrays.ts","../src/utils/compareobjects/compareobjects.stories.tsx","../src/utils/compareobjects/compareobjects.ts","../src/utils/debounce/debounce.stories.tsx","../src/utils/debounce/debounce.ts","../src/utils/ffid/ffid.stories.tsx","../src/utils/ffid/ffid.ts","../src/utils/find/findandinsert.stories.tsx","../src/utils/find/findandinsert.ts","../src/utils/getextension/getextension.stories.tsx","../src/utils/getextension/getextension.ts","../src/utils/throttle/throttle.stories.tsx","../src/utils/throttle/throttle.ts","../src/utils/truncatetext/truncatetext.stories.tsx","../src/utils/truncatetext/truncatetext.ts"],"version":"5.6.2"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pixel-react",
3
3
  "description": "Great for pixel-perfect, design-focused components in React",
4
- "version": "1.0.4",
4
+ "version": "1.0.6",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.esm.js",
7
7
  "types": "lib/index.d.ts",
@@ -56,6 +56,8 @@
56
56
  "@types/react-window": "^1.8.8",
57
57
  "@vitejs/plugin-react": "^4.3.0",
58
58
  "classnames": "^2.5.1",
59
+ "date-fns-tz": "^3.2.0",
60
+ "react-day-picker": "^9.2.1",
59
61
  "react-hook-form": "^7.53.0",
60
62
  "react-window": "^1.8.10",
61
63
  "scss": "^0.2.4",
@@ -151,6 +151,13 @@ $base-theme: (
151
151
 
152
152
  primary-icon-color: #ffffff,
153
153
  secondary-icon-color: #71347b,
154
+ disabled-primary-color: #F9F9F9,
155
+ license_expireSoon_color:#BA7422,
156
+ license_active_color:#268735,
157
+ license_expired_color:#E34242,
158
+ license_header_text_color:#592f7c,
159
+ license_active_status_color:#518e18,
160
+ license_expired_status_color:#ab3425,
154
161
  );
155
162
  :root {
156
163
  @each $key, $value in $base-theme {
@@ -141,7 +141,6 @@ $dark-theme: (
141
141
  status-button-text-aborted: #c50303,
142
142
  status-button-text-notExecuted: #c50303,
143
143
 
144
-
145
144
  // TODO:: Need to change the color code values of below 10 color (N/A in DS)
146
145
  ff-select-option-border-color: #ded1e5,
147
146
  ff-select-option-wrapper-box-shadow: #592f7c33,
@@ -161,6 +160,13 @@ $dark-theme: (
161
160
 
162
161
  primary-icon-color: #ffffff,
163
162
  secondary-icon-color: #71347b,
163
+ disabled-primary-color: #F9F9F9,
164
+ license_expireSoon_color:#BA7422,
165
+ license_active_color:#268735,
166
+ license_expired_color:#E34242,
167
+ license_header_text_color:#592f7c,
168
+ license_active_status_color:#518e18,
169
+ license_expired_status_color:#ab3425,
164
170
  );
165
171
  :root {
166
172
  @each $key, $value in $dark-theme {
@@ -0,0 +1,5 @@
1
+ <svg width="18" height="20" viewBox="0 0 18 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M4.5 16V16C2.567 16 1 14.433 1 12.5V4.5C1 2.567 2.567 1 4.5 1V1M11.5 1V1C13.433 1 15 2.567 15 4.5V8.5V12.25" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
3
+ <path d="M15 15V17M15 17V19M15 17H13M15 17H17" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
4
+ <path d="M8.50631 10.8893L10.4739 6H12L9.35135 12H7.63604L5 6H6.53874L8.50631 10.8893Z" fill="currentColor"/>
5
+ </svg>
@@ -0,0 +1,9 @@
1
+ <svg width="14" height="15" viewBox="0 0 14 15" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M13.878 4.05558C13.7895 2.60703 12.5608 1.47217 11.0809 1.47217H10.3604V0.920871C10.3604 0.616552 10.1095 0.369568 9.80034 0.369568C9.4912 0.369568 9.2403 0.616552 9.2403 0.920871V1.47217H4.75997V0.920871C4.75997 0.616552 4.50907 0.369568 4.19993 0.369568C3.89079 0.369568 3.63989 0.616552 3.63989 0.920871V1.47217H2.9194C1.43921 1.47217 0.210478 2.60703 0.122271 4.05558C-0.0437812 6.78012 -0.0407009 9.5438 0.131512 12.2697C0.218878 13.654 1.3454 14.763 2.75166 14.849C4.16101 14.9353 5.58043 14.9783 6.99986 14.9783C8.419 14.9783 9.83871 14.9353 11.248 14.849C12.6543 14.763 13.7808 13.654 13.8682 12.2697C14.0407 9.54518 14.0438 6.78177 13.878 4.05558ZM12.7506 12.2014C12.698 13.0319 12.0223 13.697 11.1789 13.7486C8.40612 13.9181 5.59415 13.9181 2.82139 13.7486C1.97769 13.6968 1.302 13.0316 1.24963 12.2014C1.11718 10.1056 1.09002 7.98774 1.16087 5.8826H12.8397C12.9103 7.98857 12.8831 10.1064 12.7506 12.2014ZM4.19993 3.67738C4.50907 3.67738 4.75997 3.4304 4.75997 3.12608V2.57478H9.2403V3.12608C9.2403 3.4304 9.4912 3.67738 9.80034 3.67738C10.1095 3.67738 10.3604 3.4304 10.3604 3.12608V2.57478H11.0809C11.9694 2.57478 12.707 3.25426 12.7599 4.12146C12.773 4.34033 12.7786 4.56057 12.7896 4.77999H1.21071C1.22191 4.56057 1.22723 4.34033 1.24039 4.12146C1.29332 3.25426 2.03061 2.57478 2.9194 2.57478H3.63989V3.12608C3.63989 3.4304 3.89079 3.67738 4.19993 3.67738Z" fill="currentColor"/>
3
+ <path d="M4.19944 9.19047C4.66339 9.19047 5.0395 8.82023 5.0395 8.36351C5.0395 7.9068 4.66339 7.53656 4.19944 7.53656C3.73548 7.53656 3.35938 7.9068 3.35938 8.36351C3.35938 8.82023 3.73548 9.19047 4.19944 9.19047Z" fill="currentColor"/>
4
+ <path d="M7.00022 9.19047C7.46417 9.19047 7.84028 8.82023 7.84028 8.36351C7.84028 7.9068 7.46417 7.53656 7.00022 7.53656C6.53626 7.53656 6.16016 7.9068 6.16016 8.36351C6.16016 8.82023 6.53626 9.19047 7.00022 9.19047Z" fill="currentColor"/>
5
+ <path d="M4.19944 11.9468C4.66339 11.9468 5.0395 11.5766 5.0395 11.1199C5.0395 10.6631 4.66339 10.2929 4.19944 10.2929C3.73548 10.2929 3.35938 10.6631 3.35938 11.1199C3.35938 11.5766 3.73548 11.9468 4.19944 11.9468Z" fill="currentColor"/>
6
+ <path d="M9.79905 9.19047C10.263 9.19047 10.6391 8.82023 10.6391 8.36351C10.6391 7.9068 10.263 7.53656 9.79905 7.53656C9.33509 7.53656 8.95898 7.9068 8.95898 8.36351C8.95898 8.82023 9.33509 9.19047 9.79905 9.19047Z" fill="currentColor"/>
7
+ <path d="M9.79905 11.9468C10.263 11.9468 10.6391 11.5766 10.6391 11.1199C10.6391 10.6631 10.263 10.2929 9.79905 10.2929C9.33509 10.2929 8.95898 10.6631 8.95898 11.1199C8.95898 11.5766 9.33509 11.9468 9.79905 11.9468Z" fill="currentColor"/>
8
+ <path d="M7.00022 11.9468C7.46417 11.9468 7.84028 11.5766 7.84028 11.1199C7.84028 10.6631 7.46417 10.2929 7.00022 10.2929C6.53626 10.2929 6.16016 10.6631 6.16016 11.1199C6.16016 11.5766 6.53626 11.9468 7.00022 11.9468Z" fill="currentColor"/>
9
+ </svg>
@@ -0,0 +1,11 @@
1
+ <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g clip-path="url(#clip0_842_32771)">
3
+ <path d="M6.9998 0.583282C5.7307 0.583282 4.49011 0.959613 3.43489 1.66469C2.37968 2.36976 1.55723 3.3719 1.07157 4.5444C0.58591 5.71689 0.458839 7.00707 0.706427 8.25178C0.954016 9.49649 1.56514 10.6398 2.46253 11.5372C3.35992 12.4346 4.50326 13.0457 5.74797 13.2933C6.99268 13.5409 8.28286 13.4138 9.45535 12.9282C10.6278 12.4425 11.63 11.6201 12.3351 10.5649C13.0401 9.50964 13.4165 8.26905 13.4165 6.99995C13.4145 5.29876 12.7378 3.66782 11.5349 2.4649C10.3319 1.26197 8.70099 0.585289 6.9998 0.583282ZM6.9998 12.25C5.96145 12.25 4.94641 11.942 4.08306 11.3652C3.2197 10.7883 2.54679 9.96835 2.14943 9.00904C1.75207 8.04973 1.6481 6.99413 1.85068 5.97573C2.05325 4.95732 2.55326 4.02186 3.28749 3.28764C4.02171 2.55341 4.95717 2.0534 5.97557 1.85083C6.99398 1.64825 8.04957 1.75222 9.00889 2.14958C9.9682 2.54694 10.7881 3.21985 11.365 4.08321C11.9419 4.94656 12.2498 5.9616 12.2498 6.99995C12.2481 8.39181 11.6944 9.72619 10.7102 10.7104C9.72604 11.6946 8.39166 12.2483 6.9998 12.25Z" fill="#71347B"/>
4
+ <path d="M7.58354 6.75855V3.50005C7.58354 3.34534 7.52208 3.19697 7.41268 3.08757C7.30329 2.97818 7.15491 2.91672 7.0002 2.91672C6.84549 2.91672 6.69712 2.97818 6.58772 3.08757C6.47833 3.19697 6.41687 3.34534 6.41687 3.50005V7.00005C6.4169 7.15475 6.47838 7.3031 6.58779 7.41247L8.33779 9.16247C8.4478 9.26873 8.59516 9.32752 8.7481 9.32619C8.90105 9.32486 9.04736 9.26352 9.15551 9.15536C9.26367 9.04721 9.32502 8.9009 9.32635 8.74795C9.32768 8.595 9.26888 8.44765 9.16262 8.33763L7.58354 6.75855Z" fill="#71347B"/>
5
+ </g>
6
+ <defs>
7
+ <clipPath id="clip0_842_32771">
8
+ <rect width="14" height="14" fill="white"/>
9
+ </clipPath>
10
+ </defs>
11
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M13.5 7C13.5 10.5898 10.5898 13.5 7 13.5C3.41016 13.5 0.5 10.5898 0.5 7C0.5 3.41015 3.41015 0.5 7 0.5C10.5898 0.5 13.5 3.41016 13.5 7Z" stroke="currentColor"/>
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M7.00141 4.44022C7.47304 4.44022 7.85537 4.05789 7.85537 3.58626C7.85537 3.11463 7.47304 2.7323 7.00141 2.7323C6.52978 2.7323 6.14745 3.11463 6.14745 3.58626C6.14745 4.05789 6.52978 4.44022 7.00141 4.44022ZM5.8623 5.36406H5.3623V6.36406H5.8623H6.50092V9.91851H5.8623H5.3623V10.9185H5.8623H7.00092H8.13953H8.63953V9.91851H8.13953H7.50092V5.86406C7.50092 5.58792 7.27706 5.36406 7.00092 5.36406H5.8623Z" fill="currentColor"/>
4
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="15" height="11" viewBox="0 0 15 11" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M1.5 5.49982H13.5M1.5 5.49982C1.50001 6.48801 5.99985 9.99999 5.99985 9.99999M1.5 5.49982C1.49999 4.51162 5.99987 1 5.99987 1" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
3
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg width="15" height="11" viewBox="0 0 15 11" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M13.4999 5.49976L1.5 5.49976" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <path d="M9.00003 9.99995C9.00003 9.99995 13.5 6.48814 13.5 5.49995C13.5 4.51176 9 1 9 1" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
4
+ </svg>
@@ -3,6 +3,7 @@
3
3
  display: flex;
4
4
  justify-content: center;
5
5
  align-items: center;
6
+ align-content: center;
6
7
  }
7
8
 
8
9
  // Mixin for transition effects
@@ -3,3 +3,40 @@ export const isFunction = (functionToCheck: any) => {
3
3
  functionToCheck && {}.toString.call(functionToCheck) === '[object Function]'
4
4
  );
5
5
  };
6
+
7
+
8
+ export const convertTo24Hour = (time12h: string): string => {
9
+ const [time, modifier] = time12h.split(' ');
10
+ if (!time || !modifier) return '00:00';
11
+
12
+ let [hours, minutes] = time.split(':');
13
+ if (!hours || !minutes) return '00:00';
14
+
15
+ if (hours === '12') {
16
+ hours = '00';
17
+ }
18
+
19
+ if (modifier.toUpperCase() === 'PM') {
20
+ hours = (parseInt(hours, 10) + 12).toString();
21
+ }
22
+
23
+ return `${hours.padStart(2, '0')}:${minutes.padStart(2, '0')}`;
24
+ };
25
+
26
+ export const convertTo12Hour = (time24: string): string => {
27
+ const [hoursStr, minutesStr] = time24.split(':');
28
+ const hours = parseInt(hoursStr ?? '0', 10);
29
+ const minutes = parseInt(minutesStr ?? '0', 10);
30
+
31
+ const ampm = hours >= 12 ? 'PM' : 'AM';
32
+ const hours12 = hours % 12 || 12;
33
+
34
+ return `${hours12.toString().padStart(2, '0')}:${minutes
35
+ .toString()
36
+ .padStart(2, '0')} ${ampm}`;
37
+ };
38
+
39
+ export const isValid12HourTime = (timeString: string): boolean => {
40
+ const regex = /^(0[1-9]|1[0-2]):([0-5][0-9])(?:\s?(AM|PM))?$/i;
41
+ return regex.test(timeString);
42
+ };
@@ -0,0 +1,387 @@
1
+ @use '../../assets/styles/fonts';
2
+ @import 'react-day-picker/style.css';
3
+
4
+ /* Custom date picker styling */
5
+ .ff-date-picker {
6
+ // day-picker variable override
7
+ .rdp-root {
8
+ --rdp-accent-color: var(--brand-color);
9
+ --rdp-day-height: 24px;
10
+ --rdp-day-width: 36px;
11
+ @include fonts.fontPoppins(12px);
12
+ --rdp-font-family: 'Poppins', sans-serif;
13
+ }
14
+
15
+ .ff-cursor-pointer{
16
+ cursor: pointer;
17
+ }
18
+
19
+ position: relative;
20
+
21
+ .ff-datepicker-input-container {
22
+ display: flex;
23
+ gap: 10px;
24
+
25
+ .ff-input-with-icon {
26
+ position: relative;
27
+ display: flex;
28
+ flex-direction: column;
29
+ align-items: flex-start;
30
+
31
+ .ff-date-input,
32
+ .ff-time-input {
33
+ padding: 4px 8px;
34
+ padding-left: 2rem;
35
+ height: 32px;
36
+ border-radius: 5px;
37
+ border: 1px solid var(--border-color);
38
+ @extend .fontXs;
39
+ color: var(--status-skipped-text-color);
40
+ line-height: 15px;
41
+ box-sizing: border-box;
42
+
43
+ &:focus {
44
+ outline: none;
45
+ }
46
+ }
47
+
48
+ .ff-calendar-icon,
49
+ .ff-clock-icon {
50
+ position: absolute;
51
+ transform: translate(50%, 50%);
52
+ display: flex;
53
+ align-items: center;
54
+ pointer-events: none;
55
+ }
56
+ }
57
+
58
+ .ff-date-input-field {
59
+ flex: 1;
60
+ .ff-date-input {
61
+ width: 100%;
62
+ }
63
+
64
+ .ff-date-input-message {
65
+ @extend .font-size-8;
66
+ padding: 0px 4px;
67
+ margin-left: 8px;
68
+ line-height: 12px;
69
+ &--danger {
70
+ color: var(--input-error-text-color);
71
+ }
72
+ }
73
+ }
74
+
75
+ .ff-time-input-field {
76
+ flex: 0 0 120px;
77
+ .ff-time-input {
78
+ width: 100%;
79
+ }
80
+ }
81
+ }
82
+ .ff-date-picker-container {
83
+ display: flex;
84
+ flex-direction: column;
85
+ position: absolute;
86
+ border-radius: 8px;
87
+ padding: 4px;
88
+ box-sizing: border-box;
89
+ background-color: var(--tab-bg-color);
90
+ box-shadow: 0 0 12px 0 #00000033;
91
+ gap: 8px;
92
+ z-index: 10;
93
+
94
+ .ff-calendar-container {
95
+ display: flex;
96
+ align-items: flex-start;
97
+ gap: 4px;
98
+ height: 240px;
99
+ }
100
+
101
+ .ff-date-picker-controls {
102
+ padding: 4px;
103
+ display: flex;
104
+ justify-content: end;
105
+ gap: 8px;
106
+ border-top: 1px solid var(--border-color);
107
+
108
+ .ff-date-picker-button {
109
+ font-weight: 600;
110
+ line-height: 15px;
111
+ }
112
+ }
113
+ }
114
+
115
+ .ff-calendar {
116
+ .ff-calendar-nav-button {
117
+ margin: 0 5px;
118
+ border: 1px solid var(--border-color);
119
+ background-color: var(--toggle-button-bg-color);
120
+ box-shadow: 0 -2px 2px 0 var(--ff-mini-modal-box-shadow);
121
+ padding: 4px;
122
+ border-radius: 30%;
123
+ cursor: pointer;
124
+
125
+ &:disabled {
126
+ cursor: auto;
127
+ opacity: 0.5;
128
+ }
129
+ }
130
+
131
+ .ff-calendar-haeder {
132
+ display: flex;
133
+ align-items: center;
134
+ gap: 5px;
135
+ color: var(--text-color);
136
+ }
137
+
138
+ .ff-custom-year_grid,
139
+ .ff-custom-month_grid {
140
+ width: calc((var(--rdp-day-width) + 4px) * 7);
141
+ display: grid;
142
+ grid-template-columns: repeat(3, 1fr);
143
+ gap: 10px;
144
+ padding: 5px;
145
+ max-width: 100%;
146
+
147
+ .ff-custom-year,
148
+ .ff-custom-month {
149
+ padding: 10px 0;
150
+ text-align: center;
151
+ cursor: pointer;
152
+ border-radius: 8px;
153
+ background-color: #f9f9f9; // color need to be change
154
+
155
+ &--selected {
156
+ background-color: var(--brand-color);
157
+ color: var(--primary-button-text-color);
158
+ }
159
+ }
160
+ }
161
+
162
+ .rdp-weekdays {
163
+ th {
164
+ color: #6f7c8e; // color need to be change
165
+ font-weight: 400;
166
+ }
167
+ }
168
+
169
+ .rdp-day {
170
+ padding: 2px;
171
+ font-weight: 500;
172
+ }
173
+
174
+ .rdp-day_button {
175
+ border-radius: 4px;
176
+ padding: 3px 9px;
177
+
178
+ &:hover {
179
+ background-color: var(--hover-color);
180
+ }
181
+ }
182
+ .rdp-selected {
183
+ font: inherit;
184
+ .rdp-day_button {
185
+ background: var(--rdp-accent-color);
186
+ color: var(--drawer-footer-bg);
187
+ border: none;
188
+ }
189
+ }
190
+ .rdp-today:not(.rdp-outside) {
191
+ .rdp-day_button {
192
+ border: 2px solid var(--rdp-accent-color);
193
+ }
194
+ }
195
+ }
196
+
197
+ // Timepicker css ************************************************************************
198
+
199
+ .ff-time-picker-container {
200
+ position: relative;
201
+ width: 150px;
202
+ height: 100%;
203
+ overflow-y: hidden;
204
+ border-left: 1px solid #ccc;
205
+ padding: 10px 5px;
206
+ box-sizing: border-box;
207
+
208
+ &::-webkit-scrollbar {
209
+ display: none;
210
+ }
211
+
212
+ .ff-time-picker-fields {
213
+ display: flex;
214
+ height: 14%;
215
+ width: 100%;
216
+ margin-bottom: 5px;
217
+ box-sizing: border-box;
218
+
219
+ .ff-time-input-container {
220
+ display: flex;
221
+ border: 1px solid var(--border-color);
222
+ border-right: 0;
223
+ border-radius: 4px 0 0 4px;
224
+ width: 55%;
225
+ position: relative;
226
+
227
+ .ff-time-input {
228
+ border: none;
229
+ padding: 5px;
230
+ width: 100%;
231
+ text-align: center;
232
+ border-radius: 4px 0 0 4px;
233
+ @extend .fontSm;
234
+
235
+ &::placeholder {
236
+ opacity: 0;
237
+ line-height: 18px;
238
+ }
239
+ }
240
+
241
+ .ff-time-input-label {
242
+ position: absolute;
243
+ left: 10px;
244
+ top: 50%;
245
+ transform: translateY(-50%);
246
+ transition: 0.2s ease all;
247
+ color: var(--input-default-label-color);
248
+ pointer-events: none;
249
+ }
250
+
251
+ &--float .ff-time-input-label {
252
+ top: 0;
253
+ left: 5px;
254
+ color: var(--brand-color);
255
+ background-color: var(--input-label-bg-color);
256
+ line-height: 12px;
257
+ padding: 0 2px;
258
+ font-size: 8px !important;
259
+
260
+ &--danger {
261
+ color: var(--input-error-text-color);
262
+ }
263
+ }
264
+
265
+ &:hover {
266
+ border-color: var(--input-hover-border-color);
267
+ }
268
+
269
+ &:focus-within {
270
+ border-color: var(--brand-color);
271
+
272
+ .ff-time-input-label {
273
+ top: 0;
274
+ left: 5px;
275
+ color: var(--brand-color);
276
+ background-color: var(--input-label-bg-color);
277
+ line-height: 12px;
278
+ padding: 0 2px;
279
+ font-size: 8px !important;
280
+
281
+ &--danger {
282
+ color: var(--input-error-text-color);
283
+ }
284
+ }
285
+
286
+ .ff-time-input {
287
+ &::placeholder {
288
+ opacity: 1;
289
+ margin-bottom: 1px;
290
+ }
291
+ }
292
+ }
293
+
294
+ &--danger {
295
+ border-color: var(--input-error-text-color) !important;
296
+ }
297
+
298
+ .ff-time-input:focus {
299
+ outline: none;
300
+ }
301
+ }
302
+ .ff-time-period-container {
303
+ position: relative;
304
+ width: 45%;
305
+ display: flex;
306
+ border: 1px solid var(--border-color);
307
+ border-radius: 0 4px 4px 0;
308
+
309
+ .ff-time-period-select {
310
+ display: flex;
311
+ align-items: center;
312
+ padding: 0 5px;
313
+ width: 100%;
314
+ border-radius: 4px;
315
+ background-color: white;
316
+ cursor: pointer;
317
+ border: none;
318
+ }
319
+ &--active {
320
+ border-color: var(--brand-color) !important;
321
+ }
322
+ &:hover {
323
+ border-color: var(--input-hover-border-color);
324
+ }
325
+
326
+ .ff-time-period-icon {
327
+ margin-left: auto;
328
+ pointer-events: none;
329
+ }
330
+
331
+ .ff-time-period-options {
332
+ position: fixed;
333
+ z-index: 100;
334
+ min-width: 60px;
335
+ margin: 4px 0 0;
336
+ padding: 0;
337
+ list-style: none;
338
+ border: 1px solid var(--ff-select-background-color);
339
+ border-radius: 4px;
340
+ background-color: var(--primary-button-text-color);
341
+ box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
342
+ }
343
+
344
+ .ff-option-item {
345
+ padding: 8px;
346
+ color: var(--text-color);
347
+ border-radius: 4px;
348
+ cursor: pointer;
349
+ transition: background-color 0.2s ease;
350
+
351
+ &:hover {
352
+ background-color: var(--ff-select-option-hover-color);
353
+ }
354
+ }
355
+ }
356
+ }
357
+ .ff-time-picker-options {
358
+ height: 86%;
359
+ overflow-y: auto;
360
+ padding-right: 5px;
361
+
362
+ &::-webkit-scrollbar {
363
+ width: 4px;
364
+ height: 12px;
365
+
366
+ &-thumb {
367
+ background-color: var(--ff-select-scroll-thumb-color);
368
+ border-radius: 4px;
369
+ }
370
+
371
+ &-track {
372
+ background-color: var(--hover-color); // color need to be change
373
+ border-radius: 4px;
374
+ }
375
+ }
376
+
377
+ .ff-time-option {
378
+ padding: 10px 12px;
379
+ cursor: pointer;
380
+ text-align: center;
381
+ border-radius: 8px;
382
+ background-color: rgba(249, 249, 249); // color need to be change
383
+ margin: 10px 0;
384
+ }
385
+ }
386
+ }
387
+ }