@oliasoft-open-source/react-ui-library 7.1.0-beta-3 → 7.1.0-beta-6

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.
@@ -14,11 +14,7 @@ export interface IPopoverProps {
14
14
  toggleOnTriggerClick?: boolean;
15
15
  /** When true, content outside the popover layer stays interactive (e.g. inline edit fields). */
16
16
  isNonModal?: boolean;
17
- /**
18
- * TODO: Remove this prop when we have a better way to manage focus in UnitSlider
19
- *
20
- * When false, the trigger does not regain focus on close. Use with inline-edit triggers that open the popover from onFocus (e.g. UnitSlider).
21
- */
17
+ /** When false, the trigger does not regain focus on close. Use with inline-edit triggers that open the popover from onFocus (e.g. UnitSlider). */
22
18
  restoreTriggerFocusOnClose?: boolean;
23
19
  }
24
20
  export declare const Popover: ({ children, content, placement, closeOnOutsideClick, fullWidth, showCloseButton, testId, disabled, isOpen: externalIsOpen, onToggle: externalOnToggle, toggleOnTriggerClick, isNonModal, restoreTriggerFocusOnClose, }: IPopoverProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -1 +1 @@
1
- {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../src/components/popover/popover.tsx"],"names":[],"mappings":"AAAA,OAAc,EAIZ,SAAS,EAMV,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAiBnD,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACrC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,gGAAgG;IAChG,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAC;CACtC;AAED,eAAO,MAAM,OAAO,GAAI,wNAcrB,aAAa,mDA2Hf,CAAC"}
1
+ {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../src/components/popover/popover.tsx"],"names":[],"mappings":"AAAA,OAAc,EAIZ,SAAS,EAMV,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAiBnD,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACrC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,gGAAgG;IAChG,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kJAAkJ;IAClJ,0BAA0B,CAAC,EAAE,OAAO,CAAC;CACtC;AAED,eAAO,MAAM,OAAO,GAAI,wNAcrB,aAAa,mDA2Hf,CAAC"}
@@ -4,4 +4,5 @@ export default _default;
4
4
  export declare const Test: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react-vite').ReactRenderer, any>;
5
5
  export declare const TestInline: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react-vite').ReactRenderer, any>;
6
6
  export declare const TestStandalone: StoryFn;
7
+ export declare const TestStandaloneMissingValue: StoryFn;
7
8
  //# sourceMappingURL=radio-button.test-case.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"radio-button.test-case.stories.d.ts","sourceRoot":"","sources":["../../../src/components/radio-button/radio-button.test-case.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;wBAqCjD,IAAI;AAXT,wBAWU;AAeV,eAAO,MAAM,IAAI,uGAAoB,CAAC;AA6EtC,eAAO,MAAM,UAAU,uGAAoB,CAAC;AAY5C,eAAO,MAAM,cAAc,EAAE,OAG5B,CAAC"}
1
+ {"version":3,"file":"radio-button.test-case.stories.d.ts","sourceRoot":"","sources":["../../../src/components/radio-button/radio-button.test-case.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;wBAqCjD,IAAI;AAXT,wBAWU;AAeV,eAAO,MAAM,IAAI,uGAAoB,CAAC;AA6EtC,eAAO,MAAM,UAAU,uGAAoB,CAAC;AAY5C,eAAO,MAAM,cAAc,EAAE,OAG5B,CAAC;AAYF,eAAO,MAAM,0BAA0B,EAAE,OAUxC,CAAC"}
package/dist/index.js CHANGED
@@ -4016,10 +4016,10 @@ var go = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), _o =
4016
4016
  control: "_control_abetp_25",
4017
4017
  labelText: "_labelText_abetp_151",
4018
4018
  isInTable: "_isInTable_abetp_214"
4019
- }, Ol = ({ name: e, label: t, value: n, selected: r = !1, disabled: i = !1, small: a = !1, onChange: o, noMargin: s = !1, testId: c, helpText: l, onClickHelp: d, textTransform: f = pi.CAPITALIZE }) => {
4020
- var p;
4021
- let m = u(Nr) != null, h = l || d, g = n.toString(), _ = /* @__PURE__ */ S(jr, {
4022
- value: g,
4019
+ }, Ol = ({ name: e, label: t, value: n = "", selected: r = !1, disabled: i = !1, small: a = !1, onChange: o, noMargin: s = !1, testId: c, helpText: l, onClickHelp: d, textTransform: f = pi.CAPITALIZE }) => {
4020
+ var p, m;
4021
+ let h = u(Nr) != null, g = l || d, _ = (p = n == null ? void 0 : n.toString()) == null ? "" : p, v = /* @__PURE__ */ S(jr, {
4022
+ value: _,
4023
4023
  isDisabled: i,
4024
4024
  className: Dl.radioContainer,
4025
4025
  "data-testid": c ? `${c}-field` : void 0,
@@ -4031,36 +4031,39 @@ var go = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), _o =
4031
4031
  style: { textTransform: f },
4032
4032
  children: t
4033
4033
  })]
4034
- }), h && /* @__PURE__ */ x(Zi, {
4034
+ }), g && /* @__PURE__ */ x(Zi, {
4035
4035
  text: l,
4036
4036
  onClick: d
4037
4037
  })]
