freemium-ui 2.0.63 → 2.0.65

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/lib/index.cjs.js CHANGED
@@ -17234,70 +17234,72 @@ e.preventDefault(),a?.("button",e)},"aria-label":i},i)),u&&e.createElement(Yy,{
17234
17234
  asChild:!0},e.createElement(xm,{variant:"primary","aria-disabled":s,disabled:s,
17235
17235
  onClick:e=>{e.preventDefault(),o?.(e)},"aria-label":u},u))))))
17236
17236
  },exports.CrossIcon=ro,exports.DatePicker=t=>{
17237
- const{placeholder:n,name:r,isRequired:o,label:a,isErrored:i,errorText:l,id:c,portalContainer:s,disabled:u,displayFormat:d="YYYY-MM-DD",...h}=t,p=cr()
17238
- ;return e.createElement(WN,{id:`date-picker-container-${c??""}`.trim(),
17239
- "aria-invalid":i,dir:p.direction},a&&e.createElement(Do,{htmlFor:t.id,
17237
+ const{placeholder:n,name:r,isRequired:o,label:a,isErrored:i,language:l,errorText:c,id:s,portalContainer:u,todayButtonText:d="Today",clearButtonText:h="Clear",disabled:p,displayFormat:f="YYYY-MM-DD",...m}=t,v=cr()
17238
+ ;return e.createElement(WN,{id:`date-picker-container-${s??""}`.trim(),
17239
+ "aria-invalid":i,dir:v.direction},a&&e.createElement(Do,{htmlFor:t.id,
17240
17240
  className:"input-label"
17241
17241
  },a,a&&o&&e.createElement(Ao,null,"*")),e.createElement(GN,{$isErrored:i,
17242
17242
  disabled:t.disabled}),e.createElement(vN,{canClearSelection:!0,
17243
- closeOnSelection:!1,disabled:u,maxDate:FN(new Date).add(10,"years").toDate(),
17244
- fill:!0,highlightCurrentDay:!0,inputProps:{placeholder:n||d,name:r,id:c,
17245
- "aria-disabled":u},dayPickerProps:{disabled:u,dir:p.direction,components:{
17246
- Dropdown:t=>e.createElement(qN,{...t,disabled:u})}},showActionsBar:!0,
17243
+ closeOnSelection:!1,disabled:p,todayButtonText:d,clearButtonText:h,
17244
+ locale:l||"en",maxDate:FN(new Date).add(10,"years").toDate(),fill:!0,
17245
+ highlightCurrentDay:!0,inputProps:{placeholder:n||f,name:r,id:s,
17246
+ "aria-disabled":p},dayPickerProps:{disabled:p,dir:v.direction,components:{
17247
+ Dropdown:t=>e.createElement(qN,{...t,disabled:p})}},showActionsBar:!0,
17247
17248
  popoverProps:{minimal:!1,
17248
- placement:"ltr"===p.direction?"bottom-start":"bottom-end",usePortal:!0,
17249
- portalContainer:s??document.body},parseDate:e=>e?FN(e).toDate():new Date,
17250
- formatDate:e=>e?FN(e).format(d):"",...h}),i&&l&&e.createElement(lm,null,l))
17249
+ placement:"ltr"===v.direction?"bottom-start":"bottom-end",usePortal:!0,
17250
+ portalContainer:u??document.body},parseDate:e=>e?FN(e).toDate():new Date,
17251
+ formatDate:e=>e?FN(e).format(f):"",...m}),i&&c&&e.createElement(lm,null,c))
17251
17252
  },exports.DateRangePicker=t=>{
17252
- const{placeholder:n,name:r,isRequired:o,label:a,isErrored:i,errorText:l,id:c,disabled:s,displayFormat:u="YYYY-MM-DD",...d}=t,h=cr()
17253
+ const{placeholder:n,name:r,isRequired:o,label:a,isErrored:i,errorText:l,id:c,disabled:s,clearButtonText:u="Clear",language:d,displayFormat:h="YYYY-MM-DD",...p}=t,f=cr()
17253
17254
  ;return e.createElement(WN,{id:`date-picker-container-${c??""}`.trim(),
17254
- "aria-invalid":i,dir:h.direction},a&&e.createElement(Do,{htmlFor:t.id,
17255
+ "aria-invalid":i,dir:f.direction},a&&e.createElement(Do,{htmlFor:t.id,
17255
17256
  className:"input-label"
17256
17257
  },a,a&&o&&e.createElement(Ao,null,"*")),e.createElement(GN,{$isErrored:i,
17257
17258
  disabled:t.disabled}),e.createElement(PN,{closeOnSelection:!1,disabled:s,
17258
- maxDate:FN(new Date).add(10,"years").toDate(),fill:!0,highlightCurrentDay:!0,
17259
- shortcuts:!1,startInputProps:{placeholder:n||u,name:r,id:`start-${c}`,
17260
- "aria-disabled":s},endInputProps:{placeholder:n||u,name:r,id:`end-${c}`,
17261
- "aria-disabled":s},dayPickerProps:{disabled:s,dir:h.direction,components:{
17262
- Dropdown:t=>e.createElement(qN,{...t,disabled:s})}},
17259
+ locale:d||"en",maxDate:FN(new Date).add(10,"years").toDate(),fill:!0,
17260
+ highlightCurrentDay:!0,shortcuts:!1,startInputProps:{placeholder:n||h,name:r,
17261
+ id:`start-${c}`,"aria-disabled":s},endInputProps:{placeholder:n||h,name:r,
17262
+ id:`end-${c}`,"aria-disabled":s},dayPickerProps:{disabled:s,dir:f.direction,
17263
+ components:{Dropdown:t=>e.createElement(qN,{...t,disabled:s})}},
17263
17264
  footerElement:e.createElement(YN,null,e.createElement(UN,{onClick:()=>{
17264
- d.onChange?.([null,null])}},"Clear")),popoverProps:{minimal:!1,
17265
- placement:"ltr"===h.direction?"bottom-start":"bottom-end",usePortal:!0},
17266
- parseDate:e=>e?FN(e).toDate():new Date,formatDate:e=>e?FN(e).format(u):"",...d
17265
+ p.onChange?.([null,null])}},u)),popoverProps:{minimal:!1,
17266
+ placement:"ltr"===f.direction?"bottom-start":"bottom-end",usePortal:!0},
17267
+ parseDate:e=>e?FN(e).toDate():new Date,formatDate:e=>e?FN(e).format(h):"",...p
17267
17268
  }),i&&l&&e.createElement(lm,null,l))},exports.DateTimePicker=t=>{
17268
- const{placeholder:n,name:r,isRequired:o,label:a,isErrored:i,errorText:l,id:c,portalContainer:s,disabled:u,displayFormat:d="YYYY-MM-DD hh:mm A",...h}=t,p=cr()
17269
+ const{placeholder:n,name:r,isRequired:o,label:a,isErrored:i,errorText:l,id:c,todayButtonText:s="Today",clearButtonText:u="Clear",language:d,portalContainer:h,disabled:p,displayFormat:f="YYYY-MM-DD hh:mm A",...m}=t,v=cr()
17269
17270
  ;return e.createElement(WN,{id:`datetime-picker-container-${c??""}`.trim(),
17270
- "aria-invalid":i,dir:p.direction},a&&e.createElement(Do,{htmlFor:t.id,
17271
+ "aria-invalid":i,dir:v.direction},a&&e.createElement(Do,{htmlFor:t.id,
17271
17272
  className:"input-label"
17272
17273
  },a,a&&o&&e.createElement(Ao,null,"*")),e.createElement(GN,{$isErrored:i,
17273
17274
  disabled:t.disabled}),e.createElement(vN,{canClearSelection:!0,
17274
- closeOnSelection:!1,disabled:u,maxDate:FN(new Date).add(10,"years").toDate(),
17275
+ closeOnSelection:!1,disabled:p,locale:d||"en",todayButtonText:s,
17276
+ clearButtonText:u,maxDate:FN(new Date).add(10,"years").toDate(),
17275
17277
  minDate:FN(new Date).subtract(100,"years").toDate(),fill:!0,
17276
- highlightCurrentDay:!0,inputProps:{placeholder:n||d,name:r,id:c,
17277
- "aria-disabled":u},dayPickerProps:{disabled:u,dir:p.direction,components:{
17278
- Dropdown:t=>e.createElement(qN,{...t,disabled:u})}},showActionsBar:!0,
17278
+ highlightCurrentDay:!0,inputProps:{placeholder:n||f,name:r,id:c,
17279
+ "aria-disabled":p},dayPickerProps:{disabled:p,dir:v.direction,components:{
17280
+ Dropdown:t=>e.createElement(qN,{...t,disabled:p})}},showActionsBar:!0,
17279
17281
  timePrecision:"minute",timePickerProps:{useAmPm:!0,showArrowButtons:!1},
17280
17282
  showTimezoneSelect:!1,disableTimezoneSelect:!0,popoverProps:{minimal:!1,
17281
- placement:"ltr"===p.direction?"bottom-start":"bottom-end",usePortal:!0,
17282
- portalContainer:s??document.body},parseDate:e=>e?FN(e).toDate():new Date,
17283
- formatDate:e=>e?FN(e).format(d):"",...h}),i&&l&&e.createElement(lm,null,l))
17283
+ placement:"ltr"===v.direction?"bottom-start":"bottom-end",usePortal:!0,
17284
+ portalContainer:h??document.body},parseDate:e=>e?FN(e).toDate():new Date,
17285
+ formatDate:e=>e?FN(e).format(f):"",...m}),i&&l&&e.createElement(lm,null,l))
17284
17286
  },exports.DateTimeRangePicker=t=>{
17285
- const{placeholder:n,name:r,isRequired:o,label:a,isErrored:i,errorText:l,id:c,disabled:s,displayFormat:u="YYYY-MM-DD hh:mm A",...d}=t,h=cr()
17287
+ const{placeholder:n,name:r,isRequired:o,label:a,isErrored:i,errorText:l,id:c,clearButtonText:s="Clear",language:u,disabled:d,displayFormat:h="YYYY-MM-DD hh:mm A",...p}=t,f=cr()
17286
17288
  ;return e.createElement(WN,{id:`date-picker-container-${c??""}`.trim(),
17287
- "aria-invalid":i,dir:h.direction},a&&e.createElement(Do,{htmlFor:t.id,
17289
+ "aria-invalid":i,dir:f.direction},a&&e.createElement(Do,{htmlFor:t.id,
17288
17290
  className:"input-label"
17289
17291
  },a,a&&o&&e.createElement(Ao,null,"*")),e.createElement(GN,{$isErrored:i,
17290
- disabled:t.disabled}),e.createElement(PN,{closeOnSelection:!1,disabled:s,
17291
- maxDate:FN(new Date).add(10,"years").toDate(),fill:!0,highlightCurrentDay:!0,
17292
- shortcuts:!1,startInputProps:{placeholder:n||u,name:r,id:`start-${c}`,
17293
- "aria-disabled":s},endInputProps:{placeholder:n||u,name:r,id:`end-${c}`,
17294
- "aria-disabled":s},dayPickerProps:{disabled:s,dir:h.direction,components:{
17295
- Dropdown:t=>e.createElement(qN,{...t,disabled:s})}},timePrecision:"minute",
17296
- timePickerProps:{useAmPm:!0,showArrowButtons:!1},
17292
+ disabled:t.disabled}),e.createElement(PN,{closeOnSelection:!1,disabled:d,
17293
+ locale:u||"en",maxDate:FN(new Date).add(10,"years").toDate(),fill:!0,
17294
+ highlightCurrentDay:!0,shortcuts:!1,startInputProps:{placeholder:n||h,name:r,
17295
+ id:`start-${c}`,"aria-disabled":d},endInputProps:{placeholder:n||h,name:r,
17296
+ id:`end-${c}`,"aria-disabled":d},dayPickerProps:{disabled:d,dir:f.direction,
17297
+ components:{Dropdown:t=>e.createElement(qN,{...t,disabled:d})}},
17298
+ timePrecision:"minute",timePickerProps:{useAmPm:!0,showArrowButtons:!1},
17297
17299
  footerElement:e.createElement(YN,null,e.createElement(UN,{onClick:()=>{
17298
- d.onChange?.([null,null])}},"Clear")),popoverProps:{minimal:!1,
17299
- placement:"ltr"===h.direction?"bottom-start":"bottom-end",usePortal:!0},
17300
- parseDate:e=>e?FN(e).toDate():new Date,formatDate:e=>e?FN(e).format(u):"",...d
17300
+ p.onChange?.([null,null])}},s)),popoverProps:{minimal:!1,
17301
+ placement:"ltr"===f.direction?"bottom-start":"bottom-end",usePortal:!0},
17302
+ parseDate:e=>e?FN(e).toDate():new Date,formatDate:e=>e?FN(e).format(h):"",...p
17301
17303
  }),i&&l&&e.createElement(lm,null,l))
