@ansible/ansible-ui-framework 0.0.731 → 0.0.733

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from 'react';
2
+ export declare const PageDashboardContext: import("react").Context<{
3
+ columns: number;
4
+ }>;
5
+ export declare function PageDashboard(props: {
6
+ children: ReactNode;
7
+ }): JSX.Element;
@@ -1,6 +1,11 @@
1
1
  import { CSSProperties, ReactNode } from 'react';
2
+ export type PageDashboardCardWidth = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
3
+ export type PageDashboardCardHeight = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
2
4
  export declare function PageDashboardCard(props: {
5
+ title?: string;
3
6
  to?: string;
4
- children: ReactNode;
7
+ children?: ReactNode;
8
+ width?: PageDashboardCardWidth;
9
+ height?: PageDashboardCardHeight;
5
10
  style?: CSSProperties;
6
11
  }): JSX.Element;
@@ -18,6 +18,7 @@ export declare const pfDanger = "var(--pf-global--danger-color--100)";
18
18
  export declare const pfWarning = "var(--pf-global--warning-color--100)";
19
19
  export declare const pfInfo = "var(--pf-global--info-color--100)";
20
20
  export declare const pfDisabled = "var(--pf-global--disabled-color--100)";
21
+ export declare const pfLink = "var(--pf-global--link--Color)";
21
22
  export declare enum LabelColorE {
22
23
  blue = "blue",
23
24
  cyan = "cyan",
package/index.js CHANGED
@@ -8810,7 +8810,7 @@ function Ru(t) {
8810
8810
  return gy;
8811
8811
  }
8812
8812
  }
8813
- const Au = "var(--pf-global--success-color--100)", Fu = "var(--pf-global--danger-color--100)", py = "var(--pf-global--warning-color--100)", Mu = "var(--pf-global--info-color--100)", gy = "var(--pf-global--disabled-color--100)";
8813
+ const Au = "var(--pf-global--success-color--100)", Fu = "var(--pf-global--danger-color--100)", py = "var(--pf-global--warning-color--100)", Mu = "var(--pf-global--info-color--100)", gy = "var(--pf-global--disabled-color--100)", Jb = "var(--pf-global--link--Color)";
8814
8814
  var yy = /* @__PURE__ */ ((t) => (t.blue = "blue", t.cyan = "cyan", t.green = "green", t.orange = "orange", t.purple = "purple", t.red = "red", t.grey = "grey", t))(yy || {});
8815
8815
  function Fa(t) {
8816
8816
  const e = {};
@@ -8999,7 +8999,7 @@ function ky(t) {
8999
8999
  [t]
9000
9000
  );
9001
9001
  }
