wafields 0.3.0
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/README.md +2 -0
- package/dist/attributes/components/AttributeField.d.ts +13 -0
- package/dist/attributes/components/AttributeUnspecified.d.ts +1 -0
- package/dist/attributes/components/AttributeUpdater.d.ts +10 -0
- package/dist/attributes/components/index.d.ts +5 -0
- package/dist/attributes/components/profile/common/gender/AttributeCommonGenderDisplay.d.ts +4 -0
- package/dist/attributes/components/profile/common/gender/AttributeCommonGenderEdit.d.ts +4 -0
- package/dist/attributes/components/profile/common/gender/AttributeCommonGenderField.d.ts +4 -0
- package/dist/attributes/components/profile/common/gender/index.d.ts +2 -0
- package/dist/attributes/components/profile/common/gender/util.d.ts +6 -0
- package/dist/attributes/components/profile/common/handedness/AttributeCommonHandednessDisplay.d.ts +4 -0
- package/dist/attributes/components/profile/common/handedness/AttributeCommonHandednessEdit.d.ts +4 -0
- package/dist/attributes/components/profile/common/handedness/AttributeCommonHandednessField.d.ts +4 -0
- package/dist/attributes/components/profile/common/handedness/index.d.ts +3 -0
- package/dist/attributes/components/profile/common/handedness/util.d.ts +10 -0
- package/dist/attributes/components/profile/common/index.d.ts +2 -0
- package/dist/attributes/components/profile/index.d.ts +3 -0
- package/dist/attributes/components/profile/uoi/index.d.ts +1 -0
- package/dist/attributes/components/profile/uoi/sports/index.d.ts +1 -0
- package/dist/attributes/components/profile/uoi/sports/tennis/backhand/AttributeUoiTennisBackhandDisplay.d.ts +3 -0
- package/dist/attributes/components/profile/uoi/sports/tennis/backhand/AttributeUoiTennisBackhandEdit.d.ts +4 -0
- package/dist/attributes/components/profile/uoi/sports/tennis/backhand/index.d.ts +2 -0
- package/dist/attributes/components/profile/uoi/sports/tennis/backhand/util.d.ts +11 -0
- package/dist/attributes/components/profile/uoi/sports/tennis/index.d.ts +2 -0
- package/dist/attributes/components/profile/uoi/sports/tennis/level/AttributeUoiTennisLevelDisplay.d.ts +3 -0
- package/dist/attributes/components/profile/uoi/sports/tennis/level/AttributeUoiTennisLevelEdit.d.ts +3 -0
- package/dist/attributes/components/profile/uoi/sports/tennis/level/index.d.ts +2 -0
- package/dist/attributes/components/profile/uoi/sports/tennis/level/util.d.ts +17 -0
- package/dist/attributes/components/profile/user/index.d.ts +1 -0
- package/dist/attributes/components/profile/user/pronoun/PronounDisplay.d.ts +4 -0
- package/dist/attributes/components/profile/user/pronoun/PronounPicker.d.ts +4 -0
- package/dist/attributes/components/profile/user/pronoun/index.d.ts +2 -0
- package/dist/attributes/components/profile/user/pronoun/util.d.ts +6 -0
- package/dist/attributes/components/util.d.ts +11 -0
- package/dist/attributes/constants/collection/index.d.ts +3 -0
- package/dist/attributes/constants/collection/label.d.ts +2 -0
- package/dist/attributes/constants/collection/pets/index.d.ts +1 -0
- package/dist/attributes/constants/collection/pets/type.d.ts +10 -0
- package/dist/attributes/constants/collection/type.d.ts +2 -0
- package/dist/attributes/constants/common/index.d.ts +2 -0
- package/dist/attributes/constants/common/label.d.ts +2 -0
- package/dist/attributes/constants/common/type.d.ts +4 -0
- package/dist/attributes/constants/index.d.ts +6 -0
- package/dist/attributes/constants/label.d.ts +2 -0
- package/dist/attributes/constants/type.d.ts +4 -0
- package/dist/attributes/constants/uoi/index.d.ts +3 -0
- package/dist/attributes/constants/uoi/label.d.ts +2 -0
- package/dist/attributes/constants/uoi/sports/basketball/index.d.ts +2 -0
- package/dist/attributes/constants/uoi/sports/basketball/label.d.ts +2 -0
- package/dist/attributes/constants/uoi/sports/basketball/type.d.ts +3 -0
- package/dist/attributes/constants/uoi/sports/index.d.ts +4 -0
- package/dist/attributes/constants/uoi/sports/label.d.ts +2 -0
- package/dist/attributes/constants/uoi/sports/tennis/index.d.ts +2 -0
- package/dist/attributes/constants/uoi/sports/tennis/label.d.ts +2 -0
- package/dist/attributes/constants/uoi/sports/tennis/type.d.ts +4 -0
- package/dist/attributes/constants/uoi/sports/type.d.ts +3 -0
- package/dist/attributes/constants/uoi/type.d.ts +2 -0
- package/dist/attributes/constants/util.d.ts +8 -0
- package/dist/attributes/index.d.ts +2 -0
- package/dist/index-DOMGuu4c.mjs +44338 -0
- package/dist/index-gs6n0WKD.js +375 -0
- package/dist/index.d.ts +2 -0
- package/dist/main/components/PagePID.d.ts +5 -0
- package/dist/main/components/index.d.ts +3 -0
- package/dist/main/components/post/index.d.ts +1 -0
- package/dist/main/components/post/privacy/PostPrivacyDisplay.d.ts +4 -0
- package/dist/main/components/post/privacy/PostPrivacyEdit.d.ts +4 -0
- package/dist/main/components/post/privacy/index.d.ts +2 -0
- package/dist/main/components/post/privacy/util.d.ts +6 -0
- package/dist/main/components/profile/index.d.ts +1 -0
- package/dist/main/components/profile/privacy/ProfilePrivacyDisplay.d.ts +4 -0
- package/dist/main/components/profile/privacy/ProfilePrivacyEdit.d.ts +4 -0
- package/dist/main/components/profile/privacy/index.d.ts +2 -0
- package/dist/main/components/profile/privacy/util.d.ts +6 -0
- package/dist/main/index.d.ts +1 -0
- package/dist/mapbox-gl-BhYwNP0S-DWucTnVq.js +2986 -0
- package/dist/mapbox-gl-BhYwNP0S-V8rnqmTY.mjs +35566 -0
- package/dist/wafields.cjs.js +1 -0
- package/dist/wafields.css +1 -0
- package/dist/wafields.es.js +34 -0
- package/package.json +70 -0
package/README.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { CategoryName, InterestName, ProfileType } from 'wenum';
|
|
3
|
+
import { AttributeType } from '../constants';
|
|
4
|
+
interface AttributeFieldProps {
|
|
5
|
+
profileType: ProfileType;
|
|
6
|
+
categoryName?: CategoryName;
|
|
7
|
+
interestName?: InterestName;
|
|
8
|
+
attributeType: AttributeType;
|
|
9
|
+
className?: string;
|
|
10
|
+
value: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
declare function AttributeField({ profileType, categoryName, interestName, attributeType, className, value }: AttributeFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default AttributeField;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function AttributeUnspecified(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ElementType } from 'react';
|
|
2
|
+
interface AttributeUpdaterProps {
|
|
3
|
+
label: string;
|
|
4
|
+
value: any;
|
|
5
|
+
onSave: (v: any) => void;
|
|
6
|
+
AttributeEdit: ElementType;
|
|
7
|
+
AttributeDisplay: ElementType;
|
|
8
|
+
}
|
|
9
|
+
declare function AttributeUpdater({ label, value: valueInit, onSave, AttributeEdit, AttributeDisplay }: AttributeUpdaterProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default AttributeUpdater;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Gender } from 'wenum';
|
|
2
|
+
import { AttributeEditProps } from '../../../..';
|
|
3
|
+
declare function AttributeCommonGenderEdit({ onChange, className, value }: AttributeEditProps<Gender>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export default AttributeCommonGenderEdit;
|
package/dist/attributes/components/profile/common/handedness/AttributeCommonHandednessDisplay.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Handedness } from 'wenum';
|
|
2
|
+
import { AttributeDisplayProps } from '../../../..';
|
|
3
|
+
declare function AttributeCommonHandednessDisplay({ value }: AttributeDisplayProps<Handedness>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export default AttributeCommonHandednessDisplay;
|
package/dist/attributes/components/profile/common/handedness/AttributeCommonHandednessEdit.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Handedness } from 'wenum';
|
|
2
|
+
import { AttributeEditProps } from '../../../..';
|
|
3
|
+
declare function AttributeCommonHandednessEdit({ onChange, className, value }: AttributeEditProps<Handedness>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export default AttributeCommonHandednessEdit;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { default as AttributeCommonHandednessEdit } from './AttributeCommonHandednessEdit';
|
|
2
|
+
export { default as AttributeCommonHandednessDisplay } from './AttributeCommonHandednessDisplay';
|
|
3
|
+
export { default as AttributeCommonHandednessField } from './AttributeCommonHandednessField';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './sports';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './tennis';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { TennisBackhand } from 'wenum';
|
|
2
|
+
import { AttributeEditProps } from '../../../../../..';
|
|
3
|
+
declare function AttributeUoiTennisBackhandEdit({ onChange, className, value }: AttributeEditProps<TennisBackhand>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export default AttributeUoiTennisBackhandEdit;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TennisLevel } from 'wenum';
|
|
2
|
+
export declare const TennisLevelLabels: {
|
|
3
|
+
0: string;
|
|
4
|
+
1: string;
|
|
5
|
+
2: string;
|
|
6
|
+
3: string;
|
|
7
|
+
4: string;
|
|
8
|
+
5: string;
|
|
9
|
+
6: string;
|
|
10
|
+
7: string;
|
|
11
|
+
8: string;
|
|
12
|
+
9: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const tennisLevelOptions: {
|
|
15
|
+
value: TennisLevel;
|
|
16
|
+
label: string;
|
|
17
|
+
}[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './pronoun';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './type';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CategoryName, InterestName, ProfileType } from 'wenum';
|
|
2
|
+
import { AttributeType } from './type';
|
|
3
|
+
export declare const getProfileAttributeLabel: ({ profileType, categoryName, interestName, attributeType }: {
|
|
4
|
+
profileType: ProfileType;
|
|
5
|
+
categoryName?: CategoryName;
|
|
6
|
+
interestName?: InterestName;
|
|
7
|
+
attributeType: AttributeType;
|
|
8
|
+
}) => any;
|