@ansible/ansible-ui-framework 2.4.300 → 2.4.301

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/index.js CHANGED
@@ -2181,6 +2181,7 @@ function _z(n) {
2181
2181
  label: d,
2182
2182
  labelOff: h,
2183
2183
  isChecked: l,
2184
+ hasCheckIcon: !0,
2184
2185
  isDisabled: !!o,
2185
2186
  onChange: () => {
2186
2187
  switch (e.selection) {
package/index.umd.cjs CHANGED
@@ -97,7 +97,7 @@ Example:
97
97
  Perhaps you're looking to import 'styled-components/native'?
98
98
  Read more about this at https://www.styled-components.com/docs/basics#react-native`),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window["__styled-components-init__"]=window["__styled-components-init__"]||0,window["__styled-components-init__"]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
99
99
 
100
- See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]+=1);const cn=IL,k6={by:"by",cancelText:"Cancel",canceledText:"Canceled",cardView:"Card view",clearAllFilters:"Clear all filters",clickToRefresh:"Click to refresh",closeText:"Close",confirmText:"Confirm",countMore:"{count} more",documentation:"Documentation",errorText:"Error",filter:"Filter",listView:"List view",manageColumns:"Manage columns",moreInformation:"More information",noItemsFound:"No items found",noResultsFound:"No results found",noResultsMatchCriteria:"No results match this filter criteria. Clear all filters and try again.",noSelection:"No selection",noSelections:"No selections",ofText:"of",pendingText:"Pending",pleaseFixValidationErrors:"Please fix validation errors.",processingText:"Processing",selectNone:"Select none",selectedText:"Selected",showLess:"Show less",sort:"Sort",submitText:"Submit",submittingText:"Submitting",successText:"Success",tableView:"Table view",unknownError:"Unknown error",validating:"Validating..."},D6=T.createContext([k6,()=>alert("Use FrameworkTranslationsProvider")]);function E6(n){const e=T.useState(k6);return x.jsx(D6.Provider,{value:e,children:n.children})}function vi(){return T.useContext(D6)}function T6(n,e){if("selection"in n)switch(n.selection){case ei.None:if(n.isHidden)return n.isHidden();break;case ei.Single:if(n.isHidden)return e?n.isHidden(e):!0;break}return!1}function Pp(){const[n]=vi();return T.useCallback((e,t,i)=>{if("selection"in e)switch(e.selection){case ei.None:if(typeof e.isDisabled=="string")return e.isDisabled;if(e.isDisabled)return e.isDisabled();break;case ei.Single:if(typeof e.isDisabled=="string")return e.isDisabled;if(e.isDisabled)return t?e.isDisabled(t):n.noSelection;break;case ei.Multiple:if(typeof e.isDisabled=="string")return e.isDisabled;if(e.isDisabled)return i?e.isDisabled(i):n.noSelections;break}},[n.noSelection,n.noSelections])}function I6(n){const{action:e,wrapper:t,selectedItem:i,iconOnly:r}=n,o=Pp()(e,i),a=t??T.Fragment,l=i?e.isSwitchOn(i):!1,c=o||(e.tooltip?e.tooltip:r?l?e.label:e.labelOff??e.label:void 0),u=T.useId();let d=e.label;r&&e.showPinnedLabel!==!0&&(d=void 0);let h=e.labelOff;return r&&e.showPinnedLabel!==!0&&(h=void 0),x.jsx(a,{children:x.jsx("div",{style:{marginLeft:r?16:void 0,marginRight:r?16:void 0},children:x.jsx(P.Tooltip,{content:c,trigger:c?void 0:"manual",children:x.jsx(P.Switch,{id:u,"aria-label":e.ariaLabel(l),label:d,labelOff:h,isChecked:l,isDisabled:!!o,onChange:()=>{switch(e.selection){case ei.None:e.onToggle(!l);break;case ei.Single:i&&e.onToggle(i,!l);break}},isReversed:r})})})})}const One=cn.span`
100
+ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]+=1);const cn=IL,k6={by:"by",cancelText:"Cancel",canceledText:"Canceled",cardView:"Card view",clearAllFilters:"Clear all filters",clickToRefresh:"Click to refresh",closeText:"Close",confirmText:"Confirm",countMore:"{count} more",documentation:"Documentation",errorText:"Error",filter:"Filter",listView:"List view",manageColumns:"Manage columns",moreInformation:"More information",noItemsFound:"No items found",noResultsFound:"No results found",noResultsMatchCriteria:"No results match this filter criteria. Clear all filters and try again.",noSelection:"No selection",noSelections:"No selections",ofText:"of",pendingText:"Pending",pleaseFixValidationErrors:"Please fix validation errors.",processingText:"Processing",selectNone:"Select none",selectedText:"Selected",showLess:"Show less",sort:"Sort",submitText:"Submit",submittingText:"Submitting",successText:"Success",tableView:"Table view",unknownError:"Unknown error",validating:"Validating..."},D6=T.createContext([k6,()=>alert("Use FrameworkTranslationsProvider")]);function E6(n){const e=T.useState(k6);return x.jsx(D6.Provider,{value:e,children:n.children})}function vi(){return T.useContext(D6)}function T6(n,e){if("selection"in n)switch(n.selection){case ei.None:if(n.isHidden)return n.isHidden();break;case ei.Single:if(n.isHidden)return e?n.isHidden(e):!0;break}return!1}function Pp(){const[n]=vi();return T.useCallback((e,t,i)=>{if("selection"in e)switch(e.selection){case ei.None:if(typeof e.isDisabled=="string")return e.isDisabled;if(e.isDisabled)return e.isDisabled();break;case ei.Single:if(typeof e.isDisabled=="string")return e.isDisabled;if(e.isDisabled)return t?e.isDisabled(t):n.noSelection;break;case ei.Multiple:if(typeof e.isDisabled=="string")return e.isDisabled;if(e.isDisabled)return i?e.isDisabled(i):n.noSelections;break}},[n.noSelection,n.noSelections])}function I6(n){const{action:e,wrapper:t,selectedItem:i,iconOnly:r}=n,o=Pp()(e,i),a=t??T.Fragment,l=i?e.isSwitchOn(i):!1,c=o||(e.tooltip?e.tooltip:r?l?e.label:e.labelOff??e.label:void 0),u=T.useId();let d=e.label;r&&e.showPinnedLabel!==!0&&(d=void 0);let h=e.labelOff;return r&&e.showPinnedLabel!==!0&&(h=void 0),x.jsx(a,{children:x.jsx("div",{style:{marginLeft:r?16:void 0,marginRight:r?16:void 0},children:x.jsx(P.Tooltip,{content:c,trigger:c?void 0:"manual",children:x.jsx(P.Switch,{id:u,"aria-label":e.ariaLabel(l),label:d,labelOff:h,isChecked:l,hasCheckIcon:!0,isDisabled:!!o,onChange:()=>{switch(e.selection){case ei.None:e.onToggle(!l);break;case ei.Single:i&&e.onToggle(i,!l);break}},isReversed:r})})})})}const One=cn.span`
101
101
  padding-right: 4px;
102
102
  `,Mne=cn.div`
103
103
  --pf-c-dropdown__menu-item-icon--Width: ${({hasSwitches:n})=>n?"40px":void 0};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ansible/ansible-ui-framework",
3
3
  "description": "A framework for building applications using PatternFly.",
4
- "version": "2.4.300",
4
+ "version": "2.4.301",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",