Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit 4c6c0f9

Browse files
rawilkactions-user
authored andcommitted
Prettified Code!
1 parent 248da7a commit 4c6c0f9

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

docs/installation.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,12 @@ php artisan fc:publish --views
7878
You have a couple options for how you can use the UI components' CSS, depending on you and your project's needs:
7979

8080
### Using Laravel Mix or Webpack with CSS-Loader
81+
8182
You can import the built CSS in your own CSS files using `@import '../../vendor/rawilk/laravel-form-components/resources/js/laravel-form-components-styles/dist/styles.css';`.
8283
This is assuming your stylesheet is located in the `./resources/css/` directory of your project.
8384

8485
### Directly in Blade/HTML
86+
8587
You could copy the built CSS from `vendor/rawilk/laravel-components/resources/js/laravel-form-components-styles/dist/styles.css` into your public folder, and then use a `link` tag in your blade/html to get it: `<link rel="stylesheet" href="{{ asset('css/laravel-form-components.css') }}">`.
8688

8789
If you would like to customize the CSS we provide, head over to [the section on Customizing CSS](/docs/laravel-form-components/v4/advanced-usage/customizing-css).
@@ -120,10 +122,10 @@ npm install -D alpinejs @popperjs/core filepond flatpickr
120122
In your JavaScript, add the following lines to pull each of the external dependencies you previously installed in:
121123

122124
```js
123-
import 'alpinejs';
124-
import flatpickr from 'flatpickr';
125-
import * as FilePond from 'filepond';
126-
import { createPopper } from '@popperjs/core';
125+
import "alpinejs";
126+
import flatpickr from "flatpickr";
127+
import * as FilePond from "filepond";
128+
import { createPopper } from "@popperjs/core";
127129

128130
window.flatpickr = flatpickr;
129131
window.FilePond = FilePond;
@@ -136,8 +138,8 @@ Some of the dependencies this package has also have their own styling they provi
136138

137139
```css
138140
/* app.css */
139-
@import 'filepond/dist/filepond.min.css';
140-
@import 'flatpickr/dist/flatpickr.min.css';
141+
@import "filepond/dist/filepond.min.css";
142+
@import "flatpickr/dist/flatpickr.min.css";
141143
```
142144

143145
> {note} Be sure to include these styles **above** the styles for this package so any overrides this package uses for the dependencies gets applied correctly.

docs/upgrade.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Version 4 introduced some breaking changes, which are outlined below:
99

1010
### Styling
1111

12-
In v4, laravel-form-components is now inlining a lot of the class names for form components instead of using `@apply` in a stylesheet with a custom class name. For backwards compatibility, the custom class names are still included with each component to prevent breaking any style overrides you may have written.
12+
In v4, laravel-form-components is now inlining a lot of the class names for form components instead of using `@apply` in a stylesheet with a custom class name. For backwards compatibility, the custom class names are still included with each component to prevent breaking any style overrides you may have written.
1313

1414
Another major change with the styling is laravel-form-components now uses a single `.css` stylesheet for any complex styles required instead of using `.sass` stylesheets. This will allow the usage of postcss and/or tailwind's JIT compiler in your projects with these styles. If you're still using SASS, you should still be able to pull the styles in as you were before; you'll just need to update the path to the stylesheet.
1515

@@ -18,6 +18,7 @@ In addition, we have stopped using the `primary` and `danger` variant names in f
1818
For more info on styling, please see [the Customizing CSS section](/docs/laravel-form-components/advanced-usage/customizing-css).
1919

2020
### Added Dependencies
21+
2122
Some components, such as the `custom-select` component, have a dependency on `Popper.js` now for positioning the menu. This will require you to ensure that dependency is installed in your project. If you customized the package's configuration file, you should make sure you pull in any updates to the configuration as well.
2223

2324
See [the custom select docs](/docs/laravel-form-components/v4/selects/custom-select#installation) for more information.

0 commit comments

Comments
 (0)