amotify 0.0.12 → 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 (59) hide show
  1. package/@types/amot.tsx +49 -64
  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 +26 -23
  7. package/src/@atoms.tsx +4 -2
  8. package/src/@global.tsx +9 -2
  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 +11 -7
  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 +12 -14
  38. package/src/functions/Layout/RootViewController/parts.tsx +1 -2
  39. package/src/functions/Loader/parts.tsx +3 -1
  40. package/src/functions/Loader/style.module.scss +1 -1
  41. package/src/functions/Sheet/parts.tsx +45 -42
  42. package/src/functions/Sheet/style.module.scss +16 -23
  43. package/src/functions/SnackBar/parts.tsx +5 -3
  44. package/src/functions/SnackBar/style.module.scss +1 -1
  45. package/src/functions/Table/Data/parts.tsx +18 -12
  46. package/src/functions/Table/Drag/parts.tsx +8 -10
  47. package/src/functions/Table/_.tsx +2 -2
  48. package/src/global/LaunchReactApplication.tsx +16 -4
  49. package/src/launch.tsx +12 -5
  50. package/src/molecules/Accordion/parts.tsx +10 -6
  51. package/src/molecules/LinkifyText/parts.tsx +2 -3
  52. package/src/preload.tsx +19 -30
  53. package/tsconfig.json +19 -8
  54. package/webpack.config.js +16 -5
  55. package/src/atoms/FAIcon/parts.tsx +0 -118
  56. package/src/atoms/FAIcon/style.module.scss +0 -8
  57. package/src/organisms/DisplayStyleInput/_.tsx +0 -18
  58. package/src/organisms/DisplayStyleInput/darkmode.tsx +0 -107
  59. package/src/organisms/DisplayStyleInput/themeColor.tsx +0 -205
package/@types/amot.tsx CHANGED
@@ -1,3 +1,10 @@
1
+ import { FontAwesomeIconProps } from '@fortawesome/react-fontawesome';
2
+ import * as FontawesomeCore from '@fortawesome/fontawesome-svg-core';
3
+
4
+ import React from 'react';
5
+ import ReactDOM from 'react-dom';
6
+ import * as ReactRouterDOM from 'react-router-dom';
7
+
1
8
  export { }
2
9
  declare global {
3
10
  type ReactElement = React.ReactNode | React.ReactNode[]
@@ -35,6 +42,19 @@ declare global {
35
42
  darkMode( value: amotify.DarkModeTypes ): void
36
43
  roundness( value: amotify.RoundnessTypes ): void
37
44
  }
45
+ variables: {
46
+ darkmodeColors: {
47
+ light: string
48
+ dark: string
49
+ dim: string
50
+ auto(): string
51
+ }
52
+ themeColors: {
53
+ [ key in amotify.ThemeColorTypes ]: {
54
+ ( alfa?: number ): string
55
+ }
56
+ }
57
+ }
38
58
  readExtraCDN( url: string ): Promise<boolean>
39
59
  }
40
60
  }
