lupine.api 1.0.43 → 1.1.44

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.
@@ -358,6 +358,7 @@ export const AdminFrame = (props: AdminFrameProps) => {
358
358
  width: '165px',
359
359
  // padding: '8px 16px',
360
360
  borderRight: 'var(--primary-border)',
361
+ overflowX: 'hidden',
361
362
  overflowY: 'auto',
362
363
  color: 'var(--sidebar-color)',
363
364
  backgroundColor: 'var(--sidebar-bg-color)',
@@ -399,7 +400,7 @@ export const AdminFrame = (props: AdminFrameProps) => {
399
400
  window.location.href = '/admin';
400
401
  };
401
402
 
402
- bindGlobalStyles('admin-frame', '.admin-frame-box', css);
403
+ bindGlobalStyles('admin-frame-box', css);
403
404
 
404
405
  const refCloseMenu: RefProps = {};
405
406
  const adminTopMenu = adminFrameHelper.getAdminTopMenu();
@@ -456,10 +457,9 @@ export const AdminPanel = (props: AdminPanelProps) => {
456
457
  const css: CssProps = {
457
458
  height: '100%',
458
459
  };
459
- bindGlobalStyles('admin-panel', '.admin-panel-box', css);
460
460
  const pages: TabsPageProps[] = [];
461
461
  return (
462
- <div class='admin-panel-box'>
462
+ <div css={css}>
463
463
  <Tabs pages={pages} hook={props.refUpdate} pagePadding='8px'></Tabs>
464
464
  </div>
465
465
  );
@@ -124,7 +124,7 @@ export const AdminTableData = (props: { tableName: string; update?: TableDataUpd
124
124
  if (props.update) {
125
125
  props.update.refreshRef = refresh;
126
126
  }
127
- bindGlobalStyles('admin-table-data', '.admin-table-data', css);
127
+ bindGlobalStyles('admin-table-data', css);
128
128
  const dom = new HtmlVar('');
129
129
  return (
130
130
  <div className='admin-table-data' ref={ref}>
@@ -4,8 +4,6 @@ import {
4
4
  ButtonPushAnimation,
5
5
  ButtonPushAnimationSize,
6
6
  HtmlVar,
7
- PlayButton,
8
- PlayButtonSize,
9
7
  Progress,
10
8
  ProgressHookProps,
11
9
  Spinner01,
@@ -15,6 +13,10 @@ import {
15
13
  TextGlow,
16
14
  TextWave,
17
15
  CssProps,
16
+ ToggleButton,
17
+ TogglePlayButton,
18
+ TogglePlayButtonSize,
19
+ TextScale,
18
20
  } from 'lupine.components';
19
21
 
20
22
  const TestButton = () => {
@@ -125,7 +127,9 @@ const TestHtmlVar = () => {
125
127
  <>
126
128
  <div class='row-box pt-m'>
127
129
  <label class='pr-m'>Count: {count}</label>
128
- <button class='button-base' onClick={onClick}>Click me</button>
130
+ <button class='button-base' onClick={onClick}>
131
+ Click me
132
+ </button>
129
133
  </div>
130
134
  </>
131
135
  );
@@ -160,7 +164,9 @@ const TestMountInnerComponent = () => {
160
164
  <>
161
165
  <div class='row-box pt-m'>
162
166
  <label class='pr-m'>Count: {count}</label>
163
- <button class='button-base' onClick={onClick}>Click me</button>
167
+ <button class='button-base' onClick={onClick}>
168
+ Click me
169
+ </button>
164
170
  </div>
165
171
  </>
166
172
  );
@@ -210,7 +216,7 @@ const TestStyles = () => {
210
216
  let ref: RefProps = { id: '' };
211
217
  const onClick = () => {
212
218
  css.color = css.color === 'blue' ? 'green' : 'blue';
213
- updateStyles(`[${ref.id}]`, css);
219
+ updateStyles(`${ref.id}`, css);
214
220
  console.log(`update styles`, css.color, css);
215
221
  };
216
222
  return (
@@ -328,10 +334,20 @@ export const AdminTestAnimationsPage = () => {
328
334
  </div>
329
335
 
330
336
  <div class='pt-m'>
331
- PlayButton
332
- <PlayButton size={PlayButtonSize.Small} />
333
- <PlayButton size={PlayButtonSize.Medium} />
334
- <PlayButton size={PlayButtonSize.Large} />
337
+ TextScale
338
+ <TextScale text='This is a sample of Text Scale' />
339
+ </div>
340
+
341
+ <div class='pt-m'>
342
+ TogglePlayButton
343
+ <TogglePlayButton size={TogglePlayButtonSize.Small} />
344
+ <TogglePlayButton size={TogglePlayButtonSize.Medium} />
345
+ <TogglePlayButton size={TogglePlayButtonSize.Large} />
346
+ </div>
347
+
348
+ <div class='pt-m'>
349
+ ToggleButton
350
+ <ToggleButton onText='On' offText='Off' />
335
351
  </div>
336
352
 
337
353
  <div class='p2'>
@@ -51,7 +51,7 @@ export const DesignBlockBox = (props: BlockBoxProps) => {
51
51
  height: '100%',
52
52
  },
53
53
  };
54
- bindGlobalStyles('design-block-box', '.design-block-box', css);
54
+ bindGlobalStyles('design-block-box', css);
55
55
 
56
56
  const findMsgSender = (ev: any) => {
57
57
  const msgSender = (window as any)._lj_design;
@@ -1,3 +1,16 @@
1
+ /*
2
+ Esbuild plugin for conditional code logic
3
+
4
+ A sample:
5
+ #if TEST || DEBUG
6
+ console.log('test');
7
+ #elseif PROD
8
+ console.log('prod');
9
+ #else
10
+ console.log('not test');
11
+ #endif
12
+
13
+ */
1
14
  const fs = require('fs/promises');
2
15
  const path = require('path');
3
16
 
@@ -21,7 +34,7 @@ const endifRegExp = /^\/\/\s*#endif$/;
21
34
  const ifdefRegExpMultiLine = new RegExp(`^${ifRegExp.source}`, 'gm');
22
35
 
23
36
  // if a variable is not defined, exception will be thrown
24
- // if a variable is '', 0, false, undefined, null, NaN, or any other value, it will be considered as false
37
+ // if a variable is '', 0, false, undefined, null, NaN, it will be considered as false
25
38
  /*
26
39
  var vars = {
27
40
  TEST1: '', // false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lupine.api",
3
- "version": "1.0.43",
3
+ "version": "1.1.44",
4
4
  "license": "MIT",
5
5
  "author": "uuware.com",
6
6
  "homepage": "https://github.com/uuware/lupine.js",