9002
- function Jb(t) {
9002
+ function Xb(t) {
9003
9003
  return ke(
9004
9004
  () => t.filter(
9005
9005
  (e) => e.modal !== "hidden"
@@ -9008,7 +9008,7 @@ function Jb(t) {
9008
9008
  [t]
9009
9009
  );
9010
9010
  }
9011
- function Xb(t, e) {
9011
+ function Qb(t, e) {
9012
9012
  const r = zu(t), n = Ty(t), s = ky(t);
9013
9013
  switch (e) {
9014
9014
  case ot.Table:
@@ -10121,7 +10121,7 @@ const bv = Dr.div`
10121
10121
  `, wv = Dr.span`
10122
10122
  opacity: 0.7;
10123
10123
  `;
10124
- function Qb(t) {
10124
+ function ew(t) {
10125
10125
  if (!t)
10126
10126
  return !1;
10127
10127
  for (const e of t)
@@ -10634,6 +10634,7 @@ function _v(t) {
10634
10634
  ln,
10635
10635
  {
10636
10636
  sort: d(u, h),
10637
+ modifier: "nowrap",
10637
10638
  style: {
10638
10639
  minWidth: h.minWidth === 0 ? "1%" : h.minWidth !== void 0 ? h.minWidth : void 0,
10639
10640
  maxWidth: h.maxWidth !== void 0 ? h.maxWidth : void 0,
@@ -10841,7 +10842,7 @@ function da(t, e, r) {
10841
10842
  }
10842
10843
  da.debounce = da;
10843
10844
  var jv = da;
10844
- function ew(t, e, r) {
10845
+ function tw(t, e, r) {
10845
10846
  const {
10846
10847
  selectedItems: n,
10847
10848
  selectItem: s,
@@ -11464,7 +11465,7 @@ function Lv() {
11464
11465
  e(void 0);
11465
11466
  }, [r, e]), n;
11466
11467
  }
11467
- function tw() {
11468
+ function rw() {
11468
11469
  const t = Lv(), e = Dv();
11469
11470
  return ge(
11470
11471
  (r) => {
@@ -11479,7 +11480,7 @@ function tw() {
11479
11480
  [e, t]
11480
11481
  );
11481
11482
  }
11482
- function rw(t) {
11483
+ function nw(t) {
11483
11484
  const { title: e, view: r, tableColumns: n, toolbarFilters: s, confirmText: i, cancelText: a, onSelect: o } = t, [l, c] = Kr(), d = ge(() => c(void 0), [c]), [h] = xt();
11484
11485
  return /* @__PURE__ */ f.jsx(
11485
11486
  gn,
@@ -11824,7 +11825,7 @@ function hl(t) {
11824
11825
  let e = "collapsed";
11825
11826
  return t.open && (e += " expanded"), /* @__PURE__ */ f.jsx("div", { className: e, children: t.children });
11826
11827
  }
11827
- function nw(t) {
11828
+ function sw(t) {
11828
11829
  const { view: e, tableColumns: r, toolbarFilters: n, confirm: s, cancel: i, selected: a, isMultiple: o } = t, [l, c] = ye(""), [d, h] = ye(), u = ge((y, v) => {
11829
11830
  c(v ?? ""), h(() => y);
11830
11831
  }, []), [m, p] = Kr();
@@ -13015,7 +13016,7 @@ function j0(t = {}) {
13015
13016
  s._state.mount || (s._updateValid(), s._state.mount = !0), s._state.watch && (s._state.watch = !1, s._subjects.state.next({ ...s._formState })), s._removeUnmounted();
13016
13017
  }), e.current.formState = td(r, s), e.current;
13017
13018
  }
13018
- function sw(t) {
13019
+ function iw(t) {
13019
13020
  const { name: e, readOnly: r, validate: n, ...s } = t, {
13020
13021
  control: i,
13021
13022
  formState: { isSubmitting: a }
@@ -13046,7 +13047,7 @@ function sw(t) {
13046
13047
  function Pr(t) {
13047
13048
  return t.charAt(0).toUpperCase() + t.slice(1);
13048
13049
  }
13049
- function iw(t) {
13050
+ function aw(t) {
13050
13051
  const { isReadOnly: e, validate: r, ...n } = t, { label: s, name: i, isRequired: a } = t, {
13051
13052
  control: o,
13052
13053
  formState: { isSubmitting: l, isValidating: c }
@@ -13151,7 +13152,7 @@ function O0(t) {
13151
13152
  }
13152
13153
  );
13153
13154
  }
13154
- function aw(t) {
13155
+ function ow(t) {
13155
13156
  const {
13156
13157
  control: e,
13157
13158
  formState: { isSubmitting: r }
@@ -13175,7 +13176,7 @@ function aw(t) {
13175
13176
  }
13176
13177
  );
13177
13178
  }
13178
- function ow(t) {
13179
+ function lw(t) {
13179
13180
  const { label: e, isRequired: r, validate: n } = t, {
13180
13181
  control: s,
13181
13182
  formState: { isSubmitting: i }
@@ -13207,7 +13208,7 @@ function ow(t) {
13207
13208
  }
13208
13209
  );
13209
13210
  }
13210
- function lw(t) {
13211
+ function cw(t) {
13211
13212
  const {
13212
13213
  name: e,
13213
13214
  id: r,
@@ -13252,7 +13253,7 @@ function lw(t) {
13252
13253
  }
13253
13254
  );
13254
13255
  }
13255
- function cw(t) {
13256
+ function uw(t) {
13256
13257
  const { name: e, label: r, isReadOnly: n, isRequired: s, minLength: i, maxLength: a, pattern: o, validate: l } = t, {
13257
13258
  control: c,
13258
13259
  formState: { isSubmitting: d }
@@ -13299,7 +13300,7 @@ function cw(t) {
13299
13300
  }
13300
13301
  );
13301
13302
  }
13302
- function uw(t) {
13303
+ function dw(t) {
13303
13304
  const {
13304
13305
  name: e,
13305
13306
  isReadOnly: r,
@@ -13382,7 +13383,7 @@ function uw(t) {
13382
13383
  }
13383
13384
  );
13384
13385
  }
13385
- function dw(t) {
13386
+ function fw(t) {
13386
13387
  const {
13387
13388
  register: e,
13388
13389
  setValue: r,
@@ -16684,7 +16685,7 @@ var yb = /* @__PURE__ */ Object.defineProperty({ default: gb }, "__esModule", {
16684
16685
  }
16685
16686
  };
16686
16687
  };
16687
- function fw(t) {
16688
+ function hw(t) {
16688
16689
  const { schema: e, defaultValue: r, disableBody: n, disablePadding: s } = t, i = j0({
16689
16690
  defaultValues: r ?? {},
16690
16691
  resolver: e ? Sb(
@@ -16769,7 +16770,7 @@ function Ol(t) {
16769
16770
  function Eb(t) {
16770
16771
  return /* @__PURE__ */ f.jsx(Qe, { type: "button", variant: "link", onClick: t.onCancel, children: t.children });
16771
16772
  }
16772
- function hw(t) {
16773
+ function mw(t) {
16773
16774
  return /* @__PURE__ */ f.jsx(rm, { children: /* @__PURE__ */ f.jsx(up, { children: /* @__PURE__ */ f.jsx(cp, { children: /* @__PURE__ */ f.jsx(lp, { children: /* @__PURE__ */ f.jsx(by, { callback: t.navigate, children: t.children }) }) }) }) });
16774
16775
  }
16775
16776
  function $b(t) {
@@ -16794,7 +16795,7 @@ function $b(t) {
16794
16795
  r.id ?? r.label ?? n
16795
16796
  ) : /* @__PURE__ */ f.jsx(Nr, {}, n)) }) : /* @__PURE__ */ f.jsx(Nr, {});
16796
16797
  }
16797
- function mw(t) {
16798
+ function pw(t) {
16798
16799
  const { navigation: e, breadcrumbs: r, title: n, description: s, controls: i, headerActions: a, footer: o } = t, l = or("lg"), c = or("xl"), d = or("md"), [h] = xt();
16799
16800
  return /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
16800
16801
  e && /* @__PURE__ */ f.jsx(
@@ -16885,7 +16886,7 @@ function mw(t) {
16885
16886
  )
16886
16887
  ] });
16887
16888
  }
16888
- function pw(t) {
16889
+ function gw(t) {
16889
16890
  const [e] = xt();
16890
16891
  return /* @__PURE__ */ f.jsx(Nc, { message: e.errorText, children: /* @__PURE__ */ f.jsx(
16891
16892
  "div",
@@ -16957,7 +16958,7 @@ function Cb(t) {
16957
16958
  function Pl(t) {
16958
16959
  return /* @__PURE__ */ f.jsx(f.Fragment, { children: t.children });
16959
16960
  }
16960
- function gw(t) {
16961
+ function yw(t) {
16961
16962
  const { activeKey: e, setActiveKey: r } = t, n = ge(
16962
16963
  (s, i) => r(i),
16963
16964
  [r]
@@ -17275,7 +17276,7 @@ function Db(t, e) {
17275
17276
  [p, u, s, a, l, d]
17276
17277
  );
17277
17278
  }
17278
- function yw(t) {
17279
+ function vw(t) {
17279
17280
  const { items: e, keyFn: r, tableColumns: n, toolbarFilters: s, disableQueryString: i } = t, a = Db(
17280
17281
  {
17281
17282
  sort: n && n.length ? n[0].sort : void 0
@@ -17339,13 +17340,13 @@ export {
17339
17340
  f0 as FormGroupSelectOption,
17340
17341
  h0 as FormGroupTextArea,
17341
17342
  m0 as FormGroupTextInput,
17342
- dw as FormTextSelect,
17343
+ fw as FormTextSelect,
17343
17344
  rm as FrameworkTranslationsProvider,
17344
17345
  Rc as Help,
17345
17346
  yy as LabelColorE,
17346
17347
  hy as LabelsCell,
17347
17348
  O0 as MonacoEditor,
17348
- rw as MultiSelectDialog,
17349
+ nw as MultiSelectDialog,
17349
17350
  my as PFColorE,
17350
17351
  st as PageActionSelection,
17351
17352
  jt as PageActionType,
@@ -17357,26 +17358,26 @@ export {
17357
17358
  Sy as PageDetails,
17358
17359
  Py as PageDetailsFromColumns,
17359
17360
  cp as PageDialogProvider,
17360
- fw as PageForm,
17361
+ hw as PageForm,
17361
17362
  Eb as PageFormCancelButton,
17362
- sw as PageFormCheckbox,
17363
- iw as PageFormCodeEditor,
17363
+ iw as PageFormCheckbox,
17364
+ aw as PageFormCodeEditor,
17364
17365
  jl as PageFormGrid,
17365
- aw as PageFormSelect,
17366
- ow as PageFormSelectOption,
17366
+ ow as PageFormSelect,
17367
+ lw as PageFormSelectOption,
17367
17368
  Ol as PageFormSubmitButton,
17368
- lw as PageFormSwitch,
17369
- cw as PageFormTextArea,
17370
- uw as PageFormTextInput,
17371
- hw as PageFramework,
17372
- mw as PageHeader,
17373
- pw as PageLayout,
17369
+ cw as PageFormSwitch,
17370
+ uw as PageFormTextArea,
17371
+ dw as PageFormTextInput,
17372
+ mw as PageFramework,
17373
+ pw as PageHeader,
17374
+ gw as PageLayout,
17374
17375
  Pl as PageTab,
17375
17376
  ui as PageTable,
17376
17377
  pv as PageTableCards,
17377
17378
  xv as PageTableToolbar,
17378
17379
  Cb as PageTabs,
17379
- gw as PageTabsOld,
17380
+ yw as PageTabsOld,
17380
17381
  Nl as RoutedTab,
17381
17382
  _b as RoutedTabs,
17382
17383
  kb as RunningIcon,
@@ -17396,33 +17397,34 @@ export {
17396
17397
  Fu as pfDanger,
17397
17398
  gy as pfDisabled,
17398
17399
  Mu as pfInfo,
17400
+ Jb as pfLink,
17399
17401
  Au as pfSuccess,
17400
17402
  py as pfWarning,
17401
- Qb as toolbarActionsHaveBulkActions,
17403
+ ew as toolbarActionsHaveBulkActions,
17402
17404
  or as useBreakpoint,
17403
17405
  Dv as useBulkActionDialog,
17404
- tw as useBulkConfirmation,
17406
+ rw as useBulkConfirmation,
17405
17407
  jy as useDescriptionColumns,
17406
17408
  Oy as useExpandedColumns,
17407
17409
  Zu as useFiltered,
17408
17410
  xt as useFrameworkTranslations,
17409
- yw as useInMemoryView,
17411
+ vw as useInMemoryView,
17410
17412
  Lb as useOrientation,
17411
17413
  zb as usePageAlertToaster,
17412
17414
  Kr as usePageDialog,
17413
17415
  di as usePaged,
17414
- nw as useSelectDialog,
17416
+ sw as useSelectDialog,
17415
17417
  Ov as useSelected,
17416
17418
  Pv as useSelectedInMemory,
17417
17419
  Wn as useSettings,
17418
17420
  qb as useSettingsDialog,
17419
17421
  Yu as useSorted,
17420
- ew as useTableItems,
17422
+ tw as useTableItems,
17421
17423
  Db as useView,
17422
17424
  ky as useVisibleCardColumns,
17423
- Xb as useVisibleColumns,
17425
+ Qb as useVisibleColumns,
17424
17426
  Ty as useVisibleListColumns,
17425
- Jb as useVisibleModalColumns,
17427
+ Xb as useVisibleModalColumns,
17426
17428
  zu as useVisibleTableColumns,
17427
17429
  Gf as useWindowSize
17428
17430
  };