17302
17304
  },exports.Drawer=({isOpen:t,children:n,hideDismissIcon:r,customClass:o="",size:a="default",isFullHeight:i=!0,placement:l="right",clickOutToClose:c=!1,onDismiss:s})=>{
17303
17305
  const u=cr(),d="rtl"===u.direction?"right"===l?"left":"right":l
package/lib/index.d.ts CHANGED
@@ -998,7 +998,10 @@ type DefaultProps = {
998
998
  * label for the picker
999
999
  */
1000
1000
  label?: string;
1001
+ language?: string;
1001
1002
  placeholder?: string;
1003
+ todayButtonText?: string;
1004
+ clearButtonText?: string;
1002
1005
  /**
1003
1006
  * Whether disabled select
1004
1007
  */
package/lib/index.js CHANGED
@@ -13605,70 +13605,72 @@ defaultSelectedItem:n.find((t=>t.id===e.value))??null,style:e.style,
13605
13605
  className:`${e.className??""} bp-custom-dropdown bp-custom-dropdown-${e.name??""}`.trim(),
13606
13606
  onChange:t=>{e?.onChange?.({target:{value:t?.id}})}})}
13607
13607
  return t.createElement(kb,{itemToString:()=>"",type:"button"})},EF=e=>{
13608
- const{placeholder:n,name:r,isRequired:o,label:a,isErrored:i,errorText:l,id:c,portalContainer:s,disabled:u,displayFormat:d="YYYY-MM-DD",...h}=e,p=Hr()
13609
- ;return t.createElement(CF,{id:`date-picker-container-${c??""}`.trim(),
13610
- "aria-invalid":i,dir:p.direction},a&&t.createElement(Zo,{htmlFor:e.id,
13608
+ const{placeholder:n,name:r,isRequired:o,label:a,isErrored:i,language:l,errorText:c,id:s,portalContainer:u,todayButtonText:d="Today",clearButtonText:h="Clear",disabled:p,displayFormat:f="YYYY-MM-DD",...m}=e,v=Hr()
13609
+ ;return t.createElement(CF,{id:`date-picker-container-${s??""}`.trim(),
13610
+ "aria-invalid":i,dir:v.direction},a&&t.createElement(Zo,{htmlFor:e.id,
13611
13611
  className:"input-label"
13612
13612
  },a,a&&o&&t.createElement(Jo,null,"*")),t.createElement(zF,{$isErrored:i,
13613
13613
  disabled:e.disabled}),t.createElement(YN,{canClearSelection:!0,
13614
- closeOnSelection:!1,disabled:u,maxDate:mF(new Date).add(10,"years").toDate(),
13615
- fill:!0,highlightCurrentDay:!0,inputProps:{placeholder:n||d,name:r,id:c,
13616
- "aria-disabled":u},dayPickerProps:{disabled:u,dir:p.direction,components:{
13617
- Dropdown:e=>t.createElement(xF,{...e,disabled:u})}},showActionsBar:!0,
13614
+ closeOnSelection:!1,disabled:p,todayButtonText:d,clearButtonText:h,
13615
+ locale:l||"en",maxDate:mF(new Date).add(10,"years").toDate(),fill:!0,
13616
+ highlightCurrentDay:!0,inputProps:{placeholder:n||f,name:r,id:s,
13617
+ "aria-disabled":p},dayPickerProps:{disabled:p,dir:v.direction,components:{
13618
+ Dropdown:e=>t.createElement(xF,{...e,disabled:p})}},showActionsBar:!0,
13618
13619
  popoverProps:{minimal:!1,
13619
- placement:"ltr"===p.direction?"bottom-start":"bottom-end",usePortal:!0,
13620
- portalContainer:s??document.body},parseDate:e=>e?mF(e).toDate():new Date,
13621
- formatDate:e=>e?mF(e).format(d):"",...h}),i&&l&&t.createElement(Dm,null,l))
13620
+ placement:"ltr"===v.direction?"bottom-start":"bottom-end",usePortal:!0,
13621
+ portalContainer:u??document.body},parseDate:e=>e?mF(e).toDate():new Date,
13622
+ formatDate:e=>e?mF(e).format(f):"",...m}),i&&c&&t.createElement(Dm,null,c))
13622
13623
  },SF=e=>{
13623
- const{placeholder:n,name:r,isRequired:o,label:a,isErrored:i,errorText:l,id:c,portalContainer:s,disabled:u,displayFormat:d="YYYY-MM-DD hh:mm A",...h}=e,p=Hr()
13624
+ const{placeholder:n,name:r,isRequired:o,label:a,isErrored:i,errorText:l,id:c,todayButtonText:s="Today",clearButtonText:u="Clear",language:d,portalContainer:h,disabled:p,displayFormat:f="YYYY-MM-DD hh:mm A",...m}=e,v=Hr()
13624
13625
  ;return t.createElement(CF,{id:`datetime-picker-container-${c??""}`.trim(),
13625
- "aria-invalid":i,dir:p.direction},a&&t.createElement(Zo,{htmlFor:e.id,
13626
+ "aria-invalid":i,dir:v.direction},a&&t.createElement(Zo,{htmlFor:e.id,
13626
13627
  className:"input-label"
13627
13628
  },a,a&&o&&t.createElement(Jo,null,"*")),t.createElement(zF,{$isErrored:i,
13628
13629
  disabled:e.disabled}),t.createElement(YN,{canClearSelection:!0,
13629
- closeOnSelection:!1,disabled:u,maxDate:mF(new Date).add(10,"years").toDate(),
13630
+ closeOnSelection:!1,disabled:p,locale:d||"en",todayButtonText:s,
13631
+ clearButtonText:u,maxDate:mF(new Date).add(10,"years").toDate(),
13630
13632
  minDate:mF(new Date).subtract(100,"years").toDate(),fill:!0,
13631
- highlightCurrentDay:!0,inputProps:{placeholder:n||d,name:r,id:c,
13632
- "aria-disabled":u},dayPickerProps:{disabled:u,dir:p.direction,components:{
13633
- Dropdown:e=>t.createElement(xF,{...e,disabled:u})}},showActionsBar:!0,
13633
+ highlightCurrentDay:!0,inputProps:{placeholder:n||f,name:r,id:c,
13634
+ "aria-disabled":p},dayPickerProps:{disabled:p,dir:v.direction,components:{
13635
+ Dropdown:e=>t.createElement(xF,{...e,disabled:p})}},showActionsBar:!0,
13634
13636
  timePrecision:"minute",timePickerProps:{useAmPm:!0,showArrowButtons:!1},
13635
13637
  showTimezoneSelect:!1,disableTimezoneSelect:!0,popoverProps:{minimal:!1,
13636
- placement:"ltr"===p.direction?"bottom-start":"bottom-end",usePortal:!0,
13637
- portalContainer:s??document.body},parseDate:e=>e?mF(e).toDate():new Date,
13638
- formatDate:e=>e?mF(e).format(d):"",...h}),i&&l&&t.createElement(Dm,null,l))
13638
+ placement:"ltr"===v.direction?"bottom-start":"bottom-end",usePortal:!0,
13639
+ portalContainer:h??document.body},parseDate:e=>e?mF(e).toDate():new Date,
13640
+ formatDate:e=>e?mF(e).format(f):"",...m}),i&&l&&t.createElement(Dm,null,l))
13639
13641
  },_F=e=>{
13640
- const{placeholder:n,name:r,isRequired:o,label:a,isErrored:i,errorText:l,id:c,disabled:s,displayFormat:u="YYYY-MM-DD",...d}=e,h=Hr()
13642
+ const{placeholder:n,name:r,isRequired:o,label:a,isErrored:i,errorText:l,id:c,disabled:s,clearButtonText:u="Clear",language:d,displayFormat:h="YYYY-MM-DD",...p}=e,f=Hr()
13641
13643
  ;return t.createElement(CF,{id:`date-picker-container-${c??""}`.trim(),
13642
- "aria-invalid":i,dir:h.direction},a&&t.createElement(Zo,{htmlFor:e.id,
13644
+ "aria-invalid":i,dir:f.direction},a&&t.createElement(Zo,{htmlFor:e.id,
13643
13645
  className:"input-label"
13644
13646
  },a,a&&o&&t.createElement(Jo,null,"*")),t.createElement(zF,{$isErrored:i,
13645
13647
  disabled:e.disabled}),t.createElement(dF,{closeOnSelection:!1,disabled:s,
13646
- maxDate:mF(new Date).add(10,"years").toDate(),fill:!0,highlightCurrentDay:!0,
13647
- shortcuts:!1,startInputProps:{placeholder:n||u,name:r,id:`start-${c}`,
13648
- "aria-disabled":s},endInputProps:{placeholder:n||u,name:r,id:`end-${c}`,
13649
- "aria-disabled":s},dayPickerProps:{disabled:s,dir:h.direction,components:{
13650
- Dropdown:e=>t.createElement(xF,{...e,disabled:s})}},
13648
+ locale:d||"en",maxDate:mF(new Date).add(10,"years").toDate(),fill:!0,
13649
+ highlightCurrentDay:!0,shortcuts:!1,startInputProps:{placeholder:n||h,name:r,
13650
+ id:`start-${c}`,"aria-disabled":s},endInputProps:{placeholder:n||h,name:r,
13651
+ id:`end-${c}`,"aria-disabled":s},dayPickerProps:{disabled:s,dir:f.direction,
13652
+ components:{Dropdown:e=>t.createElement(xF,{...e,disabled:s})}},
13651
13653
  footerElement:t.createElement(wF,null,t.createElement(bF,{onClick:()=>{
13652
- d.onChange?.([null,null])}},"Clear")),popoverProps:{minimal:!1,
13653
- placement:"ltr"===h.direction?"bottom-start":"bottom-end",usePortal:!0},
13654
- parseDate:e=>e?mF(e).toDate():new Date,formatDate:e=>e?mF(e).format(u):"",...d
13654
+ p.onChange?.([null,null])}},u)),popoverProps:{minimal:!1,
13655
+ placement:"ltr"===f.direction?"bottom-start":"bottom-end",usePortal:!0},
13656
+ parseDate:e=>e?mF(e).toDate():new Date,formatDate:e=>e?mF(e).format(h):"",...p
13655
13657
  }),i&&l&&t.createElement(Dm,null,l))},HF=e=>{
13656
- const{placeholder:n,name:r,isRequired:o,label:a,isErrored:i,errorText:l,id:c,disabled:s,displayFormat:u="YYYY-MM-DD hh:mm A",...d}=e,h=Hr()
13658
+ const{placeholder:n,name:r,isRequired:o,label:a,isErrored:i,errorText:l,id:c,clearButtonText:s="Clear",language:u,disabled:d,displayFormat:h="YYYY-MM-DD hh:mm A",...p}=e,f=Hr()
13657
13659
  ;return t.createElement(CF,{id:`date-picker-container-${c??""}`.trim(),
13658
- "aria-invalid":i,dir:h.direction},a&&t.createElement(Zo,{htmlFor:e.id,
13660
+ "aria-invalid":i,dir:f.direction},a&&t.createElement(Zo,{htmlFor:e.id,
13659
13661
  className:"input-label"
13660
13662
  },a,a&&o&&t.createElement(Jo,null,"*")),t.createElement(zF,{$isErrored:i,
13661
- disabled:e.disabled}),t.createElement(dF,{closeOnSelection:!1,disabled:s,
13662
- maxDate:mF(new Date).add(10,"years").toDate(),fill:!0,highlightCurrentDay:!0,
13663
- shortcuts:!1,startInputProps:{placeholder:n||u,name:r,id:`start-${c}`,
13664
- "aria-disabled":s},endInputProps:{placeholder:n||u,name:r,id:`end-${c}`,
13665
- "aria-disabled":s},dayPickerProps:{disabled:s,dir:h.direction,components:{
13666
- Dropdown:e=>t.createElement(xF,{...e,disabled:s})}},timePrecision:"minute",
13667
- timePickerProps:{useAmPm:!0,showArrowButtons:!1},
13663
+ disabled:e.disabled}),t.createElement(dF,{closeOnSelection:!1,disabled:d,
13664
+ locale:u||"en",maxDate:mF(new Date).add(10,"years").toDate(),fill:!0,
13665
+ highlightCurrentDay:!0,shortcuts:!1,startInputProps:{placeholder:n||h,name:r,
13666
+ id:`start-${c}`,"aria-disabled":d},endInputProps:{placeholder:n||h,name:r,
13667
+ id:`end-${c}`,"aria-disabled":d},dayPickerProps:{disabled:d,dir:f.direction,
13668
+ components:{Dropdown:e=>t.createElement(xF,{...e,disabled:d})}},
13669
+ timePrecision:"minute",timePickerProps:{useAmPm:!0,showArrowButtons:!1},
13668
13670
  footerElement:t.createElement(wF,null,t.createElement(bF,{onClick:()=>{
13669
- d.onChange?.([null,null])}},"Clear")),popoverProps:{minimal:!1,
13670
- placement:"ltr"===h.direction?"bottom-start":"bottom-end",usePortal:!0},
13671
- parseDate:e=>e?mF(e).toDate():new Date,formatDate:e=>e?mF(e).format(u):"",...d
13671
+ p.onChange?.([null,null])}},s)),popoverProps:{minimal:!1,
13672
+ placement:"ltr"===f.direction?"bottom-start":"bottom-end",usePortal:!0},
13673
+ parseDate:e=>e?mF(e).toDate():new Date,formatDate:e=>e?mF(e).format(h):"",...p
13672
13674
  }),i&&l&&t.createElement(Dm,null,l))},DF=[{id:"AM",name:"AM"},{id:"PM",name:"PM"
13673
13675
  }],AF=e=>{
13674
13676
  const{isRequired:n,label:r,isErrored:o,errorText:a,id:i,disabled:l,precision:c="minute",useAmPm:s,value:u="",onChange:d}=e,h=Hr()
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freemium-ui",
3
- "version": "2.0.63",
3
+ "version": "2.0.65",
4
4
  "description": "React Ui Components for Freemium Apps",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freemium-ui",
3
- "version": "2.0.63",
3
+ "version": "2.0.65",
4
4
  "description": "React Ui Components for Freemium Apps",
5
5
  "main": "lib/index.cjs.js",
6
6
  "module": "lib/index.js",