0.0.66 • Published 5 years ago

piktor-profile v0.0.66

Weekly downloads
1
License
MIT
Repository
bitbucket
Last release
5 years ago

Piktor Profile

This repo is used to host the Piktor Profile component that we have developed, to use as a module in our products.

Installation

  • Install Piktor Profile using npm or yarn.

    npm install piktor-profile
    yarn add piktor-profile
  • Import it into your project

    import PiktorProfile from 'piktor-profile';
  • Use it as follows

    <PiktorProfile
      userData={user}
      callback={key => callbackHandler(key)}
      customStyle={customStyle}
      editable
    />

Props

  1. UserData - Pass a user object in the structure mentioned below:

      {
        user_name: STRING,
        user_id: STRING,
        user_photo: STRING,
        user_email: STRING,
        user_mobile: STRING,
        designation: STRING,
        job_location: STRING,
        user_social_profiles: [
          {
            social_platform: STRING,
            activeIcon: FILE,
            inactiveIcon: FILE,
            isEnabled: BOOLEAN,
            username: STRING,
            link: STRING,
            id: STRING
          }
        ],
        aspirations: [],
        skills: [
          {
            "_id" : STRING,
            "name" : STRING,
            "id" : STRING,
            "icon" : FILE,
            "achievement" : BOOLEAN
          }
        ],
        recognitions: [
          {
            "_id" : STRING,
            "title" : STRING,
            "issuer" : STRING,
            "issue_date" : STRING,
            "description" : STRING,
            "id" : STRING
          }
        ],
        work_experience: [
          {
            "_id" : STRING,
            "title" : STRING,
            "company_name" : STRING,
            "start_date" : DATE,
            "end_date" : DATE || STRING,
            "description" : STRING,
            "place" : STRING
          }
        ],
        education: [
          {
            "_id" : STRING,
            "school" : STRING,
            "degree" : STRING,
            "start_year" : STRING,
            "end_year" : STRING,
            "id" : STRING
          }
        ],
        personalStatement: STRING
      }
  2. Editing - Boolean to specify if profile is in edit state or not.

  3. Editable - The boolean to specify whether it is editable, or view only.

  4. customStyle - The style prop. Right now, it supports these properties: primaryColor, secondaryColor, fontFamilyMain, fontFamilyTitle, fontFamilyHeading.

  5. callback - A generic callback for all connections from the profile to the application. You will receive a key, and an optional list of arguements, which you can handle in your application.

0.0.66

5 years ago

0.0.67

5 years ago

0.0.9-tmo12

5 years ago

0.0.65

5 years ago

0.0.63

5 years ago

0.0.61

5 years ago

0.0.59

5 years ago

0.0.57

5 years ago

0.0.55

5 years ago

0.0.53

5 years ago

0.0.51

5 years ago

0.0.49

5 years ago

0.0.47

5 years ago

0.0.45

5 years ago

0.0.43

5 years ago

0.0.41

5 years ago

0.0.39

5 years ago

0.0.37

5 years ago

0.0.31

5 years ago

0.0.33

5 years ago

0.0.35

5 years ago

0.0.29

5 years ago

0.0.8-tmo12

5 years ago

0.0.27

5 years ago

0.0.21

5 years ago

0.0.23

5 years ago

0.0.25

5 years ago

0.0.19

5 years ago

0.0.17

5 years ago

0.0.15

5 years ago

0.0.11

5 years ago

0.0.9

5 years ago

0.0.5

5 years ago

0.0.7

5 years ago

0.0.8-tmo11

5 years ago

0.0.8-tmo10

5 years ago

0.0.8-tmo9

5 years ago

0.0.8-tmo8

5 years ago

0.0.8-tmo7

5 years ago

0.0.8-tmo6

5 years ago

0.0.8-tmo5

5 years ago

0.0.8-tmo4

5 years ago

0.0.8-tmo3

5 years ago

0.0.8-tmo2

5 years ago

0.0.8

5 years ago

0.0.8-tmo

5 years ago

0.0.6

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago