namirasoft-site-react 1.3.198 → 1.3.199

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.
@@ -11,8 +11,8 @@ export function NSBarAction(props) {
11
11
  show: false
12
12
  });
13
13
  const groups = Object.keys(props.menus);
14
- return (_jsxs(_Fragment, { children: [_jsxs("div", { className: Styles.ns_action_bar_holder, children: [_jsxs("div", { className: `d-none d-lg-flex ${Styles.ns_desktop_action_bar_title}`, children: [_jsx("h1", { className: Styles.title, children: props.title }), props.description !== "" &&
15
- _jsxs("button", { className: Styles.ns_info_container, onClick: () => setState({ show: true }), children: [_jsx("img", { src: 'https://static.namirasoft.com/image/concept/info/white-blue.svg', alt: 'info-icon', width: 24, height: 24 }), _jsx("span", { children: " Info " })] }), _jsx(NSModal, { show: state.show, description: props.description, title: props.title, onClose: () => setState({ show: false }) })] }), _jsx("div", { style: { padding: groups.length !== 0 ? "16px 0" : "0" }, className: Styles.ns_actions_hodler, children: groups.map((group) => _jsx(NSActionMenu, { name: group, items: props.menus[group] })) })] }), _jsx(NSSpace, { size: NSSpaceSizeType.SMALL }), _jsxs("div", { className: `container d-block d-lg-none ${Styles.ns_mobile_action_bar_title}`, children: [_jsx("h1", { className: Styles.title, children: props.title }), props.description && lines &&
14
+ return (_jsxs(_Fragment, { children: [_jsx("div", { className: Styles.ns_action_bar_holder, children: _jsxs("div", { className: 'container', children: [_jsxs("div", { className: `d-none d-lg-flex ${Styles.ns_desktop_action_bar_title}`, children: [_jsx("h1", { className: Styles.title, children: props.title }), props.description !== "" &&
15
+ _jsxs("button", { className: Styles.ns_info_container, onClick: () => setState({ show: true }), children: [_jsx("img", { src: 'https://static.namirasoft.com/image/concept/info/white-blue.svg', alt: 'info-icon', width: 24, height: 24 }), _jsx("span", { children: " Info " })] }), _jsx(NSModal, { show: state.show, description: props.description, title: props.title, onClose: () => setState({ show: false }) })] }), _jsx("div", { style: { padding: groups.length !== 0 ? "16px 0" : "0" }, className: Styles.ns_actions_hodler, children: groups.map((group) => _jsx(NSActionMenu, { name: group, items: props.menus[group] })) })] }) }), _jsx(NSSpace, { size: NSSpaceSizeType.SMALL }), _jsxs("div", { className: `container d-block d-lg-none ${Styles.ns_mobile_action_bar_title}`, children: [_jsx("h1", { className: Styles.title, children: props.title }), props.description && lines &&
16
16
  _jsxs(_Fragment, { children: [_jsx("p", { className: Styles.description, children: lines.map((line, index) => {
17
17
  return (_jsxs(React.Fragment, { children: [line.trim(), index !== lines.length - 1 && _jsx("br", {})] }, index));
18
18
  }) }), _jsx(NSSpace, { size: NSSpaceSizeType.MINI })] })] })] }));
@@ -1 +1 @@
1
- {"version":3,"file":"NSBarAction.js","sourceRoot":"","sources":["../../src/components/NSBarAction.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAC9C,OAAO,EAAsB,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAcpC,MAAM,UAAU,WAAW,CAAC,KAAwB;;IAEnD,IAAI,KAAK,GAAG,CAAC,MAAA,KAAK,CAAC,WAAW,mCAAI,EAAE,CAAC,CAAC,KAAK,CAAC,2BAA2B,CAAC,CAAC;IAEzE,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAmB;QACpD,IAAI,EAAE,KAAK;KACX,CAAC,CAAA;IAEF,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAExC,OAAO,CACN,8BACC,eAAK,SAAS,EAAE,MAAM,CAAC,oBAAoB,aAE1C,eAAK,SAAS,EAAE,oBAAoB,MAAM,CAAC,2BAA2B,EAAE,aACvE,aAAI,SAAS,EAAE,MAAM,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ACb,IAAI,CAAC,IAAI,EAAE,EACX,KAAK,KAAK,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,cAAM,KAFjB,KAAK,CAGT,CACjB,CAAA;oCACF,CAAC,CAAC,GAEA,EACJ,KAAC,OAAO,IAAC,IAAI,EAAE,eAAe,CAAC,IAAI,GAAI,IACrC,IAEC,IACJ,CACH,CAAC;AACH,CAAC"}
@@ -191,8 +191,8 @@
191
191
  @media only screen and (min-width: 1024px) {
192
192
 
193
193
  .ns_navbar_parent_content {
194
- padding-right: 3rem;
195
- padding-left: 3rem;
194
+ padding-right: 1rem;
195
+ padding-left: 1rem;
196
196
  }
197
197
 
198
198
  .ns_navbar_parent_content img {
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "framework": "npm",
9
9
  "application": "package",
10
10
  "private": false,
11
- "version": "1.3.198",
11
+ "version": "1.3.199",
12
12
  "author": "Amir Abolhasani, Alireza Esmaeeli, Sepideh Mazloumi, Hooman Shashaeh",
13
13
  "license": "MIT",
14
14
  "main": "./dist/main.js",
@@ -30,31 +30,33 @@ export function NSBarAction(props: INSBarActionProps)
30
30
  <>
31
31
  <div className={Styles.ns_action_bar_holder}>
32
32
  {/* Desktop */}
33
- <div className={`d-none d-lg-flex ${Styles.ns_desktop_action_bar_title}`}>
34
- <h1 className={Styles.title}>{props.title}</h1>
35
- {
36
- props.description !== "" &&
37
- <button className={Styles.ns_info_container} onClick={() => setState({ show: true })}>
38
- <img src='https://static.namirasoft.com/image/concept/info/white-blue.svg' alt='info-icon' width={24} height={24} />
39
- <span> Info </span>
40
- </button>
41
- }
42
- <NSModal
43
- show={state.show}
44
- description={props.description}
45
- title={props.title}
46
- onClose={() => setState({ show: false })}
47
- />
48
- </div>
49
- <div
50
- style={{ padding: groups.length !== 0 ? "16px 0" : "0" }}
51
- className={Styles.ns_actions_hodler}
52
- >
53
- {
54
- groups.map((group) =>
55
- <NSActionMenu name={group} items={props.menus[group]} />
56
- )
57
- }
33
+ <div className='container'>
34
+ <div className={`d-none d-lg-flex ${Styles.ns_desktop_action_bar_title}`}>
35
+ <h1 className={Styles.title}>{props.title}</h1>
36
+ {
37
+ props.description !== "" &&
38
+ <button className={Styles.ns_info_container} onClick={() => setState({ show: true })}>
39
+ <img src='https://static.namirasoft.com/image/concept/info/white-blue.svg' alt='info-icon' width={24} height={24} />
40
+ <span> Info </span>
41
+ </button>
42
+ }
43
+ <NSModal
44
+ show={state.show}
45
+ description={props.description}
46
+ title={props.title}
47
+ onClose={() => setState({ show: false })}
48
+ />
49
+ </div>
50
+ <div
51
+ style={{ padding: groups.length !== 0 ? "16px 0" : "0" }}
52
+ className={Styles.ns_actions_hodler}
53
+ >
54
+ {
55
+ groups.map((group) =>
56
+ <NSActionMenu name={group} items={props.menus[group]} />
57
+ )
58
+ }
59
+ </div>
58
60
  </div>
59
61
  </div>
60
62
  <NSSpace size={NSSpaceSizeType.SMALL} />
@@ -191,8 +191,8 @@
191
191
  @media only screen and (min-width: 1024px) {
192
192
 
193
193
  .ns_navbar_parent_content {
194
- padding-right: 3rem;
195
- padding-left: 3rem;
194
+ padding-right: 1rem;
195
+ padding-left: 1rem;
196
196
  }
197
197
 
198
198
  .ns_navbar_parent_content img {