New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@commercetools-uikit/constraints

Package Overview
Dependencies
Maintainers
3
Versions
850
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@commercetools-uikit/constraints - npm Package Compare versions

Comparing version 0.0.0-canary-f592e685bb1af2ae3cc09fae010abe25e130b5e6 to 0.0.0-preview-FCT-1187-20241021190428

dist/commercetools-uikit-constraints.cjs.d.ts

55

package.json
{
"name": "@commercetools-uikit/constraints",
"version": "0.0.0-canary-f592e685bb1af2ae3cc09fae010abe25e130b5e6",
"description": "",
"main": "dist/constraints.cjs.js",
"module": "dist/constraints.esm.js",
"private": false,
"description": "Constraints are container elements with a configurable constraint size, like width or height.",
"version": "0.0.0-preview-FCT-1187-20241021190428",
"bugs": "https://github.com/commercetools/ui-kit/issues",
"repository": {
"type": "git",
"url": "https://github.com/commercetools/ui-kit.git",
"directory": "packages/components/constraints"
},
"homepage": "https://uikit.commercetools.com",
"keywords": [
"javascript",
"typescript",
"design-system",
"react",
"uikit"
],
"license": "MIT",
"publishConfig": {
"access": "public"
},
"scripts": {
"prepare": "../../../scripts/version.js replace",
"prebuild": "rimraf dist",
"build": "cross-env NODE_ENV=production rollup -c ../../../rollup.config.js -i ./src/index.js"
},
"sideEffects": false,
"main": "dist/commercetools-uikit-constraints.cjs.js",
"module": "dist/commercetools-uikit-constraints.esm.js",
"files": [
"dist"
],
"sideEffects": false,
"license": "MIT",
"dependencies": {
"@commercetools-uikit/design-system": "0.0.0-canary-f592e685bb1af2ae3cc09fae010abe25e130b5e6",
"@commercetools-uikit/utils": "0.0.0-canary-f592e685bb1af2ae3cc09fae010abe25e130b5e6",
"@emotion/core": "10.0.28",
"@emotion/styled": "10.0.27",
"prop-types": "15.7.2"
"@babel/runtime": "^7.20.13",
"@babel/runtime-corejs3": "^7.20.13",
"@commercetools-uikit/design-system": "0.0.0-preview-FCT-1187-20241021190428",
"@commercetools-uikit/utils": "0.0.0-preview-FCT-1187-20241021190428",
"@emotion/react": "^11.10.5",
"@emotion/styled": "^11.10.5",
"prop-types": "15.8.1"
},
"devDependencies": {
"react": "17.0.2"
},
"peerDependencies": {
"react": ">= 16.8.0"
"react": "17.x"
},
"gitHead": "02415af0908240886920a1c585c6a984a621925a"
"readme": {
"componentPaths": [
"./src/horizontal/horizontal.tsx"
]
}
}

@@ -1,3 +0,30 @@

# Constraint
<!-- THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -->
<!-- This file is created by the `yarn generate-readme` script. -->
# Constraints
## Description
Constraints are container elements with a configurable constraint size, like width or height.
## Installation
```
yarn add @commercetools-uikit/constraints
```
```
npm --save install @commercetools-uikit/constraints
```
Additionally install the peer dependencies (if not present)
```
yarn add react
```
```
npm --save install react
```
## Usage

@@ -8,23 +35,18 @@

<Constraints.Horizontal constraint="m">
<DatePicker />
<Constraints.Horizontal max={7}>
<p>
Lorem ipsum dolor sit amet, id labitur perpetua vix. An graece iisque
corpora sit, erant nihil signiferumque et pro, cu ius minim altera
temporibus.
</p>
</Constraints.Horizontal>;
```
## Properties
## Horizontal
| Props | Type | Required | Values | Default |
| ------------ | ---------------- | :------: | ------------------------------------ | ------- |
| `constraint` | `String` | - | `'scale', 'xs', 's', 'm', 'l', 'xl'` | `scale` |
| `children` | `PropTypes.node` | ✅ | - | - |
### Properties
## Scales
| Scale | Pixel |
| :---- | :------ |
| scale | `100%` |
| xs | `50px` |
| s | `132px` |
| m | `355px` |
| l | `496px` |
| xl | `768px` |
| Props | Type | Required | Default | Description |
| ---------- | ----------------------------------------------------------------------------------------------------------- | :------: | ------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| `max` | `union`<br/>Possible values:<br/>`, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 'scale', 'auto'` | | | The value of the constraint. See equivalent pixel values [here](https://uikit.commercetools.com/?path=/story/basics-tokens--all-tokens). |
| `children` | `ReactNode` | ✅ | | |
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc