amotify 0.0.14 → 0.0.15

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.
@@ -20,8 +20,9 @@ import {
20
20
  } from '@fn';
21
21
 
22
22
  import { faEye } from '@fortawesome/pro-solid-svg-icons/faEye';
23
- import { faClock } from '@fortawesome/pro-solid-svg-icons/faClock';
24
- import { faCalendarWeek } from '@fortawesome/pro-solid-svg-icons/faCalendarWeek';
23
+ import { faClock } from '@fortawesome/pro-regular-svg-icons/faClock';
24
+ import { faCalendarLines } from '@fortawesome/pro-regular-svg-icons/faCalendarLines';
25
+ import { faAnglesUpDown } from '@fortawesome/pro-solid-svg-icons/faAnglesUpDown';
25
26
 
26
27
  import style from './style.module.scss';
27
28
 
@@ -126,10 +127,9 @@ const TextInputs: amotify.fn.Input.Text.Methods = {
126
127
  padding={ 0 }
127
128
  >
128
129
  <Buttons.Button.Normal.R
129
- padding={ '3/4' }
130
+ padding={ [ 0,1 ] }
130
131
  fontColor='theme'
131
- borderTopLeftRadius={ 0 }
132
- borderBottomLeftRadius={ 0 }
132
+ borderRadius={ 'inherit' }
133
133
  backgroundColor='inherit'
134
134
  height={ 1 }
135
135
  ssEffectsOnActive={ [ 'expand' ] }
@@ -187,7 +187,9 @@ const TimeInputs: amotify.fn.Input.Time.Methods & {
187
187
  rawParams.componentID = val_componentID;
188
188
 
189
189
  if ( $.is.nullish( rawParams.rightIndicator ) ) {
190
- let icon = ( rawParams.restrict || '' ).match( /clock/ ) ? faClock : faCalendarWeek;
190
+ let icon = ( rawParams.restrict || '' ).match( /clock/ )
191
+ ? faClock
192
+ : faCalendarLines;
191
193
 
192
194
  rawParams.rightIndicator = <Input.Comps.RightIndicator
193
195
  padding={ 0 }
@@ -195,13 +197,13 @@ const TimeInputs: amotify.fn.Input.Time.Methods & {
195
197
  <Buttons.Button.Sub.R
196
198
  color='cloud'
197
199
  border='unset'
198
- padding={ '3/4' }
200
+ padding={ [ 0,1 ] }
199
201
  fontColor='theme'
200
- borderTopLeftRadius={ 0 }
201
- borderBottomLeftRadius={ 0 }
202
+ borderRadius={ 'inherit' }
202
203
  backgroundColor='inherit'
204
+ flexCenter
203
205
  height={ 1 }
204
- ssEffectsOnActive={ [ 'ripple.theme' ] }
206
+ ssEffectsOnActive={ [ 'ripple.cloud' ] }
205
207
  tabIndex={ -1 }
206
208
  id={ 'Picker-' + rawParams.componentID }
207
209
  onClick={ () => {
@@ -264,11 +266,11 @@ const TimeInputs: amotify.fn.Input.Time.Methods & {
264
266
  value={ era }
265
267
  tone={ params.tone }
266
268
  flexCenter
267
- borderTopRightRadius={ 0 }
268
- borderBottomRightRadius={ 0 }
269
+ borderTopRightRadius={ '2/3' }
270
+ borderBottomRightRadius={ '2/3' }
271
+ height={ 1 }
269
272
  freeCSS={ {
270
- whiteSpace: 'nowrap',
271
- marginRight: -1
273
+ whiteSpace: 'nowrap'
272
274
  } }
273
275
  options={ [
274
276
  { value: 'year',label: '西暦' },
@@ -283,7 +285,7 @@ const TimeInputs: amotify.fn.Input.Time.Methods & {
283
285
 
284
286
  if ( component && component.resetEra ) component.resetEra( value );
285
287
  } }
286
- rightIcon={ false }
288
+ // rightIcon={ false }
287
289
  /> }
288
290
  { ...params }
289
291
  era={ era }
@@ -468,10 +470,7 @@ export const Input: amotify.fn.Input.Methods = {
468
470
  } }
469
471
  paddingLeft={ 3 }
470
472
  rightIcon={ <Input.Comps.LeftIcon>
471
- <Column gap={ 0 }>
472
- <FAI.AngleUp />
473
- <FAI.AngleDown />
474
- </Column>
473
+ <FAI icon={ faAnglesUpDown } />
475
474
  </Input.Comps.LeftIcon> }
476
475
  limit={ 1 }
477
476
  { ...params }
@@ -564,9 +563,8 @@ export const Input: amotify.fn.Input.Methods = {
564
563
 
565
564
  return ( <Box
566
565
  { ...DefaultStyles.Indicator( tone! ) }
567
- borderRight='unset'
568
- borderTopRightRadius={ 0 }
569
- borderBottomRightRadius={ 0 }
566
+ borderTopRightRadius={ '2/3' }
567
+ borderBottomRightRadius={ '2/3' }
570
568
  { ...others }
571
569
  /> );
572
570
  },
@@ -576,13 +574,12 @@ export const Input: amotify.fn.Input.Methods = {
576
574
  ...others
577
575
  } = params;
578
576
 
579
- return ( <Box
577
+ return <Box
580
578
  { ...DefaultStyles.Indicator( tone! ) }
581
- borderLeft='unset'
582
- borderTopLeftRadius={ 0 }
583
- borderBottomLeftRadius={ 0 }
579
+ borderTopLeftRadius={ '2/3' }
580
+ borderBottomLeftRadius={ '2/3' }
584
581
  { ...others }
585
- /> );
582
+ />;
586
583
  },
587
584
  RightIcon: ( params ) => {
588
585
  let {
@@ -590,7 +587,7 @@ export const Input: amotify.fn.Input.Methods = {
590
587
  ...others
591
588
  } = params;
592
589
 
593
- return ( <Box
590
+ return <Box
594
591
  { ...DefaultStyles.IndicatorIcon }
595
592
  right={ '3/4' }
596
593
  className={ style.IndicatorIcon }
@@ -600,7 +597,7 @@ export const Input: amotify.fn.Input.Methods = {
600
597
  pointerEvents: 'none',
601
598
  ...others.freeCSS
602
599
  } }
603
- /> );
600
+ />;
604
601
  },
605
602
  LeftIcon: ( params ) => {
606
603
  let {
@@ -608,7 +605,7 @@ export const Input: amotify.fn.Input.Methods = {
608
605
  ...others
609
606
  } = params;
610
607
 
611
- return ( <Box
608
+ return <Box
612
609
  { ...DefaultStyles.IndicatorIcon }
613
610
  left={ '3/4' }
614
611
  className={ style.IndicatorIcon }
@@ -618,7 +615,7 @@ export const Input: amotify.fn.Input.Methods = {
618
615
  pointerEvents: 'none',
619
616
  ...others.freeCSS
620
617
  } }
621
- /> );
618
+ />;
622
619
  },
623
620
  }
624
621
  }
@@ -753,12 +750,14 @@ const DefaultStyles = {
753
750
  ...DefaultStyles.Input( params.tone ),
754
751
  ...params,
755
752
  ...params.leftIndicator ? {
756
- borderTopLeftRadius: 0,
757
- borderBottomLeftRadius: 0
753
+ borderTopLeftRadius: '2/3',
754
+ borderBottomLeftRadius: '2/3',
755
+ marginLeft: '1/4'
758
756
  } : null,
759
757
  ...params.rightIndicator ? {
760
- borderTopRightRadius: 0,
761
- borderBottomRightRadius: 0,
758
+ borderTopRightRadius: '2/3',
759
+ borderBottomRightRadius: '2/3',
760
+ marginRight: '1/4'
762
761
  } : null,
763
762
  className: [
764
763
  style.Input,
@@ -44,56 +44,55 @@ export const BoxWrapper: React.FC<BoxWrapperParams> = ( props ) => {
44
44
 
45
45
  if ( val_status.eventType == 'init' && !params.checkValidationAtFirst ) val_validate.notice = [];
46
46
 
47
- return (
48
- <Box
49
- position='relative'
50
- { ...wrapStyles }
51
- id={ 'BoxWrapper-' + val_status.componentID }
47
+ return <Box
48
+ position='relative'
49
+ { ...wrapStyles }
50
+ id={ 'BoxWrapper-' + val_status.componentID }
51
+ >
52
+ <Flex
53
+ flexWrap={ false }
54
+ // height='100%'
55
+ className={ style.Wrapper }
52
56
  >
57
+ { params.leftIndicator }
53
58
  <Flex
54
- flexWrap={ false }
55
- // height='100%'
59
+ position='relative'
60
+ flexSizing={ 'auto' }
56
61
  >
57
- { params.leftIndicator }
58
- <Flex
59
- position='relative'
60
- flexSizing={ 'auto' }
62
+ { leftIcon }
63
+ { children }
64
+ { clearButton && !!val_status.dataValue ? <Buttons.Button.Normal.R
65
+ ssSphere={ 2 }
66
+ flexCenter
67
+ fontColor={ '5.translucent' }
68
+ ssEffectsOnActive={ [ 'ripple.theme' ] }
69
+ position='absolute'
70
+ right={ 1 }
71
+ top={ '50%' }
72
+ freeCSS={ {
73
+ zIndex: 3
74
+ } }
75
+ className={ style.IndicatorIcon }
76
+ onClick={ () => {
77
+ set_status( {
78
+ ...val_status,
79
+ dataValue: '',
80
+ formatValue: '',
81
+ eventType: 'update',
82
+ eventID: $.uuidGen()
83
+ } as any );
84
+ } }
61
85
  >
62
- { leftIcon }
63
- { children }
64
- { clearButton && !!val_status.dataValue ? <Buttons.Button.Normal.R
65
- ssSphere={ 2 }
66
- flexCenter
67
- fontColor={ '5.translucent' }
68
- ssEffectsOnActive={ [ 'ripple.theme' ] }
69
- position='absolute'
70
- right={ 1 }
71
- top={ '50%' }
72
- freeCSS={ {
73
- zIndex: 3
74
- } }
75
- className={ style.IndicatorIcon }
76
- onClick={ () => {
77
- set_status( {
78
- ...val_status,
79
- dataValue: '',
80
- formatValue: '',
81
- eventType: 'update',
82
- eventID: $.uuidGen()
83
- } as any );
84
- } }
85
- >
86
- <FAI.Times />
87
- </Buttons.Button.Normal.R> : rightIcon }
88
- </Flex>
89
- { params.rightIndicator }
86
+ <FAI.Times />
87
+ </Buttons.Button.Normal.R> : rightIcon }
90
88
  </Flex>
91
- <GenNotices
92
- notice={ val_validate.notice }
93
- val_status={ val_status }
94
- />
95
- </Box>
96
- );
89
+ { params.rightIndicator }
90
+ </Flex>
91
+ <GenNotices
92
+ notice={ val_validate.notice }
93
+ val_status={ val_status }
94
+ />
95
+ </Box>;
97
96
  }
98
97
  const GenNotices: React.FC<{
99
98
  notice: amotify.fn.Input.Validation.NoticeTypes[]
@@ -1,4 +1,55 @@
1
1
  @use '@props' as *;
2
+ .Wrapper {
3
+ textarea {
4
+ display: block;
5
+ width: 100%;
6
+ min-height: $unit4;
7
+ resize: vertical;
8
+ transition-property: border, box-shadow, background-color !important;
9
+ }
10
+ input, select, textarea {
11
+ display: inline-block;
12
+ &[ disabled] {
13
+ box-shadow: none !important;
14
+ background-color: $color-layer3 !important;
15
+ color: $font-color5 !important;
16
+ filter: grayscale(50%);
17
+ cursor: not-allowed !important;
18
+ }
19
+ }
20
+ input, textarea {
21
+ cursor: text;
22
+ &::placeholder {
23
+ font-family: inherit;
24
+ color: $font-color5;
25
+ }
26
+ }
27
+ input {
28
+ min-width: 0;
29
+ display: block;
30
+ &[ type="text"], &[ type="number"] {
31
+ width: 100%;
32
+ }
33
+ &[ type="number"] {
34
+ &::-webkit-inner-spin-button,
35
+ &::-webkit-outer-spin-button {
36
+ -webkit-appearance: none;
37
+ }
38
+ }
39
+ &[ type="radio"], &[ type="checkbox"], &[ type="file"] {
40
+ opacity: 0;
41
+ width: 0;
42
+ height: 0;
43
+ overflow: hidden;
44
+ position: absolute;
45
+ appearance: none;
46
+ }
47
+ &:-webkit-autofill {
48
+ box-shadow: 0 0 0 100rem $color-layer3 inset !important;
49
+ -webkit-text-fill-color: $font-color3;
50
+ }
51
+ }
52
+ }
2
53
  .Input {
3
54
  &:focus, &:active {
4
55
  z-index: 1;
@@ -23,9 +74,6 @@
23
74
  }
24
75
  }
25
76
  }
26
- textarea {
27
- transition-property: border, box-shadow, background-color !important;
28
- }
29
77
  @keyframes ShowCell {
30
78
  0% {}
31
79
  100% {
@@ -36,9 +84,6 @@ textarea {
36
84
  .IndicatorIcon {
37
85
  transform: translateY(-50%);
38
86
  }
39
- textarea {
40
- resize: vertical;
41
- }
42
87
  .DigitCharacterCell {
43
88
  &.Combined {
44
89
  &:not(:first-child):not(:last-child) {
@@ -52,7 +52,7 @@ export const RootViewController: amotify.fn.Layout.RootViewController.Methods =
52
52
 
53
53
  let Chilren: ReactElement = children;
54
54
 
55
- return ( <Column
55
+ return <Column
56
56
  key={ Key }
57
57
  className={ [
58
58
  className,
@@ -84,7 +84,7 @@ export const RootViewController: amotify.fn.Layout.RootViewController.Methods =
84
84
  </Box>
85
85
  </Flex>
86
86
  { footerNavigation }
87
- </Column> );
87
+ </Column>;
88
88
  },
89
89
  TopNavigation: ( params ) => {
90
90
  let {
@@ -109,7 +109,7 @@ export const RootViewController: amotify.fn.Layout.RootViewController.Methods =
109
109
  .setStyleProperty( '--topBase',topBase + 'px' );
110
110
  },[] );
111
111
 
112
- return ( <Flex
112
+ return <Flex
113
113
  key={ val_componentID }
114
114
  data-id={ val_componentID }
115
115
  flexSizing={ 'none' }
@@ -124,20 +124,8 @@ export const RootViewController: amotify.fn.Layout.RootViewController.Methods =
124
124
  style.TopNav
125
125
  ].join( ' ' ) }
126
126
  >
127
- <Box
128
- position='absolute'
129
- left={ 0 }
130
- right={ 0 }
131
- backgroundColor='inherit'
132
- className={ style.TopCover }
133
- freeCSS={ {
134
- top: '-1rem',
135
- height: '2rem',
136
- zIndex: -1
137
- } }
138
- />
139
127
  { children }
140
- </Flex> );
128
+ </Flex>;
141
129
  },
142
130
  SideNavigation: ( params ) => {
143
131
  let {
@@ -1,6 +1,6 @@
1
1
  @use '@props' as *;
2
2
  :global {
3
- .amotify_base_element_loader {
3
+ .AMOTIFY_be_loader {
4
4
  z-index: 10;
5
5
  position: absolute;
6
6
  }
@@ -189,6 +189,7 @@
189
189
  animation: spin .5s linear infinite;
190
190
  }
191
191
  svg {
192
+ height: 100%;
192
193
  position: absolute;
193
194
  fill: none;
194
195
  }
@@ -186,7 +186,7 @@ const Comps = {
186
186
  .abort()
187
187
  .addClass( style.FixHeight )
188
188
  .callback( () => {
189
- $( '#' + baseElements.rootID )
189
+ $( '#' + baseElements.rootID + '.AMOTIFY_be_origin' )
190
190
  .addClass( style.FixScroll )
191
191
  [ 0 ].scrollTop = Comps.mainSheetScrolls;
192
192
  } )
@@ -1,8 +1,8 @@
1
1
  @use '@props' as *;
2
2
  :global {
3
- .amotify_base_element_sheet {
4
- // position: absolute;
5
- position: sticky;
3
+ .AMOTIFY_be_sheet {
4
+ position: fixed;
5
+ // position: sticky;
6
6
  top: 0;
7
7
  left: 0;
8
8
  right: 0;
@@ -16,7 +16,7 @@ html {
16
16
  .FixScroll {
17
17
  overflow: hidden !important;
18
18
  min-height: 0 !important;
19
- height: calc( $viewHeight );
19
+ height: calc($viewHeight );
20
20
  width: calc(100vw);
21
21
  transition: $animation-time-long;
22
22
  }
@@ -1,6 +1,6 @@
1
1
  @use '@props' as *;
2
2
  :global {
3
- .amotify_base_element_snackbar {
3
+ .AMOTIFY_be_snackbar {
4
4
  z-index: 8;
5
5
  position: absolute;
6
6
  }
@@ -30,7 +30,8 @@ export const LaunchReactApplication: amotify.global.LaunchReactApplicationParams
30
30
  let reactDom = nonRouter ? reactElement : <ReactRouterDom.BrowserRouter children={ reactElement } />;
31
31
 
32
32
  if ( isRoot ) {
33
- base.addClass( 'amotify_base_element_root' );
33
+ $( 'body' ).addClass( 'AMOTIFY_be_body' );
34
+ base.addClass( 'AMOTIFY_be AMOTIFY_be_root AMOTIFY_be_origin' );
34
35
  if ( base[ 0 ].id ) {
35
36
  baseElements.rootID = base[ 0 ].id;
36
37
  } else {
package/src/preload.tsx CHANGED
@@ -35,19 +35,19 @@ let tags: Jsmin.CreateElement.Args[] = [
35
35
  },{
36
36
  parent: document.body,
37
37
  id: baseElements.sheetID,
38
- className: 'amotify_base_element_sheet',
38
+ className: 'AMOTIFY_be AMOTIFY_be_sheet',
39
39
  },{
40
40
  parent: document.body,
41
41
  id: baseElements.snackbarID,
42
- className: 'amotify_base_element_snackbar',
42
+ className: 'AMOTIFY_be AMOTIFY_be_snackbar',
43
43
  },{
44
44
  parent: document.body,
45
45
  id: baseElements.loaderID,
46
- className: 'amotify_base_element_loader',
46
+ className: 'AMOTIFY_be AMOTIFY_be_loader',
47
47
  },{
48
48
  parent: document.body,
49
49
  id: baseElements.rootID,
50
- className: 'amotify_base_element_root',
50
+ className: 'AMOTIFY_be AMOTIFY_be_root',
51
51
  },
52
52
  ];
53
53
  for ( let tag of tags ) {