@harnessio/ui 0.5.7 → 0.5.9

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/dist/index.d.ts CHANGED
@@ -1359,6 +1359,9 @@ declare namespace components {
1359
1359
  FilterBoxWrapper,
1360
1360
  Parser,
1361
1361
  FilterFieldTypes,
1362
+ DateRangeValue,
1363
+ DateRangePreset,
1364
+ SecretListFilters,
1362
1365
  CheckboxOptions,
1363
1366
  CustomFilterOptionConfig,
1364
1367
  FilterFieldConfig,
@@ -1369,6 +1372,7 @@ declare namespace components {
1369
1372
  CheckboxFilterOptionConfig,
1370
1373
  TextFilterOptionConfig,
1371
1374
  CalendarFilterOptionConfig,
1375
+ DateRangeFilterOptionConfig,
1372
1376
  renderFilterSelectLabel,
1373
1377
  renderFilterSelectAddIconLabel,
1374
1378
  FiltersFieldProps,
@@ -1863,6 +1867,30 @@ declare interface DataTableProps<TData> {
1863
1867
  /* Excluded from this release type: _enableColumnResizing */
1864
1868
  }
1865
1869
 
1870
+ declare interface DateRangeFilterOptionConfig<T extends string = string> extends FilterOptionConfigBase<T, DateRangeValue> {
1871
+ type: FilterFieldTypes.DateRange;
1872
+ filterFieldConfig?: {
1873
+ presets?: DateRangePreset[];
1874
+ showCustomRange?: boolean;
1875
+ };
1876
+ }
1877
+
1878
+ declare interface DateRangePreset {
1879
+ label: string;
1880
+ value: string;
1881
+ getRange: () => {
1882
+ from: Date;
1883
+ to: Date;
1884
+ };
1885
+ group: 'recommended' | 'relative' | 'calendar';
1886
+ }
1887
+
1888
+ declare interface DateRangeValue {
1889
+ from: Date;
1890
+ to: Date;
1891
+ preset?: string;
1892
+ }
1893
+
1866
1894
  declare const decodeURIComponentIfValid: (path: string) => string;
1867
1895
 
1868
1896
  declare const decodeURIPath: (path: string) => string;
@@ -2382,6 +2410,7 @@ declare interface FilterFieldConfig<T = string | number> {
2382
2410
 
2383
2411
  declare enum FilterFieldTypes {
2384
2412
  Calendar = "calendar",
2413
+ DateRange = "daterange",
2385
2414
  Text = "text",
2386
2415
  ComboBox = "combobox",
2387
2416
  Custom = "custom",
@@ -2390,7 +2419,7 @@ declare enum FilterFieldTypes {
2390
2419
  MultiTag = "multitag"
2391
2420
  }
2392
2421
 
2393
- declare type FilterOptionConfig<T extends string = string, V = Record<string, unknown>> = ComboBoxFilterOptionConfig<T> | CalendarFilterOptionConfig<T> | TextFilterOptionConfig<T> | CheckboxFilterOptionConfig<T> | MultiSelectFilterOptionConfig<T> | MultiTagFilterOptionConfig<T> | CustomFilterOptionConfig<T, V>;
2422
+ declare type FilterOptionConfig<T extends string = string, V = Record<string, unknown>> = ComboBoxFilterOptionConfig<T> | CalendarFilterOptionConfig<T> | DateRangeFilterOptionConfig<T> | TextFilterOptionConfig<T> | CheckboxFilterOptionConfig<T> | MultiSelectFilterOptionConfig<T> | MultiTagFilterOptionConfig<T> | CustomFilterOptionConfig<T, V>;
2394
2423
 
2395
2424
  declare interface FilterOptionConfigBase<Key extends string, V = undefined> {
2396
2425
  label: string;
@@ -5531,6 +5560,13 @@ declare interface SearchProviderProps {
5531
5560
  children: ReactNode;
5532
5561
  }
5533
5562
 
5563
+ declare type SecretListFilters = {
5564
+ secretTypes?: CheckboxOptions[];
5565
+ secretManagerIdentifiers?: CheckboxOptions[];
5566
+ description?: string;
5567
+ tags?: string;
5568
+ };
5569
+
5534
5570
  declare const Select: <T = string>(props: SelectProps<T> & {
5535
5571
  ref?: ForwardedRef<HTMLButtonElement>;
5536
5572
  }) => ReturnType<typeof SelectInner>;
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { i as s } from "./index-Bvr23CG5.js";
2
- import { i as e } from "./index-CUP9LY0c.js";
2
+ import { i as e } from "./index-BHH9x1eJ.js";
3
3
  import { i as a } from "./index-D6BuUbRP.js";
4
4
  import { i as m } from "./index-BhO-bCC5.js";
5
5
  import { i as f } from "./index-yGuTXfMI.js";