@parallelworks/ui 0.8.1 → 0.9.0

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.
@@ -21,7 +21,7 @@ type MaybeCollapsibleProps = {
21
21
  children: React.ReactNode;
22
22
  title?: React.ReactNode;
23
23
  customizedButton?: React.ReactNode;
24
- collapsible?: boolean;
24
+ collapsible?: boolean | undefined;
25
25
  };
26
26
  export declare function MaybeCollapsible({ className, initialState, children, title, customizedButton, collapsible, }: MaybeCollapsibleProps): React.JSX.Element;
27
27
  export {};
@@ -18,7 +18,7 @@ export interface IProps {
18
18
  placeholder?: string;
19
19
  loading?: boolean;
20
20
  allowCustomValue?: boolean;
21
- customValueLabel?: string;
21
+ customValueLabel?: string | undefined;
22
22
  /** Label for the toggle row hiding a category's collapsible options. */
23
23
  collapsedLabel?: (count: number) => string;
24
24
  portalEl?: HTMLElement;
@@ -5,7 +5,7 @@ interface IToggleProps {
5
5
  yesLabel?: string;
6
6
  noLabel?: string;
7
7
  disabled?: boolean;
8
- datatip?: string;
8
+ datatip?: string | undefined;
9
9
  invalid?: boolean;
10
10
  }
11
11
  declare function SwitchToggle({ onChange, value, yesLabel, noLabel, disabled, datatip, invalid, }: IToggleProps): import("react").JSX.Element;
@@ -10,7 +10,8 @@ export { ResourceOptionIcon } from './Fields/ResourceOptionIcon.js';
10
10
  export { default as NumberField, type INumberField, } from './Fields/NumberField.js';
11
11
  export { getInvalidDurationPaths, setDurationValidity, } from './Fields/durationValidity.js';
12
12
  export { FLEX_MAX_DURATION_RANGE, FLEX_WAIT_TIME_RANGE, STANDARD_MAX_DURATION_RANGE, collectPartitionDurationIssues, formatSecondsAsSlurmDuration, parseSlurmDuration, } from './utils/slurmDuration.js';
13
- export { applySecondaryField } from './utils/secondaryField.js';
13
+ export { getPlaceholder } from './utils/getPlaceholder.js';
14
+ export { applySecondaryField, findSecondaryOption, } from './utils/secondaryField.js';
14
15
  export { useParsedOpts } from './useParsedOpts.js';
15
16
  export * from './types/fieldTypes.js';
16
17
  export * from './types/fieldComponentTypes.js';
@@ -2316,4 +2316,4 @@ function ResourceOptionIcon({ imageUrl, fallbackIcon, alt, variant = "success",
2316
2316
  });
2317
2317
  }
2318
2318
  //#endregion
2319
- export { DropdownWrapper, DynamicDefaultsSync, DynamicForm, FLEX_MAX_DURATION_RANGE, FLEX_WAIT_TIME_RANGE, FieldRegistryContext, FieldWrapper, FieldsFromOptions, FormikCustomDropdown_default as FormikCustomDropdown, FormikCustomInput, FormikMultiSelectDropdown, FormikNumericInput, GroupHeader, MultiSelectionDropdown, NumberField, Registry, ResourceOptionIcon, STANDARD_MAX_DURATION_RANGE, StatusBlock, applySecondaryField, collectFieldsWithDefaults, collectPartitionDurationIssues, enforceOneMustBeTrue, findSelfReferencingFieldNames, flattenGroups, formatSecondsAsSlurmDuration, getInstanceTypesForForm, getInvalidDurationPaths, impureSetValueFromPath, initializeValues, parseSlurmDuration, resolveMetaOverrides, resolvePwString, resolvePwValue, resolvedFlag, setDurationValidity, useParsedOpts };
2319
+ export { DropdownWrapper, DynamicDefaultsSync, DynamicForm, FLEX_MAX_DURATION_RANGE, FLEX_WAIT_TIME_RANGE, FieldRegistryContext, FieldWrapper, FieldsFromOptions, FormikCustomDropdown_default as FormikCustomDropdown, FormikCustomInput, FormikMultiSelectDropdown, FormikNumericInput, GroupHeader, MultiSelectionDropdown, NumberField, Registry, ResourceOptionIcon, STANDARD_MAX_DURATION_RANGE, StatusBlock, applySecondaryField, collectFieldsWithDefaults, collectPartitionDurationIssues, enforceOneMustBeTrue, findSecondaryOption, findSelfReferencingFieldNames, flattenGroups, formatSecondsAsSlurmDuration, getInstanceTypesForForm, getInvalidDurationPaths, getPlaceholder, impureSetValueFromPath, initializeValues, parseSlurmDuration, resolveMetaOverrides, resolvePwString, resolvePwValue, resolvedFlag, setDurationValidity, useParsedOpts };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parallelworks/ui",
3
- "version": "0.8.1",
3
+ "version": "0.9.0",
4
4
  "description": "Shared UI foundation for Parallel Works packages: theme contract, icons, and core primitives",
5
5
  "license": "MIT",
6
6
  "author": "Parallel Works <support@parallelworks.com>",