amotify 0.0.13 → 0.0.14

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.
Files changed (58) hide show
  1. package/@types/amot.tsx +48 -63
  2. package/@types/fn.tsx +10 -16
  3. package/dist/amotify.js +1 -1
  4. package/dist/amotify.min.css +8 -9
  5. package/dist/coreVender.js +14 -0
  6. package/package.json +27 -22
  7. package/src/@atoms.tsx +4 -2
  8. package/src/@global.tsx +5 -0
  9. package/src/@jsminAmotifyExtension/fetch.tsx +2 -0
  10. package/src/@jsminAmotifyExtension/variables.tsx +4 -0
  11. package/src/@organisms.tsx +1 -5
  12. package/src/@styles/init.scss +1 -1
  13. package/src/@variables.tsx +70 -0
  14. package/src/atoms/FAI/parts.tsx +134 -0
  15. package/src/config.tsx +31 -5
  16. package/src/functions/Button/_.tsx +0 -1
  17. package/src/functions/Cropper/parts.tsx +18 -10
  18. package/src/functions/Effects/Ripple.tsx +1 -1
  19. package/src/functions/Input/Chips/Selector.tsx +9 -9
  20. package/src/functions/Input/Chips/_.tsx +10 -3
  21. package/src/functions/Input/DigitCharacters.tsx +13 -15
  22. package/src/functions/Input/File/_.tsx +35 -63
  23. package/src/functions/Input/Hidden.tsx +3 -1
  24. package/src/functions/Input/List/_.tsx +8 -8
  25. package/src/functions/Input/Select/_.tsx +8 -7
  26. package/src/functions/Input/Slider/_.tsx +5 -5
  27. package/src/functions/Input/Switch/_.tsx +9 -8
  28. package/src/functions/Input/Text.tsx +3 -4
  29. package/src/functions/Input/TextArea.tsx +3 -3
  30. package/src/functions/Input/Time/Picker.tsx +10 -17
  31. package/src/functions/Input/Time/_.tsx +3 -2
  32. package/src/functions/Input/Time/style.module.scss +9 -2
  33. package/src/functions/Input/_.tsx +24 -12
  34. package/src/functions/Input/core.tsx +10 -10
  35. package/src/functions/Input/style.module.scss +16 -3
  36. package/src/functions/Layout/PageNotFound.tsx +2 -4
  37. package/src/functions/Layout/PageRouter.tsx +2 -3
  38. package/src/functions/Loader/parts.tsx +3 -1
  39. package/src/functions/Loader/style.module.scss +1 -1
  40. package/src/functions/Sheet/parts.tsx +45 -42
  41. package/src/functions/Sheet/style.module.scss +16 -23
  42. package/src/functions/SnackBar/parts.tsx +5 -3
  43. package/src/functions/SnackBar/style.module.scss +1 -1
  44. package/src/functions/Table/Data/parts.tsx +18 -12
  45. package/src/functions/Table/Drag/parts.tsx +7 -9
  46. package/src/functions/Table/_.tsx +2 -2
  47. package/src/global/LaunchReactApplication.tsx +16 -5
  48. package/src/launch.tsx +12 -5
  49. package/src/molecules/Accordion/parts.tsx +4 -1
  50. package/src/molecules/LinkifyText/parts.tsx +2 -3
  51. package/src/preload.tsx +19 -30
  52. package/tsconfig.json +19 -8
  53. package/webpack.config.js +16 -5
  54. package/src/atoms/FAIcon/parts.tsx +0 -118
  55. package/src/atoms/FAIcon/style.module.scss +0 -8
  56. package/src/organisms/DisplayStyleInput/_.tsx +0 -18
  57. package/src/organisms/DisplayStyleInput/darkmode.tsx +0 -107
  58. package/src/organisms/DisplayStyleInput/themeColor.tsx +0 -205
@@ -60,13 +60,20 @@
60
60
  .RightButton:active {
61
61
  left: $unit1_3 !important;
62
62
  }
63
- .Cell.Checked {
63
+ .Cell.isThisMonth {
64
64
  color: #fff !important;
65
- background-color: $color-theme !important;
65
+ background-color: $color-warning !important;
66
66
  box-shadow: $shadow2;
67
67
  }
68
68
  }
