@oliasoft-open-source/react-ui-library 4.7.1 → 4.7.2-beta-2

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 (25) hide show
  1. package/dist/assets/{index-D5kcnHmD.js → index-7PLAdoQ9.js} +1 -0
  2. package/dist/index.d.ts +3 -0
  3. package/dist/index.html +1 -1
  4. package/dist/index.js +9 -2
  5. package/dist/index.js.map +1 -1
  6. package/dist/storybook/assets/{Color-KGDBMAHA-ChInQPtm.js → Color-KGDBMAHA-S8TXq2Hv.js} +1 -1
  7. package/dist/storybook/assets/{DocsRenderer-PKQXORMH-D9jeh5x5.js → DocsRenderer-PKQXORMH-DJT4mhGs.js} +1 -1
  8. package/dist/storybook/assets/{buttons-and-links-CGABKYuN.js → buttons-and-links-DQEpBFTQ.js} +1 -1
  9. package/dist/storybook/assets/{chunk-HLWAVYOI-4dAs2eBm.js → chunk-HLWAVYOI-Bb0NbFbU.js} +1 -1
  10. package/dist/storybook/assets/{color-Bif_5nQw.js → color-BeQRTGwj.js} +1 -1
  11. package/dist/storybook/assets/{iframe-CPU35noh.js → iframe-sl8P49X5.js} +2 -2
  12. package/dist/storybook/assets/{index-0mVwGqNm.js → index-CS-VT2Nc.js} +4 -4
  13. package/dist/storybook/assets/{index-CdEG3ntG.js → index-YtmcDdRe.js} +1 -1
  14. package/dist/storybook/assets/{input-validation-DGRN9eyS.js → input-validation-Ddk5ljzx.js} +1 -1
  15. package/dist/storybook/assets/{inputs-C1zY_c9W.js → inputs-wwIdiKOS.js} +1 -1
  16. package/dist/storybook/assets/{layout-forms-kbHRclqK.js → layout-forms-UaWeo5YC.js} +1 -1
  17. package/dist/storybook/assets/{layout-general-D5EVLJYf.js → layout-general-B0ECENQM.js} +1 -1
  18. package/dist/storybook/assets/{padding-and-spacing-BUAWfapl.js → padding-and-spacing-CI-T2pnb.js} +1 -1
  19. package/dist/storybook/assets/{preview-C_kotj1_.js → preview-D7mJqs_h.js} +2 -2
  20. package/dist/storybook/assets/{preview-BZH-CnkP.js → preview-DI-uep3b.js} +1 -1
  21. package/dist/storybook/assets/{unit-input.stories-BkkknmTW.js → unit-input.stories-CbaVE5wb.js} +16 -16
  22. package/dist/storybook/iframe.html +1 -1
  23. package/dist/storybook/project.json +1 -1
  24. package/package.json +1 -1
  25. package/dist/404.html +0 -1
@@ -75846,6 +75846,7 @@ function TreeInner(props, ref2) {
75846
75846
  }
75847
75847
  reactExports.forwardRef(TreeInner);
75848
75848
  requireUnits();
75849
+ reactExports.createContext(null);
75849
75850
  const Footer = () => {
75850
75851
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
75851
75852
  /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, {}),
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { ChangeEvent } from 'react';
2
+ import { Context } from 'react';
2
3
  import { CSSProperties } from 'react';
3
4
  import { default as default_2 } from 'react';
4
5
  import { DependencyList } from 'react';
@@ -866,6 +867,8 @@ export declare interface INativeSelectProps {
866
867
  maxTooltipWidth?: TStringOrNumber;
867
868
  }
868
869
 
870
+ export declare const initializeContext: (initContext: Context<any>) => void;
871
+
869
872
  export declare const Input: default_2.ForwardRefExoticComponent<IInputProps & default_2.RefAttributes<HTMLInputElement>>;
870
873
 
871
874
  export declare const InputGroup: ({ children, small, width, }: IInputGroupProps) => ReactElement;
package/dist/index.html CHANGED
@@ -1 +1 @@
1
- <!doctype html><head><title>React UI Library</title><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1" user-scalable="no"><meta name="apple-mobile-web-app-capable" content="yes"><script type="module" crossorigin src="/react-ui-library/assets/index-D5kcnHmD.js"></script><link rel="stylesheet" crossorigin href="/react-ui-library/assets/index-Oe0PlEED.css"></head><body><div id="content"></div></body>
1
+ <!doctype html><head><title>React UI Library</title><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1" user-scalable="no"><meta name="apple-mobile-web-app-capable" content="yes"><script type="module" crossorigin src="/react-ui-library/assets/index-7PLAdoQ9.js"></script><link rel="stylesheet" crossorigin href="/react-ui-library/assets/index-Oe0PlEED.css"></head><body><div id="content"></div></body>
package/dist/index.js CHANGED
@@ -70026,7 +70026,7 @@ const getPreferredUnit = (unitkey, unitTemplate) => {
70026
70026
  const preferredUnit = unitTemplate == null ? void 0 : unitTemplate[unitkey];
70027
70027
  if (!preferredUnit) {
70028
70028
  console.log(
70029
- `Warning: 'unitTemplate' does not define a preferred unit for '${unitkey}'. Defaulting to standard unit.`
70029
+ `Warning: 'unitTemplate' missing for '${unitkey}'. Using initial unit, value unit, or default.`
70030
70030
  );
70031
70031
  return unitFromQuantity(unitkey) ?? "";
70032
70032
  }
@@ -70124,6 +70124,10 @@ const isKnownUnit = (valueWithUnit, defaultUnit) => {
70124
70124
  const unitFromValue = getUnit(valueWithUnit || "");
70125
70125
  return isUnitKnown(defaultUnit) && isUnitKnown(unitFromValue);
70126
70126
  };
70127
+ const UnitContext = createContext(null);
70128
+ const initializeContext = (initContext) => {
70129
+ UnitContext.Provider = initContext.Provider;
70130
+ };
70127
70131
  const predefinedMenuActive = "_predefinedMenuActive_1yvt4_1";
70128
70132
  const styles = {
70129
70133
  predefinedMenuActive
@@ -70165,6 +70169,8 @@ const UnitInput = ({
70165
70169
  if (typeof value === "number") {
70166
70170
  value = `${value}`;
70167
70171
  }
70172
+ const context2 = useContext(UnitContext);
70173
+ console.log(context2);
70168
70174
  const runAfterUpdate = useRunAfterUpdate();
70169
70175
  const [propValue = "", propUnit = ""] = value !== void 0 ? split$1(value) : [];
70170
70176
  const propAutoUnit = autoValue ? getUnit(autoValue) : "";
@@ -70173,7 +70179,7 @@ const UnitInput = ({
70173
70179
  [unitkey, unitTemplate]
70174
70180
  );
70175
70181
  const knownUnit = isKnownUnit(value, defaultUnit);
70176
- const initDisplayUnit = initUnit || defaultUnit || propUnit;
70182
+ const initDisplayUnit = initUnit || propUnit || defaultUnit;
70177
70183
  const previousInitUnit = usePrevious(initDisplayUnit);
70178
70184
  const convertedValue = safeConvertValue(
70179
70185
  value,
@@ -70842,6 +70848,7 @@ export {
70842
70848
  UnitInput,
70843
70849
  UnitTable,
70844
70850
  dismissToast,
70851
+ initializeContext,
70845
70852
  readFile,
70846
70853
  toast,
70847
70854
  useFocus,