amotify 0.0.39 → 0.0.41
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/amot.tsx +2 -2
- package/@types/fn.tsx +37 -0
- package/dist/amotify.js +2 -2
- package/dist/amotify.min.css +3 -2
- package/dist/coreVender.js +1 -1
- package/package.json +3 -3
- package/src/@jsminAmotifyExtension/formCollect.tsx +2 -0
- package/src/@styles/init.scss +11 -0
- package/src/config.tsx +9 -0
- package/src/functions/Input/RichSelect/_.tsx +228 -0
- package/src/functions/Input/RichSelect/style.module.scss +11 -0
- package/src/functions/Input/Select/_.tsx +1 -1
- package/src/functions/Input/_.tsx +23 -0
- package/src/functions/Input/core.tsx +3 -0
- package/src/functions/Sheet/parts.tsx +10 -12
- package/src/launch.tsx +10 -1
package/@types/amot.tsx
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { }
|
|
2
|
+
|
|
1
3
|
import { FontAwesomeIconProps } from '@fortawesome/react-fontawesome';
|
|
2
4
|
import { IconDefinition } from "@fortawesome/fontawesome-common-types";
|
|
3
5
|
import * as FontawesomeCore from '@fortawesome/fontawesome-svg-core';
|
|
@@ -6,7 +8,6 @@ import React from 'react';
|
|
|
6
8
|
import ReactDOM from 'react-dom';
|
|
7
9
|
import * as ReactRouterDOM from 'react-router-dom';
|
|
8
10
|
|
|
9
|
-
export { }
|
|
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
|
|