69
69
  .miniYearInput {
70
70
  width: 4em !important;
71
71
  text-align: center;
72
+ }
73
+ .CalendarDay {
74
+ &.isToday_true {
75
+ color: white !important;
76
+ background-color: $color-warning !important;
77
+ font-weight: bold;
78
+ }
72
79
  }
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  Box,
8
8
  Flex,
9
- FAIcon,
9
+ FAI,
10
10
  Span
11
11
  } from '@atoms';
12
12
  import {
@@ -19,6 +19,10 @@ import {
19
19
  Tooltips
20
20
  } from '@fn';
21
21
 
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';
25
+
22
26
  import style from './style.module.scss';
23
27
 
24
28
  import { HiddenInput } from './Hidden';
@@ -49,12 +53,12 @@ const UniComponent: React.FC<{
49
53
 
50
54
  props = { ...props }
51
55
  props.params = {
52
- enable_form_submit: true,
56
+ enableFormSubmit: true,
53
57
  // override: 'beforeModified',
58
+ status_id: $.uuidGen(),
54
59
  override: 'never',
55
60
  name: $.uuidGen(),
56
61
  id: $.uuidGen(),
57
- statusID: $.uuidGen(),
58
62
  'aria-label': 'Input-' + val_componentID,
59
63
  ...props.params,
60
64
  componentID: val_componentID,
@@ -150,8 +154,8 @@ const TextInputs: amotify.fn.Input.Text.Methods = {
150
154
  } );
151
155
  } }
152
156
  >
153
- <FAIcon
154
- d='eye'
157
+ <FAI
158
+ icon={ faEye }
155
159
  freeCSS={ {
156
160
  pointerEvents: 'none'
157
161
  } }
@@ -183,7 +187,7 @@ const TimeInputs: amotify.fn.Input.Time.Methods & {
183
187
  rawParams.componentID = val_componentID;
184
188
 
185
189
  if ( $.is.nullish( rawParams.rightIndicator ) ) {
186
- let icon = ( rawParams.restrict || '' ).match( /clock/ ) ? 'clock' : 'calendar-lines';
190
+ let icon = ( rawParams.restrict || '' ).match( /clock/ ) ? faClock : faCalendarWeek;
187
191
 
188
192
  rawParams.rightIndicator = <Input.Comps.RightIndicator
189
193
  padding={ 0 }
@@ -205,7 +209,7 @@ const TimeInputs: amotify.fn.Input.Time.Methods & {
205
209
  if ( component ) component.openPicker();
206
210
  } }
207
211
  >
208
- <FAIcon d={ icon } />
212
+ <FAI icon={ icon } />
209
213
  </Buttons.Button.Sub.R>
210
214
  </Input.Comps.RightIndicator>
211
215
  }
@@ -389,10 +393,9 @@ export const Input: amotify.fn.Input.Methods = {
389
393
  }
