0.0.66 • Published 4 years ago

piktor-profile v0.0.66

Weekly downloads
1
License
MIT
Repository
bitbucket
Last release
4 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

4 years ago

0.0.67

4 years ago

0.0.9-tmo12

4 years ago

0.0.65

4 years ago

0.0.63

4 years ago

0.0.61

4 years ago

0.0.59

4 years ago

0.0.57

4 years ago

0.0.55

4 years ago

0.0.53

4 years ago

0.0.51

4 years ago

0.0.49

4 years ago

0.0.47

4 years ago

0.0.45

4 years ago

0.0.43

4 years ago

0.0.41

4 years ago

0.0.39

4 years ago

0.0.37

4 years ago

0.0.31

4 years ago

0.0.33

4 years ago

0.0.35

4 years ago

0.0.29

4 years ago

0.0.8-tmo12

4 years ago

0.0.27

4 years ago

0.0.21

4 years ago

0.0.23

4 years ago

0.0.25

4 years ago

0.0.19

4 years ago

0.0.17

4 years ago

0.0.15

4 years ago

0.0.11

4 years ago

0.0.9

4 years ago

0.0.5

4 years ago

0.0.7

4 years ago

0.0.8-tmo11

4 years ago

0.0.8-tmo10

4 years ago

0.0.8-tmo9

4 years ago

0.0.8-tmo8

4 years ago

0.0.8-tmo7

4 years ago

0.0.8-tmo6

4 years ago

0.0.8-tmo5

4 years ago

0.0.8-tmo4

4 years ago

0.0.8-tmo3

4 years ago

0.0.8-tmo2

4 years ago

0.0.8

4 years ago

0.0.8-tmo

4 years ago

0.0.6

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago