@myelmut/design-system 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -5
- package/assets/fonts/PPMori-Regular.woff2 +0 -0
- package/assets/fonts/PPMori-RegularItalic.woff2 +0 -0
- package/assets/fonts/PPMori-SemiBold.woff2 +0 -0
- package/assets/fonts/PPPangaia-Medium.woff2 +0 -0
- package/assets/fonts/PPPangaia-MediumItalic.woff2 +0 -0
- package/assets/fonts/PPPangaia-Ultralight.woff2 +0 -0
- package/assets/illustrations/balls-light.webp +0 -0
- package/assets/illustrations/balls.webp +0 -0
- package/assets/illustrations/basket-light.webp +0 -0
- package/assets/illustrations/basket.webp +0 -0
- package/assets/illustrations/bowl-2-light.webp +0 -0
- package/assets/illustrations/bowl-2.webp +0 -0
- package/assets/illustrations/bowl-light.webp +0 -0
- package/assets/illustrations/bowl.webp +0 -0
- package/assets/illustrations/box-2-light.webp +0 -0
- package/assets/illustrations/box-2.webp +0 -0
- package/assets/illustrations/box-light.webp +0 -0
- package/assets/illustrations/box.webp +0 -0
- package/assets/illustrations/calendar-light.webp +0 -0
- package/assets/illustrations/calendar.webp +0 -0
- package/assets/illustrations/can-light.webp +0 -0
- package/assets/illustrations/can.webp +0 -0
- package/assets/illustrations/carrot-light.webp +0 -0
- package/assets/illustrations/carrot.webp +0 -0
- package/assets/illustrations/cat-light.webp +0 -0
- package/assets/illustrations/cat.webp +0 -0
- package/assets/illustrations/check-rounded.webp +0 -0
- package/assets/illustrations/chicken-light.webp +0 -0
- package/assets/illustrations/chicken.webp +0 -0
- package/assets/illustrations/cross-rounded.webp +0 -0
- package/assets/illustrations/crown-light.webp +0 -0
- package/assets/illustrations/crown.webp +0 -0
- package/assets/illustrations/dog-light.webp +0 -0
- package/assets/illustrations/dog.webp +0 -0
- package/assets/illustrations/face-light.webp +0 -0
- package/assets/illustrations/face.webp +0 -0
- package/assets/illustrations/food-bag-light.webp +0 -0
- package/assets/illustrations/food-bag.webp +0 -0
- package/assets/illustrations/france-light.webp +0 -0
- package/assets/illustrations/france.webp +0 -0
- package/assets/illustrations/fridge-light.webp +0 -0
- package/assets/illustrations/fridge.webp +0 -0
- package/assets/illustrations/glasses-light.webp +0 -0
- package/assets/illustrations/glasses.webp +0 -0
- package/assets/illustrations/half-label-light.webp +0 -0
- package/assets/illustrations/half-label.webp +0 -0
- package/assets/illustrations/kitten-light.webp +0 -0
- package/assets/illustrations/kitten.webp +0 -0
- package/assets/illustrations/label-light.webp +0 -0
- package/assets/illustrations/label.webp +0 -0
- package/assets/illustrations/leaf-light.webp +0 -0
- package/assets/illustrations/leaf.webp +0 -0
- package/assets/illustrations/liquid-light.webp +0 -0
- package/assets/illustrations/liquid.webp +0 -0
- package/assets/illustrations/magnifying-glass-light.webp +0 -0
- package/assets/illustrations/magnifying-glass.webp +0 -0
- package/assets/illustrations/meat-light.webp +0 -0
- package/assets/illustrations/meat.webp +0 -0
- package/assets/illustrations/molecule-light.webp +0 -0
- package/assets/illustrations/molecule.webp +0 -0
- package/assets/illustrations/paws-light.webp +0 -0
- package/assets/illustrations/paws.webp +0 -0
- package/assets/illustrations/plate-light.webp +0 -0
- package/assets/illustrations/plate.webp +0 -0
- package/assets/illustrations/pot-big-2-light.webp +0 -0
- package/assets/illustrations/pot-big-2.webp +0 -0
- package/assets/illustrations/pot-big-light.webp +0 -0
- package/assets/illustrations/pot-big.webp +0 -0
- package/assets/illustrations/pot-light.webp +0 -0
- package/assets/illustrations/pot.webp +0 -0
- package/assets/illustrations/puppy-light.webp +0 -0
- package/assets/illustrations/puppy.webp +0 -0
- package/assets/illustrations/quantity-light.webp +0 -0
- package/assets/illustrations/quantity.webp +0 -0
- package/assets/illustrations/sausage-light.webp +0 -0
- package/assets/illustrations/sausage.webp +0 -0
- package/assets/illustrations/sausages-light.webp +0 -0
- package/assets/illustrations/sausages.webp +0 -0
- package/assets/illustrations/skeleton-light.webp +0 -0
- package/assets/illustrations/skeleton.webp +0 -0
- package/assets/illustrations/sofa-light.webp +0 -0
- package/assets/illustrations/sofa.webp +0 -0
- package/assets/illustrations/sport-light.webp +0 -0
- package/assets/illustrations/sport.webp +0 -0
- package/assets/illustrations/steak-light.webp +0 -0
- package/assets/illustrations/steak.webp +0 -0
- package/assets/illustrations/truck-light.webp +0 -0
- package/assets/illustrations/truck.webp +0 -0
- package/assets/illustrations/warning-light.webp +0 -0
- package/assets/illustrations/warning.webp +0 -0
- package/assets/images/cat.webp +0 -0
- package/assets/images/dog.webp +0 -0
- package/assets/images/dogs/milou-mobile.webp +0 -0
- package/assets/images/dogs/milou-mobile@2x.webp +0 -0
- package/assets/images/dogs/milou.webp +0 -0
- package/assets/images/dogs/milou@2x.webp +0 -0
- package/assets/images/elmut-sausage-chicken.webp +0 -0
- package/assets/images/elmut-sausage-chicken@2x.webp +0 -0
- package/assets/images/home-video-placeholder-mobile.webp +0 -0
- package/assets/images/home-video-placeholder-mobile@2x.webp +0 -0
- package/assets/images/home-video-placeholder.webp +0 -0
- package/assets/images/home-video-placeholder@2x.webp +0 -0
- package/assets/images/ingredients/beef.webp +0 -0
- package/assets/images/ingredients/carrot.webp +0 -0
- package/assets/images/ingredients/chicken.webp +0 -0
- package/assets/images/ingredients/courgette.webp +0 -0
- package/assets/images/ingredients/dry-apple.webp +0 -0
- package/assets/images/ingredients/dry-carrot.webp +0 -0
- package/assets/images/ingredients/dry-potatoe.webp +0 -0
- package/assets/images/ingredients/duck.webp +0 -0
- package/assets/images/ingredients/fish.webp +0 -0
- package/assets/images/ingredients/lactoserum.webp +0 -0
- package/assets/images/ingredients/oil.webp +0 -0
- package/assets/images/ingredients/pork.webp +0 -0
- package/assets/images/ingredients/potatoe.webp +0 -0
- package/assets/images/ingredients/quinoa.webp +0 -0
- package/assets/images/ingredients/turkey.webp +0 -0
- package/assets/images/ingredients/vegetal-oil.webp +0 -0
- package/assets/images/ingredients/vitamines.webp +0 -0
- package/assets/images/ingredients-parralax-mobile.webp +0 -0
- package/assets/images/ingredients-parralax-mobile@2x.webp +0 -0
- package/assets/images/ingredients-parralax.webp +0 -0
- package/assets/images/ingredients-parralax@2x.webp +0 -0
- package/assets/images/polaroids/polaroid-1-mobile.webp +0 -0
- package/assets/images/polaroids/polaroid-1-mobile@2x.webp +0 -0
- package/assets/images/polaroids/polaroid-1.webp +0 -0
- package/assets/images/polaroids/polaroid-1@2x.webp +0 -0
- package/assets/images/polaroids/polaroid-2-mobile@2x.webp +0 -0
- package/assets/images/polaroids/polaroid-2-mobilex.webp +0 -0
- package/assets/images/polaroids/polaroid-2.webp +0 -0
- package/assets/images/polaroids/polaroid-2@2x.webp +0 -0
- package/assets/images/polaroids/polaroid-3.webp +0 -0
- package/assets/images/polaroids/polaroid-3@2x.webp +0 -0
- package/assets/images/polaroids/polaroid-4-mobile.webp +0 -0
- package/assets/images/polaroids/polaroid-4-mobile@2x.webp +0 -0
- package/assets/images/polaroids/polaroid-4.webp +0 -0
- package/assets/images/polaroids/polaroid-4@2x.webp +0 -0
- package/assets/images/rocky@2x.webp +0 -0
- package/assets/images/testimonials/testimonial-1-mobile.webp +0 -0
- package/assets/images/testimonials/testimonial-1-mobile@2x.webp +0 -0
- package/assets/images/testimonials/testimonial-1.webp +0 -0
- package/assets/images/testimonials/testimonial-1@2x.webp +0 -0
- package/assets/images/tips/claudine-head.webp +0 -0
- package/assets/images/tips/claudine-tips-mobile.webp +0 -0
- package/assets/images/tips/claudine-tips-mobile@2x.webp +0 -0
- package/assets/images/tips/claudine-tips.webp +0 -0
- package/assets/images/tips/claudine-tips@2x.webp +0 -0
- package/assets/images/trash/claudine-polaroid.webp +0 -0
- package/assets/images/trash/payment-card.webp +0 -0
- package/assets/images/trash/polaroid.webp +0 -0
- package/assets/images/trash/recette.webp +0 -0
- package/assets/images/trash/testimonial.webp +0 -0
- package/dist/index.cjs.js +4 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +994 -2500
- package/dist/index.es.js.map +1 -1
- package/dist/types/index.d.ts +5 -0
- package/package.json +9 -4
- package/styles/globals.css +187 -0
package/README.md
CHANGED
|
@@ -34,14 +34,14 @@ This will generate:
|
|
|
34
34
|
|
|
35
35
|
## Installation
|
|
36
36
|
|
|
37
|
-
Install the package from NPM:
|
|
37
|
+
Install the package from NPM along with required peer dependencies:
|
|
38
38
|
|
|
39
39
|
```bash
|
|
40
|
-
npm install @myelmut/design-system
|
|
40
|
+
npm install @myelmut/design-system i18next react-i18next
|
|
41
41
|
# or
|
|
42
|
-
yarn add @myelmut/design-system
|
|
42
|
+
yarn add @myelmut/design-system i18next react-i18next
|
|
43
43
|
# or
|
|
44
|
-
pnpm add @myelmut/design-system
|
|
44
|
+
pnpm add @myelmut/design-system i18next react-i18next
|
|
45
45
|
```
|
|
46
46
|
|
|
47
47
|
## Usage
|
|
@@ -132,7 +132,8 @@ The package includes:
|
|
|
132
132
|
|
|
133
133
|
- **Components**: ES modules and CommonJS compatible
|
|
134
134
|
- **TypeScript Declarations**: Full type definitions
|
|
135
|
-
- **Styles**: Pre-compiled Tailwind CSS (`dist/index.css`)
|
|
135
|
+
- **Styles**: Pre-compiled Tailwind CSS (`dist/index.css`) and source CSS (`styles/`)
|
|
136
|
+
- **Assets**: Static assets including fonts, images, and illustrations
|
|
136
137
|
|
|
137
138
|
```
|
|
138
139
|
@myelmut/design-system/
|
|
@@ -141,6 +142,30 @@ The package includes:
|
|
|
141
142
|
│ ├── index.es.js # ES module bundle
|
|
142
143
|
│ ├── index.css # Compiled styles
|
|
143
144
|
│ └── types/ # TypeScript declarations
|
|
145
|
+
├── styles/
|
|
146
|
+
│ └── globals.css # Source Tailwind CSS
|
|
147
|
+
└── assets/
|
|
148
|
+
├── fonts/ # Font files
|
|
149
|
+
├── images/ # Image assets
|
|
150
|
+
└── illustrations/ # Illustration files (webp)
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
### Accessing Static Assets
|
|
154
|
+
|
|
155
|
+
You can import assets directly from the package:
|
|
156
|
+
|
|
157
|
+
```tsx
|
|
158
|
+
// Import source CSS (if you want to customize Tailwind)
|
|
159
|
+
import '@myelmut/design-system/styles/globals.css';
|
|
160
|
+
|
|
161
|
+
// Import compiled CSS (recommended for most use cases)
|
|
162
|
+
import '@myelmut/design-system/dist/index.css';
|
|
163
|
+
|
|
164
|
+
// Import illustrations
|
|
165
|
+
const chickenImage = '@myelmut/design-system/assets/illustrations/chicken.webp';
|
|
166
|
+
const fridgeImage = '@myelmut/design-system/assets/illustrations/fridge.webp';
|
|
167
|
+
const leafImage = '@myelmut/design-system/assets/illustrations/leaf.webp';
|
|
168
|
+
const potImage = '@myelmut/design-system/assets/illustrations/pot.webp';
|
|
144
169
|
```
|
|
145
170
|
|
|
146
171
|
## Available Scripts
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|