@@ -45,6 +65,7 @@ declare global {
45
65
  baseElement?: HTMLElement | string
46
66
  reactElement: ReactElement
47
67
  nonRouter?: boolean
68
+ isRoot?: boolean
48
69
  appearances?: {
49
70
  roundness?: RoundnessTypes
50
71
  themeColor?: amotify.ThemeColorTypes
@@ -88,9 +109,9 @@ declare global {
88
109
  }
89
110
 
90
111
  interface Methods {
91
- React: typeof globalThis.React
92
- ReactDOM: typeof globalThis.ReactDOM
93
- ReactRouterDOM: any
112
+ React: typeof React
113
+ ReactDOM: typeof ReactDOM
114
+ ReactRouterDOM: typeof ReactRouterDOM
94
115
  StyleConverter: {
95
116
  ReadStyleSet: StyleConverter.ReadStyleSet
96
117
  ToClassName: StyleConverter.ToClassName
@@ -126,44 +147,39 @@ declare global {
126
147
  }
127
148
  } & React.HTMLAttributes<HTMLDivElement>
128
149
 
129
- namespace FAIcon {
130
- type Method = React.FC<FAIconFNC> & ShortCuts
131
- type FAIconFNC = amotifyBasicElement & {
132
- iconFamily?: 'classic' | 'sharp'
133
-
134
- isSolidIcon?: boolean
135
- isRegularIcon?: boolean
136
- isLightIcon?: boolean
137
- isThinIcon?: boolean
138
- isDuotoneIcon?: boolean
139
-
140
- iconAnimation?: false | 'beat' | 'beat-fade' | 'bounce' | 'fade' | 'flip' | 'shake' | 'spin' | 'spin-reverse' | 'spin-pulse'
141
- isBrandIcon?: boolean
142
- d?: string
143
- } & React.HTMLAttributes<HTMLDivElement>
144
- type ShortCuts = {
145
- [ key in ShortCutNames ]: React.FC<Omit<FAIconFNC,'d'>>
150
+
151
+ namespace FAI {
152
+ type Method = React.FC<FAIParams> & Shortcuts;
153
+ type FAIParams = amotifyBasicElement & {
154
+ icon: FontawesomeCore.IconProp
155
+ iconParams?: Omit<FontAwesomeIconProps,'icon'>
156
+ };
157
+ type Shortcuts = {
158
+ [ key in ShortCutNames ]: React.FC<Omit<FAIParams,'icon'>>
146
159
  }
160
+
147
161
  type ShortCutNames =
148
- 'User' | 'Times' | 'Desktop' |
162
+ 'User' | 'Times' |
149
163
 
150
164
  'AngleRight' | 'AngleLeft' | 'AngleUp' | 'AngleDown' |
151
165
  'ChevronLeft' | 'ChevronRight' | 'ChevronUp' | 'ChevronDown' |
152
166
  'CaretLeft' | 'CaretRight' | 'CaretUp' | 'CaretDown' |
153
167
  'ArrowLeft' | 'ArrowRight' | 'ArrowUp' | 'ArrowDown' |
154
168
 
155
- 'Rotate' | 'RotateLeft' | 'RotateRight' | 'Redo' |
156
- 'Play' | 'Pause' | 'Stop' | 'ForwardStep' | 'BackwardStep' |
169
+ 'Rotate' | 'Redo' |
157
170
  'Check' | 'CheckCircle' |
158
- 'Question' | 'QuestionCircle' | 'Exclamation' | 'ExclamationTriangle' |
159
- 'Home' | 'Share' | 'Volume' |
171
+ 'Question' | 'QuestionCircle' |
172
+ 'Exclamation' | 'ExclamationTriangle' |
173
+ 'Home' | 'Share' |
160
174
  'Search' | 'YenSign' | 'Heart' | 'Star' |
161
- 'Edit' | 'Pen' | 'Copy' | 'Files' | 'File' |
162
- 'Backspace' | 'TrashAlt' | 'Bars' | 'Download' |
175
+ 'Edit' | 'Pen' | 'Copy' | 'File' |
176
+ 'TrashAlt' | 'Bars' | 'Download' |
163
177
  'Link' | 'LinkSlash' | 'ExternalLinkAlt' |
164
178
  'Gear' |
165
- 'Plus' | 'Minus' | 'Equals' | 'Calculator' |
166
- 'Image' | 'BadgePercent'
179
+ 'Plus' | 'Minus' |
180
+ 'EllipsisH' | 'EllipsisV' |
181
+ 'PaperPlane' |
182
+ 'Image';
167
183
  }
168
184
 
169
185
  namespace Image {
@@ -191,7 +207,6 @@ declare global {
191
207
  }
192
208
  }
193
209
 
194
-
195
210
  namespace Logos {
196
211
  type Methods = {
197
212
  Icon: ( params: Params ) => JSX.Element
@@ -239,7 +254,7 @@ declare global {
239
254
 
240
255
  Grid: React.FC<atoms.GridProps>
241
256
 
242
- FAIcon: FAIcon.Method
257
+ FAI: FAI.Method
243
258
 
244
259
  Span: React.FC<atoms.SpanProps>
245
260
  Paragraph: React.FC<atoms.ParagraphProps>
@@ -252,7 +267,8 @@ declare global {
252
267
  namespace mols {
253
268
  namespace Accordion {
254
269
  type Params = {
255
- open?: boolean
270
+ defaultOpen?: boolean
271
+ override?: boolean
256
272
  accordionID?: string
257
273
  slideAnimation?: 'none' | 'fast' | 'slow'
258
274
  children: ReactElement
@@ -311,37 +327,6 @@ declare global {
311
327
  }
312
328
 
313
329
  namespace orgs {
314
- namespace DisplayStyleInput {
315
- type Methods = {
316
- Darkmode: React.FC<DarkmodeInput>
317
- ThemeColor: {
318
- ALL: React.FC<ThemeColorInput>
319
- Basics: React.FC<ThemeColorInput>
320
- Originals: React.FC<ThemeColorInput>
321
- Brands: React.FC<ThemeColorInput>
322
- Keys: {
323
- Brands: ColorIconParams[]
324
- Basics: ColorIconParams[]
325
- Originals: ColorIconParams[]
326
- }
327
- }
328
- }
329
- type ColorIconParams = {
330
- key: string
331
- icon: ReactElement
332
- label?: ReactElement
333
- }
334
-
335
- type DarkmodeInput = atoms.BoxInput & {
336
- onUpdate( params: amotify.DarkModeTypes ): void
337
- }
338
- type ThemeColorInput = atoms.BoxInput & {
339
- onUpdate( params: amotify.ThemeColorTypes ): void
340
- }
341
- }
342
- type Methods = {
343
- DisplayStyleInput: DisplayStyleInput.Methods
344
- }
345
330
  }
346
331
 
347
332
  namespace temps {
@@ -355,7 +340,7 @@ declare global {
355
340
  global: amotify.global.Methods
356
341
  atoms: amotify.atoms.Methods
357
342
  mols: amotify.mols.Methods
358
- orgs: amotify.orgs.Methods
343
+ orgs: {}
359
344
  temps: amotify.temps.Methods
360
345
  fn: amotify.fn.Methods
361
346
  }
package/@types/fn.tsx CHANGED
@@ -329,6 +329,7 @@ declare global {
329
329
 
330
330
  Comps: {
331
331
  RequiredSign: React.FC<amotify.atoms.SpanProps>
332
+ RequiredShortSign: React.FC<amotify.atoms.SpanProps>
332
333
  OmitSign: React.FC<amotify.atoms.SpanProps>
333
334
  LeftIndicator: React.FC<IndicatorParams>
334
335
  RightIndicator: React.FC<IndicatorParams>
@@ -347,13 +348,15 @@ declare global {
347
348
  name?: string
348
349
  form?: string
349
350
 
350
- statusID?: string
351
+ status_id?: string
351
352
  componentID?: string
352
353
 
353
354
  override?: 'force' | 'beforeModified' | 'never'
354
355
 
355
356
  required?: boolean
356
357
 
358
+ enableFormSubmit?: boolean
359
+
357
360
  checkValidationAtFirst?: boolean
358
361
  onValidate?: Validation.OnValidate
359
362
  onUpdateValue?: OnUpdateValue
@@ -380,6 +383,8 @@ declare global {
380
383
  name?: string
381
384
  form?: string
382
385
 
386
+ enableFormSubmit?: boolean
387
+
383
388
  id?: string
384
389
  value?: string | number | plainObject
385
390
  }
@@ -418,8 +423,6 @@ declare global {
418
423
  max?: number | null
419
424
  maxLength?: number | null
420
425
 
421
- enable_form_submit?: boolean
422
-
423
426
  autoComplete?: 'off' | 'none' | string
424
427
  autoCapitalize?: 'off' | 'none' | string
425
428
 
@@ -448,7 +451,6 @@ declare global {
448
451
 
449
452
  disabled?: boolean
450
453
 
451
- enable_form_submit?: boolean
452
454
 
453
455
  value?: string | number
454
456
 
@@ -471,7 +473,6 @@ declare global {
471
473
  tabIndex?: number
472
474
  id?: string
473
475
 
474
- enable_form_submit?: boolean
475
476
 
476
477
  value?: string | number
477
478
 
@@ -510,7 +511,6 @@ declare global {
510
511
 
511
512
  disabled?: boolean
512
513
 
513
- enable_form_submit?: boolean
514
514
 
515
515
  value?: string | [ string,string ]
516
516
  min?: string
@@ -559,7 +559,6 @@ declare global {
559
559
 
560
560
  disabled?: boolean
561
561
 
562
- enable_form_submit?: boolean
563
562
 
564
563
  value?: ValueProps
565
564
  options: OptionProps[]
@@ -568,13 +567,13 @@ declare global {
568
567
 
569
568
  leftIndicator?: ReactElement | false
570
569
  rightIndicator?: ReactElement | false
570
+ leftIcon?: ReactElement | false
571
+ rightIcon?: ReactElement | false
571
572
 
572
573
  enableUnSelected?: boolean
573
574
 
574
575
  rightIconStyles?: amotifyUniStyleParams
575
576
 
576
- leftIcon?: ReactElement | false
577
- rightIcon?: ReactElement | false
578
577
  }
579
578
 
580
579
  type ValueProps = string | number | boolean | plainObject | void | null
@@ -603,7 +602,6 @@ declare global {
603
602
  iconType?: 'radio' | 'checkbox'
604
603
  minSelect?: number
605
604
 
606
- enable_form_submit?: boolean
607
605
 
608
606
  disabled?: boolean
609
607
  value?: any | any[]
@@ -775,7 +773,6 @@ declare global {
775
773
  showAlways?: boolean
776
774
  }
777
775
 
778
- enable_form_submit?: boolean
779
776
  }
780
777
 
781
778
  type ColorTypes = amotify.ThemeColorTypes | 'theme' | 'posi' | 'nega' | 'warn'
@@ -794,9 +791,7 @@ declare global {
794
791
  appearance?: 'material' | 'applely'
795
792
  disabled?: boolean
796
793
  value?: boolean
797
- icon?: string
798
-
799
- enable_form_submit?: boolean
794
+ icon?: ReactElement
800
795
  }
801
796
 
802
797
  type ColorTypes = amotify.ThemeColorTypes | 'theme' | 'posi' | 'nega' | 'warn'
@@ -829,7 +824,6 @@ declare global {
829
824
  disabled?: boolean
830
825
  value?: boolean
831
826
 
832
- enable_form_submit?: boolean
833
827
 
834
828
  cellStyles?: amotifyUniStyleParams
835
829
  cellClassName?: string
@@ -941,7 +935,6 @@ declare global {
941
935
  type BorderToFill = { color?: Colors }
942
936
  }
943
937
 
944
-
945
938
  type UniParams = amotifyBasicElement & {
946
939
  tabIndex?: number
947
940
  children?: ReactElement
@@ -998,6 +991,7 @@ declare global {
998
991
  type UniParams = {
999
992
  sheetID?: string
1000
993
  sheetGroups?: string | string[]
994
+ backgroundEffect?: boolean
1001
995
  content: ReactElement | {
1002
996
  (): JSX.Element
1003
997
  }