3.11.112 • Published 10 months ago

@taktikorg/dolor-aliquam-culpa v3.11.112

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@taktikorg/dolor-aliquam-culpa

A react-native flexbox grid similar to bootstap's web grid.

Check the DEMO, built with Storybook and react-native-web.

Getting Started

Installation

NPM:

npm install --save @taktikorg/dolor-aliquam-culpa

YARN:

yarn add @taktikorg/dolor-aliquam-culpa

Usage

import { Container, Row, Col } from '@taktikorg/dolor-aliquam-culpa';

const MyComponent = (
  <Container fluid>
    <Row>
      <Col>
        <Text>.col</Text>
      </Col>
    </Row>
    <Row>
      <Col>
        <Text>.col</Text>
      </Col>
      <Col>
        <Text>.col</Text>
      </Col>
      <Col>
        <Text>.col</Text>
      </Col>
      <Col>
        <Text>.col</Text>
      </Col>
    </Row>
    <Row>
      <Col xs="3">
        <Text>.col-3</Text>
      </Col>
      <Col xs="auto">
        <Text>.col-auto - variable width content</Text>
      </Col>
      <Col xs="3">
        <Text>.col-3</Text>
      </Col>
    </Row>
    <Row>
      <Col xs="6">
        <Text>.col-6</Text>
      </Col>
      <Col xs="6">
        <Text>.col-6</Text>
      </Col>
    </Row>
    <Row>
      <Col xs="6" sm="4">
        <Text>.col-6 .col-sm-4</Text>
      </Col>
      <Col xs="6" sm="4">
        <Text>.col-6 .col-sm-4</Text>
      </Col>
      <Col sm="4">
        <Text>.col-sm-4</Text>
      </Col>
    </Row>
    <Row>
      <Col sm={5} smOrder={2} smOffset={1}>
        <Text>.col-sm-5 .order-sm-2 .offset-sm-1</Text>
      </Col>
      <Col sm={5} smOrder={1} smOffset={1}>
        <Text>.col-sm-5 .order-sm-1 .offset-sm-1</Text>
      </Col>
    </Row>
    <Row>
      <Col md={6} mdOffset={3} sm={12}>
        <Text>.col-sm-12 .col-md-6 .offset-md-3</Text>
      </Col>
    </Row>
    <Row>
      <Col sm="auto" smOffset={1}>
        <Text>.col-sm-auto .offset-sm-1</Text>
      </Col>
      <Col sm="auto" smOffset={1}>
        <Text>.col-sm-auto .offset-sm-1</Text>
      </Col>
    </Row>
  </Container>
);

export default MyComponent;

Component Props - can be used to customize Layout components

Container

export declare interface ContainerProps
  extends React.ComponentProps<typeof View> {
  /** Fluid Container */
  fluid?: boolean;
  /** No Padding */
  noPadding?: boolean;
  /** Element to render - defaults to View */
  Element?: React.ElementType;
}

Row

export declare interface RowProps extends React.ComponentProps<typeof View> {
  /** Gutter size -- [Bootstrap Gutters](https://getbootstrap.com/docs/5.0/layout/gutters/) */
  gx?: 0 | 1 | 2 | 3 | 4 | 5;
  /** Direction */
  dir?: 'ltr' | 'rtl';
  /** Element to render - defaults to View */
  Element?: React.ElementType;
}

Col

export declare interface ColProps extends React.ComponentProps<typeof View> {
  /** xs size */
  xs?: number | string;
  /** sm size */
  sm?: number | string;
  /** md size */
  md?: number | string;
  /** lg size */
  lg?: number | string;
  /** xl size */
  xl?: number | string;
  /** xs offset */
  xsOffset?: number | string;
  /** sm offset */
  smOffset?: number | string;
  /** md offset */
  mdOffset?: number | string;
  /** lg offset */
  lgOffset?: number | string;
  /** xl offset */
  xlOffset?: number | string;
  /** xs order */
  xsOrder?: number | string;
  /** sm order */
  smOrder?: number | string;
  /** md order */
  mdOrder?: number | string;
  /** lg order */
  lgOrder?: number | string;
  /** xl order */
  xlOrder?: number | string;
  /** Gutter size -- [Bootstrap Gutters](https://getbootstrap.com/docs/5.0/layout/gutters/) */
  gx?: 0 | 1 | 2 | 3 | 4 | 5;
  /** Direction */
  dir?: 'ltr' | 'rtl';
  /** Element to render - defaults to View */
  Element?: React.ElementType;
}

Modifying Grid Configuration

The grid is 100% modifiable, checkout the detailed docs

Responsive utils

Checkout the detailed docs for a set of useful responsive utilities like css/scss like media queries.

Development

Checkout the detailed docs to understand how to run the repo locally and how to develop with it.

Helpful resources

Contributing

Pull requests are highly appreciated! For major changes, please open an issue first to discuss what you would like to change.

