5.0.1 • Published 1 year ago

@wedgekit/primitives v5.0.1

Weekly downloads
328
License
MIT
Repository
-
Last release
1 year ago

Primitives

Primitives are the building blocks of WedgeKit components. They are largely settings or wrapper components designed for keeping all WedgeKit components consistent in a composable and discoverable way.

Usage

import settings from '@wedgekit/primitives';

Settings

@wedgekit/primitives exports a settings object as its default export. These settings are intended to enforce consistency across wedgekit and A2W apps. The following settings are included in the settings object:

animations

transitions for transform, box-shadow, and border are included in settings.animations

base

base is a set number of pixels that all sizes in wedgekit and A2W apps should be based on; inspired by Evergreen UI's major scale

border

provides width and radius settings

colors

contains status color codes

cursor

the CSS styles for disabled and readOnly

font

code font settings

fontFamily

a CSS complaint font-family string

fontSize

provides sizes for the following:

  • label
  • link
  • body
  • bodySmall
  • input
  • tooltip
  • h1
  • h2
  • h3
  • h4
  • h5
  • h6

fontWeight

provides font-weights for title, normal & link

tabIndex

the tabIndex for disabled for those who strongly prefer package exports over extremely trivial code

widths

inexplicably the widths for toast and multiselect-card are in settings and not in their respective components

zindex

z-index values for modal and header

Mixins

BackgroundMixin

Background for form elements

Props

disabled

required: ❌

type: boolean

invalid

required: ❌

type: boolean

readOnly

required: ❌

type: boolean

CursorMixin

Same... I think this is a cursor mixin for use with inputs.

Props

disabled

required: ❌

type: boolean

invalid

required: ❌

type: boolean

readOnly

required: ❌

type: boolean

InputBorderMixin

I know this one is for inputs.

disabled

required: ❌

type: boolean

invalid

required: ❌

type: boolean

readOnly

required: ❌

type: boolean

status

required: ❌

type: 'default' | 'error' | 'success' | 'pending'

wrapsGroup

required: ❌

type: boolean

InputFocusMixin

Wipes out existing browser styling(?)

OptionMixin

a mixin for checkboxes and radio inputs which handles hover and focus-within styling

Props

active

required: ❌

type: boolean

disabled

required: ❌

type: boolean

PopoverShadowMixin

It's a shadow mixin for popovers. Which is not in the popover package because it's so versatile.

Props

disabled

required: ❌

type: boolean

invalid

required: ❌

type: boolean

status

required: ❌

type: 'default' | 'error' | 'success' | 'pending'

readOnly

required: ❌

type: boolean

wrapsGroup

required: ❌

type: boolean

UpdatedInputMixin

It's updated, which is how you know its the right one. Unless there's an updatedUpdatedInputMixin of course, in which case please use that instead.

Props

disabled

required: ❌

type: boolean

fullWidth

required: ❌

type: boolean

invalid

required: ❌

type: boolean

labelHidden

required: ❌

type: boolean

labelInline

required: ❌

type: boolean

status

required: ❌

type: 'default' | 'error' | 'success' | 'pending'

readOnly

required: ❌

type: boolean

Animations

withUpDown

withUpDown is a React HOC which has a direction prop which can be set to up or down. It will transform the content 180 degrees when direction is up

4.0.2-tc.7

2 years ago

4.0.2-tc.6

2 years ago

4.0.2-tc.5

2 years ago

4.0.2-tc.4

2 years ago

4.0.2-tc.3

2 years ago

4.0.2-tc.2

2 years ago

4.0.2-tc.1

2 years ago

4.0.2-tc.0

2 years ago

4.0.2-tc.10

2 years ago

4.0.1

2 years ago

4.0.0

2 years ago

5.0.1

1 year ago

5.0.0

1 year ago

4.0.1-tc.0

2 years ago

4.0.1-tc.1

2 years ago

4.0.1-tc.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

2.0.2-tc.0

2 years ago

2.0.2-tc.1

2 years ago

3.0.0

2 years ago

1.13.9

3 years ago

1.13.11

3 years ago

1.13.10

3 years ago

1.13.8

3 years ago

1.13.7

3 years ago

1.13.6

3 years ago

1.13.5

3 years ago

1.13.4

3 years ago

1.13.3

3 years ago

1.14.0-tc.1

3 years ago

1.14.0-tc.3

3 years ago

1.14.0-tc.2

3 years ago

1.13.2

3 years ago

1.14.0-tc.0

3 years ago

1.13.1

3 years ago

1.12.1

3 years ago

1.12.0

3 years ago

1.11.0

3 years ago

1.13.0

3 years ago

1.10.1

3 years ago

1.10.0

3 years ago

1.9.0

3 years ago

1.8.0

3 years ago

1.7.1

3 years ago

1.7.0

4 years ago

1.6.0-10-test

4 years ago

1.6.0-9-test

4 years ago

1.6.0-8-test

4 years ago

1.6.0-7-test

4 years ago

1.6.0-6-test

4 years ago

1.6.0-5-test

4 years ago

1.6.0-4-test

4 years ago

1.6.0-3-test

4 years ago

1.6.0-2-test

4 years ago

1.6.0-1-test

4 years ago

1.6.0

4 years ago

1.5.0

4 years ago

1.4.0

4 years ago

1.3.13

4 years ago

1.3.12

4 years ago

1.3.11

5 years ago

1.3.10

5 years ago

1.3.6-tc.0

5 years ago

1.3.9

5 years ago

1.3.8

5 years ago

1.3.7

5 years ago

1.3.6

5 years ago

1.3.5

5 years ago

1.3.4

5 years ago

1.3.3

5 years ago

1.3.2-rc.2

5 years ago

1.3.2-rc.1

5 years ago

1.3.2-rc.0

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.3.0-rc.6

5 years ago

1.3.0-rc.5

5 years ago

1.3.0-rc.4

5 years ago

1.3.0-rc.3

5 years ago

1.3.0-rc.2

5 years ago

1.3.0-rc.1

5 years ago

1.2.1-rc.2

5 years ago

1.2.1-rc.1

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago