@silas-test/ob-atoms-price 0.1.0

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 ADDED
@@ -0,0 +1,31 @@
1
+ # Bolttech Frontend UI Library
2
+
3
+ ## Create a new Library (Local Only):
4
+
5
+ ```bash
6
+ npx nx g @nx/react:lib ${lib_name}
7
+ ```
8
+
9
+ ## Create a new Publishable Library:
10
+
11
+ ```bash
12
+ npx nx g @nx/react:lib atoms/COMPONENT_NAME --publishable --importPath @silas-test/atoms-COMPONENT_NAME
13
+ ```
14
+
15
+ ## Create a new component inside library:
16
+
17
+ ```bash
18
+ npx nx g @nx/react:component ${component_name} --project ${lib_name}
19
+ ```
20
+
21
+ ## Add storybook to lib:
22
+
23
+ ```bash
24
+ npx nx g @nx/react:storybook-configuration atoms-COMPONENT_NAME
25
+ ```
26
+
27
+ ## Run Storybook
28
+
29
+ ```bash
30
+ npx nx run storybook:storybook
31
+ ```
package/index.cjs.css ADDED
@@ -0,0 +1,116 @@
1
+ /*! tailwindcss v4.1.12 | MIT License | https://tailwindcss.com */
2
+ @layer properties;
3
+ .ob-price {
4
+ display: flex;
5
+ align-items: center;
6
+ color: var(--price-text-base);
7
+ &[data-variant='accent'] {
8
+ color: var(--price-text-accent);
9
+ }
10
+ &[data-variant='danger'] {
11
+ color: var(--price-text-danger);
12
+ }
13
+ &.dynamic {
14
+ opacity: 0%;
15
+ transition-property: opacity;
16
+ transition-timing-function: var(--tw-ease, ease);
17
+ transition-duration: var(--tw-duration, 0s);
18
+ --tw-duration: 500ms;
19
+ transition-duration: 500ms;
20
+ transition-timing-function: ease-in;
21
+ }
22
+ &.active {
23
+ opacity: 100%;
24
+ }
25
+ }
26
+ .ob-price-dw {
27
+ overflow: hidden;
28
+ &[data-size='small'] {
29
+ height: var(--price-mobile-small-lineheight);
30
+ }
31
+ &[data-size='medium'] {
32
+ height: var(--price-mobile-medium-lineheight);
33
+ }
34
+ @media only screen and (min-width: 768px) {
35
+ &[data-size='small'] {
36
+ height: var(--price-desktop-small-lineheight);
37
+ }
38
+ &[data-size='medium'] {
39
+ height: var(--price-desktop-medium-lineheight);
40
+ }
41
+ }
42
+ }
43
+ .ob-price-dr {
44
+ transition: transform 0.8s ease-in-out;
45
+ &[data-size='small'] {
46
+ height: var(--price-mobile-small-lineheight);
47
+ }
48
+ &[data-size='medium'] {
49
+ height: var(--price-mobile-medium-lineheight);
50
+ }
51
+ @media only screen and (min-width: 768px) {
52
+ &[data-size='small'] {
53
+ height: var(--price-desktop-small-lineheight);
54
+ }
55
+ &[data-size='medium'] {
56
+ height: var(--price-desktop-medium-lineheight);
57
+ }
58
+ }
59
+ }
60
+ .ob-price-d {
61
+ height: var(--price-mobile-small-lineheight);
62
+ min-width: 0;
63
+ text-align: center;
64
+ font-size: var(--price-mobile-small-fontsize);
65
+ font-weight: var(--price-mobile-small-fontweight);
66
+ line-height: var(--price-mobile-small-lineheight);
67
+ letter-spacing: var(--price-mobile-small-letterspacing);
68
+ text-transform: var(--price-mobile-small-textcase);
69
+ text-indent: var(--price-mobile-small-paragraphspacing);
70
+ -webkit-text-decoration: var(--price-mobile-small-textdecoration);
71
+ text-decoration: var(--price-mobile-small-textdecoration);
72
+ &[data-size='medium'] {
73
+ height: var(--price-mobile-medium-lineheight);
74
+ font-size: var(--price-mobile-medium-fontsize);
75
+ font-weight: var(--price-mobile-medium-fontweight);
76
+ line-height: var(--price-mobile-medium-lineheight);
77
+ letter-spacing: var(--price-mobile-medium-letterspacing);
78
+ text-transform: var(--price-mobile-medium-textcase);
79
+ text-indent: var(--price-mobile-medium-paragraphspacing);
80
+ -webkit-text-decoration: var(--price-mobile-medium-textdecoration);
81
+ text-decoration: var(--price-mobile-medium-textdecoration);
82
+ }
83
+ @media only screen and (min-width: 768px) {
84
+ height: var(--price-desktop-small-lineheight);
85
+ font-size: var(--price-desktop-small-fontsize);
86
+ font-weight: var(--price-desktop-small-fontweight);
87
+ line-height: var(--price-desktop-small-lineheight);
88
+ letter-spacing: var(--price-desktop-small-letterspacing);
89
+ text-transform: var(--price-desktop-small-textcase);
90
+ text-indent: var(--price-desktop-small-paragraphspacing);
91
+ -webkit-text-decoration: var(--price-desktop-small-textdecoration);
92
+ text-decoration: var(--price-desktop-small-textdecoration);
93
+ &[data-size='medium'] {
94
+ height: var(--price-desktop-medium-lineheight);
95
+ font-size: var(--price-desktop-medium-fontsize);
96
+ font-weight: var(--price-desktop-medium-fontweight);
97
+ line-height: var(--price-desktop-medium-lineheight);
98
+ letter-spacing: var(--price-desktop-medium-letterspacing);
99
+ text-transform: var(--price-desktop-medium-textcase);
100
+ text-indent: var(--price-desktop-medium-paragraphspacing);
101
+ -webkit-text-decoration: var(--price-desktop-medium-textdecoration);
102
+ text-decoration: var(--price-desktop-medium-textdecoration);
103
+ }
104
+ }
105
+ }
106
+ @property --tw-duration {
107
+ syntax: "*";
108
+ inherits: false;
109
+ }
110
+ @layer properties {
111
+ @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
112
+ *, ::before, ::after, ::backdrop {
113
+ --tw-duration: initial;
114
+ }
115
+ }
116
+ }