4038
4038
  });
4039
- return m ? _ : /* @__PURE__ */ x(Mr, {
4039
+ return h ? v : /* @__PURE__ */ x(Mr, {
4040
4040
  name: e == null ? void 0 : e.toString(),
4041
- "aria-label": String((p = t == null ? e : t) == null ? "Radio" : p),
4042
- value: r ? g : null,
4041
+ "aria-label": String((m = t == null ? e : t) == null ? "Radio" : m),
4042
+ value: r ? _ : null,
4043
4043
  onChange: () => {
4044
4044
  var n;
4045
4045
  o == null || o({ target: {
4046
4046
  name: (n = e == null ? void 0 : e.toString()) == null ? "" : n,
4047
- value: g,
4047
+ value: _,
4048
4048
  label: t == null ? void 0 : t.toString()
4049
4049
  } });
4050
4050
  },
4051
4051
  isDisabled: i,
4052
4052
  className: Dl.radioGroupStandalone,
4053
- children: _
4053
+ children: v
4054
4054
  });
4055
- }, kl = ({ cell: e, testId: t }) => /* @__PURE__ */ x(Ol, {
4056
- selected: e.selected,
4057
- name: e.name,
4058
- value: e.value,
4059
- noMargin: !0,
4060
- disabled: e.disabled,
4061
- onChange: (t) => e.onChange(t),
4062
- testId: t
4063
- }), Al = ({ cell: e, isHeader: t, columnAlignment: n, testId: r }) => {
4055
+ }, kl = ({ cell: e, testId: t }) => {
4056
+ var n;
4057
+ return /* @__PURE__ */ x(Ol, {
4058
+ selected: e.selected,
4059
+ name: e.name,
4060
+ value: (n = e.value) == null ? "" : n,
4061
+ noMargin: !0,
4062
+ disabled: e.disabled,
4063
+ onChange: (t) => e.onChange(t),
4064
+ testId: t
4065
+ });
4066
+ }, Al = ({ cell: e, isHeader: t, columnAlignment: n, testId: r }) => {
4064
4067
  if (!e) return null;
4065
4068
  switch (e.type) {
4066
4069
  case "Input":
@@ -6368,7 +6371,10 @@ var go = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), _o =
6368
6371
  value: (d = g == null ? void 0 : g.toString()) == null ? null : d,
6369
6372
  orientation: c ? "horizontal" : "vertical",
6370
6373
  onChange: (t) => {
6371
- let n = m.find((e) => e.value.toString() === t);
6374
+ let n = m.find((e) => {
6375
+ var n;
6376
+ return ((n = e.value) == null ? void 0 : n.toString()) === t;
6377
+ });
6372
6378
  i == null || i({ target: {
6373
6379
  name: e == null ? "" : e,
6374
6380
  value: t,
@@ -6382,18 +6388,19 @@ var go = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), _o =
6382
6388
  className: Dl.groupLabel,
6383
6389
  children: t
6384
6390
  }), m.map((e) => {
6385
- let t = a || e.disabled || f;
6391
+ var t, n;
6392
+ let r = a || e.disabled || f;
6386
6393
  return /* @__PURE__ */ x(Ol, {
6387
6394
  value: e.value,
6388
6395
  label: e.label,
6389
- disabled: t,
6396
+ disabled: r,
6390
6397
  small: o,
6391
6398
  noMargin: s,
6392
6399
  testId: e.testId,
6393
6400
  helpText: e.helpText,
6394
6401
  onClickHelp: e.onClickHelp,
6395
6402
  textTransform: e.textTransform
6396
- }, e.value.toString());
6403
+ }, (t = (n = e.value) == null ? void 0 : n.toString()) == null ? "" : t);
6397
6404
  })]
6398
6405
  });
6399
6406
  }, kd = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "7.1.0-beta-3",
3
+ "version": "7.1.0-beta-6",
4
4
  "description": "Reusable UI components for React projects",
5
5
  "homepage": "https://oliasoft-open-source.gitlab.io/react-ui-library",
6
6
  "bugs": {