390
394
  if ( rawParams.combineInput ) {
391
395
  rawParams = {
392
- digits: rawParams.digits,
393
396
  textAlign: 'center',
394
397
  width: 0,
395
- borderRadius: 0,
398
+ ...rawParams,
396
399
  freeCSS: {
397
400
  minWidth: 12 * 2,
398
401
  marginRight: -1,
@@ -425,7 +428,7 @@ export const Input: amotify.fn.Input.Methods = {
425
428
  className={ style.IndicatorIcon }
426
429
  { ...rawParams.rightIconStyles }
427
430
  >
428
- <FAIcon.AngleDown />
431
+ <FAI.AngleDown />
429
432
  </Input.Comps.RightIcon>
430
433
  }
431
434
  if ( rawParams.rightIcon ) rawParams.paddingRight = rawParams.paddingRight ?? 3;
@@ -466,8 +469,8 @@ export const Input: amotify.fn.Input.Methods = {
466
469
  paddingLeft={ 3 }
467
470
  rightIcon={ <Input.Comps.LeftIcon>
468
471
  <Column gap={ 0 }>
469
- <FAIcon.AngleUp />
470
- <FAIcon.AngleDown />
472
+ <FAI.AngleUp />
473
+ <FAI.AngleDown />
471
474
  </Column>
472
475
  </Input.Comps.LeftIcon> }
473
476
  limit={ 1 }
@@ -533,6 +536,15 @@ export const Input: amotify.fn.Input.Methods = {
533
536
  { ...params }
534
537
  /> );
535
538
  },
539
+ RequiredShortSign: ( params ) => {
540
+ return ( <Span
541
+ fontColor='nega'
542
+ padding={ [ '1/4','1/3' ] }
543
+ borderRadius={ '3.tone.tertiary' }
544
+ children={ '*' }
545
+ { ...params }
546
+ /> );
547
+ },
536
548
  OmitSign: ( params ) => {
537
549
  return ( <Span
538
550
  fontColor='white'
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  Box,
7
7
  Flex,
8
- FAIcon
8
+ FAI
9
9
  } from '@atoms';
10
10
  import {
11
11
  Column,
@@ -83,7 +83,7 @@ export const BoxWrapper: React.FC<BoxWrapperParams> = ( props ) => {
83
83
  } as any );
84
84
  } }
85
85
  >
86
- <FAIcon.Times />
86
+ <FAI.Times />
87
87
  </Buttons.Button.Normal.R> : rightIcon }
88
88
  </Flex>
89
89
  { params.rightIndicator }
@@ -118,11 +118,16 @@ const GenNotices: React.FC<{
118
118
  let Notices = notice.map( ( cell ) => {
119
119
  let { type,label } = cell;
120
120
 
121
+ let ICON =
122
+ type == 'invalid' ? FAI.Times :
123
+ type == 'warn' ? FAI.Exclamation :
124
+ FAI.Check;
125
+
121
126
  return <Row.Left
122
127
  gap={ 0 }
123
128
  borderRadius={ '2.tone.secondary' }
124
129
  >
125
- <FAIcon
130
+ <ICON
126
131
  flexCenter
127
132
  fontSize='3.paragraph'
128
133
  fontColor={ {
@@ -130,11 +135,6 @@ const GenNotices: React.FC<{
130
135
  'warn': 'warn',
131
136
  'valid': 'posi',
132
137
  }[ type ] as 'theme' }
133
- d={ {
134
- 'invalid': 'times',
135
- 'warn': 'exclamation',
136
- 'valid': 'check'
137
- }[ type ] }
138
138
  />
139
139
  <Box
140
140
  fontColor='white'
@@ -293,7 +293,7 @@ export const CommonEffects: {
293
293
  if ( !component ) return;
294
294
  if (
295
295
  params.value != val_status.dataValue &&
296
- params.statusID != component.statusID
296
+ params.status_id != component.status_id
297
297
  ) {
298
298
  set_status( {
299
299
  ...val_status,
@@ -303,7 +303,7 @@ export const CommonEffects: {
303
303
  eventID: $.uuidGen()
304
304
  } );
305
305
  }
306
- component.statusID = params.statusID;
306
+ component.status_id = params.status_id;
307
307
  } )();
308
308
 
309
309
  React.useEffect( () => {
@@ -20,10 +20,9 @@
20
20
  &:focus-within {
21
21
  border-color: $color-theme !important;
22
22
  box-shadow: 0 0 0 $unit1_3 $color-theme-opacity-low;
23
- }
23
+ }
24
24
  }
25
25
  }
26
-
27
26
  textarea {
28
27
  transition-property: border, box-shadow, background-color !important;
29
28
  }
@@ -37,7 +36,21 @@ textarea {
37
36
  .IndicatorIcon {
38
37
  transform: translateY(-50%);
39
38
  }
40
-
41
39
  textarea {
42
40
  resize: vertical;
41
+ }
42
+ .DigitCharacterCell {
43
+ &.Combined {
44
+ &:not(:first-child):not(:last-child) {
45
+ border-radius: 0 !important;
46
+ }
47
+ &:first-child {
48
+ border-top-right-radius: 0 !important;
49
+ border-bottom-right-radius: 0 !important;
50
+ }
51
+ &:last-child {
52
+ border-top-left-radius: 0 !important;
53
+ border-bottom-left-radius: 0 !important;
54
+ }
55
+ }
43
56
  }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import {
3
3
  Box,
4
- FAIcon
4
+ FAI
5
5
  } from '@atoms';
6
6
  import {
7
7
  Column,
@@ -29,10 +29,8 @@ export const PageNotFound: React.FC<{}> = () => {
29
29
  maxWidth: 12 * 30
30
30
  } }
31
31
  >
32
- <FAIcon.LinkSlash
32
+ <FAI.LinkSlash
33
33
  fontColor={ 'theme' }
34
- iconFamily='classic'
35
- isDuotoneIcon
36
34
  freeCSS={ {
37
35
  fontSize: '3rem'
38
36
  } }
@@ -23,10 +23,9 @@ const userEffect = ( beforeCallback?: Function,afterCallback?: Function,afterFir
23
23
  value: navigate
24
24
  } );
25
25
 
26
- amotify.fn.Sheet.closeAll( true );
27
-
28
26
  React.useEffect( () => {
29
27
  if ( mounted.current ) {
28
+ amotify.fn.Sheet.closeAll( true );
30
29
  $( '#TopNavigation' )
31
30
  .callback( ( topHeader ) => {
32
31
  let Body = $( document.body );
@@ -39,7 +38,7 @@ const userEffect = ( beforeCallback?: Function,afterCallback?: Function,afterFir
39
38
  } else {
40
39
  mounted.current = true;
41
40
  }
42
- },[ location ] );
41
+ },[ location.pathname ] );
43
42
 
44
43
  if ( beforeCallback ) beforeCallback( location );
45
44
 
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import {
3
+ baseElements,
3
4
  LaunchReactApplication,
4
5
  useStore
5
6
  } from '@global';
@@ -92,7 +93,8 @@ const Loader: amotify.fn.Loader.Methods = {
92
93
  export { Loader }
93
94
 
94
95
  LaunchReactApplication( {
95
- baseElement: '#LOADER',
96
+ isRoot: false,
97
+ baseElement: '#' + baseElements.loaderID,
96
98
  reactElement: <>
97
99
  <Top />
98
100
  <Corner />
@@ -1,6 +1,6 @@
1
1
  @use '@props' as *;
2
2
  :global {
3
- #LOADER {
3
+ .amotify_base_element_loader {
4
4
  z-index: 10;
5
5
  position: absolute;
6
6
  }
@@ -1,4 +1,5 @@
1
1
  import {
2
+ baseElements,
2
3
  React,
3
4
  LaunchReactApplication,
4
5
  useStore
@@ -7,7 +8,7 @@ import {
7
8
  Img,
8
9
  Box,
9
10
  Flex,
10
- FAIcon
11
+ FAI
11
12
  } from '@atoms';
12
13
  import {
13
14
  Column,
@@ -32,13 +33,14 @@ const Comps = {
32
33
  open: boolean
33
34
  hold_state: boolean
34
35
  params: Params
35
- created_at: Time.Method
36
+ created_at: Time.Methods
36
37
  }
37
38
  },
38
39
  Launch: function ( params: Params ) {
39
40
  params = {
40
41
  sheetID: $.uuidGen(),
41
42
  sheetGroups: params.sheetGroups || [],
43
+ backgroundEffect: true,
42
44
  overwrap: params.type == 'custom' ? true : false,
43
45
  hold_state: false,
44
46
  ...params,
@@ -66,10 +68,11 @@ const Comps = {
66
68
  created_at: $.Time()
67
69
  }
68
70
 
69
- $( '#SHEET' )
71
+ $( '#' + baseElements.sheetID )
70
72
  .append( `<div id="Sheet-${ params.sheetID }"></div>` )
71
73
  .callback( () => {
72
74
  LaunchReactApplication( {
75
+ isRoot: false,
73
76
  baseElement: '#Sheet-' + params.sheetID,
74
77
  reactElement: Content,
75
78
  } );
@@ -167,8 +170,8 @@ const Comps = {
167
170
  },[] );
168
171
  React.useEffect( () => {
169
172
  $.fnScope( () => {
170
- // #ROOT
171
173
  if ( !isNewSheet ) return;
174
+ if ( !params.backgroundEffect ) return;
172
175
 
173
176
  Comps.subSheetLength = Comps.subSheetLength + ( val_open ? 1 : -1 );
174
177
  if ( val_open ) {
@@ -183,7 +186,9 @@ const Comps = {
183
186
  .abort()
184
187
  .addClass( style.FixHeight )
185
188
  .callback( () => {
186
- $( '#ROOT' )[ 0 ].scrollTop = Comps.mainSheetScrolls;
189
+ $( '#' + baseElements.rootID )
190
+ .addClass( style.FixScroll )
191
+ [ 0 ].scrollTop = Comps.mainSheetScrolls;
187
192
  } )
188
193
  .addClass( [
189
194
  style.FloatMainSheet,
@@ -202,7 +207,7 @@ const Comps = {
202
207
  .removeClass( style.FixHeight )
203
208
  .callback( ( html ) => {
204
209
  html[ 0 ].scrollTop = Comps.mainSheetScrolls | 0;
205
- $( '#ROOT' )[ 0 ].scrollTop = 0;
210
+ $( '#' + baseElements.rootID )[ 0 ].scrollTop = 0;
206
211
  } );
207
212
  }
208
213
  } );
@@ -238,7 +243,7 @@ const Comps = {
238
243
 
239
244
  let [ Tcate,Tpos ] = type.split( '.' );
240
245
 
241
- return ( <Box
246
+ return <Box
242
247
  className={ [
243
248
  style.Wrap,
244
249
  style[ 'Tcate_' + Tcate ],
@@ -269,7 +274,7 @@ const Comps = {
269
274
  { ...val_params }
270
275
  />
271
276
  </Column>
272
- </Box> );
277
+ </Box>;
273
278
  },
274
279
  Types: {
275
280
  Normal: ( params: amotify.fn.Sheet.NormalParams ) => {
@@ -577,9 +582,7 @@ const Comps = {
577
582
  height={ 1 }
578
583
  { ...baseStyles }
579
584
  >
580
- <Flex
581
- verticalAlign='center'
582
- flexChilds='even'
585
+ <Row.Separate
583
586
  padding={ '1/2' }
584
587
  backgroundColor='1.layer.base'
585
588
  position='relative'
@@ -587,39 +590,37 @@ const Comps = {
587
590
  userSelect: 'none'
588
591
  } }
589
592
  >
590
- <Row.Center>
593
+ <Row.Center
594
+ flexSizing={ 0 }
595
+ padding={ '2/3' }
596
+ onMouseDown={ Effects.Start }
597
+ onTouchStart={ Effects.Start }
598
+ ssPushable
599
+ isRounded
600
+ freeCSS={ {
601
+ cursor: 'grab',
602
+ userSelect: 'none'
603
+ } }
604
+ >
591
605
  <Box
592
- padding={ '2/3' }
593
- onMouseDown={ Effects.Start }
594
- onTouchStart={ Effects.Start }
595
- ssPushable
606
+ unitWidth={ 6 }
607
+ unitHeight={ '1/2' }
608
+ backgroundColor='5.layer.darker'
596
609
  isRounded
597
- freeCSS={ {
598
- cursor: 'grab',
599
- userSelect: 'none'
600
- } }
601
- >
602
- <Box
603
- unitWidth={ 6 }
604
- unitHeight={ '1/2' }
605
- backgroundColor='5.layer.darker'
606
- isRounded
607
- className={ style.DragBar }
608
- />
609
- </Box>
610
+ className={ style.DragBar }
611
+ />
610
612
  </Row.Center>
611
- <Row.Right>
612
- <Buttons.Button.Sub.R
613
- color='cloud'
614
- ssSphere={ 2 }
615
- onClick={ () => {
616
- Sheet.close( sheetID! );
617
- } }
618
- >
619
- <FAIcon.Times />
620
- </Buttons.Button.Sub.R>
621
- </Row.Right>
622
- </Flex>
613
+
614
+ <Buttons.Button.Sub.R
615
+ color='cloud'
616
+ ssSphere={ 2 }
617
+ onClick={ () => {
618
+ Sheet.close( sheetID! );
619
+ } }
620
+ >
621
+ <FAI.Times />
622
+ </Buttons.Button.Sub.R>
623
+ </Row.Separate>
623
624
  <Box
624
625
  backgroundColor={ '1.layer.base' }
625
626
  flexSizing={ 0 }
@@ -640,6 +641,8 @@ const Comps = {
640
641
  close_option,
641
642
  hold_state,
642
643
  overwrap,
644
+ openAfter,
645
+ closeAfter,
643
646
  ...others
644
647
  } = params;
645
648
 
@@ -896,7 +899,7 @@ const Sheet: amotify.fn.Sheet.Methods = {
896
899
  Sheet.close( sheetID! );
897
900
  } }
898
901
  >
899
- <FAIcon.Times />
902
+ <FAI.Times />
900
903
  </Buttons.Button.Sub.R>
901
904
  </Row.Separate>
902
905
  <Layout.SwipeView
@@ -1,7 +1,6 @@
1
1
  @use '@props' as *;
2
- //SheetBase
3
2
  :global {
4
- #SHEET {
3
+ .amotify_base_element_sheet {
5
4
  // position: absolute;
6
5
  position: sticky;
7
6
  top: 0;
@@ -14,32 +13,26 @@
14
13
  }
15
14
  html {
16
15
  &.FixHeight {
17
- :global {
18
- #ROOT {
19
- overflow: hidden !important;
20
- min-height: 0 !important;
21
- height: calc($viewHeight);
22
- width: calc(100vw);
23
- transition: $animation-time-long;
24
- }
16
+ .FixScroll {
17
+ overflow: hidden !important;
18
+ min-height: 0 !important;
19
+ height: calc( $viewHeight );
20
+ width: calc(100vw);
21
+ transition: $animation-time-long;
25
22
  }
26
23
  }
27
24
  &.FloatMainSheet {
28
- @media (max-width:$breakPoint) {
29
- &.Type_ {
30
- &bottom {
31
- overflow: hidden;
32
- }
25
+ @media (max-width:$breakPoint ) {
26
+ &.Type_bottom {
27
+ overflow: hidden;
33
28
  }
34
29
  }
35
- :global {
36
- #ROOT {
37
- opacity: .8 !important;
38
- pointer-events: none;
39
- transform-origin: center center;
40
- transform: scale(.96);
41
- border-radius: calc(calc(2vw + 2vh) / 2);
42
- }
30
+ .FixScroll {
31
+ opacity: .8 !important;
32
+ pointer-events: none;
33
+ transform-origin: center center;
34
+ transform: scale(.96);
35
+ border-radius: calc(calc(2vw + 2vh) / 2);
43
36
  }
44
37
  }
45
38
  }
@@ -1,4 +1,5 @@
1
1
  import {
2
+ baseElements,
2
3
  LaunchReactApplication,
3
4
  useStore,
4
5
  React
@@ -6,7 +7,7 @@ import {
6
7
  import {
7
8
  Box,
8
9
  Flex,
9
- FAIcon
10
+ FAI
10
11
  } from '@atoms';
11
12
  import {
12
13
  Row,
@@ -104,7 +105,7 @@ const Cell: React.FC<ElementParams> = ( props ) => {
104
105
  SnackBar.remove( snackID );
105
106
  } }
106
107
  >
107
- <FAIcon.Times />
108
+ <FAI.Times />
108
109
  </Buttons.Button.Clear.R>
109
110
  </Row.Separate>
110
111
  }
@@ -204,7 +205,8 @@ const SnackBarsWrap: React.FC<{}> = () => {
204
205
  }
205
206
 
206
207
  LaunchReactApplication( {
207
- baseElement: '#SNACKBARS',
208
+ isRoot: false,
209
+ baseElement: '#' + baseElements.snackbarID,
208
210
  reactElement: <SnackBarsWrap />,
209
211
  nonRouter: true
210
212
  } );
@@ -1,6 +1,6 @@
1
1
  @use '@props' as *;
2
2
  :global {
3
- #SNACKBARS {
3
+ .amotify_base_element_snackbar {
4
4
  z-index: 8;
5
5
  position: absolute;
6
6
  }
@@ -6,7 +6,7 @@ import {
6
6
  Flex,
7
7
  Box,
8
8
  Span,
9
- FAIcon
9
+ FAI
10
10
  } from '@atoms';
11
11
  import {
12
12
  Column,
@@ -18,6 +18,11 @@ import {
18
18
  Sheet,
19
19
  } from '@fn';
20
20
 
21
+ import { faArrowUp } from '@fortawesome/pro-solid-svg-icons/faArrowUp';
22
+ import { faArrowDown } from '@fortawesome/pro-solid-svg-icons/faArrowDown';
23
+ import { faArrowUpArrowDown } from '@fortawesome/pro-solid-svg-icons/faArrowUpArrowDown';
24
+ import { faBarsFilter } from '@fortawesome/pro-solid-svg-icons/faBarsFilter';
25
+
21
26
  import style from '../style.module.scss';
22
27
 
23
28
  import {
@@ -144,12 +149,14 @@ const Components = {
144
149
  let orderable = order.enabled && order.column[ colIndex ];
145
150
  let filterable = filter.enabled && filter.column[ colIndex ];
146
151
 
147
- let OrderButton = orderable ? <FAIcon
152
+ let OrderButton = orderable ? <FAI
148
153
  fontSize={ '1.mini' }
149
154
  fontColor={ colIndex == orderIndex ? '1.clear' : '5.translucent' }
150
- d={ colIndex == orderIndex
151
- ? 'arrow-' + [ 'up','down' ][ Number( orderDirection == 'DESC' ) ]
152
- : 'arrow-down-arrow-up' }
155
+ icon={ colIndex == orderIndex
156
+ ? orderDirection == 'DESC'
157
+ ? faArrowDown
158
+ : faArrowUp
159
+ : faArrowUpArrowDown }
153
160
  /> : null;
154
161
 
155
162
  let FilterButton = <></>;
@@ -268,14 +275,13 @@ const Components = {
268
275
  fontSize={ '1.mini' }
269
276
  className={ style[ 'Filtering_' + !!filterList.length ] }
270
277
  id={ FilterModaButtonID }
271
- children={ <FAIcon
272
- d='bars-filter'
273
- /> }
274
278
  onClick={ ( event ) => {
275
279
  event.stopPropagation();
276
280
  Sheet.open( SheetParams );
277
281
  } }
278
- />
282
+ >
283
+ <FAI icon={ faBarsFilter } />
284
+ </Buttons.Button.Sub.S>
279
285
  </Box>
280
286
  }
281
287
  }
@@ -828,7 +834,7 @@ export const DataComps: amotify.fn.Tables.Data.Comps = {
828
834
  fontColor={ '5.translucent' }
829
835
  right={ '2/3' }
830
836
  >
831
- <FAIcon.Search />
837
+ <FAI.Search />
832
838
  </Input.Comps.RightIcon> }
833
839
  override='force'
834
840
  value={ status.searchKeyword }
@@ -896,7 +902,7 @@ export const DataComps: amotify.fn.Tables.Data.Comps = {
896
902
  DataFNs.setPageIndex( params.tableID,status.paging.currentPageIndex - 1 );
897
903
  } }
898
904
  >
899
- <FAIcon.ChevronLeft />
905
+ <FAI.ChevronLeft />
900
906
  </Buttons.Button.Sub.R>
901
907
  <Buttons.Button.Sub.R
902
908
  ssSphere={ 3 }
@@ -908,7 +914,7 @@ export const DataComps: amotify.fn.Tables.Data.Comps = {
908
914
  DataFNs.setPageIndex( params.tableID,status.paging.currentPageIndex + 1 );
909
915
  } }
910
916
  >
911
- <FAIcon.ChevronRight />
917
+ <FAI.ChevronRight />
912
918
  </Buttons.Button.Sub.R>
913
919
  </Row.Right>
914
920
  </Row.Center> );