amotify 0.0.38 → 0.0.40

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.
package/@types/_.tsx CHANGED
@@ -1,3 +1,5 @@
1
+ export { }
2
+
1
3
  import './jsminAmotifyExtension';
2
4
  import './state';
3
5
  import './module';
package/@types/amot.tsx CHANGED
@@ -7,6 +7,7 @@ import ReactDOM from 'react-dom';
7
7
  import * as ReactRouterDOM from 'react-router-dom';
8
8
 
9
9
  export { }
10
+
10
11
  declare global {
11
12
  type ReactElement = React.ReactNode | React.ReactNode[]
12
13
 
@@ -152,7 +153,6 @@ declare global {
152
153
  }
153
154
  } & React.HTMLAttributes<HTMLDivElement>
154
155
 
155
-
156
156
  namespace FAI {
157
157
  type Method = React.FC<FAIParams> & Shortcuts;
158
158
  type FAIParams = amotifyBasicElement & {
package/@types/fn.tsx CHANGED
@@ -314,6 +314,7 @@ declare global {
314
314
  DigitCharacters: ( params: DigitCharacters.PlainParams ) => JSX.Element
315
315
  Time: Time.Methods
316
316
  Select: ( params: Select.PlainParams ) => JSX.Element
317
+ RichSelect: ( params: RichSelect.PlainParams ) => JSX.Element
317
318
 
318
319
  Radio: ( props: List.PlainParams ) => JSX.Element
319
320
  Checkbox: ( props: List.PlainParams ) => JSX.Element
@@ -584,6 +585,42 @@ declare global {
584
585
  displayLabel?: ReactElement
585
586
  }
586
587
  }
588
+ namespace RichSelect {
589
+ type PlainParams = CoreParams & React.DOMAttributes<HTMLInputElement> & {
590
+ tone?: BoxToneTypes
591
+
592
+ tabIndex?: number
593
+
594
+ id?: string
595
+
596
+ disabled?: boolean
597
+
598
+ value?: ValueProps
599
+ options: OptionProps[]
600
+
601
+ placeholder?: string
602
+
603
+ leftIndicator?: ReactElement | false
604
+ rightIndicator?: ReactElement | false
605
+ leftIcon?: ReactElement | false
606
+ rightIcon?: ReactElement | false
607
+
608
+ enableUnSelected?: boolean
609
+
610
+ rightIconStyles?: amotifyUniStyleParams
611
+
612
+ cellStyles?: amotifyUniStyleParams
613
+ sheetStyles?: amotifyUniStyleParams
614
+ }
615
+
616
+ type ValueProps = string | number | boolean | plainObject | void | null
617
+
618
+ type OptionProps = {
619
+ type?: 'button' | 'label'
620
+ value: ValueProps
621
+ label: ReactElement
622
+ }
623
+ }
587
624
  namespace List {
588
625
  type ListToneTypes = 'border' | 'cloud' | 'vivid' | 'normal' | 'plain'
589
626