loadingTypeBoxopenECMAScript 2015fulldescriptionjsxfindLastxhropenermkdirpicomatchcss-in-jsuninstallhigher-orderinternal slotrequirevalidationmobiledotenvgetterrequesttrimRightECMAScript 7YAMLserializationawesomesaucesimple cachedayjsArray.prototype.findLastIndexinstallwaitUnderscoreFloat32ArrayarraysispropertyHyBiObservablesES6stringifykoreanes6starteditorReflect.getPrototypeOfECMAScript 6schemamatchkey parreact animation-0modulescontainsjsdomchromiumutilitytrimLeftCSSpositiveformcommand-linereact-testing-libraryimmerarktypeBigUint64ArrayiteratelastisConcatSpreadableES3flagstypesafeautoscalingistanbulwaapiavaObject.definePropertygroupByes5astuuidgesturesArrayBuffer.prototype.slicecharsetArray.prototype.containssearchvalidatexdgdataViewdeleteInt16Arraycore-jscsspatchIteratorbannerES2015valuesenvironmentstouchlinewrapregularxtermgetPrototypeOfutil_.extendoptimistreadableArray.prototype.includesformattingwrapqueuewriteObject.fromEntriesECMAScript 2020typeofcheckiewidthcodespackagespromisestextredux-toolkitgetintrinsicfastclonemapreduceoptionnpmebspropdefaultcliformsstylesindicatorparsertelephonesetImmediateflatjasminecircularString.prototype.trimperformantmetadatareactstringkey valueshrinkwrapURLSearchParamsassertsclientstreamPromiseObject.valuesStreamsetPrototypeOfforEachdependenciesoffsetcallboundenderaccessorES2023loggingtc39efficientconvertlaunchES2019workerweakmaputil.inspecttddtrimpushpackagemkdirsduplexdeep-copybyteLengthwhatwgES2022processAsyncIteratorgraphqlguidworkflowyupcharacterhttpfindupArray.prototype.flatMapreducewordwrapchinesetapreact-hook-formmulti-packageECMAScript 2019apollotypedarrayreuseregular expressionsiterationcopyawspyyamlpnpm9ratenegativebinddataviewtoobjecturlsglobalscoercibletyperedirectES7mruWeakSetinputframercollection.es6parsenegative zerologequalitybrowserdefineUint32ArraypostcsshascompareproxylanguageconcatMapfunctionsreduxjsdiffgetbuffersserializetesterescapewritableroutingprunespecenumerabletypanionairbnbrm -frtypeerrorcorefileES2017traverse
3.11.112

10 months ago

3.11.111

10 months ago

3.11.110

10 months ago

3.8.89

11 months ago

3.6.66

12 months ago

3.6.65

12 months ago

3.6.64

1 year ago

3.8.88

11 months ago

3.6.63

1 year ago

3.11.109

11 months ago

3.11.108

11 months ago

3.8.98

11 months ago

3.9.101

11 months ago

3.9.100

11 months ago

2.3.39

1 year ago

2.3.38

1 year ago

2.3.37

1 year ago

3.8.96

11 months ago

3.8.97

11 months ago

3.8.94

11 months ago

3.8.95

11 months ago

3.8.92

11 months ago

3.8.93

11 months ago

3.8.90

11 months ago

3.8.91

11 months ago

2.1.27

1 year ago

2.3.49

1 year ago

2.1.28

1 year ago

2.3.46

1 year ago

2.3.45

1 year ago

2.3.48

1 year ago

2.3.47

1 year ago

2.3.42

1 year ago

2.3.41

1 year ago

2.3.44

1 year ago

2.3.43

1 year ago

1.1.16

1 year ago

1.1.15

1 year ago

2.3.40

1 year ago

1.1.14

1 year ago

1.1.19

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

2.1.29

1 year ago

2.3.57

1 year ago

2.1.34

1 year ago

2.3.56

1 year ago

2.1.32

1 year ago

2.1.33

1 year ago

2.3.53

1 year ago

2.1.30

1 year ago

1.1.23

1 year ago

2.3.52

1 year ago

2.1.31

1 year ago

1.1.22

1 year ago

2.3.55

1 year ago

1.1.21

1 year ago

2.3.54

1 year ago

1.1.20

1 year ago

1.1.27

1 year ago

1.1.26

1 year ago

2.3.51

1 year ago

1.1.25

1 year ago

2.3.50

1 year ago

1.1.24

1 year ago

3.7.79

12 months ago

3.7.77

12 months ago

3.7.78

12 months ago

3.9.99

11 months ago

3.7.75

12 months ago

3.7.76

12 months ago

3.7.73

12 months ago

3.9.98

11 months ago

3.7.74

12 months ago

3.7.71

12 months ago

3.7.72

12 months ago

3.7.70

12 months ago

3.7.88

11 months ago

3.7.86

11 months ago

3.5.63

1 year ago

3.7.87

11 months ago

3.5.62

1 year ago

3.10.108

11 months ago

3.10.107

11 months ago

3.10.104

11 months ago

3.10.103

11 months ago

3.10.106

11 months ago

3.10.105

11 months ago

3.7.84

11 months ago

3.5.61

1 year ago

3.7.85

11 months ago

3.7.82

12 months ago

3.7.83

12 months ago

3.7.80

12 months ago

3.7.81

12 months ago

3.4.61

1 year ago

3.10.102

11 months ago

2.2.37

1 year ago

3.10.101

11 months ago

2.4.58

1 year ago

2.2.35

1 year ago

2.4.57

1 year ago

2.2.36

1 year ago

3.4.60

1 year ago

2.4.59

1 year ago

2.2.34

1 year ago

3.7.68

12 months ago

3.7.69

12 months ago

3.7.66

12 months ago

3.7.67

12 months ago

2.4.60

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.9

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.12

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago