0.1.18 • Published 8 months ago
@peoplecues/commons v0.1.18
Overall Architecture
PART I - Design Tokens
Private npm modules managed with Bit
Theme, token-level mixins and the following tokens
- Typography
- Spacing
- Color
- Grid
- Elevation
- Mobile (breakpoints)
- Icons
- Misc
- Borders
- Border radius
- Box shadows
PART II - Common components library
Private npm modules managed with Bit
Atomic/molecular components that are commonly used across 10x universe.
PART III - Component development environments
Product specific component development environments
- A storybook app for common components
- A storybook app for 10xGoals
- A storybook app for 10xPeople
Component Library - List of components
Alert/Toast
Variants / Stories
- with-action
- with-action-close
- errored
Props
- button OBJECT - {text, link}
- showCloseButton BOOLEAN
- type ENUM - primary, negative
Actions
Avatar
Variants / Stories
- with-badge
- without-badge
- with-image
- without-image
for all of the above:
- XL
- L
- M
- S
Props
- image STRING
- size ENUM - XL, L, M, S
- badgeText STRING
Actions
Extra utilities
- string-based color generator for no-image variants
Index (10xGoals)
Variants / Stories
- basic
- primary
- secondary
- positive-action
- negative-action
Internal states (for each of the above)
- default
- active
- hover
- focus
- disabled
Props
Actions
Text Index (10x Goals Only)
(needs a better name)
Variants / Stories
- text-only
- icon-only
- text-and-icon w/ icon left
- text-and-icon w/ icon right
Internal states (for each of the above)
- default
- active
- hover
- focus
- disabled
Props
- children STRING
- icon STRING - icon name
- iconPosition ENUM - left, right
Actions
Buttons (10xPeople)
Survey Answer Index
Variants / Stories
- large
- small
Internal states (for each of the above)
- default
- hover
Props
- children STRING
- image STRING - image url
- imagePosition ENUM - left, right
- size ENUM - large, small
Actions
Buttons
Variants / Stories
- large
- small
- primary
- secondary
- with-icon w/ icon on the left
- with-icon w/ icon on the right
- without-icon
Internal states (for each of the above)
- default
- hover
Props
- children STRING
- icon STRING - icon name
- iconPosition ENUM - left, right
- size ENUM - large, small
- type ENUM - primary, secondary
Actions
Text Buttons
Variants / Stories
- large
- small
- icon-only
- text-only
Internal states (for each of the above)
- default
- hover
Props
- children STRING
- icon STRING - icon name
- size ENUM - large, small
Actions
Index Dropdown (10xGoals)
Variants / Stories
- default
- with-filter
Internal states (for each of the above)
- default
- active
- hover
- focus
- disabled
Props
- children
- filterText NUMBER
Actions
Labels (only card labels, status labels and helper text)
[Card Labels] [Status Labels] [Helper text]
Variants / Stories
- quarter
- company-objective
- non-aligned
- on-track
- off-track
- achieved
- dropped
- not-started
- needs-work
- helper-text-alert
- helper-text-info
Props
- type ENUM - TODO
- children
- icon STRING - icon name
- iconPosition ENUM - left, right
- size ENUM - large, small
Actions
Quarter Dropdown
Team Dropdown
Owner Dropdown
Progress & Status
Variants / Stories
- empty-bar-only
- progress-bar-only
- on-track
- off-track
- achieved
- dropped
- not-started
- needs-work
Internal states (for each of the above)
- default
- hover
- disabled
Props
- type ENUM - on-track, off-track, not-started, achieved, dropped, needs-work
- progress NUMBER
- state ENUM - disabled, active
Actions
Input Fields
Basic Inputs
Variants / Stories
- default
- filled
- errored
Internal states (for each of the above)
- default
- hover
- focus
- disabled
Props
- state ENUM - disabled, active
- label STRING
Actions
TextArea
Variants / Stories
- default
- errored
Internal states (for each of the above)
- default
- hover
- focus
- disabled
Props
- state ENUM - disabled, active
- fieldName STRING
Actions
Accordion/Expandable
Grid Layout
Title Bar
Variants / Stories
- default
- with-search
Internal states (for each of the above)
Props
Actions
Table
(TODO - needs to be made more generic)
Table header
Variants / Stories
- default
Internal states (for each of the above)
Props
- columns ARRAY
Actions
Table row - people
Variants / Stories
- default
Internal states (for each of the above)
- default
- inactive (TODO: clarify what
greymeans) - hover
Props
- name STRING
- avatar STRING - image url
- email STRING
- role STRING
- actions ARRAY
Actions
Table row - pending
Variants / Stories
- default
Internal states (for each of the above)
- default
- inactive (TODO: clarify what
greymeans) - hover
Props
Actions
Loader
Variants / Stories
- default
Internal states (for each of the above)
Props
Image
Variants / Stories
- default
Internal states (for each of the above)
- loading
Props
Actions
Background Image
Variants / Stories
- default
Internal states (for each of the above)
- loading
Props
Actions
Icon
Variants / Stories
- default
Internal states (for each of the above)
Props
- icon-name STRING
Actions
Tag
Variants / Stories
- default
- with-close-button
Internal states (for each of the above)
Props
- children
- showCloseButton BOOLEAN
Actions
Questions
- Add tasks for writing design tokens
- Add actions to the sheet after looking at code
- Add refactor-complexity remarks after looking at code
- Questions to ask Vikalp/Mani
- Index and internal states
- Icon buttons on people vs. icon button on goals
- How to responsive (typography, spacing) - breakpoints vs fluid
- Try breakpoints first, fluid isn’t ideal (Mani)
- What is button mobile (save-and-proceed) on 10x people buttons list
- Where do labels go on textareas, checkboxes, radios?
- Buttons across 10x need to be refactored on figma (suggested props - size, icon, bordered, icon, icon-position)
- Clarifications needed on the component sheet
0.1.18
8 months ago
0.1.17
9 months ago
0.1.16
10 months ago
0.1.15
10 months ago
0.1.14
12 months ago
0.1.13
12 months ago
0.1.12
12 months ago
0.1.11
12 months ago
0.1.10
1 year ago
0.1.9
1 year ago
0.1.8
1 year ago
0.1.7
1 year ago
0.1.6
1 year ago
0.1.5
1 year ago
0.1.4
1 year ago
0.1.3
1 year ago
0.1.2
1 year ago
0.1.1
1 year ago
0.1.0
1 year ago