@flower-city-online/itinerary-lib 0.0.38 → 0.0.40
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
CHANGED
|
@@ -15,6 +15,49 @@ Run `ng build itinerary-lib` to build the project. The build artifacts will be s
|
|
|
15
15
|
|
|
16
16
|
After building your library with `ng build itinerary-lib`, go to the dist folder `cd dist/itinerary-lib` and run `npm publish`.
|
|
17
17
|
|
|
18
|
+
## Using the Library Styles
|
|
19
|
+
|
|
20
|
+
The library includes pre-compiled Tailwind CSS styles that you can import directly without configuring Tailwind in your project.
|
|
21
|
+
|
|
22
|
+
### Option 1: Import Pre-compiled CSS (Recommended)
|
|
23
|
+
|
|
24
|
+
Simply import the compiled CSS file in your Angular application:
|
|
25
|
+
|
|
26
|
+
**In `angular.json` (styles array):**
|
|
27
|
+
```json
|
|
28
|
+
"styles": [
|
|
29
|
+
"node_modules/@flower-city-online/itinerary-lib/styles.css",
|
|
30
|
+
"src/styles.scss"
|
|
31
|
+
]
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
**Or in your main `styles.scss` file:**
|
|
35
|
+
```scss
|
|
36
|
+
@import '@flower-city-online/itinerary-lib/styles.css';
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
This includes all Tailwind utilities and custom components with your library's theme configuration (colors, fonts, breakpoints, etc.).
|
|
40
|
+
|
|
41
|
+
**Note:** The pre-compiled CSS includes Tailwind utilities and some custom utilities. For additional custom SCSS classes (like `btn-dark`, `btn-white`, `outset-shadow`, etc.), you may also need to import the full styles file:
|
|
42
|
+
|
|
43
|
+
```json
|
|
44
|
+
"styles": [
|
|
45
|
+
"node_modules/@flower-city-online/itinerary-lib/styles.css",
|
|
46
|
+
"node_modules/@flower-city-online/itinerary-lib/src/lib/itinerary-app/styles.scss",
|
|
47
|
+
"src/styles.scss"
|
|
48
|
+
]
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Option 2: Import Source SCSS (Advanced)
|
|
52
|
+
|
|
53
|
+
If you prefer to use the source SCSS files and configure Tailwind yourself, you can import:
|
|
54
|
+
|
|
55
|
+
```scss
|
|
56
|
+
@import '@flower-city-online/itinerary-lib/src/lib/itinerary-app/styles.scss';
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
This requires you to have Tailwind CSS configured in your project.
|
|
60
|
+
|
|
18
61
|
## Running unit tests
|
|
19
62
|
|
|
20
63
|
Run `ng test itinerary-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flower-city-online/itinerary-lib",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.40",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/cdk": "^17.3.10",
|
|
6
6
|
"@angular/core": "^17.3.10",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"src/assets/**/*",
|
|
32
32
|
"src/lib/itinerary-app/styles.scss",
|
|
33
33
|
"src/lib/itinerary-app/_styles/**/*",
|
|
34
|
+
"styles.css",
|
|
34
35
|
"README.md"
|
|
35
36
|
],
|
|
36
37
|
"module": "fesm2022/flower-city-online-itinerary-lib.mjs",
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
// Tailwind CSS directives
|
|
2
|
+
@tailwind base;
|
|
3
|
+
@tailwind components;
|
|
4
|
+
@tailwind utilities;
|
|
5
|
+
|
|
6
|
+
// Custom Tailwind utilities and components from the main styles
|
|
7
|
+
@layer base {
|
|
8
|
+
.active-link {
|
|
9
|
+
@apply px-3 py-2 rounded-full bg-primary text-white;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.h1 {
|
|
13
|
+
@apply text-[48px] leading-tight md:text-[55px] md:leading-[1.3] mb-4 font-bold;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.h2 {
|
|
17
|
+
@apply text-[33px] leading-tight md:text-[46px] md:leading-[1.3] mb-4 font-bold;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.h3 {
|
|
21
|
+
@apply text-[26px] leading-tight md:text-[36px] md:leading-[1.3] mb-4 font-semibold;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
p {
|
|
25
|
+
@apply leading-[1.3] text-gray-30 text-[14px];
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@layer utilities {
|
|
30
|
+
// Container utilities
|
|
31
|
+
.max-container {
|
|
32
|
+
@apply mx-auto max-w-[1440px];
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.padding-container {
|
|
36
|
+
@apply px-6 lg:px-14 3xl:px-0;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.max-padd-container {
|
|
40
|
+
@apply mx-auto max-w-[1440px] px-5 lg:px-14 3xl:px-0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.max-padd-container-none {
|
|
44
|
+
@apply mx-auto max-w-[1440px] px-0 lg:px-0 3xl:px-0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.max-padd-container2 {
|
|
48
|
+
@apply mx-auto max-w-[1440px] px-6 lg:px-7 3xl:px-0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// Flex utilities
|
|
52
|
+
.flexCenter {
|
|
53
|
+
@apply flex items-center justify-center;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.flexBetween {
|
|
57
|
+
@apply flex items-center justify-between;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.flexStart {
|
|
61
|
+
@apply flex items-center justify-start;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.flexEnd {
|
|
65
|
+
@apply flex items-center justify-end;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// Note: Custom button utilities (btn-white, btn-light, btn-dark, etc.)
|
|
70
|
+
// that use medium-15, medium-12, and outset-shadow classes are available
|
|
71
|
+
// in the full styles.scss file. Import both files if you need them:
|
|
72
|
+
// 1. Import this compiled CSS for Tailwind utilities
|
|
73
|
+
// 2. Import styles.scss for custom SCSS classes
|
|
74
|
+
|
|
@@ -49,8 +49,6 @@ $ns-add-in-theme: mat.define-dark-theme(
|
|
|
49
49
|
|
|
50
50
|
@include mat.all-component-themes($ns-add-in-theme);
|
|
51
51
|
|
|
52
|
-
@import "@naniteninja/ionic-lib/src/lib/shared-styles/styles.scss";
|
|
53
|
-
|
|
54
52
|
@font-face {
|
|
55
53
|
font-family: "Gilroy-Regular";
|
|
56
54
|
src: url("../../assets/fonts/gilroy/Gilroy-Regular_0.ttf");
|